/* ===========================================================
   AmpleCart — style.css
   Palette : violet → magenta gradient, marigold accent, teal support
   Type    : Plus Jakarta Sans (display) / Inter (body)
   =========================================================== */

:root {
  /* ===========================================================
     BHARAT BHOOMI MART
     Deep forest green as the brand, royal gold as the premium
     accent, navy as the secondary, ivory for clean backgrounds.
     Only the VALUES changed here — every token name is the same
     one the rest of the stylesheet already used, so nothing but
     colour moves.
     =========================================================== */

  /* Brand — deep forest green */
  /* ---------------------------------------------------------------
     BLUE + WHITE
     Every colour on the site resolves through these tokens, so the
     whole theme changes here rather than in a thousand rules. The
     names are kept from the previous palette on purpose: renaming
     --magenta to --amber would mean touching every file that uses
     it, for no visual gain and a real chance of missing one.
     --------------------------------------------------------------- */
  /* ---------------------------------------------------------------
     XTEND — royal purple, indigo, magenta on white and soft lavender.
     Colour-only pass: same token names as the blue build, so every
     rule that already reads var(--brand) etc. repaints on its own.
     Nothing outside this block changes.
     --------------------------------------------------------------- */
  --brand:        #6D28D9;   /* royal purple: header, primary buttons */
  --brand-dark:   #3B0764;   /* deep violet: pressed states, gradients */
  --brand-light:  #F3EFFF;   /* light purple wash for hovers and tints */

  --magenta:      #D946EF;   /* discount and sale badges               */
  --magenta-soft: #FCE7FF;
  --teal:         #4F46E5;   /* indigo: secondary CTA, links           */
  --teal-soft:    #EEF2FF;
  --marigold:     #F59E0B;   /* amber: warnings, limited stock         */
  --marigold-soft:#FEF3E2;
  --emerald:      #10B981;   /* success, in-stock, completed           */
  --gold-light:   #8B5CF6;   /* electric purple accent                 */
  --gold-dark:    #5B21B6;   /* primary button hover                   */
  --navy-deep:    #240046;   /* darkest ink, admin sidebar, footer     */
  --navy-mid:     #4F46E5;

  /* Gradients from the brief, used sparingly: hero, promo banners,
     primary CTA areas — not on every card. */
  --grad-brand:  linear-gradient(135deg, #3B0764 0%, #6D28D9 55%, #8B5CF6 100%);
  --grad-accent: linear-gradient(135deg, #6D28D9 0%, #D946EF 100%);
  --grad-teal:   linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
  --grad-green-gold: linear-gradient(135deg, #3B0764 0%, #6D28D9 55%, #4F46E5 140%);

  /* Status — kept recognisable. Green success is nudged away from the
     brand green so "saved" never reads as decoration. */
  --ok:     #15803D;
  --ok-soft:#DCFCE7;
  --warn:   #B45309;
  --warn-soft:#FDF0DE;
  --danger: #B91C1C;
  --danger-soft:#FBE4E4;
  --info:   #4F46E5;
  --info-soft:#EEF2FF;

  /* Neutrals — white cards on a cool blue-grey page, navy ink */
  --bg:      #F8F7FF;          /* soft lavender page, per the XTEND brief */
  --surface: #FFFFFF;          /* cards stay pure white */
  --surface-2:#F3EFFF;         /* light purple wash */
  --ink:     #181126;          /* XTEND primary text */
  --ink-2:   #6B6680;          /* XTEND secondary text */
  --muted:   #6B6680;          /* matches --ink-2, XTEND secondary text */
  --line:    #E9E4F5;          /* XTEND border colour */
  --line-2:  #DCD2F5;

  /* Shape — unchanged */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows tinted with the brand blue */
  --sh-sm: 0 2px 8px rgba(24, 17, 38, .06);
  --sh:    0 8px 26px rgba(24, 17, 38, .10);
  --sh-lg: 0 18px 46px rgba(24, 17, 38, .16);
  --sh-brand: 0 10px 26px rgba(109, 40, 217, .28);
  --sh-gold: 0 10px 26px rgba(214, 169, 40, .30);

  --header-h: 124px;   /* tall enough for a 100px logo plus breathing room */
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4, .brand-text, .price-now, .stat-num {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5rem;
}

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--magenta); }

img { max-width: 100%; height: auto; }

p { margin: 0 0 1rem; }

.muted { color: var(--muted); }
.narrow { max-width: 820px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 3000; width: auto; height: auto;
  clip: auto; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
}

:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: .92rem;
  padding: .68rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.is-busy { opacity: .6; pointer-events: none; }

.btn-sm { padding: .5rem .9rem; font-size: .84rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(109, 40, 217,.36); }

.btn-accent { background: var(--grad-accent); color: var(--ink); box-shadow: 0 10px 26px rgba(214, 169, 40,.28); }
.btn-accent:hover { color: var(--ink); transform: translateY(-2px); }

.btn-outline-brand { border-color: var(--line-2); color: var(--brand); background: #fff; }
.btn-outline-brand:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--ink); background: var(--surface-2); }

.btn-glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.28); color: #fff; }

.btn-link-danger { background: none; border: none; color: var(--danger); font-weight: 600; padding: .5rem .6rem; }
.btn-link-danger:hover { color: #991B1B; text-decoration: underline; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  cursor: pointer; transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ---------- Offer strip ---------- */
.offer-strip {
  background: var(--grad-brand); color: #fff;
  font-size: .8rem; font-weight: 500; text-align: center;
  padding: .45rem 0; letter-spacing: .01em;
}
.offer-strip i { margin-right: .35rem; opacity: .9; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--sh); }

.header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 1.05rem;
  box-shadow: var(--sh-brand);
}
.brand-text { font-size: 1.24rem; margin: 0; color: var(--ink); }

/* Search */
.header-search { flex: 1 1 auto; position: relative; max-width: 620px; }
.header-search form { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 16px; color: var(--muted); font-size: .9rem; pointer-events: none;
}
.search-input {
  width: 100%; height: 46px;
  padding: 0 108px 0 42px;
  font-size: 16px; /* prevents iOS zoom on focus */
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-input::placeholder { color: var(--muted); font-size: .9rem; }
.search-input:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(109, 40, 217,.12);
}
.search-submit {
  position: absolute; right: 5px; top: 5px; bottom: 5px;
  padding: 0 1.1rem; border: none; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .85rem;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer;
}

.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.sg-item {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.sg-item:last-child { border-bottom: none; }
.sg-item:hover, .sg-item.is-active { background: var(--brand-light); color: var(--ink); }
.sg-item img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--surface-2); flex: none; }
.sg-name { font-weight: 600; font-size: .88rem; display: block; }
.sg-cat { font-size: .74rem; color: var(--muted); }
.sg-price { margin-left: auto; font-weight: 700; color: var(--brand); font-size: .88rem; }
.sg-all { display: block; padding: .7rem; text-align: center; font-weight: 700; font-size: .85rem; background: var(--surface-2); }
.sg-empty { padding: 1.1rem; text-align: center; color: var(--muted); font-size: .88rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.action-link {
  display: flex; align-items: center; gap: .45rem;
  background: none; border: none; cursor: pointer;
  padding: .5rem .6rem; border-radius: 12px;
  color: var(--ink-2); font-weight: 600; font-size: .86rem;
  transition: background .18s, color .18s;
}
.action-link:hover { background: var(--brand-light); color: var(--brand); }
.action-icon { position: relative; font-size: 1.1rem; display: inline-flex; }
.chev { font-size: .6rem; opacity: .5; }

.pill {
  position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: var(--r-pill);
  background: var(--magenta); color: var(--ink);
  font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 2px 6px rgba(214, 169, 40,.4);
}
.pill.is-hidden { display: none; }
.pill.bump { animation: pillBump .45s var(--ease); }
@keyframes pillBump {
  0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); }
}

.account-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: .4rem; min-width: 230px; }
.menu-hello { padding: .5rem .8rem; font-size: .78rem; color: var(--muted); }
.account-menu .dropdown-item { border-radius: 10px; font-size: .88rem; padding: .55rem .8rem; display: flex; gap: .6rem; align-items: center; }
.account-menu .dropdown-item i { width: 16px; color: var(--muted); }
.account-menu .dropdown-item:hover { background: var(--brand-light); color: var(--brand-dark); }
.account-menu .dropdown-item:hover i { color: var(--brand); }

/* Category nav */
.header-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-scroller { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 18px; scrollbar-width: none; }
.nav-scroller::-webkit-scrollbar { display: none; }
.nav-chip {
  flex: none; padding: .38rem .85rem; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid transparent; transition: all .18s var(--ease);
}
.nav-chip:hover { background: var(--brand-light); color: var(--brand); }
.nav-chip.active { background: var(--grad-brand); color: #fff; }
.chip-offer { color: var(--magenta); background: var(--magenta-soft); }
.chip-offer:hover { background: var(--magenta); color: var(--ink); }

/* ---------- Mobile menu ---------- */
.mobile-menu { width: 86vw; max-width: 340px; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.menu-user {
  display: flex; align-items: center; gap: .75rem; padding: .8rem;
  background: var(--brand-light); border-radius: var(--r); margin-bottom: 1rem; color: var(--ink);
}
.menu-user small { display: block; font-size: .76rem; color: var(--muted); }
.menu-auth { display: grid; gap: .5rem; margin-bottom: 1rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.avatar-lg { width: 62px; height: 62px; font-size: 1.5rem; }
.menu-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 700; margin: 1.1rem 0 .4rem;
}
.menu-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem .7rem; border-radius: 11px;
  color: var(--ink-2); font-weight: 600; font-size: .9rem;
}
.menu-link i { width: 18px; color: var(--muted); font-size: .85rem; }
.menu-link:hover { background: var(--brand-light); color: var(--brand); }
.menu-count { margin-left: auto; font-size: .74rem; color: var(--muted); font-style: normal; }

/* ---------- Cart drawer ---------- */
.cart-drawer { width: 92vw; max-width: 420px; }
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.05rem; margin: 0; }
.js-cart-count-text {
  background: var(--brand-light); color: var(--brand);
  padding: .1rem .5rem; border-radius: var(--r-pill); font-size: .8rem;
}
.drawer-loading { display: flex; align-items: center; gap: .6rem; color: var(--muted); padding: 1rem 0; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--brand);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-item { display: flex; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.dl-item img { width: 62px; height: 62px; object-fit: contain; border-radius: 10px; background: var(--surface-2); flex: none; }
.dl-body { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; font-size: .87rem; display: block; color: var(--ink); margin-bottom: .2rem; }
.dl-meta { font-size: .8rem; color: var(--muted); }
.dl-total { font-weight: 700; color: var(--ink); }
.dl-remove { background: none; border: none; color: var(--muted); cursor: pointer; align-self: flex-start; }
.dl-remove:hover { color: var(--danger); }

.cart-drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: #fff; display: grid; gap: .5rem; }
.drawer-row { display: flex; justify-content: space-between; font-size: .95rem; }
.drawer-row strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; }
.drawer-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed; z-index: 2000; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: .55rem; max-width: 340px;
}
.toast-msg {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--ink); color: #fff;
  padding: .75rem .95rem; border-radius: var(--r);
  box-shadow: var(--sh-lg); font-size: .88rem; font-weight: 500;
  animation: toastIn .32s var(--ease);
}
.toast-msg.is-out { animation: toastOut .25s var(--ease) forwards; }
.toast-msg i { margin-top: .15rem; }
.toast-success { background: #15803D; }   /* success stays green — blue would read as neutral */
.toast-success i { color: #4ADE80; }
.toast-error { background: #3A2A08; }
.toast-error i { color: #FCA5A5; }
.toast-info i, .toast-warning i { color: var(--marigold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--r);
  margin: 1rem 0; font-size: .88rem; line-height: 1.55;
  border: 1px solid transparent;
}
.notice i { margin-top: .18rem; flex: none; }
.notice-warn { background: var(--warn-soft); border-color: #FCD34D; color: #92400E; }
.notice-warn i { color: var(--warn); }
.notice-info { background: var(--info-soft); border-color: #C6D3E6; color: #03172F; }
.notice-info i { color: var(--info); }
.notice a { text-decoration: underline; font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: 1rem 0 .25rem; font-size: .82rem; color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: .6rem; opacity: .55; }
.crumbs span { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-brand);
  color: #fff; padding: 3.2rem 0 3.6rem; margin-bottom: .5rem;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(245,158,11,.42), transparent 68%);
}
.hero::after {
  width: 400px; height: 400px; bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 66%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.5rem; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  padding: .35rem .85rem; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.hero-eyebrow i { color: var(--marigold); }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.08; color: #fff; margin-bottom: .85rem; }
.hero-sub { font-size: 1.04rem; color: rgba(255,255,255,.9); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-cta .btn-brand { background: #fff; color: var(--brand); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero-cta .btn-brand:hover { color: var(--brand-dark); }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; color: rgba(255,255,255,.92); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points i { color: var(--marigold); }

/* Hero art: floating product chips (the page signature) */
.hero-stack { position: relative; height: 330px; }
.hero-chip {
  position: absolute; margin: 0;
  background: rgba(255,255,255,.97);
  border-radius: var(--r-lg); padding: .8rem;
  box-shadow: 0 22px 50px rgba(30,10,60,.34);
  width: 190px; animation: float 6s ease-in-out infinite;
}
.hero-chip img { width: 100%; height: 112px; object-fit: contain; border-radius: 12px; }
.hero-chip figcaption { padding-top: .55rem; }
.hc-name { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.hc-price { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--brand); margin-top: .2rem; }
.hero-chip-1 { top: 6%; left: 4%; animation-delay: 0s; }
.hero-chip-2 { top: 30%; right: 2%; animation-delay: 1.1s; transform: rotate(3deg); }
.hero-chip-3 { bottom: 2%; left: 24%; animation-delay: 2.2s; transform: rotate(-3deg); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
.hero-stack-empty { display: grid; place-items: center; font-size: 6rem; color: rgba(255,255,255,.22); }

/* ---------- Sections ---------- */
.section { padding: 2.6rem 0 .6rem; }
.section-pad-b { padding-bottom: 2.6rem; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.5rem; margin: 0; }
.section-sub { color: var(--muted); font-size: .88rem; margin: .2rem 0 0; }
.section-link { font-weight: 700; font-size: .87rem; display: inline-flex; align-items: center; gap: .35rem; }
.page-title { font-size: 1.8rem; margin-bottom: 1.2rem; }

/* ---------- Category tiles ---------- */
.cat-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  padding: 1.15rem .7rem; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-sm); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; color: var(--ink); }
.cat-icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.25rem; color: #fff; margin-bottom: .35rem;
}
.cat-name { font-weight: 700; font-size: .89rem; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.3; }
.cat-count { font-size: .74rem; color: var(--muted); }

.tone-violet .cat-icon, .stat-card.tone-violet { background: linear-gradient(135deg, #3B0764, #4F46E5); }
.tone-pink   .cat-icon, .stat-card.tone-pink   { background: linear-gradient(135deg, #6D28D9, #D946EF); }
.tone-teal   .cat-icon, .stat-card.tone-teal   { background: linear-gradient(135deg, #03172F, #124B86); }
.tone-amber  .cat-icon { background: linear-gradient(135deg, #B5661A, #E58A24); }
.tone-indigo .cat-icon { background: linear-gradient(135deg, #240046, #4F46E5); }
.tone-lime   .cat-icon { background: linear-gradient(135deg, #6D28D9, #4F46E5); }
.tone-rose   .cat-icon { background: linear-gradient(135deg, #A21CAF, #D946EF); }
.tone-sky    .cat-icon { background: linear-gradient(135deg, #03172F, #124B86); }

/* ---------- Product grid + card ---------- */
.p-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.p-grid .empty-state { grid-column: 1 / -1; }

.p-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  animation: cardIn .35s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.p-card.is-out { opacity: .78; }

.p-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .4s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.06); }

.p-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--grad-accent); color: var(--ink);
  padding: .22rem .58rem; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 800; letter-spacing: .01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(214, 169, 40,.35);
}
.badge-lg { font-size: .82rem; padding: .3rem .8rem; top: 14px; left: 14px; }

.p-oos, .p-low {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  padding: .2rem .55rem; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700;
}
.p-oos { background: rgba(26,19,48,.86); color: #fff; }
.p-oos-lg { bottom: auto; top: 14px; right: 14px; left: auto; font-size: .82rem; padding: .3rem .8rem; }
.p-low { background: var(--warn-soft); color: #8A5510; }

.p-wish {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
  transition: all .18s var(--ease);
}
.p-wish:hover { color: var(--magenta); border-color: var(--magenta); transform: scale(1.08); }
.p-wish.is-active { color: var(--magenta); border-color: var(--magenta); background: var(--magenta-soft); }
.p-wish.pop { animation: heartPop .45s var(--ease); }
@keyframes heartPop {
  0% { transform: scale(1); } 35% { transform: scale(1.35); } 60% { transform: scale(.92); } 100% { transform: scale(1); }
}

.p-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0 0 .3rem; }
.p-name { font-size: .93rem; line-height: 1.4; margin: 0 0 .4rem; font-weight: 700; }
.p-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name a:hover { color: var(--brand); }

.p-rating { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.stars { position: relative; display: inline-block; font-size: .74rem; color: var(--line-2); letter-spacing: .06em; }
.stars::before {
  content: '★★★★★'; position: absolute; inset: 0;
  width: var(--fill, 0%); overflow: hidden; color: var(--marigold);
  font-size: .82rem; line-height: 1.32; letter-spacing: .04em;
}
.stars i { visibility: hidden; }
.rating-num { font-size: .75rem; color: var(--muted); font-weight: 600; }

.p-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-size: 1.15rem; color: var(--ink); }
.price-mrp { font-size: .84rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .82rem; font-weight: 700; color: var(--ok); }
.p-save { font-size: .76rem; color: var(--ok); font-weight: 600; margin: .15rem 0 .75rem; }
.p-save-quiet { color: var(--muted); font-weight: 500; }

.p-actions { display: grid; grid-template-columns: 1fr auto; gap: .45rem; margin-top: auto; }
.p-actions .btn { width: 100%; }

/* Skeletons */
.p-card.skeleton { border-color: var(--line); pointer-events: none; animation: none; }
.sk { background: linear-gradient(90deg, #EFEDE2 25%, #FCFBF5 50%, #EFEDE2 75%); background-size: 200% 100%; animation: shimmer 1.25s infinite linear; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-media { aspect-ratio: 1/1; border-radius: 0; }
.sk-line { height: 11px; margin-bottom: .55rem; }
.sk-btn { height: 34px; border-radius: var(--r-pill); margin-top: .5rem; }
.w-40 { width: 40%; } .w-50 { width: 50%; } .w-70 { width: 70%; } .w-90 { width: 90%; }

/* ---------- Promos ---------- */
.promo-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.promo {
  position: relative; overflow: hidden;
  padding: 1.7rem; border-radius: var(--r-lg);
  color: #fff; background: var(--grad-brand);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.promo:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); color: #fff; }
.promo::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  top: -80px; right: -60px; background: rgba(255,255,255,.14);
}
.promo-teal { background: var(--grad-teal); }
.promo-amber { background: var(--grad-accent); }
.promo h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .3rem; position: relative; }
.promo p { color: rgba(255,255,255,.88); font-size: .87rem; margin: 0 0 .8rem; position: relative; }
.promo-tag {
  align-self: flex-start; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.32);
  padding: .2rem .65rem; border-radius: var(--r-pill); font-size: .7rem; font-weight: 700;
  margin-bottom: auto; position: relative;
}
.promo-cta { font-weight: 800; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; position: relative; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- Trust bar ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); margin-top: 2.6rem; padding: 1.6rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-item i { font-size: 1.35rem; color: var(--brand); width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand-light); border-radius: 12px; }
.trust-item strong { display: block; font-size: .9rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.trust-item span { font-size: .79rem; color: var(--muted); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.8rem;
  background: var(--brand-light); color: var(--brand);
}
.empty-state h2, .empty-state h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.empty-state p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.2rem; }

/* ---------- Listing ---------- */
.listing { padding: 1.4rem 0 3rem; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.listing-head h1 { font-size: 1.7rem; margin: 0; }
.listing-count { color: var(--muted); font-size: .88rem; margin: .2rem 0 0; }
.listing-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); position: sticky; top: calc(var(--header-h) + 60px);
}
.filter-form { padding: 1.1rem; }
.filter-block { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: none; }
.filter-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ink); margin: 0 0 .65rem; font-family: 'Plus Jakarta Sans', sans-serif; }

.filter-search { position: relative; }
.filter-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .82rem; }
.filter-search input {
  width: 100%; height: 42px; padding: 0 .8rem 0 34px; font-size: 16px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface-2);
}
.filter-search input:focus { outline: none; border-color: var(--brand); background: #fff; }

.filter-scroll { max-height: 250px; overflow-y: auto; margin: -.25rem -.25rem; padding: .25rem; }
.radio-row, .check-row {
  display: flex; align-items: center; gap: .55rem;
  padding: .42rem .5rem; border-radius: 10px; cursor: pointer; font-size: .87rem;
  color: var(--ink-2); transition: background .16s;
}
.radio-row:hover, .check-row:hover { background: var(--brand-light); }
.radio-row input, .check-row input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.radio-row span, .check-row span { flex: 1; }
.radio-row em { font-style: normal; font-size: .76rem; color: var(--muted); }

.price-inputs { display: flex; align-items: center; gap: .5rem; }
.price-inputs input {
  width: 100%; min-width: 0; height: 40px; padding: 0 .6rem; font-size: 16px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface-2); text-align: center;
}
.price-inputs input:focus { outline: none; border-color: var(--brand); background: #fff; }
.dash { color: var(--muted); font-size: .8rem; flex: none; }
.price-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.chip {
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2);
  padding: .25rem .6rem; border-radius: var(--r-pill); font-size: .76rem; font-weight: 600; cursor: pointer;
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.chip-active { background: var(--brand-light); border-color: var(--brand); color: var(--brand); cursor: default; }

.filter-actions { display: grid; gap: .5rem; }

.listing-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.sort-wrap { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin: 0; }
.sort-wrap select {
  height: 40px; padding: 0 2rem 0 .8rem; font-size: .87rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23756B92' d='M6 8.5 2 4.5h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.sort-wrap select:focus { outline: none; border-color: var(--brand); }

#productGrid[aria-busy="true"] { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: 2rem 0 0; flex-wrap: wrap; }
.pager-btn, .pager-num {
  min-width: 40px; height: 40px; padding: 0 .85rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .86rem;
  transition: all .16s var(--ease);
}
.pager-btn:hover, .pager-num:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.pager-num.is-current { background: var(--grad-brand); border-color: transparent; color: #fff; }
.pager-btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Product detail ---------- */
.pdp { padding: 1.2rem 0 2rem; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }

.pdp-stage {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); aspect-ratio: 1/1; overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .3s var(--ease); }
.pdp-stage.zooming img { transform: scale(2); }
.pdp-thumbs { display: flex; gap: .55rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.thumb {
  flex: none; width: 74px; height: 74px; padding: 6px;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .18s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active, .thumb:hover { border-color: var(--brand); }

.pdp-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .4rem; }
.pdp-title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.22; margin-bottom: .6rem; }
.pdp-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.meta-dot { font-size: .78rem; color: var(--muted); }
.meta-dot::before { content: '·'; margin-right: .9rem; color: var(--line-2); }

.pdp-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: .3rem; }
.pdp-price .price-now { font-size: 2rem; }
.pdp-save { color: var(--ok); font-weight: 700; font-size: .9rem; margin: 0 0 .2rem; }
.pdp-tax { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.pdp-stock { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .88rem; margin-bottom: 1.3rem; }
.pdp-stock.ok { color: var(--ok); }
.pdp-stock.no { color: var(--danger); }

.pdp-buy { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.pdp-buy .btn { flex: 1 1 auto; min-width: 150px; }

.qty-stepper {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: #fff; overflow: hidden;
}
.qty-btn {
  width: 40px; height: 44px; border: none; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--ink-2); font-weight: 700; line-height: 1;
  transition: background .16s, color .16s;
}
.qty-btn:hover { background: var(--brand-light); color: var(--brand); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-input {
  width: 48px; height: 44px; border: none; text-align: center;
  font-size: 16px; font-weight: 700; color: var(--ink); background: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }

.pdp-wish {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: none; cursor: pointer; padding: .5rem 0;
  color: var(--muted); font-weight: 600; font-size: .88rem;
  transition: color .18s;
}
.pdp-wish:hover, .pdp-wish.is-active { color: var(--magenta); }

.pdp-highlights {
  list-style: none; margin: 1.3rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
.pdp-highlights li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--ink-2); }
.pdp-highlights i { color: var(--brand); width: 18px; }

/* Tabs */
.pdp-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1rem; }
.tab-bar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-2); scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .95rem 1.4rem; border: none; background: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--muted); border-bottom: 3px solid transparent; transition: all .18s;
}
.tab:hover { color: var(--brand); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); background: #fff; }
.tab-panel { display: none; padding: 1.5rem; }
.tab-panel.is-active { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rich { color: var(--ink-2); line-height: 1.75; }
.rich h2, .rich h4, .rich h5 { color: var(--ink); margin-top: 1.4rem; font-size: 1.05rem; }
.rich ul, .rich ol { padding-left: 1.2rem; }
.rich li { margin-bottom: .35rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.spec-table th, .spec-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { width: 220px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.plain-list { padding-left: 1.1rem; color: var(--ink-2); }
.plain-list li { margin-bottom: .5rem; }
.review-empty { text-align: center; padding: 1.5rem; }
.review-empty p { color: var(--muted); }

.pdp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(24, 17, 38,.1);
}
.sticky-price { flex: none; line-height: 1.2; }
.sticky-price strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; }
.sticky-price span { font-size: .76rem; color: var(--muted); text-decoration: line-through; }
.pdp-sticky .btn { flex: 1; padding-inline: .6rem; font-size: .85rem; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: .4rem 1.1rem 1.1rem; box-shadow: var(--sh-sm); }
.cart-head, .cart-line {
  display: grid; grid-template-columns: minmax(0,1fr) 110px 150px 110px 48px;
  align-items: center; gap: .8rem;
}
.cart-head { padding: .9rem 0 .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.cart-line { padding: 1rem 0; border-bottom: 1px solid var(--line); transition: opacity .25s; }
.cart-line.is-going { opacity: .3; }
.cl-product { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.cl-thumb { width: 76px; height: 76px; flex: none; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; padding: 6px; }
.cl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cl-name { font-weight: 700; color: var(--ink); font-size: .92rem; display: block; line-height: 1.4; }
.cl-name:hover { color: var(--brand); }
.cl-cat, .cl-sku { font-size: .76rem; color: var(--muted); margin: .1rem 0 0; }
.cl-price { font-weight: 600; }
.cl-total strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; }
.cl-remove { text-align: right; }
.cl-remove .icon-btn { width: 38px; height: 38px; }
.cl-remove .icon-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

.cart-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; gap: 1rem; flex-wrap: wrap; }
.cart-foot form { margin: 0; }

.summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem; box-shadow: var(--sh-sm);
}
.summary-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.sticky-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .9rem; color: var(--ink-2); }
.sum-row strong { color: var(--ink); font-weight: 700; }
.sum-save strong { color: var(--ok); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: .8rem 0 1rem; padding-top: .9rem; border-top: 2px dashed var(--line-2);
  font-weight: 700;
}
.sum-total strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.45rem; color: var(--brand); }

.ship-hint { font-size: .8rem; color: var(--warn); font-weight: 600; margin: .3rem 0 .4rem; }
.ship-hint.ok { color: var(--ok); }
.ship-bar { height: 6px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: .5rem; }
.ship-bar span { display: block; height: 100%; background: var(--grad-accent); border-radius: var(--r-pill); transition: width .4s var(--ease); }

.summary-trust { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.summary-trust li { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--muted); }
.summary-trust i { color: var(--brand); width: 16px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.co-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; margin-bottom: 1.1rem; box-shadow: var(--sh-sm);
}
.co-title { display: flex; align-items: center; gap: .65rem; font-size: 1.08rem; margin-bottom: 1.1rem; }
.step {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .82rem;
  background: var(--grad-brand); color: #fff;
}

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9rem; margin-bottom: 1rem; }
.col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 40, 217,.1);
}
/* A verification-code box reads better large, centered and spaced —
   the same treatment most apps give a one-time code, so it doesn't
   look like just another text field buried among the rest. */
.otp-code-input {
  font-size: 1.6rem; font-weight: 700; letter-spacing: .5rem;
  text-align: center; max-width: 200px; padding: .6rem .5rem .6rem .9rem;
}
.field input[readonly] { background: var(--line); color: var(--muted); }
.field .is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.field-error { color: var(--danger); font-size: .78rem; margin: .3rem 0 0; font-weight: 600; }
.field-hint { color: var(--muted); font-size: .78rem; margin: .3rem 0 0; }

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--brand); }

.addr-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.addr-option {
  text-align: left; padding: .9rem; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer;
  display: grid; gap: .15rem; font-size: .83rem; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.addr-option:hover, .addr-option.is-picked { border-color: var(--brand); background: var(--brand-light); }
.addr-option strong { font-size: .9rem; color: var(--ink); }
.addr-mobile { color: var(--muted); margin-top: .2rem; }
.tag-default { background: var(--ok-soft); color: #15803D; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: var(--r-pill); font-style: normal; }

.pay-methods { display: grid; gap: .65rem; }
.pay-option {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r);
  cursor: pointer; background: var(--surface-2); transition: all .18s var(--ease);
}
.pay-option:hover { border-color: var(--brand); background: var(--brand-light); }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(109, 40, 217,.1); }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-option input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pay-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); font-size: 1rem; flex: none; border: 1px solid var(--line); }
.pay-copy strong { display: block; font-size: .92rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.pay-copy small { color: var(--muted); font-size: .79rem; }
.pay-soon { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: .15rem .55rem; border-radius: var(--r-pill); }

.co-items { list-style: none; padding: 0; margin: 0 0 1rem; max-height: 320px; overflow-y: auto; }
.co-items li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.co-items-lg { max-height: none; }
.co-thumb { position: relative; width: 50px; height: 50px; flex: none; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-qty {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700; font-style: normal;
  display: grid; place-items: center;
}
.co-name { flex: 1; min-width: 0; color: var(--ink-2); line-height: 1.4; }
.co-name small { display: block; color: var(--muted); font-size: .74rem; }
.co-amt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.co-fineprint { font-size: .76rem; color: var(--muted); text-align: center; margin: .7rem 0; }
.co-fineprint a { text-decoration: underline; }

/* ---------- Success ---------- */
.success-hero { text-align: center; padding: 1.5rem 0 2rem; }
.success-tick {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; font-size: 2.1rem; color: #fff;
  background: linear-gradient(135deg, #16A34A, #4ADE80);
  box-shadow: 0 14px 34px rgba(22,163,74,.35);
  animation: tickPop .5s var(--ease);
}
@keyframes tickPop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-hero h1 { font-size: 1.9rem; }
.success-note { color: var(--muted); }
.success-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.addr-block { font-style: normal; color: var(--ink-2); line-height: 1.75; font-size: .9rem; }
.err-code { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 5rem; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; line-height: 1; }

/* ---------- Auth ---------- */
.auth-wrap { padding: 2.5rem 0 3.5rem; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; max-width: 1000px; }
.auth-art {
  background: var(--grad-brand); color: #fff; border-radius: var(--r-lg);
  padding: 2.5rem; position: relative; overflow: hidden;
}
.auth-art::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; bottom: -110px; right: -80px; background: rgba(245,158,11,.28); }
.auth-art h2 { color: #fff; font-size: 1.8rem; position: relative; }
.auth-art p { color: rgba(255,255,255,.88); position: relative; }
.auth-art ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; position: relative; }
.auth-art li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.auth-art i { color: var(--marigold); width: 18px; }

.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--sh); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-sub { color: var(--muted); font-size: .88rem; margin-bottom: 1.4rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-alt { text-align: center; font-size: .87rem; color: var(--muted); margin: 1.2rem 0 0; }

/* ---------- Account ---------- */
.acct-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.acct-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .6rem; box-shadow: var(--sh-sm); position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; gap: .15rem;
}
.acct-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .8rem; border-radius: 11px;
  color: var(--ink-2); font-weight: 600; font-size: .88rem;
}
.acct-link i { width: 17px; color: var(--muted); font-size: .85rem; }
.acct-link:hover { background: var(--brand-light); color: var(--brand); }
.acct-link.is-active { background: var(--grad-brand); color: #fff; }
.acct-link.is-active i { color: #fff; }
.acct-out { color: var(--danger); margin-top: .3rem; border-top: 1px solid var(--line); padding-top: .75rem; border-radius: 0 0 11px 11px; }
.acct-out i { color: var(--danger); }
.acct-out:hover { background: var(--danger-soft); color: var(--danger); }

.acct-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.acct-hero h1 { font-size: 1.55rem; margin: 0; }
.acct-hero p { color: var(--muted); font-size: .87rem; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 1.3rem; }
.stat-card {
  padding: 1.2rem; border-radius: var(--r-lg); color: #fff;
  display: grid; gap: .1rem; transition: transform .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); color: #fff; }
.stat-num { font-size: 1.9rem; line-height: 1.1; color: #fff; }
.stat-label { font-size: .8rem; opacity: .9; }

.acct-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem; margin-bottom: 1.1rem; box-shadow: var(--sh-sm);
}
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.acct-card-head h2 { font-size: 1.1rem; margin: 0; }
.mini-empty { text-align: center; padding: 1.5rem 0; color: var(--muted); }

.order-list { display: grid; gap: .5rem; }
.order-row {
  display: grid; grid-template-columns: minmax(0,1fr) 100px 110px 110px;
  align-items: center; gap: .8rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-2); background: var(--surface-2); transition: all .18s var(--ease);
}
.order-row:hover { border-color: var(--brand); background: var(--brand-light); color: var(--ink-2); }
.order-row-wide { grid-template-columns: minmax(0,1fr) 100px 110px 110px 100px; }
.or-num { font-weight: 700; color: var(--ink); font-size: .9rem; }
.or-num small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.or-items { font-size: .84rem; color: var(--muted); }
.or-total { font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .22rem .65rem; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.badge-lg { font-size: .84rem; padding: .35rem .95rem; }
.badge-ok { background: var(--ok-soft); color: #15803D; }
.badge-warn { background: var(--warn-soft); color: #8A5510; }
.badge-info { background: var(--info-soft); color: #082A5B; }
.badge-danger { background: var(--danger-soft); color: #B91C1C; }
.badge-muted { background: var(--line); color: var(--muted); }

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; }

/* Order tracker */
.track { list-style: none; display: flex; padding: 0; margin: 0 0 1.4rem; counter-reset: step; }
.track-step { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--muted); }
.track-step::before {
  content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line);
}
.track-step:first-child::before { display: none; }
.track-step.done::before { background: var(--ok); }
.track-dot {
  position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto .4rem;
  background: #fff; border: 3px solid var(--line); color: transparent; font-size: .7rem;
}
.track-step.done .track-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.track-step.done .track-label { color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.addr-card {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 1.1rem; box-shadow: var(--sh-sm);
}
.addr-card.is-default { border-color: var(--brand); }
.addr-card .tag-default { position: absolute; top: .8rem; right: .8rem; }
.addr-card address { font-style: normal; font-size: .85rem; color: var(--ink-2); line-height: 1.65; margin: .4rem 0 .8rem; }
.addr-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .7rem; }
.addr-actions form { margin: 0; }

.static-page h2 { font-size: 1.2rem; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 3rem; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { font-size: .87rem; margin: .9rem 0; max-width: 24rem; }
.site-footer .brand-text { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .86rem; }
.footer-contact i { color: var(--marigold); width: 18px; }
.footer-contact a { color: rgba(255,255,255,.82); }
.footer-contact a:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .87rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
}
.footer-bottom p { margin: 0; }
.pay-note i { color: var(--marigold); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  display: none; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(24, 17, 38,.09);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
  padding: .5rem 0 .45rem; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: .68rem; font-weight: 600;
  transition: color .18s;
}
.bn-item i { font-size: 1.08rem; }
.bn-item.active, .bn-item:hover { color: var(--brand); }
.bn-icon { position: relative; }
.bn-search { position: relative; }

.to-top {
  position: fixed; right: 18px; bottom: 90px; z-index: 1020;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--grad-brand); color: #fff; cursor: pointer;
  box-shadow: var(--sh-brand); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-top {
  position: sticky; top: 0; z-index: 1040;
  display: flex; align-items: center; gap: .8rem;
  height: 62px; padding: 0 1rem;
  background: #fff; border-bottom: 1px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: .55rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--ink); }
.admin-brand em { font-style: normal; color: var(--muted); font-weight: 600; font-size: .85rem; }
.admin-top-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.admin-who { font-size: .85rem; color: var(--muted); font-weight: 600; }

.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem; max-width: 1500px; margin: 0 auto; }
.admin-side { position: sticky; top: 78px; align-self: start; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: .55rem; display: grid; gap: .12rem; box-shadow: var(--sh-sm); }
.admin-link { display: flex; align-items: center; gap: .65rem; padding: .62rem .8rem; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.admin-link i { width: 17px; color: var(--muted); font-size: .85rem; }
.admin-link:hover { background: var(--brand-light); color: var(--brand); }
.admin-link.is-active { background: var(--grad-brand); color: #fff; }
.admin-link.is-active i { color: #fff; }
.admin-main { min-width: 0; }

.admin-login-body { background: var(--grad-brand); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; font-family: 'Inter', sans-serif; }
.admin-login { background: #fff; border-radius: var(--r-lg); padding: 2.2rem; width: 100%; max-width: 420px; box-shadow: var(--sh-lg); }
.admin-login h1 { font-size: 1.4rem; margin-bottom: .3rem; }
.admin-login .field { margin-bottom: 1rem; }

.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.adm-head h1 { font-size: 1.5rem; margin: 0; }
.adm-sub { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem; margin-bottom: 1.2rem; }
.adm-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; box-shadow: var(--sh-sm); }
.adm-stat .as-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.adm-stat .as-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: .25rem; }
.adm-stat.accent .as-num { color: var(--brand); }
.adm-stat.ok .as-num { color: var(--ok); }
.adm-stat.warn .as-num { color: var(--warn); }

.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--sh-sm); }
.adm-card h2 { font-size: 1.05rem; margin-bottom: .9rem; }

.adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.adm-table th {
  text-align: left; padding: .65rem .7rem; background: var(--surface-2);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.adm-table td { padding: .7rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.adm-table tr:hover td { background: var(--surface-2); }
.adm-table .thumb-xs { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.adm-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-toolbar input, .adm-toolbar select {
  height: 40px; padding: 0 .8rem; font-size: .88rem;
  border: 1.5px solid var(--line-2); border-radius: 11px; background: #fff;
}
.adm-toolbar input:focus, .adm-toolbar select:focus { outline: none; border-color: var(--brand); }

.log-box {
  background: #0C1512; color: #D5D0C0; border-radius: var(--r);
  padding: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .78rem; line-height: 1.7; max-height: 62vh; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.log-box .lg-err { color: #FCA5A5; }
.log-box .lg-api { color: #C6D3E6; }

.json-box {
  background: #0C1512; color: #D5D0C0; border-radius: var(--r);
  padding: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .76rem; line-height: 1.65; max-height: 400px; overflow: auto;
  white-space: pre-wrap; word-break: break-all;
}
.key-pill { display: inline-block; background: var(--brand-light); color: var(--brand-dark); padding: .15rem .5rem; border-radius: 6px; font-family: ui-monospace, monospace; font-size: .78rem; }
.map-row { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.map-row:last-child { border-bottom: none; }
.map-row label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin: 0; }
.map-row small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; }
.map-row select, .map-row input {
  width: 100%; height: 38px; padding: 0 .7rem; font-size: .85rem;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface-2);
}
.map-row select:focus, .map-row input:focus { outline: none; border-color: var(--brand); background: #fff; }

.sync-status { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot-bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot-idle { background: var(--muted); }

.trend { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: .5rem; }
.trend-bar { flex: 1; background: var(--grad-brand); border-radius: 5px 5px 0 0; min-height: 4px; position: relative; opacity: .85; transition: opacity .18s; }
.trend-bar:hover { opacity: 1; }
.trend-empty { color: var(--muted); font-size: .85rem; }

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; }
.w-100 { width: 100%; }

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