/* ── Flash Toast Notifications ──────────────────────────── */
.flash-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: flashSlideIn 0.4s ease-out;
  max-width: 90vw;
  min-width: 220px;
  width: auto;
  white-space: normal;
  letter-spacing: 0.01em;
}
.flash-success {
  background: #ffffff;
  color: #0f0f0f;
  border: 1.5px solid var(--border-2);
}
.flash-error {
  background: #ffffff;
  color: #0f0f0f;
  border: 1.5px solid var(--danger);
}
.flash-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.flash-msg { flex: 1; color: #0f0f0f; font-size: 15px; }
.flash-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #0f0f0f;
  opacity: 0.5;
  padding: 0;
  line-height: 1;
}
.flash-close:hover { opacity: 1; }
.flash-toast.flash-hide {
  animation: flashSlideOut 0.3s ease-in forwards;
}
@keyframes flashSlideIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes flashSlideOut {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to { transform: translateX(-50%) translateY(-20px); opacity: 0; }
}
@media (max-width: 600px) {
  .flash-toast {
    top: 12px;
    max-width: 90vw;
  }
}

@media (min-width: 769px) {
}
@media (max-width: 767px) {
  /* Consolidated mobile rules for product/category cards and images */
  .product-list, .product-grid, .featured-products, .category-list, .category-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  .product-list > *, .product-grid > *, .featured-products > *, .category-list > *, .category-grid > * {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .product-card, .category-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 22px !important;
    border-radius: var(--r-sm) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
  .product-card-img {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border-radius: var(--r-sm) !important;
    background: #fff !important;
    aspect-ratio: 1/1 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .product-card-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-radius: var(--r-sm) !important;
    display: block !important;
    margin: 0 auto;
    object-fit: contain !important;
    background: #fff !important;
  }
  .category-card-img {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1/1 !important;
    margin: 0 auto 12px auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--bg-warm) !important;
    display: block !important;
  }
  .category-card-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto;
    border-radius: 10px !important;
  }
}
/* --- STRONGER MOBILE RESPONSIVE FOR HOME & PRODUCT LISTING --- */
@media (max-width: 767px) {
  .home-section, .featured-products, .product-list, .product-grid, .product-card, .product-card-body, .product-card-actions, .category-list, .category-card, .category-card-title, .category-card-actions {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    overflow-x: auto !important;
  }
  .product-card-title, .product-card-price {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible !important;
  }
  .category-card-img {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  .product-card-img {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .product-list, .product-grid, .featured-products {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }
  .product-card, .category-card {
    margin-bottom: 22px !important;
    border-radius: var(--r-sm) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
  /* Removed duplicate mobile image rules */
  .product-card-title, .category-card-title {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
    word-break: break-word !important;
  }
  .product-card-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 10px !important;
  }
  .product-card-actions, .category-card-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .product-card-actions button, .category-card-actions button, .product-card-actions a, .category-card-actions a {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    padding: 12px 0 !important;
    border-radius: var(--r-xs) !important;
  }
}
/* --- Product Page Mobile --- */
@media (max-width: 767px) {
  .product-info {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .product-description {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}
/* ── Flipkart-style Mega Menu ──────────────────────────────── */
/* Make header sticky */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Mega Menu: Dropdown Container ─────────────────────────── */
.desktop-products-menu.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  top: 100%;
  width: 96vw;
  max-width: 1200px;
  z-index: 1100;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 4px 4px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}
.desktop-products-dropdown:hover .desktop-products-menu.mega-menu,
.desktop-products-dropdown:focus-within .desktop-products-menu.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── Mega Menu: Vertical-first column flow ─────────────────── */
.mega-columns {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  max-height: 70vh;
  padding: 20px 0 12px;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}
.mega-columns::-webkit-scrollbar { width: 4px; }
.mega-columns::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.mega-column {
  width: 230px;
  padding: 0 22px 16px;
  box-sizing: border-box;
}

/* ── Mega Menu: Parent Category (Flipkart style) ──────────── */
.mega-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #212121;
  text-decoration: none;
  padding: 6px 0 6px;
  margin-bottom: 2px;
  transition: color .15s;
}
.mega-parent:hover { color: var(--accent); }
.mega-parent-arrow {
  font-size: 11px;
  line-height: 1;
  color: #878787;
  margin-left: 2px;
}
.mega-parent:hover .mega-parent-arrow { color: var(--accent); }

/* ── Mega Menu: Child Category ─────────────────────────────── */
.mega-child {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color .15s;
  line-height: 1.6;
}
.mega-child:hover,
.mega-child:focus {
  color: var(--accent);
}

/* ── Mega Menu: Responsive ─────────────────────────────────── */
@media (max-width: 1200px) {
  .desktop-products-menu.mega-menu { width: 98vw; max-width: 1000px; }
  .mega-column { width: 200px; padding: 0 16px 14px; }
  .mega-parent { font-size: 13px; }
  .mega-child { font-size: 12.5px; }
}
@media (max-width: 900px) {
  .desktop-products-menu.mega-menu { display: none !important; }
}
/* Admin mobile rules moved to "Admin Panel Mobile Premium" section below base styles */
/* Vertically center product images in cards on mobile */
/* Removed redundant 700px mobile image rules for product-card-img */
/* Force product card images to always be centered, contain, and uniform size on all pages */
.product-card-img img {
  object-fit: contain !important;
  background: #fff !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 12px;
}
/* Removed redundant 700px mobile image rules for product-card-img img */
/* Product image fit: always center, white background, no stretch, same size for all */
.product-card img, .product-img, .gallery-main img, .product-gallery-main img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  background: #fff;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 12px;
}
@media (max-width: 700px) {
  .product-card img, .product-img, .gallery-main img, .product-gallery-main img {
    height: 100%;
    max-height: 100%;
  }
}
/* Fix: Always center product card images on desktop and mobile */
.product-card img, .product-img, .gallery-main img, .product-gallery-main img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}
/* Fix: Product card/image left padding and center images on mobile */
@media (max-width: 700px) {
  .product-card-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .product-card img, .product-img, .gallery-main img, .product-gallery-main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
}

/* Fix: Mobile bottom nav active link color gold */
.mobile-bottom-nav .active, .mobile-bottom-nav .active span, .mobile-bottom-nav .active svg {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
/* Admin Product Table Responsive Fix */
.admin-product-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #e6f9ed; color: #15803d; }
.badge-muted   { background: #f3f3f3; color: #888; }

@media (max-width: 768px) {
  .admin-products-table thead {
    display: none;
  }
  .admin-products-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .admin-products-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border: none;
    font-size: 13px;
    min-width: 0 !important;
    white-space: normal;
  }
  .admin-products-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-3, #888);
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 10px;
  }
  /* Product name row: full width, no label */
  .admin-products-table tbody td[data-label="Product"] {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border, #eee);
  }
  .admin-products-table tbody td[data-label="Product"]::before {
    display: none;
  }
  .admin-products-table tbody td[data-label="Product"] .admin-product-name-cell {
    width: 100%;
  }
  .admin-products-table tbody td[data-label="Product"] .admin-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .admin-products-table tbody td[data-label="Product"] .admin-product-name-cell span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    line-height: 1.3;
  }
  /* Actions row: full width */
  .admin-products-table tbody td[data-label="Actions"] {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border, #eee);
  }
  .admin-products-table tbody td[data-label="Actions"]::before {
    display: none;
  }
  .admin-products-table tbody td[data-label="Actions"] .admin-product-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .admin-products-table tbody td[data-label="Actions"] .admin-product-actions .btn,
  .admin-products-table tbody td[data-label="Actions"] .admin-product-actions form {
    flex: 1;
  }
  .admin-products-table tbody td[data-label="Actions"] .admin-product-actions form .btn {
    width: 100%;
    text-align: center;
    min-height: 36px;
    font-size: 13px;
  }
  .admin-products-table tbody td[data-label="Actions"] .admin-product-actions > .btn {
    text-align: center;
    min-height: 36px;
    font-size: 13px;
  }
  /* Categories table - same card layout */
  .admin-categories-table thead {
    display: none;
  }
  .admin-categories-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .admin-categories-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border: none;
    font-size: 13px;
    min-width: 0 !important;
    white-space: normal;
  }
  .admin-categories-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-3, #888);
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 10px;
  }
  .admin-categories-table tbody td[data-label="Actions"] {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border, #eee);
  }
  .admin-categories-table tbody td[data-label="Actions"]::before {
    display: none;
  }
  .admin-categories-table tbody td[data-label="Actions"] .admin-product-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .admin-categories-table tbody td[data-label="Actions"] .admin-product-actions .btn,
  .admin-categories-table tbody td[data-label="Actions"] .admin-product-actions form {
    flex: 1;
  }
  .admin-categories-table tbody td[data-label="Actions"] .admin-product-actions form .btn,
  .admin-categories-table tbody td[data-label="Actions"] .admin-product-actions > .btn {
    width: 100%;
    text-align: center;
    min-height: 36px;
    font-size: 13px;
  }
  /* Orders table - mobile card layout */
  .admin-orders-table thead {
    display: none;
  }
  .admin-orders-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .admin-orders-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border: none;
    font-size: 13px;
    min-width: 0 !important;
    white-space: normal;
  }
  .admin-orders-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-3, #888);
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 10px;
  }
  .admin-orders-table tbody td[data-label="Customer"] {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-orders-table tbody td[data-label="Items"] {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-orders-table tbody td[data-label="Items"] .order-items-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .admin-orders-table tbody td[data-label="Actions"] {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border, #eee);
  }
  .admin-orders-table tbody td[data-label="Actions"]::before {
    display: none;
  }
  .admin-orders-table tbody td[data-label="Actions"] .order-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .admin-orders-table tbody td[data-label="Actions"] .order-action-form select,
  .admin-orders-table tbody td[data-label="Actions"] .order-action-form input {
    width: 100%;
  }
  .admin-orders-table tbody td[data-label="Actions"] .order-action-form .btn {
    width: 100%;
    text-align: center;
  }
  .admin-orders-table .order-customer-box {
    width: 100%;
  }
  .admin-orders-table .order-courier-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
}
/* (moved to consolidated responsive block at end of file) */
/* ============================================================
   ZEFINX ONLINE — Premium Design System v2
   Palette: Obsidian brand · Champagne gold accent · Warm white
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --brand:        #0f0f0f;
  --brand-2:      #1c1c1c;
  --accent:       #c9a96e;
  --accent-dark:  #a8844a;
  --accent-light: #fdf6ec;
  --text:         #0f0f0f;
  --text-2:       #4b5563;
  --text-3:       #9ca3af;
  --bg:           #ffffff;
  --bg-soft:      #fafaf8;
  --bg-warm:      #f5f3ef;
  --panel:        #ffffff;
  --border:       #e8e4de;
  --border-2:     #d4cfc8;
  --success:      #059669;
  --success-bg:   #ecfdf5;
  --success-b:    #a7f3d0;
  --danger:       #dc2626;
  --danger-bg:    #fff1f1;
  --danger-b:     #fecaca;
  --warning:      #b45309;
  --warning-bg:   #fffbeb;
  --warning-b:    #fde68a;
  --info-bg:      #eff6ff;
  --info:         #1d4ed8;
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --sh-xs: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --sh-sm: 0 4px 12px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --sh:    0 10px 32px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --sh-lg: 0 24px 64px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);
  --ease:  .2s cubic-bezier(.4, 0, .2, 1);
  /* ── App / Mobile tokens ──────────────────── */
  --touch-min: 44px;
  --bottom-nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --topbar-h: 62px;
  --mobile-topbar-h: 56px;
  --app-ease: .28s cubic-bezier(.4, 0, .2, 1);
  --app-bounce: .35s cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas, iframe { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1rem;      font-weight: 600; }
h5 { font-size: .875rem;   font-weight: 600; letter-spacing: .01em; }
h1, h2, h3, h4, h5 { margin-bottom: .5em; }
p  { color: var(--text-2); line-height: 1.75; margin-bottom: .875rem; }
p:last-child { margin-bottom: 0; }

.overline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.text-muted { color: var(--text-3); }
.text-sm    { font-size: 13px; }
.fw-600     { font-weight: 600; }
.fw-700     { font-weight: 700; }

/* ── Layout Containers ──────────────────────────────────────── */
.container    { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-md { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.row     { display: flex; flex-wrap: wrap; gap: 16px; }
.row.center  { align-items: center; }
.row.between { justify-content: space-between; }
.col     { flex: 1; }
.grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.gap-sm  { gap: 10px; }
.gap-lg  { gap: 32px; }

/* ── Site Main Wrapper ──────────────────────────────────────── */
.site-main { min-height: calc(100vh - 62px); background: var(--bg-soft); }
.page-body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

.store-page .page-body > *:not(.section):not(.full-bleed):not(.hero):not(.flash-alert):not(.flash-toast):not(.breadcrumb) {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.admin-content > .card {
  margin: 16px 24px 0;
  padding: 18px 20px;
  min-width: 0;
}

.admin-content > .card .table {
  margin-top: 8px;
}
.admin-content .table {
  font-size: 13px;
}
.admin-content .table th {
  padding: 9px 12px;
  font-size: 10.5px;
}
.admin-content .table td {
  padding: 9px 12px;
}
.admin-content .btn.sm {
  padding: 6px 12px;
  font-size: 12px;
}
.section,
.hero,
.full-bleed {
  width: 100%;
  max-width: 100%;
}
.page-body > .hero {
  margin: 0;
  padding: 0;
}
.page-body > .full-bleed:last-child {
  margin-bottom: -64px;
}
.full-bleed {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ── Announcement Bar ───────────────────────────────────────── */
.announce-bar {
  background: #0f0f0f;
  color: rgba(236,247,250,.84);
  text-align: left;
  direction: ltr;
  padding: 9px 16px;
  padding-top: calc(9px + var(--safe-t));
  font-size: 12.5px;
  letter-spacing: .04em;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 0 !important;
}
.announce-bar strong { color: var(--accent); font-weight: 700; }
.announce-bar-track {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: announce-rtl 18s linear infinite;
}
.announce-bar-track > span { display: inline-block; }
@keyframes announce-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ── Header / Topbar ────────────────────────────────────────── */
.topbar {
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 14px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.admin-page .topbar-inner {
  max-width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #ffffff;
  flex-shrink: 0;
  transition: opacity .2s;
}
.logo:hover { opacity: .82; }
.logo-dot { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.nav a {
  color: rgba(255,255,255,.68);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  background: #000;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%) !important;
}
.hero.hero-image-only {
  background: #000;
  padding: 0 !important;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,169,110,.12), transparent);
  pointer-events: none;
}
.hero.hero-image-only::after {
  display: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.35);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.58);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }

/* ── Banners Strip ──────────────────────────────────────────── */
.banner-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.banner-card {
  display: block;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.banner-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.banner-card:hover img { transform: scale(1.04); }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.offer-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  background: var(--bg-warm);
  aspect-ratio: 16/5;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}
.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.offer-card:hover img {
  transform: scale(1.04);
}

.upload-dropzone {
  border: 2px dashed var(--border-2);
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
  position: relative;
  overflow: hidden;
}
.upload-dropzone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0.5;
}
.upload-dropzone.is-dragover,
.upload-dropzone.is-filled {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--accent-light) 100%);
  color: var(--text);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease);
  text-decoration: none;
  overflow: hidden;
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(201,169,110,.2);
}
.category-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-warm);
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qty-input {
  width: 36px !important;
  height: 34px !important;
  text-align: center;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: transparent !important;
  display: inline-block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
  line-height: 34px;
}
.qty-input:focus {
  border: none !important;
  box-shadow: none !important;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}
.qty-btn:active {
  background: #000;
  color: #fff;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.upload-preview-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-soft);
}

/* ── Section Headers ────────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.sec-head h2 { margin-bottom: 0; }
.sec-head-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}
.sec-head-link:hover { text-decoration: underline; }

/* ── Cards (Generic) ────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-pad  { padding: 24px; }

/* ── Product Cards ──────────────────────────────────────────── */
.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.product-card:hover {
  box-shadow: var(--sh);
  transform: translateY(-4px);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-warm);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.card-selling-price {
  font-weight: 800;
  color: var(--text);
}
.card-price-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.card-original-price {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-3);
  text-decoration: line-through;
}
.card-discount-badge {
  font-size: 12px;
  font-weight: 700;
  color: #388e3c;
}

/* Specifications & Manufacturer Info tables (legacy) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14px;
}
.spec-table tr {
  border-bottom: 1px solid var(--border, #eee);
}
.spec-table tr:last-child {
  border-bottom: none;
}
.spec-table td {
  padding: 10px 14px;
  vertical-align: top;
}
.spec-table .spec-label {
  font-weight: 600;
  color: var(--text-2, #555);
  background: var(--bg-2, #f9f9f9);
  width: 35%;
  white-space: nowrap;
}
.spec-table .spec-value {
  color: var(--text);
}

/* Specifications & Manufacturer Grid (PDP) */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border, #eee);
}
.spec-grid-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border, #eee);
  align-items: center;
}
.spec-grid-label {
  font-size: 14px;
  color: var(--text-3, #888);
}
.spec-grid-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
}

/* PDP Detail Tabs */
.pdp-tab-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border, #ddd);
  background: var(--bg-2, #f5f5f5);
  color: var(--text-2, #555);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.pdp-tab-btn:hover {
  background: var(--border, #e0e0e0);
}
.pdp-tab-btn.is-active {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #1a1a1a !important;
}
.pdp-tab-panel {
  display: none;
}
.pdp-tab-panel.is-active {
  display: block;
}

/* Admin product list thumbnail */
.admin-product-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-product-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .admin-product-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }
  .admin-product-name-cell {
    gap: 8px;
  }
}

/* Admin product tabs */
.pdt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border, #e0e0e0);
  margin-bottom: 16px;
  overflow-x: auto;
}
.pdt-tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.pdt-tab-btn:hover {
  color: var(--text);
}
.pdt-tab-btn.active {
  color: var(--accent, #2563eb);
  border-bottom-color: var(--accent, #2563eb);
}
.pdt-tab-panel {
  display: none;
}
.pdt-tab-panel.active {
  display: block;
}
.dyn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.dyn-row input {
  flex: 1;
}
.dyn-row .btn-remove-row {
  background: none;
  border: none;
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.product-card-offer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.product-card-mrp {
  font-size: 12.5px;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card-off {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #22c55e;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.product-card-subprice {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.product-card-foot { margin-top: auto; }

/* Legacy .product-img kept for all existing pages */
.product-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--bg-warm); }

/* ── Product Page Layout ────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.product-gallery-main {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--bg-warm);
  transition: border-color var(--ease);
  flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--accent); }

.product-info { position: sticky; top: 72px; }
.product-title-lg { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13.5px; color: var(--text-2); }
.stars { color: var(--accent); font-size: .9rem; letter-spacing: 1.5px; }
.product-price-lg { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 22px; }
.variant-label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.variant-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.variant-pill:hover  { border-color: var(--brand); }
.variant-pill.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qty-ctrl button {
  width: 34px; height: 34px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  transition: background var(--ease), color var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.qty-ctrl button:hover { background: var(--accent-dark); color: #fff; }
.qty-ctrl button:active { background: #000; color: #fff; }
.qty-ctrl input[type=number] {
  width: 36px !important; height: 34px !important;
  border: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
  margin: 0 !important; padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: inline-block !important;
  appearance: textfield;
  -moz-appearance: textfield;
  line-height: 34px;
}
.qty-ctrl input[type=number]::-webkit-outer-spin-button,
.qty-ctrl input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-ctrl input[type=number]:focus { box-shadow: none !important; border: none !important; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.product-actions .btn { flex: 1; min-width: 150px; }
.product-meta-strip { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
.meta-row { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.meta-row strong { color: var(--text); min-width: 80px; }
.stock-ok  { color: var(--success); font-weight: 700; }
.stock-low { color: var(--warning); font-weight: 700; }
.stock-nil { color: var(--danger);  font-weight: 700; }
.pdesc-tabs { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 22px; }
.pdesc-tabs p { font-size: 14px; color: var(--text-2); }

/* ── Product Layout (Responsive Design) ────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery-main {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

/* Share button on product gallery image */
.gallery-share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 10px 4px;
  cursor: pointer;
  color: #374151;
  transition: all .2s;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.85);
}
.gallery-share-btn svg { display: block; }
.gallery-share-btn span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.gallery-share-btn:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.product-badge.combo {
  background: #f59e0b;
}

.product-badge.featured {
  background: #8b5cf6;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.thumb.active,
.thumb:hover {
  border-color: var(--accent);
}

/* ── Product Info Section ──────────────────────────────────── */
.product-info { --_s: 1; }

.product-header {
  margin-bottom: 20px;
}

.product-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.product-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.rating-stars {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.rating-meta {
  color: var(--text-2);
}

/* ── Price Section ─────────────────────────────────────────── */
.product-price-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-price-main {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.price-tax-note {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

/* ── Weight Selector ───────────────────────────────────────── */
.product-options {
  margin-bottom: 20px;
}

.option-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}

.weight-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weight-pill {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.weight-pill:hover {
  border-color: var(--accent);
}

.weight-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Delivery Section ──────────────────────────────────────── */
.delivery-section {
  margin-bottom: 16px;
}

.pincode-input {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  margin-bottom: 8px;
  height: 44px;
  line-height: 44px;
  box-sizing: border-box;
}

.btn-check {
  appearance: none;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  height: 44px;
  line-height: 1;
  box-sizing: border-box;
}

.btn-check:hover {
  background: var(--accent-dark);
}

.delivery-timer {
  background: #fff3f5;
  color: #e91e63;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0;
}

.delivery-timer p {
  margin: 0;
}

.delivery-timer #timer-text {
  font-size: 16px;
}

/* ── Actions ───────────────────────────────────────────────── */
.product-actions {
  margin: 20px 0;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.qty-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.product-btn-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-primary {
  appearance: none;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  flex: 1;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
}

.btn-buy-now {
  appearance: none;
  background: #0f0f0f;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  flex: 1;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-buy-now:hover {
  background: var(--accent);
  color: #000;
}

.btn-buy-now:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
}

/* ── Meta Section ──────────────────────────────────────────── */
.product-meta-section { --_s: 1; }

/* ── Qty + Wishlist + Share Row ─────────────────────────────── */
.product-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-qty-row .quantity-selector {
  margin-bottom: 0;
}
.btn-icon-action {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border-2, #ddd);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2, #555);
  transition: border-color .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.btn-icon-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-icon-action:active {
  transform: scale(.92);
  background: #f9f9f9;
}

/* ── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .gallery-main {
    max-width: 100%;
  }
  
  .product-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }
}

/* ── Review Cards ───────────────────────────────────────────── */
.review-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: 14px; }
.review-meta   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.verified-purchase-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent, #c9a96e);
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: .02em;
}
.review-text   { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease), color var(--ease);
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn:active { transform: scale(.97); }
.btn:hover    { background: #000; border-color: #000; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.22); }
.btn.accent   { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.accent:hover { background: #000; border-color: #000; color: #fff; }
.btn.outline  { background: transparent; border-color: #000; color: #000; }
.btn.outline:hover { background: #000; color: #fff; }
.btn.outline-accent { background: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn.outline-accent:hover { background: var(--accent); color: #fff; }
.btn.alt      { background: var(--bg-warm); border-color: var(--border-2); color: var(--text); }
.btn.alt:hover { background: var(--border); }
.btn.ghost    { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-warm); }
.btn.white    { background: #fff; border-color: #fff; color: #000; }
.btn.white:hover { background: #000; color: #fff; }
.btn.sm { padding: 8px 15px; font-size: 12.5px; }
.btn.lg { padding: 14px 30px; font-size: 15px; border-radius: 10px; }
.btn.xl { padding: 16px 36px; font-size: 15.5px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn.xs { padding: 5px 11px; font-size: 12px; }

/* ── Alerts / Flash ─────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 14px 0;
  border: 1px solid transparent;
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition: opacity .35s ease, transform .35s ease, max-height .35s ease, margin .35s ease, padding .35s ease;
}
.alert.success { background: var(--accent-light); color: var(--accent-dark);  border-color: var(--accent); }
.alert.error   { background: var(--danger-bg);  color: var(--danger);   border-color: var(--danger-b); }
.alert.warning { background: var(--warning-bg); color: var(--warning);  border-color: var(--warning-b); }
.alert.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

.store-page .flash-alert {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: min(92vw, 520px);
  margin: 0;
  z-index: 260;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  text-align: center;
}
.store-page .flash-alert.is-hidden {
  transform: translateX(-50%) translateY(-6px);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  flex-shrink: 0;
}
.badge.featured  { background: var(--info-bg);    color: var(--info); }
.badge.low       { background: var(--warning-bg); color: var(--warning); }
.badge.success   { background: var(--success-bg); color: var(--success); }
.badge.danger    { background: var(--danger-bg);  color: var(--danger); }
.badge.neutral   { background: var(--bg-warm); color: var(--text-2); border: 1px solid var(--border); }
.badge.accent    { background: var(--accent-light); color: var(--accent-dark); border: 1px solid rgba(201,169,110,.3); }
.badge.new       { background: var(--brand); color: #fff; }
.badge-pending    { background: var(--warning-bg); color: var(--warning); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-confirmed  { background: #fff7db; color: #a16207;                  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-processing { background: var(--info-bg);    color: var(--info);    border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-shipped    { background: #ede9fe; color: #6d28d9;                  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-delivered  { background: var(--success-bg); color: var(--success); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-cancelled  { background: var(--danger-bg);  color: var(--danger);  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-refunded   { background: #e0f2fe; color: #0369a1;                  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-cancel_requested { background: #fff3cd; color: #92400e;            border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-cancel_rejected  { background: var(--danger-bg); color: var(--danger); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-paid       { background: var(--success-bg); color: var(--success); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-cod        { background: #f3f4f6; color: #4b5563;                  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }
.badge-failed     { background: var(--danger-bg);  color: var(--danger);  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-helper { font-size: 12.5px; color: var(--text-3); margin-top: -10px; margin-bottom: 12px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--panel);
  outline: none;
  display: block;
  transition: border-color var(--ease), box-shadow var(--ease);
  margin-bottom: 16px;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
  cursor: pointer;
}
input[type=file] { width: 100%; margin-bottom: 14px; font-size: 13.5px; color: var(--text-2); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  background: var(--panel);
}
.table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 13.5px; }
.table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  line-height: 1.45;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--ease); }
.table tbody tr:hover { background: var(--bg-soft); }
.table td small { color: var(--text-3); font-size: 12px; display: block; margin-top: 2px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pagination span {
  font-size: 13px;
  color: var(--text-3);
}
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  text-decoration: none;
  border: none;
  transition: background .2s, color .2s;
}
.pagination .page-link:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.pagination .page-link.active {
  background: var(--accent);
  color: #fff;
  pointer-events: none;
}
.pagination .page-link.disabled {
  opacity: .4;
  pointer-events: none;
}
.pagination .page-link:first-child,
.pagination .page-link:last-child {
  border-radius: 8px;
  min-width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pagination .page-link:first-child:hover,
.pagination .page-link:last-child:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.pagination .page-dots {
  font-size: 13px;
  color: var(--text-3);
  padding: 0 2px;
}
.btn.disabled,
.btn[disabled] {
  opacity: .55;
  pointer-events: none;
}

/* ── Checkout Button Spinner ───────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .65s linear infinite;
  vertical-align: middle;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.checkout-pay-btn,
.checkout-sticky-pay .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s ease, background .2s ease;
}

/* ── Admin Orders UI ───────────────────────────────────────── */
.orders-admin-card {
  padding: 22px;
}
.orders-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.orders-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.orders-search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.orders-search-input {
  min-width: 320px;
}
.order-code-cell {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  line-height: 1.35;
}
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-customer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-customer-name {
  font-weight: 700;
  color: var(--text);
}
.order-customer-email {
  font-size: 13px;
  color: var(--text-2);
}
.order-total-cell {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.order-tracking-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-action-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 210px;
}
.order-action-form .order-input,
.order-action-form .order-input-status {
  margin-bottom: 0;
  padding: 8px 10px;
  height: 40px;
}
.order-courier-fields {
  display: grid;
  gap: 6px;
}
.order-action-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .orders-search-input { min-width: 220px; }
  .order-action-form { min-width: 180px; }
}

@media (max-width: 768px) {
  .orders-admin-card { padding: 14px; }
  .orders-toolbar { align-items: stretch; }
  .orders-search-form { width: 100%; }
  .orders-search-input { min-width: 0; flex: 1; }
  .order-code-cell { font-size: 16px; }
  .order-total-cell { font-size: 17px; }
}

/* ── Shop Filter Layout ─────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.filter-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.filter-panel-head h4 { margin: 0; font-size: .9rem; }
.filter-body { padding: 16px 18px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.filter-group input, .filter-group select { margin-bottom: 0; }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-soft);
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--sh-lg);
}
.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}
.auth-brand-img {
  max-height: 48px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
}
.auth-brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--brand);
  display: inline-block;
  margin-bottom: 6px;
}
.auth-brand-logo .logo-dot { color: var(--accent); }
.auth-brand p { font-size: 13.5px; color: var(--text-3); margin: 0; }
.auth-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.auth-card .sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-2); }
.auth-foot a { color: var(--brand); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }
.divider-text { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; margin: 16px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Cart Page ──────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-warm); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name  { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.cart-item-meta  { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.cart-item-price { font-weight: 800; font-size: 15px; }
.order-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.order-summary-head { padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.order-summary-head h3 { margin: 0; font-size: 1rem; }
.order-summary-body { padding: 18px 20px; }
.summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.summary-line.total { font-size: 1rem; font-weight: 800; color: var(--text); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); margin-bottom: 16px; }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 720px; }
.checkout-section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.checkout-inline-note {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.checkout-section-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-section-head h3 { margin: 0; font-size: .95rem; }
.checkout-step { width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkout-section-body { padding: 22px; }

/* Address toggle tabs */
.addr-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.addr-toggle-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: center;
}
.addr-toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
}
.addr-toggle-btn:not(.is-active):hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.addr-panel {
  animation: addrFadeIn .25s ease;
}
.addr-saved-select {
  margin-bottom: 0;
}
@keyframes addrFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.payment-current { margin-bottom: 14px; font-size: 15px; color: var(--text-2); }
.payment-current strong { color: var(--text); }
.payment-method-panel {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 16px;
}
.payment-method-label { margin-bottom: 10px; }
.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* ── Payment Toggle Slider ── */
.payment-toggle {
  display: flex;
  background: var(--bg-warm);
  border-radius: 16px;
  padding: 5px;
  gap: 4px;
  position: relative;
}
.payment-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}
.payment-toggle-btn:hover:not(.is-disabled):not(.is-active) {
  background: rgba(255,255,255,0.6);
}
.payment-toggle-btn.is-active {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.payment-toggle-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.payment-toggle-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: all 0.3s ease;
}
.payment-toggle-btn.is-active .payment-toggle-icon {
  background: var(--accent-light);
  border-color: var(--accent);
}
.payment-toggle-copy { display: block; }
.payment-toggle-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.payment-toggle-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}
.payment-toggle-btn.is-disabled .payment-toggle-copy strong {
  color: var(--text-3);
}
.payment-toggle-btn.is-disabled .payment-toggle-copy small {
  color: var(--text-3);
}
.payment-unavailable-msg {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-b);
  border-radius: 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-method-btn {
  width: 100%;
  border: 1.5px solid var(--border-2);
  background: var(--panel);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
}
.payment-method-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--sh-xs);
}
.payment-method-btn:active { transform: scale(.99); }
.payment-method-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--sh-xs);
}
.payment-method-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.payment-method-btn.is-active .payment-method-icon {
  border-color: var(--accent);
  background: var(--panel);
}
.payment-method-copy { display: block; }
.payment-method-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.payment-method-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}
.payment-method-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}
/* ── Checkout Input Error Highlight ── */
.checkout-input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-bg) !important;
  background: var(--danger-bg) !important;
}
.checkout-input-error::placeholder {
  color: var(--danger) !important;
  opacity: 0.7;
}
.checkout-items-list {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.checkout-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.checkout-item-row:last-child { margin-bottom: 0; }
.checkout-item-main { min-width: 0; }
.checkout-item-name {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}
.checkout-item-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.checkout-item-stock {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 3px;
}
.checkout-item-stock.ok { color: var(--success); }
.checkout-item-stock.low { color: var(--warning); }
.checkout-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.checkout-trust-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.checkout-status-banner {
  border-radius: var(--r);
  border: 1px solid var(--success-b);
  background: var(--success-bg);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.checkout-status-banner h3 {
  margin: 0 0 4px;
  color: var(--success);
  font-size: 1rem;
}
.checkout-status-banner p {
  margin: 0;
  color: #065f46;
  font-size: 13.5px;
}
.checkout-status-banner.is-failed {
  border-color: var(--danger-b);
  background: var(--danger-bg);
}
.checkout-status-banner.is-failed h3,
.checkout-status-banner.is-failed p {
  color: var(--danger);
}
.checkout-sticky-pay {
  display: none;
}

/* ── Order Cards ────────────────────────────────────────────── */
.order-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; transition: box-shadow var(--ease); }
.order-card:hover { box-shadow: var(--sh-sm); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.order-card-body { padding: 16px 20px; }
.order-code { font-size: 13px; font-weight: 700; font-family: monospace; letter-spacing: .04em; }

/* Order card thumbnails (history page) */
.order-card-thumbs { display: flex; gap: 6px; align-items: center; }
.order-thumb { display: block; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb.unavailable { opacity: .45; pointer-events: none; position: relative; }
.order-thumb.unavailable::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0,0,0,.08) 4px, rgba(0,0,0,.08) 6px); }
.order-thumb-more { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-3); flex-shrink: 0; }

/* Order detail item image */
.order-item-img { display: block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-img.unavailable { opacity: .45; pointer-events: none; position: relative; }
.order-item-img.unavailable::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0,0,0,.08) 4px, rgba(0,0,0,.08) 6px); }
.timeline { list-style: none; padding: 0; margin: 10px 0 0; }
.timeline li {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 0 8px 18px;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  position: relative;
}
.timeline li::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); position: absolute; left: -6px; top: 14px; }

/* ── Admin Shell ────────────────────────────────────────────── */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 62px); }
.admin-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-brand { padding: 0 16px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sidebar-role { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.sidebar-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px 6px; display: block; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 0;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
  border-left: 3px solid transparent;
  margin: 0;
}
.sidebar-link:hover { background: var(--bg-soft); color: var(--text); }
.sidebar-link.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 700; border-left-color: var(--accent); }
.sidebar-link .si { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); }

.admin-content { background: var(--bg-soft); min-height: calc(100vh - 62px); display: flex; flex-direction: column; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.admin-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 62px;
  z-index: 10;
}
.admin-header h2 { margin: 0; font-size: 1.15rem; }
.admin-body { padding: 24px 28px; flex: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; border-left: 3px solid var(--accent); transition: box-shadow var(--ease); }
.stat-card:hover { box-shadow: var(--sh-sm); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 3px; }
.stat-sub   { font-size: 12px; color: var(--text-3); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin: 0 auto 18px; max-width: 1240px; padding: 0 20px; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; width: 100%; overflow-wrap: normal !important; word-wrap: normal !important; word-break: normal !important; line-height: 2; }
.breadcrumb a, .breadcrumb > span { flex-shrink: 0; white-space: nowrap !important; }
.breadcrumb a { color: var(--text-3); transition: color var(--ease); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .breadcrumb-current { color: var(--accent); font-weight: 600; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  background: #16a34a;
  color: #fff;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  box-shadow: 0 8px 28px rgba(22,163,74,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.floating-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(22,163,74,.5); }
.floating-whatsapp svg { flex-shrink: 0; }

/* ── Product Share Buttons ──────────────────────────────────── */
.pd-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pd-share-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.pd-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); cursor: pointer; transition: all .2s ease; font-size: 0; }
.pd-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.pd-share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.pd-share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.pd-share-tw:hover { background: #000; color: #fff; border-color: #000; }
.pd-share-li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.pd-share-tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.pd-share-copy:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Footer Payment Icons ──────────────────────────────────── */
.footer-payment-icons { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.payment-icon { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px; transition: transform .2s ease, box-shadow .2s ease; }
.payment-icon:hover { transform: translateY(-1px); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.payment-icon svg { display: block; width: 38px; height: 24px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #0a0a0a; margin-top: 0; width: 100%; max-width: 100%; }
.footer-main { padding: 60px 0 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.footer-grid > * { min-width: 0; }
.footer-brand-logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; color: #fff; margin-bottom: 14px; display: inline-block; }
.footer-brand-logo .logo-dot { color: var(--accent); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 100%; margin-bottom: 22px; }
.footer-col h5 { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.48); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.52); font-size: 13.5px; margin-bottom: 9px; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 20px; gap: 14px; font-size: 12.5px; color: rgba(255,255,255,.32); text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom a { color: rgba(255,255,255,.32); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 12px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main { padding: 34px 0 24px; }
  .footer-col h5 { margin-bottom: 10px; }
  .footer-col a { margin-bottom: 6px; font-size: 13px; }
  .footer-col,
  .footer-brand,
  .footer-bottom {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0 12px;
  }
  .footer-payment-icons { justify-content: center; gap: 6px; }
  .payment-icon { padding: 3px 6px; }
  .payment-icon svg { width: 32px; height: 20px; }
}

@media (min-width: 769px) {
  .footer-container {
    display: block;
    padding: 24px 16px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
  }
}

/* ── Topbar Search ─────────────────────────────────────────── */
.topbar-search {
  flex: 0 1 340px;
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  margin: 0 auto;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  position: relative;
}

.topbar-user-dropdown {
  position: relative;
}
.topbar-user-trigger {
  cursor: pointer;
}
.topbar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 260;
}
.topbar-user-dropdown:hover .topbar-user-menu,
.topbar-user-dropdown:focus-within .topbar-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.topbar-user-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.topbar-user-menu a:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}
.topbar-user-menu .logout-link {
  color: #c43d3d;
}

.hero-carousel {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  background: #000;
  box-shadow: none;
}
.hero.hero-image-only .hero-carousel {
  box-shadow: none;
  margin: 0 auto;
  width: 100%;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility .6s cubic-bezier(.4,0,.2,1);
}
.hero-slide:first-child {
  position: relative;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  background: linear-gradient(90deg, rgba(10,10,10,.68) 0%, rgba(10,10,10,.2) 55%, transparent 100%);
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--brand) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  opacity: 0;
  outline: none !important;
}
.hero-carousel:hover .hero-nav {
  opacity: 1;
}
.hero-nav:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transform: translateY(-50%) scale(1.08);
}
.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .3s ease;
}
.hero-dot.is-active {
  background: var(--accent);
}
.topbar-search:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,.15), 0 4px 16px rgba(0,0,0,.06);
}
.topbar-search input {
  flex: 1;
  height: 42px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  margin: 0 !important;
  min-width: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 42px;
}
.topbar-search input::placeholder { color: #7b7b7b; }
.topbar-search input:focus { box-shadow: none !important; border-color: transparent !important; }
.topbar-search button {
  background: transparent;
  border: none;
  color: #000;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  border-left: 1px solid rgba(0,0,0,.1);
  transition: color var(--ease), background var(--ease);
}
.topbar-search button:hover { color: var(--accent); background: rgba(0,0,0,.05); }

/* ── Search Autocomplete Dropdown ───────────────────────────── */
.search-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  max-height: 420px;
  overflow-y: auto;
  margin-top: 4px;
}
.search-ac-section {
  border-bottom: 1px solid var(--border);
}
.search-ac-section:last-child { border-bottom: none; }
.search-ac-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
}
.search-ac-section-label svg { opacity: .6; flex-shrink: 0; }
.search-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.search-ac-item:last-child { border-bottom: none; }
.search-ac-item:hover, .search-ac-item:focus { background: var(--bg-soft); }
.search-ac-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #f5f5f5;
}
.search-ac-cat-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #f5f5f5;
}
.search-ac-cat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--text-3);
}
.search-ac-arrow {
  flex-shrink: 0;
  color: var(--text-3);
  opacity: .5;
  transition: opacity .15s;
}
.search-ac-item:hover .search-ac-arrow { opacity: 1; }
.search-ac-info { flex: 1; min-width: 0; }
.search-ac-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-ac-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}
.search-ac-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
@media (max-width: 768px) {
  .mobile-topbar-search {
    position: relative;
  }
  .mobile-topbar-search .search-autocomplete-dropdown {
    left: -12px;
    right: -12px;
    border-radius: 0 0 12px 12px;
    max-height: 60vh;
  }
  .search-ac-item {
    padding: 12px 16px;
    gap: 14px;
    min-height: 52px;
  }
  .search-ac-section-label {
    padding: 12px 16px 5px;
    font-size: 11px;
  }
  .search-ac-img {
    width: 48px;
    height: 48px;
  }
  .search-ac-cat-img {
    width: 40px;
    height: 40px;
  }
  .search-ac-cat-icon {
    width: 40px;
    height: 40px;
  }
  .search-ac-name { font-size: 14px; }
  .search-ac-price { font-size: 14px; }
}


/* ── Topbar Right ───────────────────────────────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.desktop-header-links {
  display: inline-flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-right: 4px;
  max-width: 52vw;
  overflow: visible;
}
.topbar-chip-link {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(190,236,243,.12);
  border-radius: 999px;
  padding: 6px 10px;
}
.desktop-products-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.topbar-icon-link {
  color: rgba(255,245,247,.76);
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.topbar-icon-link:hover { color: #fff; background: rgba(190,236,243,.08); }
.topbar-icon-link.active { color: var(--accent); }
.topbar-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 16px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.topbar-icon-only:hover { background: rgba(255,255,255,.12); }
.topbar-svg-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-svg-icon {
  width: 24px;
  height: 24px;
}
.icon-heart,
.icon-cart {
  color: currentColor;
  line-height: 1;
  display: inline-block;
}
.icon-heart {
  font-size: 17px;
  line-height: 1;
}
.icon-heart::before {
  content: '♡';
  display: block;
  transform: translateY(-.5px);
}
.icon-cart {
  width: 16px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 4px 4px 5px 5px;
  position: relative;
  margin-right: 0;
  box-sizing: border-box;
}
.icon-cart::before {
  content: '';
  position: absolute;
  left: 3px;
  top: -6px;
  width: 8px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}
.icon-logout {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-block;
}
.icon-logout::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.icon-logout::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
}
.icon-user {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  color: currentColor;
}
.topbar-icon-only .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  margin: 0;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
  background: #e53935;
  border: 1px solid var(--brand);
}
.topbar-icon-only .wishlist-count {
  background: var(--accent);
}
.icon-user::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.icon-user::after {
  content: '';
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 12px;
  height: 5px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

/* ── Category Bar ───────────────────────────────────────────── */
.cat-bar {
  background: var(--brand-2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 62px;
  z-index: 190;
}
.cat-bar-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-bar-link {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 13px;
  white-space: nowrap;
  border-radius: 0;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
  border-bottom: 2.5px solid transparent;
}
.cat-bar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.cat-bar-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.cat-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.cat-dropdown-caret {
  margin-left: 6px;
  font-size: 11px;
  opacity: .78;
}
.cat-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 48px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 220;
}
.cat-dropdown:hover .cat-dropdown-menu,
.cat-dropdown:focus-within .cat-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cat-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease);
}
.cat-dropdown-item:hover,
.cat-dropdown-item.active {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ── Hamburger Button ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  transition: background var(--ease);
  flex-shrink: 0;
  margin-left: 4px;
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.nav-hamburger-left { margin-left: 0; }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Drawer ──────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-drawer-overlay.is-open { opacity: 1; pointer-events: all; }
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(84vw, 320px);
  height: 100%;
  background:
    radial-gradient(120% 80% at 110% 0%, rgba(201,169,110,.2), transparent 45%),
    linear-gradient(180deg, #111214 0%, #08090b 100%);
  z-index: 410;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 14px 0 42px rgba(0,0,0,.42);
  transform: translateX(-100%);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.mobile-drawer-brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: var(--r-sm);
  transition: background var(--ease), color var(--ease);
}
.mobile-drawer-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.mobile-drawer-links { padding: 10px 10px 24px; }
.mobile-drawer-link {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 14px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.mobile-drawer-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  border-left-color: var(--accent);
  transform: translateX(2px);
}
.mobile-drawer-link.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(201,169,110,.24), rgba(201,169,110,.12));
  border-color: rgba(201,169,110,.35);
  border-left-color: var(--accent);
}
.mobile-drawer-link-danger { color: rgba(255,120,120,.8) !important; }
.mobile-drawer-divider { border: none; border-top: 1px solid rgba(255,255,255,.09); margin: 10px 4px 12px; }

/* ── Mobile Topbar Search Row ──────────────────────────────── */
.mobile-topbar-search-wrap {
  display: none;
  background: #fff;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
.mobile-header-lists {
  display: none;
}
.mobile-topbar-search {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f7f2ea);
  border: 1px solid rgba(201,169,110,.5);
  border-radius: 999px;
  position: relative;
}
.mobile-topbar-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 12px;
  margin: 0 !important;
}
.mobile-topbar-search button {
  width: 38px;
  height: 38px;
  border: 0;
  border-left: 1px solid rgba(0,0,0,.1);
  background: transparent;
  color: #000;
  cursor: pointer;
}

/* ── Mobile Bottom Navigation ──────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  height: 64px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 22px rgba(0,0,0,.08);
  align-items: center;
  justify-content: space-between;
}
.mobile-bottom-nav-item {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  text-decoration: none;
  border-radius: 10px;
  padding: 4px 2px;
  transition: color var(--ease), background var(--ease);
}
.mobile-bottom-nav-item.active {
  color: var(--accent);
}
.mobile-bottom-nav-icon {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-bottom-nav-icon svg {
  display: block;
}
.mobile-bottom-nav-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.mobile-bottom-nav-count {
  position: absolute;
  top: 1px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-profile-menu {
  display: none;
  position: fixed;
  right: 10px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: min(78vw, 290px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.2);
  padding: 12px;
  z-index: 260;
}
.mobile-profile-menu.is-open {
  display: block;
}
.mobile-profile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.mobile-profile-menu a:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}
.mobile-profile-menu .logout-link {
  color: #d33d3d;
}

/* ── Mobile Popup Menus (Categories / Collections) ──────────── */
.mobile-popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 259;
}
.mobile-popup-backdrop.is-open {
  display: block;
  animation: popupFadeIn .2s ease;
}
.mobile-popup-menu {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 -4px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04);
  padding: 6px;
  z-index: 260;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s cubic-bezier(.4,0,.2,1), visibility 0s .25s;
}
.mobile-popup-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}
.mobile-popup-menu-head {
  padding: 14px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--border);
  margin: 0 4px 6px;
}
.mobile-popup-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}
.mobile-popup-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  background: var(--bg-soft);
  transition: background .2s, color .2s, transform .15s;
}
.mobile-popup-menu-item:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.mobile-popup-menu-item:active {
  transform: scale(.97);
}
.mobile-popup-menu-item.active {
  background: var(--accent);
  color: #fff;
}
/* List layout for collections */
.mobile-popup-menu-list .mobile-popup-menu-item {
  display: block;
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  background: transparent;
}
.mobile-popup-menu-list .mobile-popup-menu-item:hover {
  background: var(--bg-soft);
}
.mobile-popup-menu-list .mobile-popup-menu-item.active {
  background: var(--accent-light);
  color: var(--accent-dark);
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Addresses Page ─────────────────────────────────────────── */
.addr-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.addr-page-header {
  margin-bottom: 24px;
}
.addr-page-header h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}
.addr-page-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}
.addr-grid {
  display: grid;
  gap: 14px;
}
.addr-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.addr-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.addr-card-default {
  border-color: var(--accent);
  background: var(--accent-light);
}
.addr-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 999px;
}
.addr-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.addr-card-detail {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.addr-card-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.addr-card-phone svg {
  color: var(--accent);
  flex-shrink: 0;
}
.addr-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.addr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.addr-action-btn:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.addr-edit-btn:hover {
  color: var(--accent-dark);
}
.addr-delete-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}
.addr-edit-form {
  animation: addrFadeIn .2s ease;
}
.addr-edit-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 4px;
}
.addr-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.addr-edit-actions .btn-primary,
.addr-edit-actions .btn-buy-now {
  padding: 8px 20px;
  font-size: 13px;
}
.addr-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
}
.addr-empty svg {
  margin-bottom: 12px;
}
.addr-empty p {
  margin: 0;
  font-size: 15px;
}
.addr-add-section {
  margin-top: 20px;
}
.addr-add-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border-2);
  border-radius: 14px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.addr-add-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.addr-add-form-wrap {
  background: var(--panel);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 20px;
  animation: addrFadeIn .2s ease;
}

/* ── Admin Sidebar Toggle (mobile) ──────────────────────────── */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 14px 16px 0;
  transition: background var(--ease);
  align-self: flex-end;
}
.admin-sidebar-toggle:hover { background: var(--bg-warm); }
.admin-sidebar.is-open {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  z-index: 500 !important;
  box-shadow: 8px 0 32px rgba(0,0,0,.18) !important;
}

/* ── Banner Title Overlay ───────────────────────────────────── */
.banner-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}
/* (old mega-menu override removed — primary styles at top) */

/* ===== FORCE HIDE MOBILE NAV ON DESKTOP ===== */
@media screen and (min-width: 768px) {
  
  nav.mobile-bottom-nav,
  .mobile-bottom-nav,
  .mobile-bottom-navigation,
  .mobile-nav,
  .bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

}

/* ===== SHOW ONLY IN MOBILE ===== */
@media screen and (max-width: 767px) {

  nav.mobile-bottom-nav,
  .mobile-bottom-nav,
  .mobile-bottom-navigation,
  .mobile-nav,
  .bottom-nav {
    display: flex !important;
  }

}
/* ===== Mobile cat.                                start ===== */
/* =====================================================
   FIX: Categories popup stops ABOVE bottom nav
   Bottom nav always visible, clear, and properly sized
   ===================================================== */


/* ══════════════════════════════════════════════════════
   FIX 1: CATEGORIES POPUP — stops above bottom nav
   ══════════════════════════════════════════════════════ */

.mobile-popup-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;  /* STOP above bottom nav */
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  z-index: 300 !important;       /* BELOW bottom nav z-index */
  overflow: hidden !important;
  background: #fff !important;
  transform: translateX(-100%) !important;
  opacity: 1 !important;
  visibility: hidden !important;
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1),
              visibility 0s 0.28s !important;
  box-shadow: none !important;
}

.mobile-popup-menu.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1),
              visibility 0s 0s !important;
}

/* Popup backdrop — also stops above bottom nav */
.mobile-popup-backdrop {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(0,0,0,.45) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 299 !important;
}

.mobile-popup-backdrop.is-open {
  display: block !important;
  animation: popupFadeIn .2s ease !important;
}

/* Popup header */
.mobile-popup-menu-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111 !important;
  background: #fff !important;
  border-bottom: 1px solid #ececec !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}


/* ══════════════════════════════════════════════════════
   FIX 2: CATEGORY LAYOUT inside popup
   ══════════════════════════════════════════════════════ */

.mobile-cat-layout {
  display: flex !important;
  height: calc(100% - 50px) !important;   /* subtract header height */
  overflow: hidden !important;
}

/* LEFT SIDEBAR */
.mobile-cat-left {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  background: #f5f5f5 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  border-right: 1px solid #e0e0e0 !important;
  flex-shrink: 0 !important;
  height: 100% !important;
}
.mobile-cat-left::-webkit-scrollbar { display: none !important; }

/* PARENT ITEM */
.mobile-parent-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 4px 8px !important;
  margin: 0 !important;
  cursor: pointer !important;
  text-align: center !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  min-height: 0 !important;
  transition: background 0.15s, border-color 0.15s !important;
}

.mobile-parent-item.active {
  background: #ffffff !important;
  border-left-color: var(--accent, #c9a96e) !important;
}

/* PARENT IMAGE */
.mobile-cat-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 3px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* PARENT LABEL */
.mobile-parent-item span {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #555 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  max-height: 2.5em !important;
  overflow: hidden !important;
}

.mobile-parent-item.active span {
  color: var(--accent, #c9a96e) !important;
  font-weight: 700 !important;
}

/* RIGHT PANEL */
.mobile-cat-right {
  flex: 1 !important;
  min-width: 0 !important;
  background: #ffffff !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 14px 10px 20px !important;
  scrollbar-width: none !important;
  height: 100% !important;
}
.mobile-cat-right::-webkit-scrollbar { display: none !important; }

/* CHILD GRID */
.mobile-child-group {
  display: none !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px 6px !important;
}

.mobile-child-group.active {
  display: grid !important;
}

/* CHILD ITEM */
.mobile-child-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #222 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 10px 4px 8px !important;
  border-radius: 10px !important;
  background: #fafafa !important;
  border: 1px solid #efefef !important;
  transition: background 0.15s, transform 0.12s !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mobile-child-item:active {
  background: #e8f0fe !important;
  transform: scale(0.96) !important;
}

.mobile-child-item.active {
  background: #e8f0fe !important;
  border-color: var(--accent, #c9a96e) !important;
  color: var(--accent, #c9a96e) !important;
  font-weight: 700 !important;
}

/* CHILD IMAGE */
.mobile-child-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 3px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  margin-bottom: 5px !important;
  display: block !important;
}


/* ══════════════════════════════════════════════════════
   FIX 3: BOTTOM NAV — always on top, never covered
   ══════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  display: flex !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10005 !important;
  height: auto !important;
  padding: 0 0 calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  background: #ffffff !important;
  border-top: 1.5px solid #e0e0e0 !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,.10) !important;
  align-items: stretch !important;
  justify-content: space-around !important;
}

/* Each nav item */
.mobile-bottom-nav-item {
  flex: 1 !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  color: var(--accent, #c9a96e) !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  padding: 8px 4px 6px !important;
  transition: color .18s ease !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
  z-index: 10006 !important;
  min-height: 56px !important;
}

.mobile-bottom-nav-item:active {
  transform: scale(0.90) !important;
  transition: transform .1s ease !important;
}

/* ACTIVE — blue color + top border like Flipkart */
.mobile-bottom-nav-item.active {
  color: var(--accent, #c9a96e) !important;
}

.mobile-bottom-nav-item.active::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  right: 15% !important;
  height: 2px !important;
  background: var(--accent, #c9a96e) !important;
  border-radius: 0 0 3px 3px !important;
}

/* ICON — big and clear */
.mobile-bottom-nav-icon {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.mobile-bottom-nav-icon svg {
  width: 26px !important;
  height: 26px !important;
  stroke-width: 1.8 !important;
  display: block !important;
}

/* LABEL — clear text */
.mobile-bottom-nav-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  color: inherit !important;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
  font-weight: 700 !important;
}

/* Cart badge */
.mobile-bottom-nav-count {
  position: absolute !important;
  top: -4px !important;
  right: calc(50% - 22px) !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: #e53935 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  z-index: 2 !important;
  line-height: 1 !important;
}

/* Body padding so content doesn't hide behind bottom nav */
@media (max-width: 768px) {
  body.store-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* ══════════════════════════════════════════════════════
   SMALL SCREEN TWEAKS
   ══════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .mobile-cat-left {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }
  .mobile-cat-img { width: 38px !important; height: 38px !important; }
  .mobile-child-img { width: 48px !important; height: 48px !important; }
  .mobile-parent-item span { font-size: 9.5px !important; }
  .mobile-child-item { font-size: 10.5px !important; }
  .mobile-bottom-nav-icon svg { width: 24px !important; height: 24px !important; }
  .mobile-bottom-nav-label { font-size: 10px !important; }
}

@media (max-width: 320px) {
  .mobile-cat-left {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }
  .mobile-cat-img { width: 34px !important; height: 34px !important; }
  .mobile-child-img { width: 42px !important; height: 42px !important; }
  .mobile-child-group { grid-template-columns: repeat(2, 1fr) !important; }
  .mobile-bottom-nav-icon svg { width: 22px !important; height: 22px !important; }
  .mobile-bottom-nav-label { font-size: 9px !important; }
}
/* ===== Mobile cat.                                 end ===== */
/* =====================================================
   DIRECT FIX: Categories button blue when active
   Paste this at the BOTTOM of your CSS file
   ===================================================== */

/* Target the exact categories trigger button */
button.js-mobile-cat-trigger.active,
button.js-mobile-cat-trigger[aria-expanded="true"] {
  color: var(--accent) !important;
}

button.js-mobile-cat-trigger.active .mobile-bottom-nav-label,
button.js-mobile-cat-trigger[aria-expanded="true"] .mobile-bottom-nav-label {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

button.js-mobile-cat-trigger.active svg,
button.js-mobile-cat-trigger[aria-expanded="true"] svg {
  stroke: var(--accent) !important;
  color: var(--accent) !important;
}

/* Top blue border line */
button.js-mobile-cat-trigger.active::before,
button.js-mobile-cat-trigger[aria-expanded="true"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 15% !important;
  right: 15% !important;
  height: 2px !important;
  background: var(--accent) !important;
  border-radius: 0 0 3px 3px !important;
}

/* Also remove active from Home when categories opens */
.mobile-popup-menu.is-open ~ nav .mobile-bottom-nav-item[href="/"]:not(.js-mobile-cat-trigger) {
  color: var(--text-3) !important;
}
/* ── Hide helpers ───────────────────────────────────────────── */
.hide-sm { display: inline-flex; }
.hide-xs { display: inline; }

/* ── Misc Utilities ─────────────────────────────────────────── */
.divider   { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.price     { font-weight: 700; color: var(--text); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.d-flex      { display: flex; }
.items-center{ align-items: center; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.mt-4    { margin-top: 4px; }
.w-full  { width: 100%; }
.hidden  { display: none; }

/* ── Search Mobile Filter FAB ──────────────────────────────── */
.mobile-filter-fab {
  display: none !important;
}

/* ── Filter Icon Button (in sec-head) ─────────────────────── */
.filter-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  flex-shrink: 0;
}
.filter-icon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-icon-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
@media (max-width: 900px) {
  .filter-icon-btn { display: flex; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
  .cart-layout     { grid-template-columns: 1fr; }
  .order-summary, .filter-panel { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .checkout-pay-btn { display: none; }
  .checkout-sticky-pay {
    display: block;
    position: sticky;
    bottom: 8px;
    z-index: 120;
    padding: 8px 0 2px;
    background: linear-gradient(to top, rgba(250,250,248,.98), rgba(250,250,248,.78));
    backdrop-filter: blur(2px);
  }
  .checkout-sticky-pay .btn {
    height: 46px;
    font-size: 15px;
    border-radius: 12px;
  }
  .shop-layout .filter-panel { display: none; }
  .shop-layout .filter-panel.is-open { display: block; }
}
@media (max-width: 768px) {
  .container, .container-sm, .container-md { padding: 0 16px; }
  .store-page .page-body > *:not(.section):not(.full-bleed):not(.hero):not(.flash-alert):not(.flash-toast):not(.breadcrumb) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .store-page .page-body > .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .store-page .page-body > .section > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .topbar {
    background: #0a0a0a;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
  .topbar-inner   { height: 56px; padding: 0 12px; gap: 8px; position: static; justify-content: flex-start; }
  .logo { order: 1; }
  .topbar-search { order: 2; }
  .topbar-right { order: 3; }
  .nav-hamburger-left { order: 4; margin-left: 6px; margin-right: 0; }
  .page-body      { padding: 0 16px 88px; }
  .page-body > .hero { margin-left: calc(-50vw + 50%) !important; margin-right: 0; margin-top: 0; width: 100vw; max-width: 100vw; }
  .page-body > .full-bleed { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); max-width: calc(100% + 32px); }
  .page-body > .full-bleed:last-child { margin-bottom: -88px; }
  .store-page .page-body > *:not(.section):not(.full-bleed):not(.hero):not(.flash-alert):not(.flash-toast):not(.breadcrumb) {
    padding-left: 0;
    padding-right: 0;
  }
  .admin-body     { padding: 8px 0; }
  .admin-header   { padding: 12px 0; }
  .hero           { padding: 52px 0 44px; }
  .hero.hero-image-only { padding: 0 !important; }
  .hero-inner     { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual    { display: none; }
  .hero-carousel { border-radius: 0; }
  .hero-slide img { width: 100%; height: auto; }
  .hero-slide-overlay { padding: 20px; max-width: 100%; }
  .hero-dots {
    display: none !important;
  }

  .hero-dot {
    display: block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.45) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    transition: background .3s ease;
  }

  .hero-dot.is-active {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
  }
.hero-nav,
.hero-nav:hover,
.hero-nav:active,
.hero-nav:focus {
  display: flex !important;
  opacity: 0.8;
  width: 32px;
  height: 32px;
  font-size: 15px !important;
  background: rgba(255,255,255,.85) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* remove gold fill if SVG used */
.hero-nav svg,
.hero-nav svg path {
  fill: #fff !important;
}

/* remove focus highlight (mobile tap color) */
.hero-nav {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}


  .offer-card {
    aspect-ratio: auto !important;   /* remove fixed height */
    height: auto !important;
  }

  .offer-card img {
    width: 100%;
    height: auto !important;        /* let image control height */
    object-fit: contain !important; /* no crop, no zoom */
    display: block;
  }



.offer-card.top img {
  object-position: center 30%;
}

.offer-card.center img {
  object-position: center 50%;
}
 .product-layout { grid-template-columns: 1fr; gap: 22px; }
  .product-info   { position: static; }
  .auth-card      { padding: 28px 20px; }
  .section        { padding: 48px 0; }
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-2         { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .payment-options-grid { grid-template-columns: 1fr; }
  .payment-toggle { flex-direction: column; }
  .nav a          { padding: 6px 8px; font-size: 12.5px; }
  .admin-sidebar-toggle { display: flex; }
  .table td form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .table td input,
  .table td select,
  .table td button {
    width: 100%;
    min-width: 120px;
  }
  .store-page .flash-alert {
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 24px);
  }
  .pagination { justify-content: center; }
  .nav-hamburger.hide-mobile-nav { display: none !important; }
  .nav-hamburger  { display: flex; }
  .nav-hamburger {
    position: static;
    transform: none;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 7px 6px;
    margin-right: 2px;
  }
  .nav-hamburger:hover { background: #fff8ee; }
  .nav-hamburger span { background: var(--brand); width: 18px; }
  .topbar-search  {
    display: flex;
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .topbar-search input { height: 34px; line-height: 34px; padding: 0 10px; font-size: 12px; }
  .topbar-search button { width: 34px; height: 34px; font-size: 12px; }
  .desktop-header-links { max-width: 100%; }
  .mobile-topbar-search-wrap { display: none; }
  .logo img { max-height: 34px; width: auto; }
  .logo {
    position: static;
    transform: none;
    min-width: 0;
    max-width: 100px;
    color: #fff;
  }
  .topbar-right {
    gap: 0;
    margin-left: 2px;
    width: auto;
    justify-content: flex-end;
  }
  .topbar-icon-link {
    color: rgba(255,255,255,.85);
    padding: 6px 4px;
    font-size: 15px;
    background: transparent;
  }
  .topbar-icon-link:hover { color: #fff; background: rgba(255,255,255,.1); }
  .topbar-icon-only {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.35);
    font-size: 16px;
    background: rgba(255,255,255,.06);
  }
  .topbar-svg-icon { width: 20px; height: 20px; stroke-width: 2.05; }
  .cart-svg-icon { width: 23px; height: 23px; }
  .icon-heart { font-size: 18px; }
  .icon-cart {
    width: 15px;
    height: 13px;
    border-width: 1.7px;
  }
  .icon-cart::before {
    left: 3px;
    width: 7px;
    height: 5px;
    border-width: 1.7px;
  }
  .icon-user { width: 20px; height: 20px; }
  .cart-count { min-width: 15px; height: 15px; font-size: 8.5px; background: #e53935; }
  /* Hide topbar cart on mobile — accessible via bottom nav */
  .topbar-icon-only[title="Cart"] { display: none !important; }
  /* Hide topbar profile/login on mobile — accessible via bottom nav */
  .topbar-user-dropdown,
  .topbar-icon-only[title="Login"] { display: none !important; }
  .hide-sm        { display: none !important; }
  .announce-bar { font-size: 11px; padding: 8px 8px; }
  .announce-bar strong { display: inline; }
  .desktop-header-links { display: none !important; }
  .cat-bar { display: none; }
  .mobile-bottom-nav { display: flex; }
  .store-page .floating-whatsapp {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 255;
  }
  .store-page .floating-whatsapp svg { width: 20px; height: 20px; }
  .full-bleed { margin-left: 0; margin-right: 0; }
  .shop-layout .filter-panel { display: none; scroll-margin-top: 72px; }
  .shop-layout .filter-panel.is-open { display: block; }
  .nav-hamburger { border-radius: 999px; }
}
@media (max-width: 540px) {
  .grid         { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions, .product-actions { flex-direction: column; }
  .hero-actions .btn, .product-actions .btn { width: 100%; justify-content: center; }
  .btn.xl       { font-size: 14.5px; padding: 14px 22px; }
  .hide-xs      { display: none !important; }
  .payment-options-grid { grid-template-columns: 1fr; }
  .payment-toggle { flex-direction: column; }
  .admin-body   { padding: 6px 0; }
  .table td, .table th { padding: 9px 10px; font-size: 12.5px; }
  .topbar-inner { padding: 0 8px; gap: 5px; }
  .logo { max-width: 80px; }
  .topbar-search { min-width: 0; }
  .topbar-search input { height: 32px; line-height: 32px; padding: 0 8px; font-size: 11.5px; }
  .topbar-search button { width: 32px; height: 32px; font-size: 11px; }
  .topbar-icon-link { padding: 6px 3px; font-size: 14px; }
  .topbar-icon-only { width: 34px; height: 34px; min-width: 34px; font-size: 15px; padding: 0; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
  .nav-hamburger { padding: 7px 5px; }
  .mobile-topbar-search-wrap { padding: 7px 8px 9px; }
  .store-page .floating-whatsapp {
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .store-page .floating-whatsapp svg { width: 18px; height: 18px; }
  .mobile-profile-menu {
    right: 8px;
    width: min(84vw, 280px);
  }
  .hero-carousel { border-radius: 0; }
  .hero-slide img { width: 100%; height: auto; }
  .hero-nav { width: 28px; height: 28px; font-size: 15px; opacity: 1; }
  .hero-dots { bottom: 8px; gap: 5px; }
  .hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
  .hero-dot.is-active { background: var(--accent); }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 1100px) {
  .product-premium-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-buy-premium {
    grid-column: span 2;
    position: static;
  }
}
@media (max-width: 768px) {
  .product-premium-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-buy-premium {
    position: static;
    grid-column: auto;
    margin-top: 2px;
  }
  .product-main-card,
  .product-meta-premium,
  .buy-box-card {
    padding: 12px;
    border-radius: 12px;
  }
  .buy-box-price {
    margin-bottom: 8px;
    font-size: clamp(1.9rem, 8vw, 2.2rem);
  }
  .buy-qty-row {
    margin-bottom: 6px;
    gap: 6px;
  }
  .product-buy-premium .qty-ctrl {
    border-radius: 10px;
  }
  .product-buy-premium .qty-ctrl button {
    width: 26px;
    height: 30px;
    font-size: 19px;
  }
  .product-buy-premium .qty-ctrl input[type=number] {
    width: 46px !important;
    min-width: 46px;
    max-width: 46px;
    height: 30px !important;
    line-height: 30px;
    font-size: 15px;
  }
  .buy-stock {
    margin-bottom: 10px;
  }
  .product-actions-vertical {
    gap: 8px;
    margin-bottom: 10px;
  }
  .product-actions-vertical .btn {
    min-height: 44px;
    font-size: 14px;
  }
  .buy-trust-list {
    padding-top: 10px;
  }
  .buy-trust-list p {
    margin-bottom: 4px;
  }
  .product-gallery-main {
    border-radius: 12px;
  }
}

/* ── Login Popup Modal ──────────────────────────────────────── */
.login-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.login-popup-backdrop.is-visible { opacity: 1; }
.login-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  z-index: 9999;
  background: var(--panel, #fff);
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: min(92vw, 400px);
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.login-popup.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.login-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.login-popup-close:hover { color: var(--text); }
.login-popup-brand { text-align: center; margin-bottom: 20px; }
.login-popup label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; display: block; }
.login-popup input[type="email"],
.login-popup input[type="password"] { width: 100%; margin-bottom: 14px; }

@media print {
  .topbar, .site-footer, .admin-sidebar, .floating-whatsapp { display: none !important; }
  .admin-shell { display: block; }
}

/* ── Share Button (Product Detail) ── */
.btn-share {
    background: none;
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all .2s;
}
.btn-share:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-share svg { flex-shrink: 0; }

/* ── Share Icon on Product Cards ── */
.share-card-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    opacity: 0;
    transform: scale(.85);
    transition: all .2s ease;
    color: var(--text);
}
.product-card:hover .share-card-btn,
.product-card:focus-within .share-card-btn {
    opacity: 1;
    transform: scale(1);
}
.share-card-btn:hover {
    background: var(--accent);
    color: #fff;
}
/* Always visible on touch devices */
@media (hover: none) {
    .share-card-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Share Toast ── */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand, #0f0f0f);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
}
.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Share Dropdown ── */
.share-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    z-index: 999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(8px) scale(.95);
    transition: all .2s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
.share-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
/* On product cards, dropdown opens downward from the share icon */
.product-card-img .share-dropdown {
    top: calc(100% + 4px);
    bottom: auto;
    right: 0;
    transform: translateY(-8px) scale(.95);
}
.product-card-img .share-dropdown.show {
    transform: translateY(0) scale(1);
}
.share-dd-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s;
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
}
.share-dd-btn:hover { background: #f5f5f5; }
.share-dd-btn:active { background: #ebebeb; }
.share-dd-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.share-dd-label {
    font-weight: 600;
    font-size: 13px;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  MOBILE-FIRST APP-LIKE ENHANCEMENTS                        ║
   ║  Premium, touch-optimized, app-ready overrides              ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Global Touch & Tap Optimization ────────────────────────── */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 8px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  /* Prevent pull-to-refresh on app-like views */
  body.no-overscroll { overscroll-behavior-y: none; }

  /* All interactive elements touch-friendly */
  a, button, [role="button"], input[type="submit"], .btn, select {
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  /* Inputs comfortable for thumb typing */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
  select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    min-height: var(--touch-min);
    padding: 12px 14px;
  }
}

/* ── Smooth Page Transitions ────────────────────────────────── */
@media (max-width: 768px) {
  .page-body {
    animation: appFadeIn .3s var(--app-ease) both;
  }
  @keyframes appFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .section, .card, .product-card, .order-card, .review-card,
  .addr-card, .stat-card {
    animation: appSlideUp .35s var(--app-ease) both;
  }
  @keyframes appSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Enhanced Mobile Bottom Navigation ──────────────────────── */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    height: auto;
    min-height: var(--bottom-nav-h);
    padding: 4px 4px calc(4px + var(--safe-b));
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08), 0 -1px 4px rgba(0,0,0,.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 0;
  }
  .mobile-bottom-nav-item {
    flex: 1;
    min-height: 52px;
    padding: 6px 4px 4px;
    gap: 3px;
    font-size: 0;
    position: relative;
    border-radius: 12px;
    transition: color .2s ease, background .2s ease, transform .15s ease;
  }
  .mobile-bottom-nav-item:active {
    transform: scale(.92);
  }
  .mobile-bottom-nav-item.active {
    color: var(--accent);
    background: var(--accent-light);
  }
  .mobile-bottom-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .mobile-bottom-nav-icon svg {
    width: 22px;
    height: 22px;
    transition: transform .15s ease;
  }
  .mobile-bottom-nav-item:active .mobile-bottom-nav-icon svg {
    transform: scale(.88);
  }
  .mobile-bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .85;
  }
  .mobile-bottom-nav-item.active .mobile-bottom-nav-label {
    font-weight: 700;
    opacity: 1;
  }
  /* Cart badge on bottom nav */
  .mobile-bottom-nav-count {
    top: -2px;
    right: calc(50% - 18px);
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid #fff;
    animation: badgePop .3s var(--app-bounce);
  }
  @keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
  }
}

/* ── Mobile Topbar Optimization ─────────────────────────────── */
@media (max-width: 768px) {
  .announce-bar {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: .01em;
  }
  .topbar {
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    z-index: 200;
  }
  .topbar-inner {
    height: var(--mobile-topbar-h);
    padding: 0 10px;
    gap: 6px;
  }
  /* Compact logo */
  .logo {
    max-width: 90px;
    flex-shrink: 0;
  }
  .logo img {
    max-height: 30px;
  }
  /* Search bar fills available space */
  .topbar-search {
    flex: 1;
    min-width: 0;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    box-shadow: none;
    transition: all .2s ease;
  }
  .topbar-search:focus-within {
    background: rgba(255,255,255,.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201,169,110,.2);
  }
  .topbar-search input {
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
    font-size: 13px !important;
    color: rgba(255,255,255,.9);
  }
  .topbar-search input::placeholder { color: rgba(255,255,255,.45); }
  .topbar-search button {
    width: 36px;
    height: 34px;
    border-left: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
  }
  .topbar-search button svg { stroke: rgba(255,255,255,.7); }
  /* Compact nav icons */
  .topbar-right { gap: 2px; }
  .topbar-icon-only {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1.5px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
  }
  .topbar-icon-only .cart-count {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    border: 1.5px solid #0a0a0a;
  }
  /* Hamburger as clean pill */
  .nav-hamburger {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-hamburger span {
    width: 16px;
    height: 1.5px;
    background: rgba(255,255,255,.8);
  }
  .nav-hamburger:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
  }
}

/* ── Premium Mobile Drawer ──────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-drawer {
    width: min(88vw, 340px);
    border-radius: 0 24px 24px 0;
    box-shadow: 20px 0 60px rgba(0,0,0,.35);
  }
  .mobile-drawer-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .mobile-drawer-brand {
    font-size: 1.15rem;
    font-weight: 800;
  }
  .mobile-drawer-link {
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    transition: all .2s ease;
  }
  .mobile-drawer-link:active {
    transform: scale(.97);
    background: rgba(255,255,255,.06);
  }
}

/* ── Premium Mobile Popup Menus ─────────────────────────────── */
@media (max-width: 768px) {
  .mobile-popup-menu {
    left: 6px;
    right: 6px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 8px);
    border-radius: 24px;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
    max-height: 55vh;
  }
  .mobile-popup-menu-head {
    padding: 16px 18px 10px;
    font-size: 12px;
    letter-spacing: 1.2px;
  }
  .mobile-popup-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
  }
  .mobile-popup-menu-item {
    padding: 16px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    min-height: var(--touch-min);
    transition: all .15s ease;
  }
  .mobile-popup-menu-item:active {
    transform: scale(.94);
  }
  .mobile-profile-menu {
    bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 8px);
    right: 8px;
    border-radius: 24px;
    box-shadow: 0 -8px 40px rgba(0,0,0,.2);
    padding: 8px;
  }
  .mobile-profile-menu a {
    padding: 14px 14px;
    border-radius: 14px;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: all .15s ease;
  }
  .mobile-profile-menu a:active {
    transform: scale(.97);
    background: var(--bg-warm);
  }
}

/* ── Mobile Hero Carousel Premium ───────────────────────────── */
@media (max-width: 768px) {
  .hero-carousel {
    border-radius: 0;
  }
  .hero-slide img {
    width: 100%;
    height: auto;
    will-change: transform;
  }
  .hero-nav {
    width: 32px;
    height: 32px;
    font-size: 15px !important;
    opacity: .7;
    background: rgba(255,255,255,.85) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: opacity .3s ease;
  }
  .hero-nav-prev { left: 8px; }
  .hero-nav-next { right: 8px; }
  .hero-dots { bottom: 10px; gap: 5px; }
  .hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: background .3s ease;
  }
  .hero-dot.is-active {
    background: var(--accent);
  }
}

/* ── Product Cards Mobile Premium ───────────────────────────── */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .product-card:active {
    transform: scale(.98);
  }
  .product-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }
  .product-card-img {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1/1;
  }
  .product-card-body {
    padding: 10px 12px 12px;
  }
  .product-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .product-card-price {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .product-card-subprice {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .product-card-foot .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 36px;
  }
  /* Share button always visible on mobile */
  .share-card-btn {
    opacity: 1;
    transform: scale(1);
    width: 30px;
    height: 30px;
  }
  .product-card-badges {
    top: 8px;
    left: 8px;
  }
  .product-card-badges .badge {
    font-size: 10px;
    padding: 2px 7px;
  }
}

/* ── Section Headers Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .sec-head {
    margin-bottom: 16px;
    padding: 0;
  }
  .sec-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
  }

  .sec-head-link:hover { text-decoration: none; }
  .sec-head-link:active { transform: scale(.95); }
}

/* ── Profile Bottom Sheet (Premium Mobile) ──────────────────── */
.profile-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.profile-sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.profile-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 10003;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  transform: translateY(calc(100% + 72px + env(safe-area-inset-bottom, 0px)));
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  max-height: calc(85vh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}
.profile-bottom-sheet.open {
  transform: translateY(0);
}

/* Drag handle */
.profile-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
  cursor: grab;
}
.profile-sheet-handle span {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #d0d0d0;
}

/* Header — avatar + name + email + close */
.profile-sheet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.profile-sheet-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: -.5px;
}
.profile-sheet-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-sheet-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-sheet-email {
  font-size: 13px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-sheet-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.profile-sheet-close:active {
  background: rgba(0,0,0,.10);
}

/* Body / menu items */
.profile-sheet-body {
  padding: 8px 0 12px;
}
.profile-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.profile-sheet-item:active {
  background: rgba(0,0,0,.04);
}
.profile-sheet-item-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f4f6;
  flex-shrink: 0;
}
.profile-sheet-item-icon svg {
  color: #444;
}
.profile-sheet-item-label {
  flex: 1;
  min-width: 0;
}
.profile-sheet-chevron {
  color: #bbb;
  flex-shrink: 0;
}
.profile-sheet-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 6px 20px;
}

/* Admin item — subtle highlight */
.profile-sheet-item--admin .profile-sheet-item-icon {
  background: #eef2ff;
}
.profile-sheet-item--admin .profile-sheet-item-icon svg {
  color: #6366f1;
}

/* Logout */
.profile-sheet-item--logout {
  color: #dc2626;
}
.profile-sheet-item--logout .profile-sheet-item-icon {
  background: #fef2f2;
}
.profile-sheet-item--logout .profile-sheet-item-icon svg {
  color: #dc2626;
}
.profile-sheet-item--logout .profile-sheet-chevron {
  display: none;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .profile-sheet-backdrop,
  .profile-bottom-sheet {
    display: none !important;
  }
}

/* ── Category Cards Mobile Premium ──────────────────────────── */
@media (max-width: 768px) {
  .cat-scroll-mobile {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    overflow-x: visible;
    padding: 0;
  }
  .cat-scroll-mobile .category-card {
    flex: unset;
    width: auto !important;
    min-width: unset;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
    padding: 8px 4px;
    transition: all .15s ease;
  }
  .cat-scroll-mobile .category-card:active { transform: scale(.95); }
  .cat-scroll-mobile .category-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 12px;
    margin: 0 auto 6px;
    overflow: hidden;
  }
  .cat-scroll-mobile .category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .cat-scroll-mobile .category-card-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 4px 8px;
    scrollbar-width: none;
  }
  .cat-scroll::-webkit-scrollbar { display: none; }
  .cat-scroll .cat-card {
    flex: 0 0 auto;
    width: 90px;
    scroll-snap-align: start;
  }
  .cat-card {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
    padding: 12px 8px;
    transition: all .15s ease;
  }
  .cat-card:active { transform: scale(.95); }
  .cat-card img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 8px;
  }
  .cat-card p, .cat-card span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
  }
}

/* ── Offer Cards Mobile Premium ─────────────────────────────── */
@media (max-width: 768px) {
  .offer-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 0 0 8px;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .offer-grid::-webkit-scrollbar { display: none; }
  .offer-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    border-radius: 12px;
    aspect-ratio: 16/7;
  }
  .offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }
}

/* ── Product Page Mobile Premium ────────────────────────────── */
@media (max-width: 768px) {
  .product-layout {
    gap: 0;
    margin-bottom: 0;
  }
  /* Full-width gallery with proper padding */
  .product-gallery, .gallery-main, .product-gallery-main {
    border-radius: 0;
    margin: 0 -16px;
    width: calc(100% + 32px);
    padding: 0 16px;
    box-sizing: border-box;
  }
  .gallery-main {
    border: none;
    border-radius: 12px;
    aspect-ratio: 1/1;
    padding: 20px 30px;
    overflow: hidden;
  }
  .gallery-thumbs, .product-gallery-thumbs {
    padding: 10px 14px 0;
    margin: 0;
    gap: 6px;
  }
  .thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border-width: 2px;
  }
  /* Product info section */
  .product-info {
    padding: 16px 0 0;
  }
  .product-header {
    margin-bottom: 12px;
  }
  .product-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }
  .product-rating-line {
    font-size: 13px;
    gap: 6px;
  }
  /* Price section */
  .product-price-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .product-price-main {
    font-size: 1.75rem;
    font-weight: 800;
  }
  /* Weight pills scrollable row */
  .weight-selector, .variant-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .weight-selector::-webkit-scrollbar, .variant-pills::-webkit-scrollbar { display: none; }
  .weight-pill, .variant-pill {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 999px;
  }
  .weight-pill:active, .variant-pill:active {
    transform: scale(.95);
  }
  /* Product actions - padded for sticky buy bar */
  .product-actions {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
  }
  .product-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }
  .btn-primary, .btn-buy-now {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  /* Pincode input row */
  .delivery-section {
    margin-bottom: 14px;
  }
  .pincode-input {
    height: 46px;
    border-radius: 10px;
    font-size: 15px;
  }
  .btn-check {
    height: 46px;
    border-radius: 10px;
  }
  /* Review cards */
  .review-card {
    padding: 14px 16px;
    border-radius: 12px;
  }
}

/* ── Sticky Buy Bar (Product Page) ──────────────────────────── */
.product-sticky-buy {
  display: none;
}
@media (max-width: 768px) {
  .product-sticky-buy {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bottom-nav-h) + var(--safe-b));
    z-index: 240;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 10px 14px;
    gap: 10px;
    align-items: center;
    transform: translateY(100%);
    transition: transform .3s var(--app-ease);
  }
  .product-sticky-buy.is-visible {
    transform: translateY(0);
  }
  .product-sticky-buy-price {
    flex: 1;
    min-width: 0;
  }
  .product-sticky-buy-price strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-sticky-buy-price small {
    font-size: 11px;
    color: var(--text-3);
  }
  .product-sticky-buy .btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
  }
  .product-sticky-buy .product-sticky-buynow {
    display: none;
  }
  /* Adjust bottom elements when sticky bar is visible */
  .product-sticky-buy.is-visible ~ .mobile-bottom-nav,
  body:has(.product-sticky-buy.is-visible) .mobile-bottom-nav {
    box-shadow: none;
    border-top-color: transparent;
  }
}

/* ── Cart Page Mobile Premium ───────────────────────────────── */
@media (max-width: 768px) {
  .cart-layout {
    gap: 16px;
  }
  .cart-item {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }
  .cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
  .cart-item-name { font-size: 13.5px; }
  .cart-item-meta { font-size: 12px; }
  .cart-item-price { font-size: 14px; }
  /* Qty controls in cart */
  .qty-ctrl {
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    gap: 0;
  }
  .qty-ctrl button, .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 0;
    font-size: 16px;
    min-height: 36px;
  }
  .qty-ctrl input[type=number], .qty-input {
    width: 40px !important;
    height: 36px !important;
    line-height: 36px;
  }
  /* Order summary card */
  .order-summary {
    border-radius: 14px;
    overflow: hidden;
  }
  .order-summary-head {
    padding: 14px 16px;
  }
  .order-summary-body {
    padding: 14px 16px;
  }
  .summary-line {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .summary-line.total {
    font-size: 16px;
    font-weight: 800;
  }
  /* Full-width checkout button */
  .order-summary .btn {
    min-height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }
}

/* ── Checkout Mobile Premium ────────────────────────────────── */
@media (max-width: 768px) {
  .checkout-layout {
    gap: 16px;
  }
  .checkout-section {
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .checkout-section-head {
    padding: 12px 16px;
  }
  .checkout-section-body {
    padding: 16px;
  }
  .checkout-step {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .addr-toggle {
    border-radius: 12px;
  }
  .addr-toggle-btn {
    padding: 12px 10px;
    font-size: 13px;
    min-height: 44px;
  }
  .payment-options-grid {
    gap: 8px;
  }
  .payment-method-btn {
    padding: 14px;
    border-radius: 12px;
    min-height: 50px;
    transition: all .15s ease;
  }
  .payment-method-btn:active {
    transform: scale(.98);
  }
  /* Sticky pay button */
  .checkout-sticky-pay {
    bottom: calc(var(--bottom-nav-h) + var(--safe-b));
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 240;
    backdrop-filter: blur(12px);
  }
  .checkout-sticky-pay .btn {
    min-height: 48px;
    font-size: 15px;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* ── Auth Pages Mobile Premium ──────────────────────────────── */
@media (max-width: 768px) {
  .auth-wrap {
    padding: 24px 16px;
    min-height: calc(100vh - var(--mobile-topbar-h) - var(--bottom-nav-h) - var(--safe-b));
    align-items: flex-start;
    padding-top: 32px;
  }
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.06);
    max-width: 100%;
    width: 100%;
  }
  .auth-card h2 {
    font-size: 1.35rem;
  }
  .auth-card .btn {
    min-height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }
  .auth-foot {
    font-size: 14px;
    margin-top: 24px;
  }
  .auth-foot a {
    font-weight: 700;
    color: var(--accent);
  }
}

/* ── Orders History Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  .order-card {
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,.06);
  }
  .order-card-head {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .order-card-body {
    padding: 14px 16px;
  }
  .order-code {
    font-size: 12px;
  }
  .timeline li {
    font-size: 13px;
    padding: 6px 0 6px 16px;
  }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  ADMIN PANEL — PREMIUM MOBILE EXPERIENCE                    ║
   ║  Organized: Shell → Content → Cards → Stats → Tables →      ║
   ║  Tabs → Forms → Orders → Dashboard → Utility                ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── Manage Admins Card Layout (all screens) ────────────────── */
.admin-manage-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--panel);
  transition: box-shadow .2s ease;
}
.admin-manage-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.admin-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}
.admin-manage-header strong { display: block; font-size: 15px; margin-bottom: 2px; }
.admin-manage-email { font-size: 13px; color: var(--text-3); word-break: break-all; }
.badge-success { background: #d4edda; color: #155724; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-muted { background: #f0f0f0; color: #666; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; margin-bottom: 14px; }
.perm-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 7px 0; cursor: pointer; }
.perm-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.admin-manage-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── A1. Shell & Sidebar (768px) ────────────────────────────── */
@media (max-width: 768px) {
  .admin-shell {
    display: block !important;
    grid-template-columns: none !important;
  }
  .admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 80vw;
    max-width: 280px;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,.18);
    height: 100vh;
    overflow-y: auto;
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
    border-radius: 0 16px 16px 0;
  }
  .admin-sidebar-toggle {
    margin: 12px 0 0 auto;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    border: 1.5px solid var(--border);
    background: var(--panel);
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    transition: background .2s, box-shadow .2s;
  }
  .admin-sidebar-toggle:active { background: var(--bg-soft); box-shadow: none; }
}

/* ── A2. Content Area ───────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-content {
    padding: 0 12px 24px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .admin-content > .card {
    margin: 12px 0 0;
    padding: 16px 14px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid var(--border);
  }
  .admin-content .card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .admin-content .card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .admin-content .card hr,
  .admin-content .card .divider {
    margin: 16px 0;
  }
  .admin-header {
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .admin-header h2 { font-size: 1.15rem; }
  .admin-body { padding: 8px 0; }
}

/* ── A3. Stat Cards ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    border-radius: 14px;
    border-left-width: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .stat-value { font-size: 1.3rem; }
  .stat-label { font-size: 10px; }
  .stat-sub { font-size: 11px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── A4. Tables → Mobile Card View ──────────────────────────── */
@media (max-width: 768px) {
  .admin-content .table-wrap {
    border-radius: 14px;
    margin: 0;
    width: 100%;
    box-shadow: none;
    overflow-x: visible;
    border: none;
  }
  .admin-content .table {
    min-width: 0;
    font-size: 13px;
    border: none;
  }
  .admin-content .table thead {
    display: none;
  }
  .admin-content .table,
  .admin-content .table tbody {
    display: block;
    width: 100%;
  }
  .admin-content .table tr {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .2s;
  }
  .admin-content .table tr:active {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }
  .admin-content .table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 13px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.04);
    gap: 12px;
    text-align: right;
    max-width: none !important;
    white-space: normal !important;
    min-width: 0 !important;
  }
  .admin-content .table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .admin-content .table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
    text-align: left;
    min-width: 70px;
    padding-top: 2px;
  }
  .admin-content .table td .btn {
    min-height: 36px;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 8px;
  }
  .admin-content .table td img {
    max-width: 64px;
    height: auto;
    border-radius: 10px;
  }
  .admin-content .table td form {
    width: 100%;
  }
  .admin-content .table td > .btn {
    width: 100%;
    justify-content: center;
  }
  .admin-content .table td form[style*="display:flex"],
  .admin-content .table td div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 6px !important;
    width: 100%;
  }
  .admin-content .table td form .btn,
  .admin-content .table td div .btn {
    width: 100%;
    justify-content: center;
  }
  /* Override for products & categories tables: keep action buttons in a row */
  .admin-products-table td .admin-product-actions form,
  .admin-categories-table td .admin-product-actions form {
    width: auto;
    flex: 1;
  }
  .admin-products-table td .admin-product-actions > .btn,
  .admin-categories-table td .admin-product-actions > .btn {
    flex: 1;
  }
  .admin-products-table td .admin-product-actions,
  .admin-categories-table td .admin-product-actions {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .admin-products-table td .admin-product-actions form .btn,
  .admin-categories-table td .admin-product-actions form .btn {
    width: 100%;
    text-align: center;
  }
  /* Reports table exception — keep horizontal scroll */
  .admin-content .table-wrap:has(.reports-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .admin-content .table.reports-table {
    min-width: 900px;
    display: table;
  }
  .admin-content .table.reports-table thead { display: table-header-group; }
  .admin-content .table.reports-table tr { display: table-row; padding: 0; margin: 0; border: none; border-radius: 0; box-shadow: none; }
  .admin-content .table.reports-table td { display: table-cell; text-align: left; border-bottom: 1px solid var(--border); }
  .admin-content .table.reports-table td::before { display: none; }
}

/* ── A5. Tabs ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
    width: 100%;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab-btn {
    white-space: nowrap;
    padding: 10px 16px !important;
    font-size: 13px !important;
    flex-shrink: 0;
    border-radius: 0 !important;
    min-height: 44px;
  }
}

/* ── A6. Forms ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-content form {
    max-width: 100% !important;
  }
  .admin-content .card[style*="max-width"] {
    max-width: 100% !important;
  }
  .admin-content .grid {
    grid-template-columns: 1fr !important;
  }
  .admin-content .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .admin-content form input,
  .admin-content form select,
  .admin-content form textarea {
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border-radius: 10px;
  }
  .admin-content form textarea {
    min-height: 88px;
  }
  .admin-content form label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: var(--text-2);
  }
  .admin-content form .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
  }
  /* Inline min-width overrides */
  .admin-content input[style*="min-width"],
  .admin-content select[style*="min-width"],
  .admin-content div[style*="min-width"] {
    min-width: 0 !important;
    width: 100% !important;
  }
  /* Search forms → stack vertical */
  .admin-content form[method="get"],
  .admin-content form[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .admin-content form[method="get"] input[type="search"],
  .admin-content form[method="get"] input[type="text"] {
    min-width: 0 !important;
    width: 100% !important;
  }
  .admin-content form[method="get"] .btn {
    width: 100%;
    justify-content: center;
  }
  /* Variant rows */
  .new-variant-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  /* Per-page label inline */
  .admin-content label[style*="font-size:13px"] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  /* Checkbox labels in grids */
  .admin-content .grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .admin-content .grid label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    flex-shrink: 0;
    accent-color: var(--accent);
  }
  /* Upload areas */
  .admin-content .upload-dropzone {
    padding: 20px;
    border-radius: 12px;
  }
  .admin-content .upload-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ── A7. Orders Page Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .orders-admin-card {
    padding: 14px 12px !important;
  }
  .orders-toolbar {
    flex-direction: column;
    gap: 12px;
  }
  .orders-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .orders-filter-chips .btn,
  .orders-filter-chips a {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 20px;
    min-height: 32px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .orders-search-form {
    width: 100%;
  }
  .orders-search-input {
    min-width: 0 !important;
    width: 100% !important;
  }
  /* Order card layout */
  .admin-content .table tr:has(.order-code-cell) {
    position: relative;
  }
  .order-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0 !important;
    width: 100%;
  }
  .order-action-form select,
  .order-action-form input {
    width: 100%;
    min-width: 0 !important;
    font-size: 13px;
    min-height: 40px;
    border-radius: 10px;
  }
  .order-action-form button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }
  .order-courier-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .order-courier-fields input {
    min-width: 0 !important;
    width: 100%;
  }
  .order-customer-box {
    max-width: 100%;
  }
  .order-customer-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
  .order-customer-email {
    font-size: 12px;
    color: var(--text-3);
    word-break: break-all;
  }
  .order-items-list small {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
  }
}

/* ── A8. Dashboard Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .admin-content canvas {
    max-height: 200px !important;
  }
  .chart-card {
    padding: 14px !important;
    border-radius: 14px;
  }
  .admin-content .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-content .grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .admin-content .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── A9. Categories Manager Mobile ──────────────────────────── */
@media (max-width: 768px) {
  .cat-mgr-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .cat-mgr-card {
    border-radius: 14px !important;
  }
  .cat-mgr-upload-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .cat-mgr-btns {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .cat-mgr-btns .btn {
    width: 100%;
    justify-content: center;
  }
  /* Add category form grid */
  .admin-content div[style*="display:grid"][style*="minmax"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .admin-content div[style*="display:flex"][style*="flex-wrap"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* ── A10. Settings Page Mobile ──────────────────────────────── */
@media (max-width: 768px) {
  .admin-content .card[style*="max-width:700px"],
  .admin-content .card[style*="max-width: 700px"] {
    max-width: 100% !important;
  }
  .admin-content input[type="color"] {
    height: 48px !important;
    border-radius: 10px !important;
  }
  /* Payment checkboxes */
  .admin-content label[style*="display:flex"][style*="cursor"] {
    padding: 12px 0;
    font-size: 15px;
  }
  .admin-content label[style*="display:flex"] input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ── A11. Admins Page Mobile ────────────────────────────────── */
@media (max-width: 480px) {
  .perm-grid { grid-template-columns: 1fr; }
  .admin-manage-card { padding: 14px; }
  .admin-manage-actions {
    flex-direction: column;
  }
  .admin-manage-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── A12. Touch Targets ─────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-page .btn, .admin-page button, .admin-page a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .admin-page .btn.xs, .admin-page .btn.sm {
    min-height: 36px;
  }
  .admin-page input, .admin-page select, .admin-page textarea {
    min-height: 44px;
  }
  .admin-content .table td .btn {
    min-height: 36px;
  }
  .admin-content .table td input,
  .admin-content .table td select {
    min-height: 36px;
    padding: 4px 10px;
  }
}

/* ── A13. Safe Overflow ─────────────────────────────────────── */
.admin-shell { min-width: 0; max-width: 100%; }
.admin-content, .admin-body { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
@media (max-width: 768px) {
  .admin-page, .admin-page body { overflow-x: hidden; max-width: 100vw; }
  .admin-shell, .admin-content { overflow-x: hidden; }
  .admin-content h2, .admin-content h3, .admin-content h4,
  .admin-content p, .admin-content span,
  .admin-content td, .admin-content th,
  .admin-header h2 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .stat-value {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

/* ── A14. Status Badges (color-coded) ───────────────────────── */
[class*="badge-pending"] { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-confirmed"] { background: #cce5ff; color: #004085; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-processing"] { background: #e8daef; color: #6c3483; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-shipped"] { background: #d1ecf1; color: #0c5460; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-delivered"] { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-cancelled"] { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-refunded"] { background: #e2e3e5; color: #383d41; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-cancel_requested"] { background: #fff3cd; color: #92400e; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-cancel_rejected"] { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-paid"] { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-unpaid"], [class*="badge-failed"] { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }
[class*="badge-new"] { background: #cce5ff; color: #004085; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-block; }

/* ── Addresses Page Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  .addr-page {
    padding: 0;
  }
  .addr-card {
    padding: 16px;
    border-radius: 14px;
  }
  .addr-card-name { font-size: 14px; }
  .addr-card-detail { font-size: 12.5px; }
  .addr-card-actions {
    padding-top: 10px;
    gap: 6px;
  }
  .addr-action-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
    border-radius: 10px;
  }
  .addr-add-toggle {
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
    min-height: 48px;
  }
}

/* ── Empty States ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ── Skeleton / Loading State ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-warm) 25%, var(--bg-soft) 50%, var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-text.sm { height: 10px; width: 60%; }
.skeleton-img { aspect-ratio: 1/1; border-radius: var(--r); }
.skeleton-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  padding: 0;
}
.skeleton-card .skeleton-img { border-radius: 0; }

/* Image skeleton shimmer while loading */
.product-card-img,
.category-card-img,
.offer-card,
.gallery-main {
  position: relative;
}
.product-card-img::before,
.category-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-warm) 25%, var(--bg-soft) 50%, var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  transition: opacity .3s ease;
}
.product-card-img img.loaded ~ *,
.product-card-img:has(img.loaded)::before,
.category-card-img:has(img.loaded)::before {
  opacity: 0;
  pointer-events: none;
}

/* ── Pull Indicator ─────────────────────────────────────────── */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9999;
  padding: 8px 20px;
  background: var(--panel);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: transform .3s ease;
}
.pull-indicator.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Toast Notifications ────────────────────────────────────── */
.app-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--app-ease);
  max-width: min(90vw, 400px);
  text-align: center;
}
.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.app-toast.success { background: var(--success); }
.app-toast.error { background: var(--danger); }

/* ── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 27px;
  bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 16px);
  z-index: 240;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  color: var(--text);
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0;
  transform: translateY(10px);
}
.back-to-top.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:active { transform: scale(.9); }

@media (max-width: 768px) {

  .back-to-top {
    right: 18px;   /* move left side of WhatsApp button */
    bottom: 150px;  /* adjust vertical position if needed */
  }

}
/* ── Floating WhatsApp Adjustment ───────────────────────────── */
@media (max-width: 768px) {
  .store-page .floating-whatsapp {
    bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 12px);
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22,163,74,.35);
  }
  .store-page .floating-whatsapp svg { width: 22px; height: 22px; }
  /* When sticky buy bar is visible, move WhatsApp higher */
  body:has(.product-sticky-buy.is-visible) .floating-whatsapp {
    bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 72px);
  }
}

/* ── Mobile Footer Optimization ─────────────────────────────── */
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b) + 8px);
  }
  .footer-main {
    padding: 32px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .footer-col h5 {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .footer-col a {
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 28px;
    display: flex;
    align-items: center;
  }
}

/* ── Trust Section ──────────────────────────────────────────── */
.trust-section {
  padding: 48px 0;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  transition: box-shadow .25s ease, transform .25s ease;
}
.trust-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.trust-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-card-icon--delivery { background: #eff6ff; color: #2563eb; }
.trust-card-icon--returns  { background: #fdf4ff; color: #a855f7; }
.trust-card-icon--support  { background: #fefce8; color: #ca8a04; }
.trust-card-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.trust-card-text p {
  font-size: 13px;
  color: #777;
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .trust-section { padding: 32px 0; }
  .trust-grid { gap: 10px; }
  .trust-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px;
    gap: 10px;
  }
  .trust-card-icon {
    width: 44px;
    height: 44px;
  }
  .trust-card-text h4 { font-size: 13.5px; }
  .trust-card-text p { font-size: 12px; }
}

/* ── Flash Alerts Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .store-page .flash-alert {
    top: calc(var(--mobile-topbar-h) + 8px);
    max-width: calc(100vw - 20px);
    border-radius: 14px;
    font-size: 13px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
  }
}

/* ── Login Popup Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .login-popup {
    width: min(94vw, 380px);
    border-radius: 24px;
    padding: 28px 22px 24px;
  }
  .login-popup .btn {
    min-height: 48px;
    border-radius: 12px;
  }
}

/* ── Breadcrumb Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .breadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important;
    font-size: 12px;
    gap: 4px;
    margin-bottom: 8px;
    padding: 0 16px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
  }
}

/* ── Pagination Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .pagination {
    padding: 8px 0;
  }
  .pagination .page-link {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* ── Form Row Mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 14px;
  }
  label {
    font-size: 12.5px;
    margin-bottom: 5px;
  }
}

/* ── Tables Mobile Touch ────────────────────────────────────── */
@media (max-width: 768px) {
  .store-page .table-wrap {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Container Padding Mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .container, .container-sm, .container-md {
    padding: 0 16px;
  }
}

/* ── Smooth Scroll Bar Hide ─────────────────────────────────── */
@media (max-width: 768px) {
  ::-webkit-scrollbar { width: 0; height: 0; }
  * { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.1) transparent; }
}

/* ── Button Active States (Haptic feel) ─────────────────────── */
@media (max-width: 768px) {
  .btn:active, button:active {
    transform: scale(.96);
    transition: transform .1s ease;
  }
  .product-card:active .product-card-img img {
    transform: scale(1.02);
  }
}

/* ── Smooth Image Rendering ─────────────────────────────────── */
img {
  image-rendering: auto;
}
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .4s ease;
}
img[loading="lazy"].loaded, img[loading="lazy"][complete] {
  opacity: 1;
}

/* Fix for lazy loaded images that are already in cache */
img[loading="lazy"] { opacity: 1; }

/* ── PWA / App-like overscroll colors ───────────────────────── */
@media (max-width: 768px) {
  :root {
    color-scheme: light;
  }
}

/* ── App Splash / Loading Screen ────────────────────────────── */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: none;
}
.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.app-splash-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.app-splash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0,0,0,.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: splashSpin .7s linear infinite;
}
@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

/* ── Offline Banner ─────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #ef4444;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.offline-banner.is-visible {
  transform: translateY(0);
}

/* ── 320px Ultra-Small Screen ───────────────────────────────── */
@media (max-width: 360px) {
  .container, .container-sm, .container-md { padding: 0 10px; }
  .topbar-inner { padding: 0 8px; gap: 4px; }
  .topbar-search input { font-size: 12px !important; }
  .logo { max-width: 70px; }
  .logo img { max-height: 24px; }
  .topbar-icon-only { width: 30px; height: 30px; min-width: 30px; }
  .nav-hamburger { width: 30px; height: 30px; min-width: 30px; }
  .mobile-bottom-nav-label { font-size: 9px; }
  .product-card-body { padding: 8px 10px 10px; }
  .product-card-name { font-size: 12px; }
  .product-card-price { font-size: 13px; }
  .product-card-foot .btn { padding: 6px 10px; font-size: 11px; }
  .sec-head h2 { font-size: 1rem; }
  .auth-card { padding: 22px 16px 20px; }
  .hero-nav { width: 28px; height: 28px; font-size: 13px !important; }
  .stat-grid { grid-template-columns: 1fr; }
  .grid { gap: 8px; }
}

/* ── Mobile Top Black Spacer ─────────────────────────────────── */
@media (max-width: 768px) {
  body.store-page::before {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    background: #0a0a0a;
  }
}

/* ── Category Page ───────────────────────────────────────────── */
.cat-page-hero {
  position: relative;
  background: var(--brand);
  padding: 48px 20px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.cat-page-hero.has-banner {
  padding: 0;
  display: block;
}
.cat-page-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.cat-page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: blur(2px);
}
.cat-page-hero.has-banner .cat-page-hero-bg {
  opacity: 1;
  filter: none;
  transition: transform 6s ease;
}
.cat-page-hero.has-banner:hover .cat-page-hero-bg {
  transform: scale(1.04);
}
.cat-page-hero.has-banner::after {
  display: none;
}
.cat-page-hero.has-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.6) 100%);
  z-index: 0;
}
.cat-page-hero-content {
  position: relative;
  z-index: 1;
}
.cat-page-hero.has-banner .cat-page-hero-content {
  padding: 32px 20px;
}
.cat-page-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  letter-spacing: .02em;
}
.cat-page-hero p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  letter-spacing: .03em;
}

/* Subcategory card grid */
.cat-subcategory-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-h);
  z-index: 15;
  padding: 0 20px;
  position: sticky;
  position: -webkit-sticky;
}
.cat-subcategory-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 3;
}
.cat-scroll-left {
  left: -8px;
}
.cat-scroll-right {
  right: -8px;
}
.cat-scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cat-subcategory-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0;
}
.cat-subcategory-scroll::-webkit-scrollbar { display: none; }
.cat-sub-card {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--ease);
}
.cat-sub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.cat-sub-card.active {
  background: var(--brand);
  border-color: var(--brand);
}
.cat-sub-card.active .cat-sub-card-name {
  color: var(--accent);
}
.cat-sub-card-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-sub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-sub-card-icon {
  font-size: 28px;
  line-height: 1;
}
.cat-sub-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 110px;
}

/* Cat page body */
.cat-page-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.cat-products-section {
  min-height: 200px;
  position: relative;
}
.cat-products-section.is-loading {
  opacity: .5;
  pointer-events: none;
  transition: opacity .2s;
}
.cat-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
}

/* Suggested section */
.cat-suggested-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Rating stars on product cards */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.rating-stars {
  color: #f59e0b;
  font-size: 12.5px;
  font-weight: 700;
}
.rating-count {
  color: var(--text-3);
  font-size: 11.5px;
}

@media (max-width: 768px) {
  .cat-page-hero { padding: 32px 14px; }
  .cat-page-hero.has-banner { padding: 0; }
  .cat-subcategory-bar {
    top: var(--mobile-topbar-h);
    padding: 0 10px;
  }
  .cat-scroll-btn { display: none !important; }
  .cat-subcategory-scroll { gap: 10px; padding: 12px 0; }
  .cat-sub-card { width: 104px; padding: 10px 8px; border-radius: 12px; }
  .cat-sub-card-img { width: 72px; height: 72px; border-radius: 10px; }
  .cat-sub-card-icon { font-size: 26px; }
  .cat-sub-card-name { font-size: 12px; max-width: 94px; }
  .cat-page-body { padding: 16px 14px 88px; }
  .cat-suggested-section { margin-top: 32px; padding-top: 24px; }
}
@media (max-width: 480px) {
  .cat-page-hero { padding: 24px 10px; }
  .cat-page-hero.has-banner { padding: 0; }
  .cat-page-hero h1 { font-size: 1.3rem; }
  .cat-sub-card { width: 92px; padding: 8px 6px; }
  .cat-sub-card-img { width: 64px; height: 64px; }
  .cat-sub-card-icon { font-size: 24px; }
  .cat-sub-card-name { font-size: 11px; max-width: 82px; }
  .cat-page-body { padding: 12px 10px 88px; }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  COMPREHENSIVE MOBILE RESPONSIVENESS FIX                     ║
   ║  Targets: 768px, 480px, 360px, 320px                        ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── 1. Orders Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .orders-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: visible;
  }
  .orders-filter-chips .btn {
    font-size: 11px;
    padding: 6px 10px;
    flex-shrink: 0;
  }
  .order-action-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
  }
  .order-action-form select,
  .order-action-form input,
  .order-action-form button {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }
  .order-courier-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .order-courier-fields input {
    min-width: 0 !important;
    width: 100%;
  }
  .order-customer-box {
    max-width: 160px;
  }
  .order-customer-name,
  .order-customer-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
    display: block;
  }
  .order-items-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }
}

/* ── 2. Text Overflow Protection ────────────────────────────── */
@media (max-width: 768px) {
  .admin-content .table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-content .table td:nth-child(4) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
}

/* ── 7. Product Cards Mobile ────────────────────────────────── */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: 10px;
  }
  .product-card-img {
    border-radius: 10px 10px 0 0;
  }
  .product-card-img img {
    max-width: 100%;
    height: auto;
  }
  .product-card-body {
    padding: 10px 10px 12px;
  }
  .product-card-name {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .product-card-price {
    font-size: 14px;
  }
  .product-card-subprice {
    font-size: 11px;
  }
  .product-card-foot .btn {
    padding: 7px 12px;
    font-size: 11.5px;
  }
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-card-body {
    padding: 8px 8px 10px;
  }
  .product-card-name {
    font-size: 12px;
  }
  .product-card-price {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .product-card-body {
    padding: 6px 8px 8px;
  }
  .product-card-name {
    font-size: 11.5px;
  }
  .product-card-price {
    font-size: 12px;
  }
  .product-card-foot .btn {
    padding: 5px 8px;
    font-size: 10.5px;
  }
}

/* ── 8. User Order Cards Mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .order-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .order-card-head > div:last-child {
    width: 100%;
  }
  .order-card-head .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .order-thumb { width: 40px; height: 40px; border-radius: 6px; }
  .order-thumb-more { width: 40px; height: 40px; border-radius: 6px; font-size: 11px; }
  .order-item-img { width: 48px; height: 48px; border-radius: 6px; }
}

/* ── 9. Track Page Courier Grid ─────────────────────────────── */
@media (max-width: 480px) {
  .courier-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ── 10. Auth Pages Mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
  }
  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
  }
}

/* ── 11. Footer Mobile ──────────────────────────────────────── */
.mobile-footer-credit {
  display: none !important;
}
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 86px;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding-bottom: 80px;
  }
}

/* ── 12. Forms Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  STORE UI — PREMIUM SPACING & LAYOUT POLISH                 ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── S1. Product Page: Section Spacing ──────────────────────── */
.product-info .product-price-section { margin-bottom: 20px; }
.product-info .product-options { margin-bottom: 20px; }
.product-info .delivery-section { margin-bottom: 20px; }
.product-info .product-meta-section { margin-top: 28px; padding-top: 24px; }
.product-info .meta-block { margin-bottom: 20px; }
.product-info .meta-block:last-child { margin-bottom: 0; }
.product-info .share-wrap { margin-top: 20px; }

/* ── S2. Product Page: Buttons ──────────────────────────────── */
.product-actions {
  margin-top: 20px;
}
.btn-share, .btn-wishlist {
  min-height: 44px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .product-btn-row {
    flex-direction: column;
    gap: 10px;
  }
  .product-btn-row .btn-primary,
  .product-btn-row .btn-buy-now {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    border-radius: 12px;
  }
  .quantity-selector {
    gap: 10px;
    margin-bottom: 0;
  }
  .quantity-selector .qty-ctrl button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .quantity-selector .qty-ctrl input[type=number] {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px;
    line-height: 38px;
  }
  .product-qty-row {
    gap: 10px;
    margin-bottom: 14px;
  }
  .btn-icon-action {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
}

/* ── S3. Review Cards: Better Spacing & Readability ─────────── */
.review-card {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: 12px;
}
.review-head { margin-bottom: 10px; }
.review-text { line-height: 1.7; font-size: 14px; }
.review-author { font-size: 15px; }
.review-meta { margin-top: 3px; }
@media (max-width: 768px) {
  .review-card {
    padding: 16px 14px;
    margin-bottom: 12px;
  }
}

/* ── S4. Product Page: Quantity Controls ────────────────────── */
.quantity-selector {
  margin-bottom: 16px;
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── S5. Product Page: Coupon Pills ─────────────────────────── */
.product-coupons ul {
  gap: 8px;
}
.product-coupons li {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ── S6. Delivery Section ───────────────────────────────────── */
.delivery-section {
  padding: 16px 0;
}
.pincode-input {
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 14px;
}
.btn-check {
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
}

/* ── S7. Desktop: Content Centering ─────────────────────────── */
@media (min-width: 1025px) {
  .store-page .page-body {
    padding: 0 32px 64px;
  }
  .store-page .page-body > *:not(.section):not(.full-bleed):not(.hero):not(.flash-alert):not(.flash-toast):not(.breadcrumb) {
    padding-left: 24px;
    padding-right: 24px;
  }
  .store-page .page-body > .full-bleed,
  .store-page .page-body > .hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: 0;
    width: 100vw;
    max-width: 100vw;
  }
}

/* ── S8. Mobile: Enhanced Spacing ───────────────────────────── */
@media (max-width: 768px) {
  /* Product info spacing */
  .product-info .product-header {
    margin-bottom: 16px;
  }
  .product-info .product-header h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.3;
  }
  .product-price-main {
    font-size: 1.5rem;
  }
  /* Sections spacing */
  .section { padding-top: 24px; padding-bottom: 24px; }
  .sec-head { margin-bottom: 16px; }
  /* Category cards grid */
  .cat-scroll-mobile {
    gap: 10px;
  }
  /* Card spacing */
  .store-page .card {
    border-radius: 12px;
    overflow: hidden;
  }
  /* Checkout layout */
  .checkout-layout {
    gap: 16px;
  }
  /* Cart items */
  .cart-item {
    border-radius: 12px;
    margin-bottom: 12px;
  }
}

/* ── S9. Search Results Page Spacing ────────────────────────── */
.shop-layout {
  gap: 24px;
}
@media (max-width: 768px) {
  .shop-layout {
    gap: 16px;
  }
}

/* ── S10. Mobile Bottom Safe Area ───────────────────────────── */
@media (max-width: 768px) {
  .store-page .page-body {
    padding-bottom: 88px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .pdp-tabs-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── Store Page: Image Overflow Prevention ──────────────────── */
@media (max-width: 768px) {
  .store-page img { max-width: 100%; height: auto; }
  .offer-card img, .product-card-img img, .category-card-img img {
    max-width: 100%; height: auto; object-fit: cover;
  }
  .banner-img { max-width: 100vw; overflow: hidden; }
}

/* ── Store Page: Touch Targets ──────────────────────────────── */
@media (max-width: 768px) {
  .store-page .btn, .store-page button, .store-page a.btn {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .store-page .btn.xs, .store-page .btn.sm { min-height: 36px; }
  .store-page input, .store-page select, .store-page textarea { min-height: 44px; }
}

/* ── Store Page: 480px Breakpoint ───────────────────────────── */
@media (max-width: 480px) {
  .container, .container-sm, .container-md { padding-left: 12px; padding-right: 12px; }
  .sec-head h2 { font-size: 1.05rem; }
  .sec-head .overline { font-size: 10px; }
  .orders-filter-chips .btn { font-size: 10px; padding: 5px 8px; }
}

/* ── Store Page: 320px Ultra-Small ──────────────────────────── */
@media (max-width: 320px) {
  .container, .container-sm, .container-md { padding-left: 8px; padding-right: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .product-card-name { font-size: 11px; }
  .product-card-price { font-size: 11.5px; }
  .card-original-price { font-size: 10px; }
  .card-discount-badge { font-size: 9.5px; }
  .product-card-subprice { font-size: 10px; }
  .product-card-foot .btn { padding: 4px 6px; font-size: 10px; }
  .product-card-body { padding: 6px; }
  .product-card-badges .badge { font-size: 9px; padding: 2px 5px; }
  .topbar-inner { padding: 0 6px; gap: 2px; }
  .topbar-search input { font-size: 11px; }
  .logo img { max-height: 22px; }
}

/* ── Spec table mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .spec-table .spec-label {
    width: auto;
    display: block;
    padding-bottom: 2px;
  }
  .spec-table td {
    display: block;
    padding: 8px 10px;
  }
  .spec-table .spec-value {
    padding-top: 0;
  }
}

/* ── Global: Safe Overflow ──────────────────────────────────── */
.page-body, .card { overflow-wrap: break-word; word-wrap: break-word; }
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .page-body { overflow-x: hidden; }
}

/* ── Admin Search Autocomplete ─────────────────────────────── */
.admin-search-wrap { position: relative; }
.admin-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.admin-search-dropdown.is-open { display: block; }
.admin-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text, #333);
  border-bottom: 1px solid var(--border, #f0f0f0);
  text-decoration: none;
  gap: 8px;
}
.admin-search-item:last-child { border-bottom: none; }
.admin-search-item:hover, .admin-search-item.is-active {
  background: var(--panel, #f7f7f7);
}
.admin-search-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.admin-search-item-extra {
  font-size: 12px;
  color: var(--text-3, #888);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========== Price Deals Section ========== */
.price-deals-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.price-deal-card {
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.price-deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.price-deal-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
}
.price-deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.price-deal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.price-deal-label {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark, #a8844a), var(--accent, #c9a96e));
}
@media (min-width: 768px) {
  .price-deals-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .price-deals-scroll::-webkit-scrollbar { height: 4px; }
  .price-deals-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  .price-deal-card {
    flex-shrink: 0;
    width: 240px;
    scroll-snap-align: start;
  }
  .price-deal-label {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* ========== Admin Support Chat Mobile ========== */
@media (max-width: 768px) {
  .card > div[style*="grid-template-columns:350px"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
}

/* ========== PART 2: Desktop Banner Alignment ========== */
/* Hero is full-width, no breakout needed since page-body is 100% */

/* ========== PART 5 & 6: UI Cleanup & Responsive ========== */
/* Brand-consistent price/offer colors */
.price,
.offer-price,
.discount,
.product-card-price .current,
.price-current {
  color: var(--accent, #c9a96e);
}

/* General UI polish */
.card,
.product-card,
.category-card,
.offer-card,
.banner-card,
.price-deal-card {
  border-radius: 12px;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}
/* Hero slide images - full width, natural height */
.hero-slide img {
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  image-rendering: auto;
}

/* Mobile responsive cleanup */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding: 36px 0;
  }
  .banner-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .price-deals-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Desktop centered layout */
@media (min-width: 769px) {
  .page-body {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}
