/* ==========================================================================
   CartiGo Storefront — written from scratch for CartiGo
   No third-party CSS frameworks. Layout: CSS Grid + Flexbox.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand:        #FDB913;   /* CartiGo amber  */
  --brand-dark:   #E0A200;
  --brand-soft:   #FFF6E0;
  --action:       #12B76A;   /* add-to-cart    */
  --action-dark:  #0E9455;
  --danger:       #EF4444;

  --ink:          #0B1220;
  --ink-2:        #33415C;
  --muted:        #6B7A90;
  --line:         #E6EAF0;
  --surface:      #FFFFFF;
  --bg:           #F7F9FC;

  --radius-s: 10px;
  --radius:   16px;
  --radius-l: 24px;

  --shadow-s: 0 1px 2px rgba(11,18,32,.06);
  --shadow:   0 4px 16px rgba(11,18,32,.08);
  --shadow-l: 0 16px 40px rgba(11,18,32,.12);

  --container: 100%;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid rgba(253,185,19,.55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(20px, 3vw); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-lg { padding-block: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(253,185,19,.35); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b2740; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ==========================================================================
   Top announcement bar
   ========================================================================== */
.topbar {
  background: radial-gradient(140% 260% at 50% -120%, #21335f 0%, var(--ink) 55%); color: #C9D3E4; font-size: .82rem;
  position: relative;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, transparent 4%, rgba(253,185,19,.55) 50%, transparent 96%); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-offer { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.topbar-offer svg { color: var(--brand); flex-shrink: 0; }
.topbar strong { color: var(--brand); font-weight: 800; }
.topbar-links { display: flex; }
.topbar-links a { position: relative; padding: 2px 12px; }
.topbar-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: rgba(255,255,255,.18); }
.topbar-links a:hover { color: var(--brand); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60;
  box-shadow: 0 10px 34px rgba(11,18,32,.05);
}
.header-main { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.32rem; letter-spacing: -.5px; transition: transform .2s ease; }
.logo:hover { transform: translateY(-1px); }
.logo img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 5px 14px rgba(253,185,19,.28); }
.logo span em { font-style: normal; background: linear-gradient(120deg, var(--brand-dark), #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Search */
.search { flex: 1; max-width: 660px; position: relative; }
.search-box {
  display: flex; align-items: center; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px;
  box-shadow: 0 6px 20px rgba(11,18,32,.06);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(253,185,19,.14), 0 6px 20px rgba(11,18,32,.06); }
/* Custom category picker with thumbnails (replaces a native <select>). */
.search-cat { position: relative; margin-right: 10px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.search-cat-toggle {
  display: flex; align-items: center; gap: 8px; max-width: 195px; padding: 7px 13px 7px 8px;
  font-size: .85rem; font-weight: 700; color: var(--ink-2);
}
.search-cat:hover { border-color: var(--brand); background: var(--brand-soft); }
.search-cat-toggle:hover { color: var(--ink); }
.search-cat-thumb { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.search-cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-cat-chev { flex-shrink: 0; color: var(--muted); transition: transform .18s ease; }
.search-cat[aria-expanded="true"] .search-cat-chev, .search-cat-toggle[aria-expanded="true"] .search-cat-chev { transform: rotate(180deg); }
.search-cat-menu {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 90; width: 264px;
  max-height: min(60vh, 380px); overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 8px;
}
.search-cat-menu[hidden] { display: none; }
.search-cat-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: var(--radius-s);
  font-size: .9rem; font-weight: 600; color: var(--ink); text-align: left;
}
.search-cat-item:hover { background: var(--bg); }
.search-cat-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.search-cat-item img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.search-cat-item .search-cat-ph, .search-cat-item .search-cat-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .9rem;
}
.search-input { flex: 1; border: 0; background: transparent; outline: none; font-size: .95rem; padding-left: 6px; }
.search-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD34E, var(--brand)); color: var(--ink); flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(253,185,19,.4); transition: transform .18s ease, box-shadow .18s ease;
}
.search-btn:hover { transform: scale(1.06); box-shadow: 0 7px 18px rgba(253,185,19,.5); }

/* Search suggestions */
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 10px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 8px; display: none; max-height: 380px; overflow-y: auto; z-index: 70;
}
.suggest.open { display: block; }
.suggest-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-s); }
.suggest-item:hover, .suggest-item.active { background: var(--bg); }
.suggest-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.suggest-item .s-name { font-weight: 600; font-size: .9rem; }
.suggest-item .s-price { color: var(--action-dark); font-weight: 700; font-size: .85rem; }
.suggest-empty { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 45px; height: 45px;
  border-radius: 50%; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(253,185,19,.22); }
/* Header account / wishlist / cart: crisp and clearly visible, not muted. */
.header-actions .icon-btn svg { stroke-width: 2; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: linear-gradient(135deg, #ff5a44, var(--danger)); color: #fff; border-radius: 999px; font-size: .68rem;
  font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(220,38,38,.35);
}
.header-burger { display: none; }

/* Account dropdown */
.acct { position: relative; }
[data-acct-toggle][aria-expanded="true"] { background: var(--bg); color: var(--brand-dark); }
.acct-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 95; width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); padding: 8px;
}
/* A little pointer that ties the menu to the profile icon. */
.acct-menu::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; }
.acct-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex-shrink: 0; }
.acct-id { min-width: 0; }
.acct-id strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-id small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-head-guest { padding: 10px 10px 12px; }
.acct-head-guest strong { display: block; font-size: .98rem; letter-spacing: -.2px; }
.acct-head-guest small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 4px; }
.acct-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.acct-menu a, .acct-signout {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: var(--radius-s);
  font-size: .88rem; font-weight: 600; color: var(--ink); text-align: left;
}
.acct-menu a:hover, .acct-signout:hover { background: var(--bg); color: var(--brand-dark); }
.acct-menu a svg, .acct-signout svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.acct-menu a:hover svg { color: var(--brand-dark); }
.acct-signout-form { margin: 0; }
.acct-signout { color: var(--danger); }
.acct-signout svg { color: var(--danger); }
.acct-signout:hover { background: rgba(239, 68, 68, .08); color: var(--danger); }
/* Guest CTAs — full-width buttons, override the flex-row link layout above. */
.acct-menu a.acct-cta { display: block; text-align: center; background: var(--brand); color: var(--ink); font-weight: 800; padding: 11px; border-radius: 999px; margin: 2px; font-size: .9rem; }
.acct-menu a.acct-cta:hover { background: var(--brand-dark); }
.acct-menu a.acct-cta-ghost { display: block; text-align: center; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; padding: 10px; border-radius: 999px; margin: 8px 2px 2px; font-size: .88rem; }
.acct-menu a.acct-cta-ghost:hover { border-color: var(--ink); background: transparent; }

/* Notification bell dropdown */
.notif { position: relative; }
[data-notif-toggle][aria-expanded="true"] { background: var(--bg); color: var(--brand-dark); }
/* Mirrors the account menu: centered under the bell, centered notch, 8px pad,
   rounded inset rows. */
/* Same card styling as the account menu, but anchored to open leftward from the
   bell (which sits near the right edge) so a centered panel can't clip. The
   notch still points up at the bell. */
.notif-menu {
  position: absolute; top: calc(100% + 10px); right: -6px; z-index: 96;
  width: 340px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); padding: 8px;
}
.notif-menu::before {
  content: ""; position: absolute; top: -7px; right: 20px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.notif-menu[hidden] { display: none; }
.notif-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 8px 10px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.notif-menu-head strong { font-size: .96rem; letter-spacing: -.2px; }
.notif-readall {
  font-size: .76rem; font-weight: 700; color: var(--brand-dark);
  padding: 5px 9px; border-radius: 999px; align-items: center; transition: background .15s ease;
}
.notif-readall:hover { background: var(--brand-soft); }

.notif-list { overflow-y: auto; overscroll-behavior: contain; max-height: 356px; padding-top: 4px; }
.notif-item {
  position: relative; display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 10px; margin-bottom: 2px; cursor: pointer; border-radius: var(--radius-s);
  transition: background .15s ease, opacity .2s ease, transform .2s ease;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--brand-soft); }
.notif-item.unread:hover { background: #FFEFC2; }
/* Unread dot at top-right; hidden on hover so the dismiss × takes its place. */
.notif-item.unread::after {
  content: ""; position: absolute; right: 12px; top: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-dark);
}
.notif-item.unread:hover::after { display: none; }
.notif-item.leaving { opacity: 0; transform: translateX(14px); }

.notif-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink-2);
}
.notif-ico svg { width: 19px; height: 19px; }
.notif-ico-order, .notif-ico-shipping, .notif-ico-delivery, .notif-ico-success { background: #E7F6EC; color: #1B9E4B; }
.notif-ico-offer, .notif-ico-promo, .notif-ico-sale, .notif-ico-discount, .notif-ico-warning { background: var(--brand-soft); color: var(--brand-dark); }
.notif-ico-wallet, .notif-ico-payment, .notif-ico-refund { background: #E8EEFB; color: #2B5BD7; }
.notif-ico-error, .notif-ico-cancelled, .notif-ico-cancel { background: #FDE8E8; color: var(--danger); }

.notif-item-main { min-width: 0; flex: 1; padding-right: 6px; }
.notif-item-main strong { display: block; font-size: .86rem; font-weight: 700; letter-spacing: -.1px; }
.notif-item-main p {
  margin: 2px 0 0; font-size: .81rem; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-item-main small { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); }

.notif-dismiss {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  color: var(--muted); opacity: 0; transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.notif-dismiss svg { width: 13px; height: 13px; }
.notif-item:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { background: rgba(239,68,68,.1); color: var(--danger); }

.notif-empty { padding: 30px 20px; text-align: center; color: var(--muted); }
.notif-empty svg { color: var(--line); margin-bottom: 10px; }
.notif-empty strong { display: block; color: var(--ink); font-size: .92rem; }
.notif-empty span { display: block; font-size: .81rem; margin-top: 4px; }

.notif-seeall {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
  margin-top: 4px; padding: 10px; border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--brand-dark);
  border-radius: var(--radius-s); transition: background .15s ease;
}
.notif-seeall:hover { background: var(--bg); }

/* On narrow screens keep it centered but nearly full-width. */
@media (max-width: 480px) {
  .notif-menu { width: calc(100vw - 20px); }
  .notif-dismiss { opacity: 1; }
  .notif-item.unread::after { display: none; }
}

/* ==========================================================================
   Category navigation bar
   ========================================================================== */
.catnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.catnav .container { display: flex; align-items: center; gap: 20px; min-height: 58px; }

.cat-trigger {
  display: flex; align-items: center; gap: 10px; color: #fff;
  background: linear-gradient(125deg, #0b1220 0%, #1e2c4e 100%);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  white-space: nowrap; flex-shrink: 0; box-shadow: 0 6px 16px rgba(11,18,32,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-trigger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,18,32,.3); }

/* Category strip: takes the remaining width and scrolls horizontally when the
   categories don't all fit, so any number renders without breaking the row.
   The right-edge fade hints that there's more to scroll (and falls over empty
   space when everything fits, so it stays invisible then). */
.catnav-links {
  display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent);
}
.catnav-links::-webkit-scrollbar { display: none; }
.catnav-links a { padding: 7px 13px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; transition: background .16s ease, color .16s ease; }
.catnav-links a:hover { color: var(--ink); background: var(--bg); }
.catnav-links a.active { color: var(--ink); font-weight: 700; background: transparent; border-bottom: 3px solid var(--brand); border-radius: 0; }

/* Reels & Brands are features, not categories: brand-tinted chips, pinned so
   they stay visible while the categories scroll. */
.catnav-features { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.catnav-feature {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(253,185,19,.2), rgba(255,138,61,.14));
  border: 1px solid rgba(253,185,19,.4);
  color: var(--brand-dark); font-weight: 700; white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.catnav-feature:hover { background: var(--brand); color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(253,185,19,.3); }
.catnav-feature svg { flex-shrink: 0; }
.catnav-divider { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; margin-left: 4px; }
.catnav-note { margin-left: auto; font-size: .85rem; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; padding-left: 16px; }
.catnav-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); flex-shrink: 0; animation: notePulse 2.2s ease-in-out infinite; }
.catnav-note svg { color: var(--brand-dark); }
@keyframes notePulse { 0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.22); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); } }

/* Mega dropdown: two-panel flyout (categories | subcategories) */
.mega {
  position: absolute; z-index: 80; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 10px;
  width: min(720px, 94vw); max-height: 74vh; display: none; gap: 6px;
}
.mega.open { display: flex; }

.mega-cats { flex: 0 0 236px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: calc(74vh - 20px); border-right: 1px solid var(--line); padding-right: 8px; }
.mega-cat { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); font-size: .92rem; font-weight: 600; color: var(--ink); }
.mega-cat img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.mega-cat .mega-chev { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.mega-cat:hover, .mega-cat.active { background: var(--brand-soft); color: var(--brand-dark); }
.mega-cat.active .mega-chev { color: var(--brand-dark); }

.mega-subs { flex: 1 1 auto; min-width: 0; position: relative; overflow-y: auto; max-height: calc(74vh - 20px); padding: 6px 6px 6px 14px; }
.mega-sub-panel { display: none; }
.mega-sub-panel.active { display: block; }
.mega-sub-head { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; color: var(--brand-dark); padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); margin-bottom: 12px; }
.mega-sub-head:hover { background: var(--brand); color: var(--ink); }
.mega-sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.mega-sub-grid a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-s); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.mega-sub-grid a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.mega-sub-grid img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: var(--bg); flex-shrink: 0; }
.mega-sub-ph { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.mega-sub-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-sub-empty { color: var(--muted); font-size: .88rem; padding: 4px 10px; }

@media (max-width: 640px) {
  .mega { width: min(360px, 94vw); }
  .mega-subs { display: none; }               /* mobile: category list only */
  .mega-cats { flex: 1 1 auto; border-right: 0; padding-right: 0; max-height: 70vh; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 28px; }
.hero-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; }

/* Banner creatives are supplied by the admin at 2:1 and already carry their own
   headline art, so the slide shows the image alone — no duplicated overlay text.
   The text block below is only rendered as a fallback when a banner has no image. */
.slider { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); aspect-ratio: 2 / 1; }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; position: relative; display: grid; }
.slide img { width: 100%; height: 100%; object-fit: cover; grid-area: 1/1; }
.slide-body {
  grid-area: 1/1; position: relative; display: flex; flex-direction: column;
  justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 48px); max-width: 620px;
  color: #fff;
}
.slide-body.on-image { background: linear-gradient(90deg, rgba(11,18,32,.86) 0%, rgba(11,18,32,.55) 55%, transparent 100%); }
.slide-badge {
  align-self: flex-start; background: var(--brand); color: var(--ink);
  padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .6px;
}
.slide-body h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -1.4px; font-weight: 800; }
.slide-body p { color: rgba(255,255,255,.82); font-size: 1.02rem; max-width: 460px; }

.slider-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots { position: absolute; bottom: 20px; left: 48px; display: flex; gap: 8px; z-index: 5; }
.slider-dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.45); transition: all .25s ease; }
.slider-dots button.active { width: 28px; background: var(--brand); }

/* Hero side promos */
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.promo-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 2 / 1;
  display: grid; background: var(--ink); isolation: isolate;
}
.promo-card img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.promo-card:hover img { transform: scale(1.06); }
.promo-card-body {
  grid-area: 1/1; position: relative; padding: 26px; color: #fff; display: flex;
  flex-direction: column; justify-content: center; gap: 8px;
}
.promo-card-body.on-image { background: linear-gradient(90deg, rgba(11,18,32,.82), rgba(11,18,32,.25)); }
.promo-card-body h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.promo-card-body span { font-size: .84rem; color: var(--brand); font-weight: 700; }

/* ==========================================================================
   Service strip
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.service {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); flex-shrink: 0; }
.service h4 { font-size: .95rem; font-weight: 700; }
.service p { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Section heading
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.9px; }
.section-head p { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.section-link { font-weight: 700; font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { color: var(--brand-dark); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  color: var(--ink-2); border: 1.5px solid var(--line); background: var(--surface);
  transition: all .18s ease;
}
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Category rail
   ========================================================================== */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(186px, 1fr); gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; transition: border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cat-card-main { display: block; }
.cat-card img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 10px; }
.cat-card .ph { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-dark); font-weight: 800; font-size: 1.15rem; }
.cat-card h4 { font-size: .9rem; font-weight: 700; line-height: 1.3; }
/* Subcategory quick-links inside each category card — pill chips that wrap. */
.cat-card-subs { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Departments with no subcategories: a centred "Shop all" CTA fills the card. */
.cat-card-subs--cta { align-content: center; align-items: center; }
.sub-shop-all {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
  background: var(--brand); color: var(--ink); font-weight: 800; font-size: .85rem;
  box-shadow: 0 6px 16px rgba(253, 185, 19, .32);
}
.sub-shop-all:hover { background: var(--brand-dark); }
.sub-chip {
  max-width: 100%; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid transparent;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sub-chip:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.sub-chip.sub-more { background: transparent; border-color: var(--brand); color: var(--brand-dark); font-weight: 800; }
.sub-chip.sub-more:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }

/* "View all" + prev/next live together in the header (they used to overlap). */
.rail-head-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); display: grid; place-items: center; color: var(--ink-2);
}
.rail-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Product card
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.reels-grid { grid-template-columns: repeat(6, 1fr); }

/* ==========================================================================
   Home product sections — three cohesive designs
   ========================================================================== */
/* Category spotlight: a real category photo with a themed scrim + dynamic copy. */
.spotlight {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; box-shadow: var(--shadow-l); background: var(--bg); isolation: isolate;
}
.spotlight img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.spotlight:hover img { transform: scale(1.06); }
.spotlight-scrim { position: absolute; inset: 0; z-index: 1; }
.spotlight--green .spotlight-scrim  { background: linear-gradient(to top, rgba(9,74,40,.94) 6%, rgba(9,74,40,.45) 42%, rgba(9,74,40,.08) 78%); }
.spotlight--indigo .spotlight-scrim { background: linear-gradient(to top, rgba(37,30,74,.94) 6%, rgba(37,30,74,.45) 42%, rgba(37,30,74,.08) 78%); }
.spotlight-body {
  position: absolute; left: 24px; right: 24px; bottom: 26px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; color: #fff;
}
.spotlight-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; opacity: .9; }
.spotlight-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.6px; line-height: 1.08; }
.spotlight-desc { font-size: .95rem; line-height: 1.5; opacity: .8; font-weight: 400; margin: 4px 0 6px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-tagline { font-size: .9rem; opacity: .85; margin-bottom: 8px; }
.spotlight-cta {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: .88rem; transition: gap .15s ease;
}
.spotlight:hover .spotlight-cta { gap: 11px; }
.spotlight--green .spotlight-cta  { color: #0b7a38; }
.spotlight--indigo .spotlight-cta { color: #2a2350; }

/* Section 1 — Featured: spotlight left + grid right. */
.feat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.feat-layout--nobanner { grid-template-columns: 1fr; }
.feat-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Section 2 — Popular: soft neutral band, rank-numbered horizontal rail. */
.home-popular { background: var(--bg); padding-block: 50px; }
.pop-flame { font-size: .9em; }
/* Extra top/left room + a matching negative margin so the rank badge (which sits
   at each card's outer top-left corner) is never clipped by the scroll box, while
   the rail still lines up with the section heading. */
.home-popular .rail.pop-rail { grid-auto-columns: minmax(210px, 1fr); padding: 16px 6px 10px 14px; margin-left: -14px; }
.pop-item { position: relative; }
.pop-item > .product { height: 100%; }
.pop-rank {
  position: absolute; top: -9px; left: -9px; z-index: 3; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 800; border: 3px solid var(--bg); box-shadow: 0 4px 10px rgba(11,18,32,.2);
}
.pop-item:nth-child(1) .pop-rank { background: var(--brand); color: var(--ink); }
.pop-item:nth-child(2) .pop-rank { background: #E0A200; color: #fff; }
.pop-item:nth-child(3) .pop-rank { background: #C77C1E; color: #fff; }

/* Section 3 — New Arrivals: grid left + spotlight right. */
.new-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: stretch; }
.new-layout--nobanner { grid-template-columns: 1fr; }
.new-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

@media (max-width: 1150px) {
  .feat-layout { grid-template-columns: 280px 1fr; }
  .new-layout  { grid-template-columns: 1fr 260px; }
}
@media (max-width: 860px) {
  .feat-layout, .new-layout { grid-template-columns: 1fr; }
  /* Spotlight becomes a wide banner above/below the grid on small screens. */
  .spotlight { min-height: 200px; }
  .new-layout .spotlight { order: -1; }
}

.product {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.product:hover { box-shadow: var(--shadow-l); transform: translateY(-5px); border-color: transparent; }

.product-media { position: relative; aspect-ratio: 1/1; background: var(--bg); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-media img { transform: scale(1.07); }

.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-new  { background: var(--action); color: #fff; }
.badge-hot  { background: var(--ink); color: #fff; }
.badge-low  { background: var(--brand); color: var(--ink); }

.wish {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center;
  color: var(--ink-2); box-shadow: var(--shadow-s); opacity: 0; translate: 0 -6px;
  transition: all .22s ease;
}
.product:hover .wish { opacity: 1; translate: 0 0; }
.wish:hover, .wish.on { color: var(--danger); }
.wish.on svg { fill: currentColor; }

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: .95rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name:hover { color: var(--brand-dark); }

.rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--brand); }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: #D9DFE8; }

/* Reserved height keeps the Add buttons on one baseline across a row, whether or
   not a card carries a struck-through compare-at price. */
/* Wraps rather than squeezing: prices run up to six figures, and a fixed row
   clipped the amount behind the add/stepper control. */
/* Price on its own line, then a full-width control below — the Add button /
   stepper span the card so no space is wasted and the tap target is bigger. */
.product-foot {
  margin-top: auto; display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; padding-top: 10px;
}
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.price .now, .price .was { white-space: nowrap; }
.price .now { font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.price .was { font-size: .84rem; color: var(--muted); text-decoration: line-through; }

.add-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 800; font-size: .82rem; padding: 9px 14px;
  border-radius: 999px; transition: all .2s ease; white-space: nowrap;
}
.add-btn:hover { background: var(--action); color: #fff; }
.add-btn.added { background: var(--action); color: #fff; }
.product.out .add-btn { background: var(--bg); color: var(--muted); pointer-events: none; }
/* Variant products link to the product page to pick an option; keep the same
   footprint as the card "Add" so the row layout doesn't shift. */
.add-btn-options { width: 86px; height: 38px; justify-content: center; box-sizing: border-box; padding: 0 8px; flex-shrink: 0; text-decoration: none; }
.add-btn-options.is-disabled { background: var(--bg); color: var(--muted); pointer-events: none; }

/* Card cart control: "Add" swaps to a stepper once the item is in the cart.
   Both states are full-width so swapping never nudges the card layout, and the
   stepper stays in the brand palette instead of jumping to green. */
.cart-control:not(.cart-control-lg) { width: 100%; }
.cart-control > .add-btn,
.cart-control > .qty-card {
  width: 100%; height: 42px; box-sizing: border-box;   /* identical full-width footprint */
}
.cart-control > .add-btn { justify-content: center; padding: 0 10px; }
/* NOTE: the base `.qty` rules are declared later in this file, so at equal
   specificity they would win. Every override here is scoped to .cart-control
   so the card stepper actually gets these values. */
.cart-control .qty-card {
  margin-top: 0; border: 0; background: var(--brand-soft); color: var(--brand-dark);
  justify-content: space-between; padding: 4px 18px; gap: 2px;
}
.cart-control .qty-card button {
  width: 26px; height: 26px; color: var(--brand-dark);
  font-size: 1.1rem; line-height: 1;
}
.cart-control .qty-card button:hover { background: rgba(224, 162, 0, .22); color: var(--brand-dark); }
.cart-control .qty-card span { color: var(--brand-dark); font-weight: 800; font-size: .9rem; min-width: 18px; }

/* Shown while the signed-in cart state loads, so the Add button never flashes
   before swapping to a stepper. Same footprint as the control it replaces. */
.cart-skel {
  display: block; width: 100%; height: 42px; border-radius: 999px;
  background: linear-gradient(100deg, var(--bg) 30%, #e9edf3 50%, var(--bg) 70%);
  background-size: 220% 100%;
  animation: cartSkel 1.15s ease-in-out infinite;
}
.cart-skel-lg { height: 54px; }
@keyframes cartSkel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Variant in cart: the option dropdown fills the left (using the freed space),
   the compact stepper sits on the right — one full-width row. */
.cart-vwrap { display: flex; align-items: center; gap: 8px; width: 100%; }
.cart-vtag {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
  font-size: .82rem; font-weight: 700;
}
.cart-vtag-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-vtag svg { flex-shrink: 0; opacity: .55; }
.cart-vtag:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.cart-vwrap .qty-card { flex-shrink: 0; width: auto; height: 42px; padding: 4px 8px; gap: 0; }
.cart-vwrap .qty-card button { width: 24px; height: 24px; }
.cart-vwrap .qty-card span { min-width: 16px; }

/* ==========================================================================
   Quick-view / variant-picker modal
   ========================================================================== */
.qv-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(11, 18, 32, .55); }
.qv-backdrop[hidden] { display: none; }
.qv {
  position: fixed; z-index: 121; top: 50%; left: 50%; width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow: hidden; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-l);
  /* Only the scale is animated — the modal stays fully visible even if the
     entrance transition is skipped, so it can never get stuck invisible. */
  transform: translate(-50%, -50%) scale(.96); transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.qv[hidden] { display: none; }
.qv.open { transform: translate(-50%, -50%) scale(1); }
.qv-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: var(--shadow);
}
.qv-close:hover { background: var(--ink); color: #fff; }
.qv-body { max-height: calc(100vh - 48px); overflow-y: auto; }

.qv-grid { display: grid; grid-template-columns: 300px 1fr; }
.qv-media { background: var(--bg); display: grid; place-items: center; padding: 24px; }
.qv-media img { width: 100%; max-height: 340px; object-fit: contain; }
.qv-info { padding: 30px 28px 26px; display: flex; flex-direction: column; }
.qv-cat { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.qv-name { font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin: 6px 0; letter-spacing: -.4px; }
.qv-rating { font-size: .84rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.qv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.qv-now { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.qv-was { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.qv-save { background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.qv-stock { font-size: .84rem; font-weight: 700; margin: 6px 0 14px; display: flex; align-items: center; gap: 7px; }
.qv-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.qv-stock.ok { color: #16A34A; } .qv-stock.low { color: #B45309; } .qv-stock.out { color: var(--danger); }

.qv-variant { margin-bottom: 14px; }
.qv-variant-label { display: block; font-size: .78rem; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.qv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-opt { padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.qv-opt:hover { border-color: var(--brand); color: var(--ink); }
.qv-opt.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Action row mirrors the product page: full-width "Add to cart" until the
   variant is in the cart, then a full-width live stepper with the count. */
.qv-actions { margin-top: auto; padding-top: 14px; max-width: 340px; }
.qv-add { width: 100%; min-height: 46px; padding: 0 20px; font-size: .92rem; }
.qv-add:disabled { opacity: .5; pointer-events: none; }
.qv-instepper { display: flex; flex-direction: column; gap: 6px; }
.qv-incart { font-size: .76rem; font-weight: 800; color: var(--brand-dark); }
/* Scoped under .qv so these beat the later base `.qty button` rules. */
.qv .qv-cartstep {
  width: 100%; min-height: 46px; margin: 0; border: 0; border-radius: 999px;
  background: var(--brand-soft); justify-content: space-between; padding: 0 6px; gap: 0;
}
.qv .qv-cartstep button {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand-dark);
  display: grid; place-items: center; box-shadow: 0 2px 5px rgba(11, 18, 32, .1);
}
.qv .qv-cartstep button:hover { background: var(--brand); color: var(--ink); }
.qv .qv-cartstep button svg { width: 15px; height: 15px; }
.qv .qv-cartstep span { font-size: 1.02rem; font-weight: 800; color: var(--brand-dark); min-width: 32px; text-align: center; }
.qv-details { margin-top: 14px; font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.qv-details:hover { color: var(--brand-dark); }

.qv-loading { display: grid; place-items: center; min-height: 320px; }
.qv-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: qvSpin .7s linear infinite; }
@keyframes qvSpin { to { transform: rotate(360deg); } }
.qv-err { padding: 60px 30px; text-align: center; color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .qv { top: auto; bottom: 0; left: 0; transform: translateY(14px); width: 100%; max-height: 92vh;
        border-radius: 22px 22px 0 0; }
  .qv.open { transform: translateY(0); }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { padding: 26px; }
  .qv-media img { max-height: 200px; }
  .qv-info { padding: 22px 20px 24px; }
}

.stock-note { font-size: .75rem; font-weight: 700; }
.stock-note.warning { color: #B45309; }
.stock-note.danger  { color: var(--danger); }

/* ==========================================================================
   Deal / CTA banners
   ========================================================================== */
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deal {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 2 / 1;
  display: grid; background: var(--ink);
}
.deal img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.deal:hover img { transform: scale(1.05); }
.deal-body {
  grid-area: 1/1; position: relative; padding: 28px; color: #fff; display: flex;
  flex-direction: column; justify-content: center; gap: 10px;
}
.deal-body.on-image { background: linear-gradient(160deg, rgba(11,18,32,.8), rgba(11,18,32,.3)); }
.deal-body h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; max-width: 15ch; }
.deal-body .tag { font-size: .78rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .8px; }

/* Vertical / sidebar banners — a row of portrait (3:4) offer tiles. */
.vbanner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vbanner {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3 / 4;
  display: grid; background: var(--ink); box-shadow: var(--shadow-s);
  transition: transform .35s ease, box-shadow .35s ease;
}
.vbanner:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.vbanner img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vbanner:hover img { transform: scale(1.04); }
.vbanner-body {
  grid-area: 1/1; position: relative; padding: 26px; color: #fff; display: flex;
  flex-direction: column; justify-content: flex-end; gap: 8px;
  background: linear-gradient(180deg, rgba(11,18,32,.15), rgba(11,18,32,.75));
}
.vbanner-body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.vbanner-body .tag { font-size: .78rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .8px; }

/* Delivery banner */
.delivery-banner { position: relative; overflow: hidden; border-radius: var(--radius-l); display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 24px; padding: 48px 56px; color: #fff; background: linear-gradient(120deg, #1c2a5e 0%, #2b3f8f 52%, #3f57cc 100%); box-shadow: var(--shadow-l); }
.delivery-glow { position: absolute; right: -70px; top: -90px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(253,185,19,.4), transparent 70%); pointer-events: none; }
.delivery-copy { position: relative; z-index: 2; }
.delivery-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .4px; color: #cfe0ff; margin-bottom: 14px; }
.delivery-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.04; margin-bottom: 12px; }
.delivery-banner h2 span { color: var(--brand); }
.delivery-banner p { color: rgba(255,255,255,.82); font-size: 1.02rem; max-width: 420px; margin-bottom: 26px; }
.delivery-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--brand); color: var(--ink); font-weight: 800; padding: 13px 26px; border-radius: 999px; box-shadow: 0 12px 30px rgba(253,185,19,.35); transition: transform .2s ease; }
.delivery-cta:hover { transform: translateY(-2px); }
.delivery-feats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.delivery-feats span { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); }
.dfeat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.delivery-art { position: relative; z-index: 2; }
.delivery-art svg { display: block; max-width: 100%; height: auto; }

/* App download */
.appdl { position: relative; overflow: hidden; border-radius: var(--radius-l); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 52px 56px; color: #fff; background: linear-gradient(135deg, #0b1220 0%, #172142 100%); box-shadow: var(--shadow-l); }
.appdl-copy { position: relative; z-index: 2; }
.appdl-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand); background: rgba(253,185,19,.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.appdl h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.03; margin-bottom: 12px; }
.appdl h2 span { color: var(--brand); }
.appdl p { color: rgba(255,255,255,.72); font-size: 1.02rem; max-width: 430px; margin-bottom: 26px; }
.appdl-stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; background: #fff; color: var(--ink); padding: 11px 20px; border-radius: 14px; transition: transform .2s ease; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.12; font-weight: 800; font-size: 1.08rem; }
.store-btn small { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .68; }
.appdl-trust { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.appdl-trust span { font-size: .85rem; color: rgba(255,255,255,.7); }
.appdl-trust strong { color: #fff; font-weight: 800; font-size: 1.02rem; margin-right: 3px; }
.appdl-trust i { width: 1px; height: 22px; background: rgba(255,255,255,.16); display: inline-block; }
.appdl-art { position: relative; z-index: 2; height: 390px; }
.appdl-blob { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(253,185,19,.22), transparent 68%); }
.appdl-phone { position: absolute; border-radius: 30px; overflow: hidden; border: 5px solid #0b1220; background: #0b1220; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.appdl-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.appdl-phone--front { width: 208px; height: 438px; right: 30%; top: 50%; transform: translateY(-50%) rotate(-4deg); z-index: 3; }
.appdl-phone--back { width: 188px; height: 396px; right: 8%; top: 48%; transform: translateY(-50%) rotate(6deg); z-index: 2; opacity: .96; }

/* ==========================================================================
   Brands
   ========================================================================== */
.brand-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.brand-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; place-items: center; min-height: 92px; transition: all .2s ease;
}
.brand-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.brand-item img { max-height: 46px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: all .25s ease; }
.brand-item:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, #17223B 58%, #1e2b4c 100%);
  border-radius: var(--radius-l); padding: 48px 52px; display: grid;
  grid-template-columns: 1.55fr .9fr; gap: 44px; align-items: center; color: #fff;
}
.nl-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.nl-orb-a { width: 300px; height: 300px; right: 26%; top: -150px; background: radial-gradient(circle, rgba(253,185,19,.3), transparent 70%); }
.nl-orb-b { width: 280px; height: 280px; left: -90px; bottom: -140px; background: radial-gradient(circle, rgba(59,86,201,.4), transparent 70%); }
.nl-content { position: relative; z-index: 2; }
.nl-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); background: rgba(253,185,19,.14); border: 1px solid rgba(253,185,19,.25); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.newsletter h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.newsletter p { color: rgba(255,255,255,.68); margin-top: 10px; max-width: 46ch; }
.news-form-wrap { margin-top: 24px; max-width: 520px; }
.news-form { display: flex; align-items: center; gap: 8px; background: #fff; padding: 7px 7px 7px 16px; border-radius: 999px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.news-ic { display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.news-form input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px 6px; font-size: .95rem; background: none; color: var(--ink); }
.news-form .btn { flex-shrink: 0; padding: 12px 24px; gap: 8px; }
.news-msg { font-size: .86rem; margin-top: 13px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.3; }
.news-msg:empty { display: none; }
.news-msg svg { flex-shrink: 0; }
.news-msg--ok { color: #34d399; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.3); padding: 9px 16px; border-radius: 14px; }
.news-msg--err { color: #f87171; background: rgba(248,113,113,.13); border: 1px solid rgba(248,113,113,.32); padding: 9px 16px; border-radius: 14px; }
.nl-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.nl-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.6); }
.nl-trust svg { color: #34d399; }

/* Coupon ticket */
.nl-coupon { position: relative; z-index: 2; text-align: center; color: var(--ink); background: linear-gradient(150deg, #FFD34E 0%, var(--brand) 55%, #ff9a2e 100%); border-radius: 20px; padding: 28px; box-shadow: 0 22px 48px rgba(253,185,19,.3); }
.nl-coupon::before, .nl-coupon::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #1b2743; top: 50%; transform: translateY(-50%); }
.nl-coupon::before { left: -13px; }
.nl-coupon::after { right: -13px; }
.nl-coupon-top { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(11,18,32,.72); margin-bottom: 6px; }
.nl-coupon-amt { display: flex; align-items: flex-start; justify-content: center; font-size: 4.4rem; font-weight: 900; line-height: 1; letter-spacing: -2px; color: var(--ink); }
.nl-coupon-amt sup { font-size: 1.7rem; font-weight: 800; margin-top: 8px; }
.nl-coupon-amt span { font-size: 1.35rem; font-weight: 900; align-self: center; margin-left: 6px; letter-spacing: 0; }
.nl-coupon-sub { display: block; font-size: .95rem; font-weight: 600; color: rgba(11,18,32,.78); margin-top: 4px; }
.nl-coupon-code { margin-top: 14px; padding-top: 13px; border-top: 2px dashed rgba(11,18,32,.28); font-size: .82rem; font-weight: 600; color: rgba(11,18,32,.72); }
.nl-coupon-code strong { font-weight: 900; letter-spacing: .5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { color: rgba(255,255,255,.68); background: radial-gradient(120% 120% at 15% 0%, #172142 0%, #0b1220 60%); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), #ff8a3d, var(--brand)); }

/* Feature band */
.footer-feats { border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-feats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.ffeat { display: flex; align-items: center; gap: 13px; }
.ffeat-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--brand); background: rgba(253,185,19,.12); border: 1px solid rgba(253,185,19,.2); }
.ffeat strong { display: block; color: #fff; font-size: .95rem; font-weight: 700; }
.ffeat span { font-size: .8rem; color: rgba(255,255,255,.55); }

/* Main columns */
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.35fr; gap: 40px; padding: 52px 0 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: 16px; }
.footer-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.footer-logo em { color: var(--brand); font-style: normal; }
.footer-about p { max-width: 38ch; font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin: 20px 0; }
.footer-about .footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.8); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); margin: 0; padding: 0; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.footer-about .footer-social a svg { width: 18px; height: 18px; }
.footer-about .footer-social a:hover { color: var(--ink); background: var(--brand); border-color: var(--brand); transform: translateY(-3px); padding-left: 0; }
.store-badges { display: flex; gap: 10px; flex-wrap: nowrap; }
.footer-about .store-badge-mini { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 11px; padding: 7px 13px; margin: 0; transition: transform .2s ease; white-space: nowrap; }
.footer-about .store-badge-mini:hover { transform: translateY(-2px); padding-left: 13px; color: var(--ink); }
.footer-about .store-badge-mini small { display: block; font-size: .53rem; text-transform: uppercase; letter-spacing: .4px; opacity: .7; font-weight: 700; color: var(--ink-2); }
.footer-about .store-badge-mini strong { display: block; font-size: .84rem; color: var(--ink); }
.footer-col h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; color: #fff; margin-bottom: 18px; font-weight: 800; }
.footer-col a { display: block; color: rgba(255,255,255,.62); font-size: .9rem; margin-bottom: 12px; transition: color .18s ease, padding-left .18s ease; }
.footer-col a:hover { color: var(--brand); padding-left: 4px; }
.footer-contact .fcontact { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 15px; }
.footer-contact .fcontact svg { flex-shrink: 0; color: var(--brand); }
.footer-contact .fcontact span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact a.fcontact:hover { color: #fff; padding-left: 0; }
.footer-contact .fcontact--addr { align-items: flex-start; }
.footer-contact .fcontact--addr svg { margin-top: 2px; }
.footer-contact .fcontact--addr span { line-height: 1.5; color: rgba(255,255,255,.55); }

/* Bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }
.pay-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-icons span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); }

/* ==========================================================================
   Category / search listing
   ========================================================================== */
.listing { padding-bottom: 56px; }
.listing-grid { display: grid; grid-template-columns: 288px 1fr; gap: 36px; align-items: start; }

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-size: 1.05rem; font-weight: 800; }
.clear-all { font-size: .82rem; font-weight: 700; color: var(--danger); }
.clear-all:hover { text-decoration: underline; }

.filter-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-s); font-size: .89rem; font-weight: 600; color: var(--ink-2);
}
.filter-list a:hover { background: var(--bg); color: var(--ink); }
.filter-list a.active { background: var(--ink); color: #fff; }
.filter-list small { font-size: .74rem; opacity: .6; }

.price-form { display: flex; flex-direction: column; gap: 10px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 9px 12px; font-size: .88rem; background: var(--bg);
}
.price-inputs input:focus { outline: none; border-color: var(--brand); background: #fff; }
.price-inputs span { color: var(--muted); }

/* Category filter with thumbnails + expandable sub-categories */
.cat-filter, .subcat-filter { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.cat-filter { max-height: 440px; overflow-y: auto; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-s); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.cat-row:hover { background: var(--bg); color: var(--ink); }
.cat-row.active { background: var(--ink); color: #fff; }
.cat-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); }
.cat-thumb--all, .cat-thumb--ph { display: grid; place-items: center; color: var(--ink-2); font-weight: 800; font-size: .82rem; }
.cat-row.active .cat-thumb { border-color: rgba(255,255,255,.25); }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-caret { flex-shrink: 0; opacity: .45; transition: transform .2s ease; }
.cat-row.open .cat-caret, .cat-row.active .cat-caret { transform: rotate(90deg); opacity: .9; }
.subcat-filter { margin: 3px 0 8px 24px; padding-left: 12px; border-left: 2px solid var(--line); }
.subcat-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-s); font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.subcat-row:hover { background: var(--bg); color: var(--ink); }
.subcat-row.active { background: rgba(253,185,19,.16); color: var(--ink); font-weight: 700; }
.subcat-thumb { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }

/* Price range: dual-handle slider */
.range-slider { position: relative; height: 26px; margin: 4px 3px 2px; }
.range-track { position: absolute; top: 11px; left: 0; right: 0; height: 5px; border-radius: 999px; background: var(--line); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); }
.range-h { position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 3; }
.range-h::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.22); cursor: pointer; }
.range-h::-moz-range-thumb { pointer-events: auto; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.22); cursor: pointer; }
.range-h::-webkit-slider-runnable-track { background: none; border: none; }
.range-vals { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.range-cur { flex: 1; display: flex; align-items: center; gap: 1px; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 7px 10px; font-size: .85rem; font-weight: 700; background: var(--bg); color: var(--ink); }
.range-cur input { width: 100%; min-width: 0; border: none; background: none; font: inherit; color: inherit; padding: 0; }
.range-cur input:focus { outline: none; }
.range-cur input::-webkit-outer-spin-button, .range-cur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-vals > span { color: var(--muted); }

/* Variant filters — pills + colour swatches */
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.variant-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.variant-pill.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.variant-opts--color { gap: 10px; }
.variant-color { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; }
.variant-color span { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0,0,0,.14); }
.variant-color.sel { border-color: var(--brand); }

/* Results */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.results-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.9px; }
.results-count { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.custom-sort-dropdown { position: relative; display: inline-block; outline: none; }
.custom-sort-trigger {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--brand);
  background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .88rem;
  font-weight: 600; cursor: pointer; color: var(--ink);
  transition: all 0.2s;
}
.custom-sort-dropdown:focus-within .custom-sort-trigger, .custom-sort-dropdown:hover .custom-sort-trigger {
  background: var(--brand-soft);
}
.custom-sort-menu {
  position: absolute; top: calc(100% + 6px); right: 0; width: max-content; min-width: 170px;
  background: #fff; border-radius: 12px; border: 1.5px solid var(--line);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 8px 0;
  z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s ease;
}
.custom-sort-dropdown:focus-within .custom-sort-menu, .custom-sort-dropdown:hover .custom-sort-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.custom-sort-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.custom-sort-item:hover { background: var(--bg); color: var(--ink); }
.custom-sort-item.active { font-weight: 700; color: var(--ink); }
.custom-sort-icon { width: 14px; height: 14px; display: inline-flex; color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft);
  color: var(--brand-dark); border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 700;
}
.chip:hover { background: var(--brand); color: var(--ink); }

.listing-products { grid-template-columns: repeat(4, 1fr); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { margin: 0 auto 18px; color: var(--line); }
.empty-state h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.empty-state p { margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; transition: all .18s ease;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-gap { color: var(--muted); padding: 0 4px; }

@media (max-width: 1150px) { .listing-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .listing-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-list { max-height: 220px; }
}
@media (max-width: 760px) { .listing-products { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Product detail page (PDP)
   ========================================================================== */
.crumbs { padding: 18px 0; font-size: .86rem; color: var(--muted); }
.crumbs .container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.pdp { padding-bottom: 40px; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.gallery-main {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 1/1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
  width: 78px; height: 78px; border-radius: var(--radius-s); overflow: hidden;
  border: 2px solid var(--line); background: var(--surface); padding: 0; transition: border-color .18s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink-2); }
.thumb.active { border-color: var(--brand); }

/* Full-screen image viewer */
.gallery-main { cursor: zoom-in; }
.gallery-expand {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94);
  color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-s);
  transition: transform .18s ease, background .18s ease;
}
.gallery-expand:hover { transform: scale(1.08); background: #fff; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,12,20,.94);
  display: grid; place-items: center; padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: min(1000px, 92vw); max-height: 88vh; margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius); background: #0d1420;
}
.lightbox-figure figcaption { color: rgba(255,255,255,.6); font-size: .84rem; margin-top: 14px; }

.lightbox-close {
  position: absolute; top: 22px; right: 24px; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .18s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }

.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .18s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 620px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* Buy box */
.buybox { display: flex; flex-direction: column; gap: 14px; }
.pdp-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--brand-dark); }
.pdp-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.pdp-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.pdp-reviews-link { text-decoration: underline; text-underline-offset: 3px; }
.pdp-reviews-link:hover { color: var(--brand-dark); }
.pdp-sku { padding-left: 12px; border-left: 1px solid var(--line); }
.pdp-short { color: var(--ink-2); font-size: .98rem; }

.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pdp-price .now { font-size: 2.1rem; font-weight: 800; letter-spacing: -1.2px; }
.pdp-price .was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.pdp-tax { font-size: .82rem; color: var(--muted); margin-top: -8px; }

/* Variants */
.variant { display: flex; flex-direction: column; gap: 9px; }
.variant-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); }
.variant-opts { display: flex; gap: 9px; flex-wrap: wrap; }
.variant-opt {
  min-width: 46px; padding: 9px 16px; border-radius: 999px; border: 1.6px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: .87rem; transition: all .18s ease;
}
.variant-opt:hover { border-color: var(--ink-2); }
.variant-opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant-opt.is-color { width: 40px; height: 40px; min-width: 0; padding: 0; border-radius: 50%; background: var(--sw, #ccc); }
.variant-opt.is-color.active { box-shadow: 0 0 0 3px #fff inset, 0 0 0 2px var(--ink); border-color: var(--ink); }

.pdp-stock { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; }
.pdp-stock .dot { width: 9px; height: 9px; border-radius: 50%; }
.pdp-stock .dot.ok { background: var(--action); box-shadow: 0 0 0 4px rgba(18,183,106,.16); }
.pdp-stock .dot.no { background: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.16); }

.pdp-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
/* Doubled class so these beat the later single-class `.qty` block (equal specificity, later wins). */
.qty.qty-lg { padding: 0 6px; border-width: 1.6px; gap: 4px; min-height: 54px; margin: 0; }
.qty.qty-lg button { width: 36px; height: 36px; font-size: 1.2rem; }
.qty.qty-lg span { min-width: 30px; font-size: 1rem; }
/* Product-page add/stepper share one flexing slot so the stepper fills the button footprint. */
.pdp-cart { flex: 1 1 220px; display: flex; }
.pdp-cart .btn-lg { width: 100%; min-height: 54px; }
.qty.qty-lg.cart-qty-lg { width: 100%; justify-content: space-between; padding: 0 12px;
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.qty.qty-lg.cart-qty-lg button { color: var(--brand-dark); }
.qty.qty-lg.cart-qty-lg button:hover { background: rgba(224,162,0,.16); color: var(--brand-dark); }
.qty.qty-lg.cart-qty-lg span { color: var(--brand-dark); font-weight: 800; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.wish-lg { border: 1.6px solid var(--line); width: 54px; height: 54px; border-radius: 14px; }
.wish-lg.on { color: var(--danger); border-color: var(--danger); }
.wish-lg.on svg { fill: currentColor; }

.pdp-assure { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-assure li { display: flex; align-items: center; gap: 11px; font-size: .89rem; color: var(--ink-2); }
.pdp-assure svg { color: var(--brand-dark); flex-shrink: 0; }

/* PDP tabs */
.pdp-tabs { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.pdp-tabs .tabs { margin-bottom: 24px; }
.tab-panel { max-width: 900px; }
.prose { color: var(--ink-2); font-size: .97rem; line-height: 1.75; }
.muted { color: var(--muted); }

.review { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head time { font-size: .8rem; color: var(--muted); }
.review p { color: var(--ink-2); font-size: .93rem; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 460px) {
  .pdp-actions { flex-direction: column; align-items: stretch; }
  .pdp-actions .btn-lg { width: 100%; }
  /* Column layout: the 220px flex-basis would become a height here — pin to auto/full width. */
  .pdp-cart { flex: 0 0 auto; width: 100%; }
  .qty-lg { justify-content: space-between; }
}

/* Auth (login, register, reset)
   ========================================================================== */
.auth-wrap {
  display: flex; flex-direction: column; padding: 0;
  position: relative; overflow: hidden;
}
.auth-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(253, 185, 19, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(63, 87, 204, 0.08), transparent 50%);
  pointer-events: none; z-index: -1;
}

.auth-shell {
  display: grid; grid-template-columns: 1fr 560px; width: 100%; min-height: 70vh; height: auto;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.auth-side {
  background: var(--brand) url('../img/auth_bg.png') center/cover no-repeat;
  color: var(--ink); padding: 40px 64px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: inset -10px 0 30px rgba(0,0,0,0.06);
}
.auth-side.auth-side-register {
  background: var(--brand) url('../img/auth_bg_register.png') center/cover no-repeat;
}

.auth-side > * { position: relative; z-index: 2; }
.auth-side-brand { display: none; }
.auth-side-brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.auth-side-brand em { font-style: normal; color: var(--brand); }
.auth-side-art { display: none; }

.auth-side h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; }
.auth-side h2 span { color: var(--brand-dark); }

.auth-side-text-wrap { margin-top: auto; margin-bottom: 0; background: rgba(255,255,255,0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 32px; border-radius: 24px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.6); }

.auth-side-feats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side-feats li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; color: rgba(11,18,32,.9); font-weight: 600; }

.auth-side-feats li .asf-ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(11,18,32,0.08); display: grid; place-items: center; flex-shrink: 0; }
.auth-side-feats li .asf-ic svg { width: 14px; height: 14px; }

.auth-side-trust { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(11,18,32,0.15); display: flex; align-items: center; justify-content: space-between; }
.auth-side-trust div { text-align: left; }
.auth-side-trust strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.auth-side-trust span { font-size: .85rem; color: rgba(11,18,32,.7); }

.auth-card { padding: 40px 64px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,0.4); }
.auth-card h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.9px; color: var(--ink); }
.auth-sub { color: var(--muted); font-size: .95rem; margin: 8px 0 32px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }

/* Enhanced Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; display: block; }
.field input {
  width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 1rem; color: var(--ink); outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  box-shadow: 0 2px 6px rgba(11,18,32,0.02);
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(253,185,19,.15), 0 4px 12px rgba(11,18,32,0.06); transform: translateY(-1px); }
.field small { font-size: .78rem; color: var(--muted); }

.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); user-select: none; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-dark); cursor: pointer; }

.field-error { font-size: .82rem; color: var(--danger); margin-top: 6px; font-weight: 600; display: none; }
.field.is-invalid input { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important; background: #fff5f5; }
.field.is-invalid .field-error { display: block; animation: shake 0.4s ease; }

@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.btn-loader { display: none; width: 22px; height: 22px; animation: spin 1s linear infinite; }
.btn-loading { opacity: 0.9; pointer-events: none; }
.btn-loading .btn-text { display: none; }
.btn-loading .btn-loader { display: inline-block; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.auth-alt { margin-top: 28px; text-align: center; font-size: .92rem; color: var(--muted); }
.auth-alt a { color: var(--brand-dark); font-weight: 700; padding: 4px 8px; border-radius: 8px; transition: background .2s ease; }
.auth-alt a:hover { text-decoration: none; background: var(--brand-soft); }

.alert-ok, .alert-err { border-radius: var(--radius-s); padding: 12px 16px; font-size: .88rem; margin-bottom: 18px; }
.alert-ok  { background: rgba(18,183,106,.1); color: var(--action-dark); border: 1px solid rgba(18,183,106,.3); }
.alert-err { background: rgba(239,68,68,.08); color: #B42318; border: 1px solid rgba(239,68,68,.28); display: flex; flex-direction: column; gap: 4px; }

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-page { padding-bottom: 64px; }
.cart-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cart-head .results-title { margin: 0; }
.cart-head .results-count { margin: 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-main { min-width: 0; }

/* Items grouped in one card, with a header and divided rows. */
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: #FCFDFE;
}
.cart-card-count { font-weight: 800; font-size: .95rem; }
.cart-card-eta { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: #1B9E4B; }

.cart-lines { display: flex; flex-direction: column; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; grid-template-rows: auto auto;
  grid-template-areas: "img info amount" "img controls amount";
  gap: 2px 16px; align-items: start; padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.is-oos .cart-item-img img { filter: grayscale(1); opacity: .7; }

.cart-item-img {
  grid-area: img; position: relative; display: block; width: 84px; height: 84px;
  border-radius: var(--radius-s); overflow: hidden; background: var(--bg);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-badge {
  position: absolute; top: 5px; left: 5px; background: #1B9E4B; color: #fff;
  font-size: .6rem; font-weight: 800; letter-spacing: .2px; padding: 2px 5px; border-radius: 6px;
}

.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-name { display: block; font-weight: 700; font-size: .98rem; letter-spacing: -.1px; line-height: 1.35; }
.cart-item-name:hover { color: var(--brand-dark); }
.cart-item-variant {
  display: inline-block; margin-top: 5px; font-size: .74rem; font-weight: 700; color: var(--ink-2);
  background: var(--bg); padding: 2px 9px; border-radius: 999px;
}
.cart-item-pricing { display: flex; align-items: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.cart-item-each { font-weight: 700; font-size: .9rem; }
.cart-item-mrp { text-decoration: line-through; color: var(--muted); font-size: .8rem; }
.cart-item-unit { color: var(--muted); font-size: .78rem; }
.cart-stock-note { display: inline-block; margin-top: 7px; font-size: .75rem; font-weight: 700; }
.cart-stock-note.warn { color: var(--brand-dark); }
.cart-stock-note.danger { color: var(--danger); }

.cart-item-controls { grid-area: controls; display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cart-item-remove { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; padding: 6px 2px; }
.cart-item-remove svg { width: 15px; height: 15px; }
.cart-item-remove:hover { color: var(--danger); }

.cart-item-amount { grid-area: amount; text-align: right; align-self: start; white-space: nowrap; }
.cart-item-amount strong { font-size: 1.05rem; font-weight: 800; }
.cart-item-saved { display: block; margin-top: 3px; font-size: .72rem; font-weight: 700; color: #1B9E4B; }

/* Cart stepper — medium size. Scoped with .qty.qty-cart to beat the later base
   .qty rules (ordering trap). Each button is its own <form> for the server cart. */
.qty.qty-cart { margin: 0; padding: 4px 6px; gap: 4px; }
.qty.qty-cart form { display: inline-flex; }
.qty.qty-cart button { width: 30px; height: 30px; color: var(--brand-dark); }
.qty.qty-cart button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.qty.qty-cart button:disabled { opacity: .35; cursor: not-allowed; }
.qty.qty-cart button:disabled:hover { background: transparent; }
.qty.qty-cart button svg { width: 15px; height: 15px; }
.qty.qty-cart span { min-width: 24px; font-size: .92rem; font-weight: 800; color: var(--ink); }

.cart-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: gap .15s ease, color .15s ease; }
.cart-back:hover { color: var(--brand-dark); gap: 11px; }

.cart-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: .92rem; }
.sum-row.muted { color: var(--muted); font-size: .85rem; }
.sum-row.save, .sum-row.save strong { color: #1B9E4B; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 15px; font-size: 1.15rem; font-weight: 800; }
.sum-note { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

.cart-save-banner {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; padding: 10px 12px;
  background: #E7F6EC; color: #157A3A; border-radius: var(--radius-s); font-size: .82rem; font-weight: 600;
}
.cart-save-banner strong { font-weight: 800; }
.cart-save-banner svg { flex-shrink: 0; }

.cart-checkout-btn { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; font-size: 1rem; }
.cart-checkout-btn svg { transition: transform .15s ease; }
.cart-checkout-btn:hover svg { transform: translateX(3px); }

.cart-trust { display: flex; justify-content: center; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.cart-trust svg { color: var(--ink-2); flex-shrink: 0; }

/* Empty cart */
.cart-empty-state { max-width: 460px; margin: 40px auto 72px; text-align: center; }
.cart-empty-ico {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
}
.cart-empty-state h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.3px; }
.cart-empty-state p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 8px auto 24px; max-width: 380px; }
.cart-empty-cta { display: inline-flex; align-items: center; gap: 8px; padding-left: 26px; padding-right: 22px; }
.cart-empty-cta svg { transition: transform .15s ease; }
.cart-empty-cta:hover svg { transform: translateX(3px); }
.cart-empty-cats { margin-top: 36px; }
.cart-empty-cats-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cart-empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.cart-empty-chips a {
  padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .84rem; font-weight: 700; color: var(--ink-2); background: var(--surface);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cart-empty-chips a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* ==========================================================================
   Account
   ========================================================================== */
.account { padding-bottom: 60px; }
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.account-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.account-user { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.account-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.account-user strong { display: block; font-size: .94rem; }
.account-user small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a, .account-signout {
  display: block; text-align: left; padding: 10px 13px; border-radius: var(--radius-s);
  font-size: .9rem; font-weight: 600; color: var(--ink-2); width: 100%;
}
.account-nav a:hover, .account-signout:hover { background: var(--bg); color: var(--ink); }
.account-nav a.active { background: var(--ink); color: #fff; }
.account-signout { color: var(--danger); }

.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-head strong { font-size: .95rem; }
.order-head small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.order-status { padding: 5px 13px; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; background: var(--bg); color: var(--ink-2); }
.status-delivered { background: rgba(18,183,106,.12); color: var(--action-dark); }
.status-shipped   { background: rgba(59,130,246,.12); color: #1D4ED8; }
.status-processing, .status-pending { background: var(--brand-soft); color: var(--brand-dark); }
.status-cancelled { background: rgba(239,68,68,.1); color: #B42318; }
.order-body { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.order-body strong { font-size: 1.1rem; color: var(--ink); }
/* Orders list: product thumbnails + item summary. */
.order-thumbs { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.order-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-thumb-ph, .order-thumb-more { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.order-summary { margin-left: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-total-wrap { display: flex; flex-direction: column; }
.order-total-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.order-view { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--brand-dark); }

/* Order detail: cards, item rows with images, address block. */
.od-left { display: flex; flex-direction: column; gap: 18px; }
.od-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.od-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .76rem; font-weight: 800; margin-left: 6px; vertical-align: middle; }
.od-items { display: flex; flex-direction: column; }
.od-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-item:last-child { border-bottom: 0; padding-bottom: 0; }
.od-item:first-child { padding-top: 0; }
.od-item-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg); border: 1px solid var(--line); }
.od-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-item-ph { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.od-item-info { flex: 1; min-width: 0; }
.od-item-name { display: block; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.od-item-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.od-item-return { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-weight: 700; font-size: .72rem; text-transform: capitalize; }
.od-item-total { font-size: .95rem; white-space: nowrap; }
.od-address { display: flex; gap: 12px; }
.od-address svg { color: var(--brand-dark); flex-shrink: 0; margin-top: 2px; }
.od-address strong { display: block; font-size: .92rem; }
.od-address p { font-size: .88rem; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.od-address small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }

@media (max-width: 980px) {
  .cart-layout, .account-grid { grid-template-columns: 1fr; }
  .cart-summary, .account-side { position: static; }
}
@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 66px 1fr; grid-template-areas: "img info" "img controls" "amount amount";
    column-gap: 13px; padding: 16px;
  }
  .cart-item-img { width: 66px; height: 66px; }
  .cart-item-amount { text-align: left; margin-top: 4px; }
  .cart-item-controls { justify-content: space-between; gap: 8px; }
  .cart-card-head, .cart-item { padding-left: 16px; padding-right: 16px; }
  .auth-card { padding: 26px; }
}

/* ==========================================================================
   Checkout & order
   ========================================================================== */
.checkout { padding-bottom: 60px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 22px; }

.co-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.co-block h2 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; }
.co-step { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.co-h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.co-empty { color: var(--muted); font-size: .9rem; }

.option-card {
  display: flex; align-items: center; gap: 14px; border: 1.6px solid var(--line);
  border-radius: var(--radius-s); padding: 15px 17px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.option-card:hover { border-color: var(--ink-2); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option-card input { width: 18px; height: 18px; accent-color: var(--brand-dark); flex-shrink: 0; }
.option-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.option-body strong { font-size: .93rem; }
.option-body span { font-size: .84rem; color: var(--ink-2); }
.opt-muted { color: var(--muted); font-size: .84rem; }

/* Payment method rows: leading icon + a "Secure" chip on gateways. */
.pay-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); color: var(--ink-2);
}
.pay-icon svg { width: 21px; height: 21px; }
.option-card:has(input:checked) .pay-icon { background: #fff; color: var(--brand-dark); }
.pay-secure {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  font-size: .7rem; font-weight: 700; color: #1B9E4B; background: #E7F6EC;
  padding: 3px 8px; border-radius: 999px;
}
.option-price { font-weight: 800; font-size: .95rem; }
.wallet-card { border-style: dashed; }

.co-items { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); max-height: 300px; overflow-y: auto; }
.co-item { display: flex; align-items: center; gap: 11px; font-size: .88rem; }
.co-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.co-item-name { flex: 1; min-width: 0; }
.co-item-name small { color: var(--muted); }
.co-item.detail { padding: 13px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Shoppable reels
   ========================================================================== */
.reels-page { padding-bottom: 60px; }
.reels-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }

/* A shoppable reel card: portrait video on top, product footer below. */
.reel {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.reel:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }

.reel-media { position: relative; aspect-ratio: 3 / 4; background: #0b1220; overflow: hidden; }
.reel-player { position: absolute; inset: 0; }
.reel-player img, .reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-player iframe { width: 100%; height: 100%; border: 0; display: block; }

.reel-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; z-index: 3;
  border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}
.reel-play:hover { transform: scale(1.09); background: #fff; }

.reel-chip {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  background: rgba(11,18,32,.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.reel-viewbadge {
  position: absolute; top: 12px; right: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(11,18,32,.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px;
}
.reel-wish {
  position: absolute; right: 12px; bottom: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.92);
  box-shadow: 0 5px 14px rgba(0,0,0,.25); transition: transform .18s ease, color .18s ease;
}
.reel-wish:hover { transform: scale(1.08); }
.reel-wish.on { color: var(--danger); }
.reel-wish.on svg { fill: currentColor; }

.reel-foot { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.reel-title { font-size: 1rem; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-title:hover { color: var(--brand-dark); }
.reel-metarow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.reel-rate { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.reel-rate svg { width: 15px; height: 15px; color: var(--brand); }
.reel-rate small { color: var(--muted); font-weight: 500; }
.reel-price { display: flex; align-items: baseline; gap: 7px; }
.reel-price .now { font-size: 1.18rem; font-weight: 800; letter-spacing: -.4px; }
.reel-price .was { font-size: .84rem; color: var(--muted); text-decoration: line-through; }
.reel-add { width: 100%; justify-content: center; gap: 8px; }

@media (max-width: 560px) {
  .reels-feed { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .reel-foot { padding: 12px; gap: 8px; }
  .reel-title { font-size: .9rem; }
}

/* Refer & Earn */
.referral-hero {
  background: linear-gradient(120deg, var(--ink) 0%, #17223B 100%); color: #fff;
  border-radius: var(--radius-l); padding: 30px; display: flex; flex-direction: column; gap: 10px;
}
.referral-hero > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.6); font-weight: 700; }
.referral-hero p { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 46ch; }
.referral-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.referral-code strong {
  font-size: 1.8rem; font-weight: 800; letter-spacing: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.35);
  padding: 10px 20px; border-radius: var(--radius-s);
}

.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  padding: 10px 20px; border: 1.6px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .87rem; color: var(--ink-2); transition: all .18s ease;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }

.referral-steps { display: flex; flex-direction: column; gap: 10px; margin-left: 18px; }
.referral-steps li { list-style: decimal; color: var(--ink-2); font-size: .93rem; padding-left: 4px; }
.referral-count { font-size: .95rem; color: var(--ink-2); }
.referral-count strong { font-size: 1.6rem; color: var(--ink); }

/* Wallet top-up */
.topup-presets { display: flex; gap: 10px; flex-wrap: wrap; }
.topup-preset input { position: absolute; opacity: 0; width: 0; height: 0; }
.topup-preset span {
  display: inline-block; padding: 12px 22px; border: 1.6px solid var(--line);
  border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .18s ease;
}
.topup-preset:hover span { border-color: var(--ink-2); }
.topup-preset input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topup-preset input:focus-visible + span { outline: 3px solid rgba(253,185,19,.55); }

/* Wishlist cell */
.wish-cell { display: flex; flex-direction: column; gap: 8px; }
.wish-remove { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 4px; align-self: center; }
.wish-remove:hover { color: var(--danger); text-decoration: underline; }

/* Review form */
.review-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.review-form-wrap summary { cursor: pointer; font-size: .95rem; }
.review-form-wrap summary::marker { color: var(--brand-dark); }
.review-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.field-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }

/* Reversed row so ~ can fill preceding stars on hover/checked */
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label { cursor: pointer; color: #D9DFE8; transition: color .15s ease; line-height: 0; }
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--brand); }
.rating-input input:focus-visible + label { outline: 3px solid rgba(253,185,19,.55); border-radius: 4px; }

/* Returns */
.return-item img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.return-qty select {
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px;
  font-size: .86rem; background: #fff; cursor: pointer;
}
.field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 15px;
  font-size: .95rem; background: var(--bg); font-family: inherit; resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(253,185,19,.16); }
.status-requested { background: var(--brand-soft); color: var(--brand-dark); }
.status-approved  { background: rgba(59,130,246,.12); color: #1D4ED8; }
.status-refunded  { background: rgba(18,183,106,.12); color: var(--action-dark); }
.status-rejected  { background: rgba(239,68,68,.1); color: #B42318; }

/* Notifications — full page (card class is distinct from the header .notif) */
.notif-cards { display: flex; flex-direction: column; gap: 12px; }
.notif-card {
  position: relative; display: flex; gap: 15px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.notif-card:hover { box-shadow: 0 6px 18px rgba(11,18,32,.06); }
.notif-card.unread { background: var(--brand-soft); border-color: #F3D896; }
/* Left accent bar on unread cards. */
.notif-card.unread::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
/* Bigger icon on the page than in the popup. */
.notif-page .notif-ico { width: 46px; height: 46px; border-radius: 13px; }
.notif-page .notif-ico svg { width: 22px; height: 22px; }

.notif-card-main { flex: 1; min-width: 0; }
.notif-card-main strong {
  display: flex; align-items: center; gap: 8px; font-size: .98rem; font-weight: 700; letter-spacing: -.1px;
}
.notif-new {
  font-size: .64rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--brand-dark); background: #fff; border: 1px solid #F3D896;
  padding: 2px 7px; border-radius: 999px; line-height: 1;
}
.notif-card-main p { color: var(--ink-2); font-size: .89rem; line-height: 1.45; margin: 5px 0 0; }
.notif-card-main small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .78rem; margin-top: 7px; }
.notif-card-main small svg { color: var(--muted); }
.notif-card-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 9px;
  font-size: .82rem; font-weight: 700; color: var(--brand-dark);
}
.notif-card-link:hover { gap: 8px; }

.notif-card-action { margin: 0; flex-shrink: 0; }
.notif-read {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .82rem; font-weight: 700; color: var(--ink-2);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.notif-read:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

@media (max-width: 560px) {
  .notif-card { flex-wrap: wrap; }
  .notif-card-action { width: 100%; margin-top: 4px; padding-left: 61px; }
  .notif-read { width: 100%; justify-content: center; }
}

/* Address actions */
.address-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.address-edit { font-size: .82rem; font-weight: 700; color: var(--brand-dark); }
.address-edit:hover { text-decoration: underline; }
.address-actions .address-remove { margin-top: 0; }

/* Promo code */
.coupon-form { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 13px; font-size: .88rem; background: var(--bg); text-transform: uppercase;
}
.coupon-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(18,183,106,.1); border: 1px solid rgba(18,183,106,.3);
  border-radius: var(--radius-s); padding: 11px 14px; margin-bottom: 14px; font-size: .87rem;
}
.coupon-applied button { color: var(--danger); font-weight: 700; font-size: .82rem; }
.coupon-applied button:hover { text-decoration: underline; }
.coupon-error { color: var(--danger); font-size: .82rem; margin-bottom: 12px; }

/* Wallet */
.wallet-hero {
  background: linear-gradient(120deg, var(--ink) 0%, #17223B 100%); color: #fff;
  border-radius: var(--radius-l); padding: 30px; display: flex; flex-direction: column; gap: 6px;
}
.wallet-hero span { font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.6); font-weight: 700; }
.wallet-hero strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -1.4px; }
.wallet-hero p { color: rgba(255,255,255,.65); font-size: .87rem; margin-top: 4px; }

.txn { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.txn-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.txn-icon.credit { background: rgba(18,183,106,.12); color: var(--action-dark); }
.txn-icon.debit  { background: rgba(239,68,68,.1); color: var(--danger); }
.txn-main { flex: 1; min-width: 0; }
.txn-main strong { display: block; font-size: .92rem; }
.txn-main small { color: var(--muted); font-size: .79rem; }
.txn-amount { font-weight: 800; font-size: .96rem; white-space: nowrap; }
.txn-amount.credit { color: var(--action-dark); }
.txn-amount.debit  { color: var(--danger); }

/* CMS pages & help centre */
.cms { max-width: 780px; margin: 0 auto; padding-top: 8px; }
.cms h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.cms-body { color: var(--ink-2); line-height: 1.75; font-size: .97rem; }
.cms-body p { margin-bottom: 14px; }
.cms-body h2, .cms-body h3, .cms-body h4 { color: var(--ink); font-weight: 800; margin: 26px 0 10px; }
.cms-body ul, .cms-body ol { margin: 0 0 14px 20px; }
.cms-body li { margin-bottom: 7px; list-style: disc; }
.cms-body a { color: var(--brand-dark); text-decoration: underline; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.faq summary::marker { color: var(--brand-dark); }
.faq-answer { margin-top: 12px; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }

/* Order card as a link */
a.order-card { display: block; transition: border-color .18s ease, box-shadow .18s ease; }
a.order-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.order-view { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.order-view svg { color: var(--muted); }

/* Address book */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card { position: relative; background: var(--surface); border: 1.6px solid var(--line); border-radius: var(--radius); padding: 18px; }
.address-card.is-default { border-color: var(--brand); }
.address-flag { position: absolute; top: 14px; right: 14px; background: var(--brand); color: var(--ink); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; }
.address-card strong { display: block; font-size: .95rem; }
.address-type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.address-card p { font-size: .87rem; color: var(--ink-2); line-height: 1.5; }
.address-remove { margin-top: 12px; font-size: .82rem; font-weight: 700; color: var(--danger); }
.address-remove:hover { text-decoration: underline; }

.address-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field select {
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 15px;
  font-size: .95rem; background: var(--bg); cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.add-address-link { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--brand-dark); }
.add-address-link:hover { text-decoration: underline; }
.add-address { margin-top: 22px; }
.add-address summary { cursor: pointer; font-size: 1rem; padding: 4px 0; }
.add-address summary::marker { color: var(--brand-dark); }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Order confirmation */
.order-hero { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.order-tick { width: 62px; height: 62px; border-radius: 50%; background: rgba(18,183,106,.12); color: var(--action-dark); display: grid; place-items: center; margin: 0 auto 18px; }
.order-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -1px; }
.order-hero p { color: var(--muted); margin-top: 8px; }

.tracker { display: flex; justify-content: space-between; position: relative; margin: 0 auto 40px; max-width: 640px; }
.tracker::before { content: ''; position: absolute; top: 13px; left: 6%; right: 6%; height: 2px; background: var(--line); }
.tracker-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.tracker-dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.tracker-step.done .tracker-dot { background: var(--action); border-color: var(--action); }
.tracker-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.tracker-step.done .tracker-label { color: var(--ink); }

.order-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

@media (max-width: 980px) {
  .checkout-grid, .order-detail-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(11,18,32,.5); opacity: 0; visibility: hidden;
  transition: all .3s ease; z-index: 90; backdrop-filter: blur(2px);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #fff; z-index: 100; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-l);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.1rem; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 22px; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.cart-line .cl-name { font-size: .88rem; font-weight: 700; line-height: 1.3; }
.cart-line .cl-price { color: var(--action-dark); font-weight: 800; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 8px; margin-top: 6px; }
.qty button { width: 22px; height: 22px; display: grid; place-items: center; font-weight: 800; color: var(--ink-2); border-radius: 50%; }
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty button svg { width: 14px; height: 14px; display: block; }
.qty.qty-lg button svg { width: 17px; height: 17px; }
.qty span { font-size: .85rem; font-weight: 700; min-width: 18px; text-align: center; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { margin: 0 auto 16px; color: var(--line); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-l);
  display: flex; align-items: center; gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  animation: toast-in .3s ease both;
}
.toast svg { flex-shrink: 0; }
.toast-success svg { color: var(--action); }
/* Failures must not wear a green tick — red mark, red left edge. */
.toast-error { border-left: 4px solid var(--danger); padding-left: 18px; }
.toast-error svg { color: var(--danger); }
/* Repeat count, shown only when a message fires more than once. */
.toast-count {
  margin-left: 2px; background: rgba(255,255,255,.16); border-radius: 999px;
  padding: 2px 8px; font-size: .74rem; font-weight: 800; flex-shrink: 0;
}
/* (the old blanket `.toast svg { color: var(--action) }` lived here and turned
   error icons green — colour is now set per type above) */
@keyframes toast-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Progressive enhancement: the hidden start-state is applied only when JS is
   running (html.js is set by an inline script in <head>). Without JS every
   section stays visible instead of being permanently stuck at opacity 0. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1150px) {
  .product-grid, .reels-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .deal-grid { grid-template-columns: 1fr; }
  .vbanner-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 34px; gap: 28px; }
  .nl-coupon { max-width: 320px; margin: 0 auto; width: 100%; }
  .delivery-banner { grid-template-columns: 1fr; padding: 38px 32px; }
  .delivery-art { max-width: 360px; margin: 6px auto 0; }
  .auth-shell { grid-template-columns: 1fr; max-width: 500px; }
  .auth-side { display: none; }
  .appdl { grid-template-columns: 1fr; padding: 40px 32px; }
  .appdl-art { height: 400px; margin-top: 10px; }
  .appdl-phone--front { right: 34%; } .appdl-phone--back { right: 14%; }
  .footer-feats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .search-cat { display: none; }
  .catnav-note { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .product-grid, .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 30px; }
  .footer-about { grid-column: 1 / -1; }
  .topbar-links { display: none; }
  .header-burger { display: grid; }
  .search { order: 3; flex-basis: 100%; max-width: 100%; margin-bottom: 14px; }
  .header-main { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .slide-body { padding: 28px; }
  .slider, .slide img { min-height: 320px; }
  .slider-dots { left: 28px; }
  .stack-lg { padding-block: 40px; }
}
@media (max-width: 460px) {
  .hero-side { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .product-foot { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .reveal { opacity: 1 !important; translate: none !important; }
}

/* ================== PREMIUM FEATURES UI ================== */
.btn-premium-brands {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #FDB913 0%, #d97706 100%);
  color: #11151f;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-right: 8px; /* space from profile icon */
}
.btn-premium-brands:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn-premium-brands svg {
  width: 16px;
  height: 16px;
}

.floating-premium-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.floating-premium-widget a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
.floating-premium-widget a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.fab-reels {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.fab-reels svg {
  width: 20px;
  height: 20px;
  z-index: 1;
}
.fab-reels span {
  z-index: 1;
}
.fab-pulse {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 0;
  animation: pulse-ring-white 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring-white {
  0% { transform: translateY(-50%) scale(0.8); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { transform: translateY(-50%) scale(0.8); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ================== INFINITE SCROLL LOADER ================== */
.infinite-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  gap: 8px;
  width: 100%;
}
.infinite-loader .dot {
  width: 10px;
  height: 10px;
  background-color: var(--brand);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.infinite-loader .dot:nth-child(1) { animation-delay: -0.32s; }
.infinite-loader .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
