/* ═══════════════════════════════════════════════════════════
   ZENTRA — UI Components
   Buttons, Cards, Modals, Forms, Badges, Tables, Toasts
   ═══════════════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before {
  opacity: 1;
}
.btn:active {
  transform: scale(0.97);
}

/* Primary — Gold fill */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.35);
  transform: translateY(-2px);
}

/* Secondary — Outline */
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Ghost */
.btn-ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text);
}

/* Danger */
.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* Success */
.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
}
.btn-success:hover {
  background: var(--success);
  color: white;
}

/* Sizes */
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}
.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
}
.btn-icon {
  padding: 0.65rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}
.btn-icon-sm {
  padding: 0.4rem;
  width: 32px;
  height: 32px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-accent);
  border-color: var(--border-accent);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-image img {
  transform: scale(1.07);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.product-card-body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.product-name {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-current {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-trending {
  background: rgba(255, 100, 50, 0.15);
  color: #ff6432;
  border: 1px solid rgba(255, 100, 50, 0.3);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.badge-new {
  background: rgba(200, 169, 110, 0.15);
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.3);
}

.badge-instock {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-outofstock {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-status-reviewed {
  background: var(--info-bg, rgba(59, 130, 246, 0.1));
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-status-confirmed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-status-rejected {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: overlayIn 0.25s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

.modal-sm {
  max-width: 440px;
}
.modal-lg {
  max-width: 860px;
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--surface);
  position: sticky;
  bottom: 0;
}

/* ── Product Detail Modal ─────────────────────────────────── */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-modal-gallery {
  position: relative;
}

.product-modal-main-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.product-modal-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.product-modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-modal-thumb.active {
  border-color: var(--accent);
}
.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-chip {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.size-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

@media (max-width: 600px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface-3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237A7A7A'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--surface-2);
  color: var(--text);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-glow2);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.6;
}
.file-upload-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.file-upload-text strong {
  color: var(--accent);
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
  cursor: pointer;
  border: none;
  line-height: 1;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--surface-4);
  border-radius: 12px;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.toggle-switch input:checked ~ .toggle-track {
  background: var(--accent);
}
.toggle-switch input:checked ~ .toggle-track::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
}

.tab:hover {
  color: var(--text);
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── Table ────────────────────────────────────────────────── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover td {
  background: var(--surface-2);
}

.table-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ── Toast Notifications ──────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 320px;
  font-size: 0.875rem;
  color: var(--text);
  pointer-events: all;
  animation: toastIn 0.35s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
}

.toast.toast-success::before {
  background: var(--success);
}
.toast.toast-error::before {
  background: var(--error);
}
.toast.toast-warning::before {
  background: var(--warning);
}
.toast.toast-info::before {
  background: var(--accent);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--accent-glow2);
  border-radius: 50%;
  transform: translate(20px, -20px);
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-card-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Category Tiles ───────────────────────────────────────── */
.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-glow2);
  opacity: 0;
  transition: opacity var(--transition);
}

.category-tile:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.category-tile:hover .category-tile-icon {
  transform: scale(1.15);
}

.category-tile-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.category-tile-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Scrollable Row ──────────────────────────────────────── */
.scroll-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
  -webkit-overflow-scrolling: touch;
}

.scroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 260px;
}

@media (max-width: 768px) {
  .scroll-row > * {
    width: 220px;
  }
}

/* ── Testimonial Card ─────────────────────────────────────── */
.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.testimonial-location {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── USP Cards ────────────────────────────────────────────── */
.usp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.usp-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.usp-card:hover::after {
  transform: scaleX(1);
}
.usp-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.usp-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.usp-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.usp-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Search & Filter Bar ──────────────────────────────────── */
.search-bar {
  position: relative;
}

.search-bar input {
  padding-left: 2.8rem;
}

.search-bar-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-2);
}
.filter-chip.active {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
  font-weight: 600;
}

/* ── Info Banner ──────────────────────────────────────────── */
.info-banner {
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.info-banner-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Panel Page Layout ────────────────────────────────────── */
.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}

.panel-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.panel-content {
  background: var(--bg);
  padding: 2.5rem;
  min-height: 100%;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-nav-item .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .panel-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .panel-sidebar .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .panel-content {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .panel-content {
    padding: 1.25rem 0.8rem;
  }
  .panel-sidebar {
    padding: 0.85rem;
  }
  .sidebar-nav-item {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .sidebar-section-title {
    padding: 0.45rem 0.75rem;
    font-size: 0.68rem;
  }
  .table th,
  .table td {
    padding: 0.75rem 0.75rem;
  }
  .table th {
    font-size: 0.68rem;
  }
  .table td {
    font-size: 0.76rem;
  }
  .table-wrapper {
    border-radius: var(--radius-md);
  }
  .table-img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 375px) {
  .panel-content {
    padding: 1rem 0.75rem;
  }
  .panel-sidebar {
    padding: 0.75rem;
  }
  .sidebar-nav-item {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
  }
  .sidebar-nav-item .icon {
    font-size: 1rem;
  }
  .table th,
  .table td {
    padding: 0.55rem 0.55rem;
  }
  .table th {
    font-size: 0.65rem;
  }
  .table td {
    font-size: 0.72rem;
  }
  .table-wrapper {
    border-radius: var(--radius-sm);
  }
  .table {
    font-size: 0.76rem;
  }
  .table thead {
    display: none;
  }
  .table tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    white-space: normal;
  }
  .table td::before {
    content: attr(data-label);
    flex: 1 0 45%;
    color: var(--text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.6rem;
  }
  .table td:last-child {
    justify-content: flex-start;
  }
  .table-img {
    width: 34px;
    height: 34px;
  }
  .product-card {
    width: 100%;
  }
  .product-card-image {
    aspect-ratio: 3 / 4;
  }
  .product-card-body {
    padding: 0.85rem;
  }
  .product-name {
    font-size: 0.95rem;
  }
  .product-description {
    font-size: 0.75rem;
  }
  .price-current {
    font-size: 1rem;
  }
  .price-original {
    font-size: 0.72rem;
  }
  .product-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .product-price {
    gap: 0.35rem;
  }
}

@media (max-width: 320px) {
  .panel-content {
    padding: 0.95rem 0.65rem;
  }
  .panel-sidebar {
    padding: 0.65rem;
  }
  .sidebar-nav-item {
    font-size: 0.72rem;
    padding: 0.45rem 0.6rem;
    gap: 0.4rem;
  }
  .sidebar-section-title {
    font-size: 0.64rem;
    padding: 0.35rem 0.55rem;
  }
  .table th,
  .table td {
    padding: 0.45rem 0.45rem;
  }
  .table th {
    font-size: 0.62rem;
  }
  .table td {
    font-size: 0.7rem;
  }
  .table-img {
    width: 30px;
    height: 30px;
  }
  .table tr {
    margin-bottom: 0.6rem;
  }
  .table td::before {
    font-size: 0.62rem;
    margin-right: 0.4rem;
  }
  .product-card-image {
    aspect-ratio: 4 / 5;
  }
  .product-card-body {
    padding: 0.75rem;
  }
  .product-name {
    font-size: 0.9rem;
  }
  .product-description {
    font-size: 0.72rem;
  }
  .price-current {
    font-size: 0.95rem;
  }
  .price-original {
    font-size: 0.7rem;
  }
  .product-price-row {
    gap: 0.25rem;
  }
}

/* ── Confirm Dialog ───────────────────────────────────────── */
.confirm-dialog {
  max-width: 400px;
  text-align: center;
  padding: 2.5rem;
}

.confirm-dialog-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.confirm-dialog-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.confirm-dialog-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.confirm-dialog-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Product Grid Layout ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card-body {
    padding: 0.75rem;
  }
  .product-name {
    font-size: 0.875rem;
  }
  .price-current {
    font-size: 1rem;
  }
}

/* ── 320px Micro-mobile component fixes ──────────────────────── */
@media (max-width: 375px) {
  /* Product grid — single column on very small screens */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .product-card-body {
    padding: 0.65rem;
  }
  .product-name {
    font-size: 0.82rem;
  }
  .price-current {
    font-size: 0.95rem;
  }
  .price-original {
    font-size: 0.75rem;
  }

  /* Modal fits screen */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-body {
    padding: 1rem 0.875rem;
  }
  .modal-header {
    padding: 1rem;
  }
  .modal-footer {
    padding: 1rem;
    flex-wrap: wrap;
  }
  .modal-title {
    font-size: 1.1rem;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* USP cards */
  .usp-card {
    padding: 1.25rem;
  }
  .usp-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .usp-title {
    font-size: 1rem;
  }

  /* Panel layout already collapses at 768, tighten further */
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .panel-sidebar {
    padding: 0.75rem;
  }
  .panel-sidebar .sidebar-nav {
    gap: 0.3rem;
  }
  .sidebar-nav-item {
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  /* Toolbar on products page */
  .toolbar-inner {
    gap: 0.5rem;
  }
  .filter-chips {
    gap: 0.35rem;
  }
  .filter-chip {
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
  }

  /* Toast width */
  .toast {
    max-width: calc(100vw - 2rem);
  }
  #toast-container {
    right: 1rem;
    left: 1rem;
  }

  /* Info banner */
  .info-banner {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  /* Auth page */
  .auth-tabs .auth-tab {
    font-size: 0.82rem;
    padding: 0.5rem 0.5rem;
  }

  /* Stat cards in admin */
  .stat-card {
    padding: 1.1rem;
  }
  .stat-card-value {
    font-size: 2rem;
  }

  /* Category tiles */
  .category-tile {
    padding: 1rem;
  }
  .category-tile-icon {
    font-size: 2rem;
  }
  .category-tile-name {
    font-size: 0.8rem;
  }
}
