/* ==========================================================================
   DASY STORE — Design System CSS
   Hyperlocal Quick Commerce · Cosmetics + Artificial Jewellery · Jamshedpur
   Brand direction: Purple & Pink (premium beauty, warm & local)
   Mobile-first · Breakpoints: 640 / 900 / 1200
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — Purple (legacy token names: --wine-* ab purple values rakhta hai) */
  --wine-900: #45306f;
  --wine-800: #5a3f8e;
  --wine-700: #6b4fa0;
  --wine-600: #7d63b4;
  --wine-500: #8f78c4;
  --wine-400: #a996d6;
  --wine-100: #e9e3f6;
  --wine-50:  #f5f1fc;

  /* Rose-gold — jewellery accent (legacy token names: --gold-*) */
  --gold-600: #a76b88;
  --gold-500: #c48ba5;
  --gold-400: #d7a8bc;
  --gold-300: #e8c7d5;
  --gold-100: #f8ecf1;

  /* Pink — bold CTA / emergency (legacy token names: --coral-*) */
  --coral-600: #9e2e6c;
  --coral-500: #bc4483;
  --coral-100: #f9e4f0;

  /* Amber — urgency (timers, flash) */
  --amber-600: #b8730f;
  --amber-500: #e8a33d;
  --amber-100: #fbeedb;

  /* Green — success / fast delivery */
  --green-700: #1b6b46;
  --green-600: #22875a;
  --green-100: #e4f3eb;

  /* Neutrals — warm cream, never stark white */
  --cream-50:  #faf6ef;
  --cream-100: #f3ecdf;
  --cream-200: #eae0cf;
  --white: #ffffff;

  /* Ink — warm charcoal */
  --ink-900: #251a1f;
  --ink-700: #433640;
  --ink-500: #6e5f67;
  --ink-300: #9c8b93;

  --line: #e9ded0;

  /* Typography */
  --font-display: 'Marcellus', 'Mukta', Georgia, serif;
  --font-body: 'Outfit', 'Mukta', 'Segoe UI', system-ui, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows — warm, soft */
  --sh-sm: 0 1px 2px rgba(37, 26, 31, .07);
  --sh-md: 0 6px 18px rgba(37, 26, 31, .09);
  --sh-lg: 0 18px 44px rgba(37, 26, 31, .16);

  /* Spacing scale (4px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 56px; --sp-11: 64px; --sp-12: 80px;

  /* Layout */
  --container: 1200px;
  --header-h: 64px;
  --bottomnav-h: 62px;

  /* Motion */
  --tr: 160ms ease;
  --tr-slow: 320ms cubic-bezier(.2, .8, .3, 1);

  /* Z-index */
  --z-header: 50;
  --z-nav: 40;
  --z-fab: 45;
  --z-sheet: 70;
  --z-toast: 80;
  --z-modal: 90;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine-600); text-decoration: none; }
a:hover { color: var(--wine-700); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
::selection { background: var(--wine-600); color: #fff; }

:focus-visible { outline: 2px solid var(--wine-600); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--wine-700); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Typography utilities ---------- */
.display { font-family: var(--font-display); }
.lead { font-size: 1.08rem; color: var(--ink-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wine-600); margin-bottom: 8px;
}
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(28px, 6vw, 56px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; }
.section-head .link-all { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 246, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-word {
  font-family: var(--font-display); font-size: 1.42rem; color: var(--wine-700);
  line-height: 1; letter-spacing: .01em;
}
.brand-tag {
  display: none; font-size: .68rem; font-weight: 700; color: var(--gold-600);
  border: 1px solid var(--gold-400); border-radius: var(--r-pill); padding: 2px 8px;
}
.header-loc {
  display: none; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-500);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
.header-loc b { color: var(--ink-900); font-weight: 700; }
.header-loc [data-icon] { color: var(--wine-600); }
.header-search { display: none; flex: 1; max-width: 460px; position: relative; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 10px 16px; transition: border-color var(--tr);
}
.search-box:focus-within { border-color: var(--wine-500); box-shadow: 0 0 0 3px var(--wine-50); }
.search-box [data-icon] { color: var(--ink-300); flex-shrink: 0; }
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent; font-size: .95rem; min-width: 0;
}
.search-box input::placeholder { color: var(--ink-300); }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 8px; display: none; z-index: 60;
}
.search-drop.open { display: block; }
.search-drop .sd-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300); padding: 6px 10px 4px; }
.search-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink-900); font-size: .92rem; }
.search-drop a:hover { background: var(--cream-100); }
.search-drop .chip-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill); border: 0; background: transparent;
  color: var(--ink-900); transition: background var(--tr);
}
.icon-btn:hover { background: var(--cream-100); }
.icon-btn .cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--coral-500); color: #fff;
  font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.header-search-mobile { padding: 0 16px 10px; }
.header-search-mobile .search-box { padding: 9px 14px; }
.header-search-mobile .search-box input { font-size: .9rem; }

.site-nav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0 16px; overflow-x: auto; }
.site-nav a {
  display: inline-block; padding: 11px 14px; font-weight: 600; font-size: .92rem;
  color: var(--ink-700); border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--wine-700); border-bottom-color: var(--wine-600); }

@media (min-width: 900px) {
  .header-loc { display: inline-flex; }
  .header-search { display: block; }
  .header-search-mobile { display: none; }
  .site-nav { display: block; }
}

/* ---------- 6. Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 7px; font-size: .68rem; font-weight: 600; color: var(--ink-500);
  position: relative;
}
.bottom-nav a[aria-current="page"] { color: var(--wine-700); }
.bottom-nav .cart-badge {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--coral-500); color: #fff;
  font-size: .64rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 700; font-size: .98rem; border: 1px solid transparent;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), opacity var(--tr);
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--wine-700); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--wine-800); color: #fff; }
.btn-coral { background: var(--coral-500); color: #fff; }
.btn-coral:hover { background: var(--coral-600); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--wine-900); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-outline { background: var(--white); border-color: var(--wine-600); color: var(--wine-700); }
.btn-outline:hover { background: var(--wine-50); }
.btn-ghost { background: transparent; color: var(--wine-700); }
.btn-ghost:hover { background: var(--wine-50); }
.btn-light { background: #fff; color: var(--wine-700); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--r-pill); }

/* ---------- 8. Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill); padding: 4px 10px; font-size: .74rem; font-weight: 700; line-height: 1.3;
}
.badge [data-icon] { flex-shrink: 0; }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-wine { background: var(--wine-700); color: #fff; }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-coral { background: var(--coral-100); color: var(--coral-600); }
.badge-soft { background: var(--cream-100); color: var(--ink-700); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-700);
  border-radius: var(--r-pill); padding: 9px 16px; font-size: .88rem; font-weight: 600;
  transition: all var(--tr); white-space: nowrap;
}
.chip:hover { border-color: var(--wine-400); color: var(--wine-700); }
.chip.active { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- 9. Product card ---------- */
.p-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .p-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .p-grid { grid-template-columns: repeat(5, 1fr); } }

.p-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.p-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.p-media { position: relative; aspect-ratio: 1; display: block; background: var(--tint, var(--cream-100)); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform var(--tr-slow); }
.p-media.photo img { padding: 0; background: #fff; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-disc {
  position: absolute; top: 10px; left: 10px;
  background: var(--coral-500); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 3px 8px; border-radius: var(--r-pill);
}
.p-wish {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--ink-500);
  box-shadow: var(--sh-sm);
}
.p-wish.wished { color: var(--coral-500); }
.p-wish.wished [data-icon] { fill: var(--coral-500); stroke: var(--coral-500); }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.p-brand { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-300); margin: 0; }
.p-name { font-size: .9rem; font-weight: 600; color: var(--ink-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.p-name:hover { color: var(--wine-600); }
.p-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--ink-500); }
.p-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-700); }
.p-rating [data-icon] { color: var(--gold-500); }
.p-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.p-price b { font-size: 1.04rem; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.p-price s { color: var(--ink-300); font-size: .82rem; }
.p-off { color: var(--green-700); font-size: .78rem; font-weight: 800; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.dlv-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; border-radius: var(--r-pill); padding: 3px 8px;
}
.dlv-badge [data-icon] { flex-shrink: 0; }
.dlv-fast { background: var(--green-100); color: var(--green-700); }
.dlv-mid { background: var(--amber-100); color: var(--amber-600); }
.dlv-sched { background: var(--wine-100); color: var(--wine-700); border: 1px dashed var(--wine-400); }
.dlv-inter { background: var(--green-100); color: var(--green-800); border: 1px dashed var(--green-600); }
.p-add {
  min-width: 46px; height: 38px; border: 0; border-radius: 11px;
  background: var(--wine-700); color: #fff; font-weight: 700; font-size: .84rem; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: background var(--tr);
}
.p-add:hover { background: var(--wine-800); }
.p-card.oos .p-media { filter: grayscale(.9); opacity: .75; }
.p-card.oos .p-add { background: var(--cream-200); color: var(--ink-500); }
.p-oos-note { position: absolute; inset: auto 10px 10px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink-700); background: rgba(255,255,255,.9); border-radius: 8px; padding: 5px 8px; }

/* Horizontal scroll row */
.h-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 44vw);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 16px 12px; margin-inline: -16px; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .p-card { scroll-snap-align: start; }
@media (min-width: 640px) { .h-scroll { grid-auto-columns: minmax(180px, 260px); padding-inline: 32px; margin-inline: -32px; } }
@media (min-width: 900px) { .h-scroll { padding-inline: 0; margin-inline: 0; } }

/* Skeleton */
.skel {
  position: relative; overflow: hidden; background: var(--cream-100); border-radius: var(--r-lg);
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 10. Hero carousel ---------- */
.hero { position: relative; margin-top: 14px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative; min-height: 400px;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vw, 56px); overflow: hidden;
  background: linear-gradient(135deg, var(--wine-800) 0%, var(--wine-700) 55%, var(--wine-600) 100%);
  color: #fff;
}
.hero-slide.alt-cream { background: linear-gradient(135deg, var(--cream-100), var(--gold-100)); color: var(--ink-900); }
.hero-slide.alt-coral { background: linear-gradient(135deg, var(--coral-600), var(--wine-700)); }
.hero-slide .hero-art {
  position: absolute; right: -8%; bottom: -6%; width: 62%; max-width: 460px; opacity: .9;
  pointer-events: none;
}
.hero-slide.alt-cream .hero-art { opacity: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 14px; }
.hero-slide.alt-cream .hero-eyebrow { color: var(--wine-600); }
.hero-title { font-size: clamp(2.1rem, 7vw, 3.4rem); margin: 0 0 12px; max-width: 11ch; }
.hero-sub { font-size: clamp(.95rem, 2.6vw, 1.12rem); opacity: .92; max-width: 34ch; margin-bottom: 22px; }
.hero-slide.alt-cream .hero-sub { color: var(--ink-700); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 2; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.hero-dot { width: 8px; height: 8px; border-radius: var(--r-pill); border: 0; background: var(--line); padding: 0; transition: all var(--tr); }
.hero-dot.active { width: 24px; background: var(--wine-600); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: var(--r-pill); border: 0;
  background: rgba(255,255,255,.9); color: var(--wine-700); box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
@media (max-width: 639px) { .hero-arrow { display: none; } }

/* ---------- 11. Category tiles / occasion tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 10px 14px; text-align: center; transition: all var(--tr);
}
.cat-tile:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.cat-tile .tile-art {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--tint, var(--cream-100)); display: flex; align-items: center; justify-content: center;
}
.cat-tile .tile-art img { width: 46px; height: 46px; }
.cat-tile b { font-size: .9rem; color: var(--ink-900); }
.cat-tile span { font-size: .72rem; color: var(--ink-500); }

.occ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .occ-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .occ-grid { grid-template-columns: repeat(6, 1fr); } }
.occ-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 130px;
  display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(160deg, var(--tint, var(--wine-100)), var(--cream-100));
  border: 1px solid var(--line); transition: all var(--tr);
}
.occ-tile:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.occ-tile .occ-art { position: absolute; right: 6px; top: 6px; width: 58px; opacity: .85; }
.occ-tile b { position: relative; z-index: 1; font-size: .98rem; color: var(--ink-900); }
.occ-tile span { position: relative; z-index: 1; font-size: .72rem; color: var(--ink-500); display: block; }

/* ---------- 12. Trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 18px;
}
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item .t-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--wine-50); color: var(--wine-700);
  display: flex; align-items: center; justify-content: center;
}
.trust-item b { display: block; font-size: .88rem; line-height: 1.25; }
.trust-item span { font-size: .74rem; color: var(--ink-500); }

/* ---------- 13. Flash sale / promo banner ---------- */
.flash-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--wine-800), var(--wine-600));
  color: #fff; border-radius: var(--r-xl); padding: 20px 22px; margin-bottom: 18px;
}
.flash-banner .fb-icon {
  width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; color: var(--gold-300); flex-shrink: 0;
}
.flash-banner h3 { margin: 0 0 2px; font-size: 1.25rem; }
.flash-banner p { margin: 0; font-size: .85rem; opacity: .9; }
.countdown { display: flex; gap: 6px; margin-left: auto; }
.countdown .cd-box {
  background: rgba(0,0,0,.28); border-radius: 10px; padding: 7px 9px; text-align: center; min-width: 52px;
}
.countdown .cd-box b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown .cd-box span { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

.promo-band {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--coral-100), var(--amber-100));
  border: 1px dashed var(--coral-500); border-radius: var(--r-lg); padding: 16px 18px;
}
.promo-band b { font-size: 1rem; }
.promo-band p { margin: 0; font-size: .84rem; color: var(--ink-700); }

/* ---------- 14. Emergency FAB ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(var(--bottomnav-h) + 14px); z-index: var(--z-fab);
  display: flex; align-items: center; gap: 8px;
  background: var(--coral-500); color: #fff; border: 0; border-radius: var(--r-pill);
  padding: 13px 18px; font-weight: 800; font-size: .88rem; box-shadow: var(--sh-lg);
  animation: fabPulse 2.6s infinite;
}
.fab .fab-text { display: none; }
@media (min-width: 640px) { .fab .fab-text { display: inline; } }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(188, 68, 131, .45); }
  50% { box-shadow: 0 12px 34px rgba(188, 68, 131, .7); }
}
@media (min-width: 900px) { .fab { bottom: 20px; } }

/* ---------- 15. Panels: banner / cards ---------- */
.banner-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px);
}
.banner-card .bc-art { position: absolute; right: -4%; bottom: -10%; width: 46%; max-width: 320px; opacity: .9; pointer-events: none; }
.banner-card h2 { margin-bottom: 8px; }
.banner-card p { color: var(--ink-500); max-width: 46ch; }

/* ---------- 16. Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; }
.field .hint { font-size: .76rem; color: var(--ink-300); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .96rem; color: var(--ink-900); transition: border-color var(--tr), box-shadow var(--tr);
}
.input:focus { outline: none; border-color: var(--wine-500); box-shadow: 0 0 0 3px var(--wine-50); }
.input.invalid { border-color: var(--coral-500); box-shadow: 0 0 0 3px var(--coral-100); }
.field .err-msg { display: none; font-size: .78rem; font-weight: 600; color: var(--coral-600); margin-top: 4px; }
.field.invalid .err-msg { display: block; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ---------- 17. Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-500); padding-block: 14px 4px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--wine-600); }
.crumbs [data-icon] { color: var(--ink-300); }
.crumbs .current { color: var(--ink-900); font-weight: 600; }

/* ---------- 18. Category page ---------- */
.cat-hero { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(120deg, var(--wine-800), var(--wine-600)); color: #fff; padding: clamp(22px, 5vw, 40px); margin-bottom: 20px; position: relative; }
.cat-hero.alt { background: linear-gradient(120deg, var(--gold-600), var(--wine-700)); }
.cat-hero h1 { margin-bottom: 6px; }
.cat-hero p { opacity: .9; margin: 0; max-width: 48ch; }
.cat-hero .hero-art { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 150px; opacity: .35; pointer-events: none; }
@media (min-width: 640px) { .cat-hero .hero-art { width: 220px; } }

.toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.toolbar .results-count { font-size: .86rem; color: var(--ink-500); margin-right: auto; }
.toolbar .results-count b { color: var(--ink-900); }
.sort-select {
  min-height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); padding: 0 12px; font-weight: 600; font-size: .88rem; color: var(--ink-900);
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  padding: 0 14px; font-weight: 700; font-size: .88rem; color: var(--ink-900);
}
.filter-btn .f-count { background: var(--wine-700); color: #fff; border-radius: var(--r-pill); font-size: .7rem; padding: 1px 7px; }

.cat-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .cat-layout { grid-template-columns: 240px 1fr; } }
.filters-side { display: none; }
@media (min-width: 900px) { .filters-side { display: block; position: sticky; top: 130px; align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; } }
.f-group { border-bottom: 1px solid var(--line); padding-block: 14px; }
.f-group:last-child { border-bottom: 0; }
.f-group h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-700); }
.f-group .f-row { display: flex; align-items: center; gap: 8px; padding-block: 4px; font-size: .9rem; cursor: pointer; }
.f-group .f-row input { accent-color: var(--wine-700); width: 16px; height: 16px; }
.f-price-inputs { display: flex; align-items: center; gap: 8px; }
.f-price-inputs input { width: 100%; min-height: 40px; }

/* Bottom sheet (mobile filters / quick add) */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(37, 26, 31, .5); z-index: var(--z-sheet);
  opacity: 0; pointer-events: none; transition: opacity var(--tr);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sheet);
  background: var(--cream-50); border-radius: 22px 22px 0 0;
  transform: translateY(105%); transition: transform var(--tr-slow);
  max-height: 86vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.open { transform: translateY(0); }
.sheet .sheet-grip { width: 44px; height: 5px; border-radius: var(--r-pill); background: var(--line); margin: 10px auto 4px; flex-shrink: 0; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; }
.sheet .sheet-head h3 { margin: 0; font-size: 1.1rem; }
.sheet .sheet-body { padding: 6px 18px 20px; overflow-y: auto; }
.sheet .sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream-50); display: flex; gap: 10px; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; transform: translate(-50%, 105%); width: 480px; border-radius: 22px; bottom: 24px; } .sheet.open { transform: translate(-50%, 0); } }

/* ---------- 19. Product detail ---------- */
.pd-grid { display: grid; gap: 20px; padding-block: 8px 32px; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.pd-gallery .pd-main {
  aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden;
  background: var(--tint, var(--cream-100)); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.pd-gallery .pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pd-gallery .pd-main.photo img { padding: 0; background: #fff; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button {
  width: 74px; height: 74px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--cream-100); padding: 8px; flex-shrink: 0;
}
.pd-thumbs button.active { border-color: var(--wine-600); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-brand { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); margin: 0 0 4px; }
.pd-title { font-size: clamp(1.3rem, 3.5vw, 1.7rem); margin: 0 0 10px; }
.pd-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-price-row .now { font-size: 1.7rem; font-weight: 800; }
.pd-price-row .was { color: var(--ink-300); font-size: 1.05rem; }
.pd-price-row .off { color: var(--green-700); font-weight: 800; font-size: .95rem; }
.pd-save { font-size: .84rem; color: var(--ink-500); margin-bottom: 18px; }

.pd-dlv {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 16px 0;
}
.pd-dlv .dlv-ico { color: var(--wine-600); display: flex; }
.pd-dlv b { font-size: .96rem; }
.pd-dlv span { font-size: .8rem; color: var(--ink-500); }

.pd-option { margin: 16px 0; }
.pd-option > b { display: block; margin-bottom: 8px; font-size: .92rem; }
.shade-row { display: flex; gap: 8px; flex-wrap: wrap; }
.shade-swatch {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 2px solid var(--line);
  background: var(--sw, var(--cream-200)); position: relative; flex-shrink: 0;
}
.shade-swatch.active { border-color: var(--wine-700); box-shadow: 0 0 0 2px var(--wine-50); }
.shade-swatch.active::after {
  content: ""; position: absolute; inset: 9px; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.85);
}
.shade-label { font-size: .82rem; color: var(--ink-500); margin-top: 6px; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.qty-stepper button { width: 42px; height: 44px; border: 0; background: transparent; color: var(--wine-700); display: flex; align-items: center; justify-content: center; }
.qty-stepper button:disabled { color: var(--ink-300); }
.qty-stepper span { min-width: 40px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.pd-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.pd-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.pd-trust { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 6px; }
.pd-trust [data-icon] { color: var(--wine-600); margin-bottom: 4px; }
.pd-trust span { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-500); }

.pd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.pd-tabs button {
  border: 0; background: transparent; padding: 11px 16px; font-weight: 700; font-size: .92rem;
  color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.pd-tabs button.active { color: var(--wine-700); border-bottom-color: var(--wine-700); }
.pd-panel { display: none; }
.pd-panel.active { display: block; }
.pd-panel ul { padding-left: 1.2em; }
.pd-panel li { margin-bottom: 6px; }

.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.review .rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review .rv-avatar {
  width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--wine-100); color: var(--wine-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .86rem;
}
.review .rv-name { font-weight: 700; font-size: .9rem; }
.review .rv-date { font-size: .74rem; color: var(--ink-300); }
.review p { margin: 0; font-size: .9rem; }
.sample-flag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); border-radius: var(--r-pill); padding: 2px 8px; margin-left: 6px; }

/* Sticky mobile buy bar (product page) */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: var(--bottomnav-h); z-index: var(--z-nav);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.buy-bar .bb-price b { font-size: 1.15rem; font-weight: 800; }
.buy-bar .bb-price s { font-size: .82rem; color: var(--ink-300); margin-left: 6px; }
.buy-bar .btn { flex: 1; min-height: 44px; padding: 10px 14px; font-size: .92rem; }
@media (min-width: 900px) { .buy-bar { display: none; } }

/* ---------- 19.5 Courses (Dasy Store Academy) ---------- */
.course-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.course-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.cc-head {
  position: relative; aspect-ratio: 16/8;
  background: var(--tint, var(--cream-100));
  display: flex; align-items: center; justify-content: center;
}
.cc-head img { height: 76%; max-width: 60%; object-fit: contain; }
.cc-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--wine-700); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 4px 11px; border-radius: var(--r-pill); letter-spacing: .04em;
}
.cc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-body h3 { margin: 0; font-size: 1.15rem; }
.cc-meta { font-size: .8rem; color: var(--ink-500); margin: 0; }
.cc-desc { font-size: .9rem; color: var(--ink-700); margin: 0; }
.cc-syllabus { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-syllabus li { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-700); }
.cc-syllabus [data-icon] { color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.cc-who { font-size: .84rem; color: var(--ink-700); margin: 0; background: var(--cream-100); border-radius: var(--r-md); padding: 8px 11px; }
.cc-who b { color: var(--ink-900); }
.cc-cert { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--gold-600); margin: 0; }
.cc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.cc-price b { font-size: 1.35rem; font-weight: 800; }
.cc-price s { color: var(--ink-300); font-size: .9rem; }

/* ---------- 19.7 Home collections / video / live ---------- */
.col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .col-grid { grid-template-columns: repeat(4, 1fr); } }
.upc-card, .vid-card {
  width: 152px; flex-shrink: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
}
.upc-thumb, .vid-thumb {
  position: relative; aspect-ratio: 9/12; background: var(--tint, var(--cream-100));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.upc-thumb img, .vid-thumb img { height: 68%; object-fit: contain; }
.upc-soon {
  position: absolute; top: 8px; left: 8px; background: var(--wine-700); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: var(--r-pill);
}
.vid-play {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(18, 8, 22, .58); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .75); transition: transform var(--tr), background var(--tr);
}
.vid-play:hover { transform: scale(1.08); background: var(--coral-500); }
.vid-dur {
  position: absolute; right: 7px; bottom: 7px; font-size: .62rem; font-weight: 700;
  background: rgba(18, 8, 22, .72); color: #fff; padding: 2px 7px; border-radius: var(--r-pill);
}
.upc-body, .vid-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.upc-body b, .vid-body b {
  font-size: .78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.upc-launch { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--amber-600); font-weight: 600; }
.upc-launch [data-icon] { color: var(--amber-500); }
.vid-cap { font-size: .68rem; color: var(--ink-500); line-height: 1.3; }
.live-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .live-grid { grid-template-columns: repeat(2, 1fr); } }
.live-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.live-top { position: relative; aspect-ratio: 16/7; background: linear-gradient(120deg, var(--wine-800), var(--wine-600)); display: flex; align-items: center; justify-content: center; }
.live-top img { height: 74%; object-fit: contain; }
.live-badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--coral-500); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.live-badge.scheduled { background: rgba(18, 8, 22, .62); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.1s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
.live-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.live-host { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--ink-500); }
.live-host [data-icon] { color: var(--gold-600); }
.live-body h3 { margin: 0; font-size: .98rem; line-height: 1.3; }
.live-prods { display: flex; gap: 7px; flex-wrap: wrap; margin: 2px 0 4px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--tint, var(--cream-100));
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px 3px 4px;
  font-size: .68rem; font-weight: 600; color: var(--ink-700); white-space: nowrap;
}
.live-chip img { width: 24px; height: 24px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }

/* ---------- 19.8 Cart attractive + reviews ---------- */
.cart-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(120deg, var(--wine-800), var(--wine-600)); color: #fff;
  border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: 14px;
}
.cart-hero h2 { color: #fff; margin: 2px 0 0; font-size: 1.2rem; }
.cart-hero-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: var(--gold-300); flex-shrink: 0; }
.dlv-card {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.dlv-card > [data-icon] { color: var(--wine-600); flex-shrink: 0; }
.dlv-card.night > [data-icon] { color: var(--amber-500); }
.dlv-card.pickup { border-color: var(--wine-400); background: linear-gradient(180deg, #fff, var(--wine-100)); }
.dlv-card.pickup > [data-icon] { color: var(--wine-600); }
.dlv-card.sched { border-color: var(--amber-500); background: var(--amber-100); }
.dlv-card.sched > [data-icon] { color: var(--amber-700); }
.dlv-card.inter { border-color: var(--green-600); background: var(--green-100); }
.dlv-card.inter > [data-icon] { color: var(--green-700); }
.slot-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; background: var(--white); cursor: pointer; transition: all var(--tr-fast); }
.slot-option:has(input:checked) { border-color: var(--wine-500); background: var(--wine-100); }
.slot-option input { accent-color: var(--wine-700); }
.slot-option span { font-weight: 600; font-size: .92rem; }
.loyalty-hint { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #fff, var(--wine-100)); border: 1px dashed var(--wine-400); border-radius: var(--r-lg); padding: 10px 12px; margin-bottom: 14px; font-size: .8rem; font-weight: 600; color: var(--wine-700); }
.loyalty-hint [data-icon] { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-600); }
.loyalty-hint.applied { border-style: solid; background: var(--gold-100); color: var(--gold-700); }
.loyalty-use { margin: 12px 0 8px; }
.dlv-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 5px; margin-bottom: 14px; }
.dlv-mode-btn { border: 0; background: transparent; border-radius: 10px; padding: 9px 8px; font-weight: 700; font-size: .82rem; color: var(--ink-500); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all var(--tr-fast); }
.dlv-mode-btn [data-icon] { width: 15px; height: 15px; }
.dlv-mode-btn.active { background: var(--wine-700); color: #fff; box-shadow: 0 2px 8px rgba(71,27,102,.28); }
.dlv-mode-btn:not(.active):hover { color: var(--wine-700); }
.dlv-info { flex: 1; min-width: 0; }
.dlv-info b { font-size: .92rem; }
.dlv-info p { margin: 0; font-size: .76rem; color: var(--ink-500); }
.dlv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--cream-100); overflow: hidden; }
.dlv-bar .fill { height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-700)); transition: width var(--tr-slow); }
.c-item { position: relative; }
.c-brand { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wine-600); margin: 0 0 1px; }
.c-shade-chip { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--ink-700); background: var(--cream-100); border-radius: var(--r-pill); padding: 2px 9px; margin-bottom: 5px; }
.save-chip { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--green-700); background: var(--green-100); border-radius: var(--r-pill); padding: 2px 8px; margin-left: 6px; }
.c-qty-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral-500); color: #fff; font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--white);
}
.c-remove { border: 0; background: transparent; color: var(--ink-300); display: flex; align-items: center; gap: 4px; font-size: .72rem; cursor: pointer; transition: color var(--tr); }
.c-remove:hover { color: var(--coral-500); }
.addon-sec { margin-top: 18px; }
.addon-head { margin-bottom: 10px; }
.addon-head h3 { margin: 2px 0 0; }
.bill-save { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--green-700); background: var(--green-100); border-radius: var(--r-md); padding: 8px 11px; margin-top: 10px; }
.bill-save [data-icon] { color: var(--green-600); }
.trust-mini { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.trust-mini span { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--ink-500); background: var(--cream-100); border-radius: var(--r-pill); padding: 4px 9px; }
.trust-mini [data-icon] { color: var(--wine-600); }
/* reviews */
.rv-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--cream-100); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 14px; }
.rv-big { display: flex; align-items: center; gap: 10px; }
.rv-big b { font-size: 1.8rem; font-family: var(--font-display); line-height: 1; }
.rv-count { font-size: .76rem; color: var(--ink-500); }
.rv-stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.rv-stars [data-icon] { width: 15px; height: 15px; }
.rv-stars .off { color: var(--line); }
.rv-form-card { background: var(--white); border: 1.5px dashed var(--gold-400); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 14px; }
.star-input { display: flex; gap: 8px; margin: 8px 0 12px; }
.star-input span { cursor: pointer; color: var(--line); transition: color var(--tr), transform var(--tr); display: flex; }
.star-input span:hover { transform: scale(1.12); }
.star-input span.on { color: var(--gold-500); }
.star-input [data-icon] { width: 26px; height: 26px; }
.rv-hint { font-size: .72rem; color: var(--ink-500); margin: 10px 0 0; }
.mine-flag { display: inline-block; font-size: .64rem; font-weight: 800; color: var(--wine-700); background: var(--wine-50); border-radius: var(--r-pill); padding: 2px 8px; margin-left: 6px; }
.variant-chip {
  min-width: 48px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-700);
  font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: all var(--tr); cursor: pointer;
}
.variant-chip:hover { border-color: var(--gold-400); }
.variant-chip.active { border-color: var(--wine-700); background: var(--wine-700); color: #fff; box-shadow: 0 3px 10px rgba(71, 27, 102, .28); }

/* ---------- 19.9 Cart V20 enhanced cards ---------- */
.c-item.v20 { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; transition: border-color var(--tr); }
.c-item.v20:hover { border-color: var(--wine-300); }
@media (min-width: 640px) { .c-item.v20 { flex-direction: row; align-items: stretch; } }
.c-item.v20 .c-img { width: 100%; height: 170px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; text-decoration: none; }
.c-item.v20 .c-img img { width: 65%; height: 65%; object-fit: contain; }
.c-item.v20 .c-qty-badge { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; border-radius: 8px; background: var(--wine-700); color: #fff; font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (min-width: 640px) { .c-item.v20 .c-img { width: 130px; height: auto; min-height: 130px; border-radius: var(--r-lg) 0 0 var(--r-lg); margin: 0; } }
.c-item.v20 .c-body { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.c-item.v20 .c-brand { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wine-600); margin: 0; }
.c-item.v20 .c-name { font-weight: 700; font-size: .94rem; margin: 0; line-height: 1.3; color: var(--ink-900); }
.c-item.v20 .c-desc { font-size: .82rem; color: var(--ink-500); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-item.v20 .c-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; align-items: center; }
.c-item.v20 .c-shade-chip { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--ink-700); background: var(--cream-200); border-radius: 6px; padding: 2px 8px; }
.c-stock-chip { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
.c-stock-chip.in-stock { color: var(--green-700); background: var(--green-50); }
.c-stock-chip.low-stock { color: var(--amber-700); background: var(--amber-50); }
.c-auth { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--green-700); background: var(--green-50); border-radius: 6px; padding: 2px 8px; }
.c-auth [data-icon] { width: 11px; height: 11px; }
.c-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.c-price-row .c-mrp { font-size: .78rem; color: var(--ink-400); text-decoration: line-through; }
.c-price-row .c-sell { font-size: 1.05rem; font-weight: 800; color: var(--ink-900); }
.c-price-row .c-save-chip { font-size: .72rem; font-weight: 700; color: var(--green-700); background: var(--green-50); border-radius: 6px; padding: 2px 7px; }
.c-price-row .c-linTotal { font-size: .78rem; color: var(--ink-500); margin-left: auto; font-weight: 600; }
.c-detail-actions { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.c-details-toggle { border: 0; background: transparent; color: var(--wine-600); font-size: .82rem; font-weight: 600; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 4px; }
.c-details-toggle [data-icon] { width: 14px; height: 14px; transition: transform var(--tr); }
.c-details-toggle.open [data-icon] { transform: rotate(180deg); }
.c-details-body { display: none; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.c-details-body.open { display: block; }
.c-details-body dl { margin: 0; }
.c-details-body dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); margin: 8px 0 2px; }
.c-details-body dt:first-child { margin-top: 0; }
.c-details-body dd { font-size: .84rem; color: var(--ink-700); margin: 0; line-height: 1.45; }
.c-view-product { border: 0; background: transparent; color: var(--wine-600); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 3px; text-decoration: none; }
.c-view-product [data-icon] { width: 13px; height: 13px; }
.c-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--cream-50); gap: 12px; }
@media (min-width: 640px) { .c-item.v20 .c-actions { border-top: 0; padding: 14px; background: transparent; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; min-width: 140px; flex-shrink: 0; border-left: 1px solid var(--line); } }
.c-actions .c-remove { display: flex; align-items: center; gap: 4px; }
.c-actions .c-remove [data-icon] { width: 14px; height: 14px; }

/* V20 Bill improvements */
.bill-card .bill-mrp-row { display: flex; justify-content: space-between; font-size: .82rem; padding-block: 3px; color: var(--ink-500); }
.bill-card .bill-mrp-row span:last-child { text-decoration: line-through; }
.bill-card .bill-disc-row { display: flex; justify-content: space-between; font-size: .88rem; padding-block: 5px; color: var(--green-700); font-weight: 600; }

/* ---------- 20. Cart ---------- */
.cart-layout { display: grid; gap: 20px; padding-block: 8px 140px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; } }
/* Legacy .c-item (not .v20) — kept for safety */
.c-item:not(.v20) {
  display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px; margin-bottom: 12px;
}
.c-item .c-img { width: 84px; height: 84px; border-radius: var(--r-md); background: var(--cream-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.c-item .c-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.c-item .c-info { flex: 1; min-width: 0; }
.c-item .c-name { font-weight: 600; font-size: .92rem; margin: 0 0 2px; line-height: 1.3; }
.c-item .c-shade { font-size: .78rem; color: var(--ink-500); margin: 0 0 6px; }
.c-item .c-price b { font-weight: 800; }
.c-item .c-price s { color: var(--ink-300); font-size: .8rem; margin-left: 6px; }
.c-item .c-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.c-remove { border: 0; background: transparent; color: var(--ink-300); font-size: .76rem; font-weight: 600; padding: 4px; }
.c-remove:hover { color: var(--coral-600); }

.bill-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: sticky; top: 130px; }
.bill-row { display: flex; justify-content: space-between; font-size: .92rem; padding-block: 6px; color: var(--ink-700); }
.bill-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.05rem; color: var(--ink-900); }
.bill-row .free { color: var(--green-700); font-weight: 700; }
.progress-track { height: 6px; border-radius: var(--r-pill); background: var(--cream-100); overflow: hidden; margin: 10px 0 4px; }
.progress-track .fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--wine-500), var(--wine-700)); transition: width var(--tr-slow); }
.progress-hint { font-size: .8rem; color: var(--ink-500); margin-bottom: 14px; }

.coupon-row { display: flex; gap: 8px; margin-block: 12px; }
.coupon-row .input { min-height: 42px; font-size: .88rem; }
.coupon-row .btn { min-height: 42px; padding: 8px 16px; font-size: .86rem; }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--green-100); color: var(--green-700); border-radius: var(--r-md);
  padding: 10px 12px; font-size: .84rem; font-weight: 700; margin-bottom: 10px;
}

.sticky-checkout {
  position: fixed; left: 0; right: 0; bottom: var(--bottomnav-h); z-index: var(--z-nav);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.sticky-checkout .sc-total { flex: 1; }
.sticky-checkout .sc-total b { font-size: 1.15rem; font-weight: 800; }
.sticky-checkout .sc-total span { display: block; font-size: .74rem; color: var(--ink-500); }
@media (min-width: 900px) { .sticky-checkout { display: none; } }

/* ---------- 21. Checkout ---------- */
.checkout-layout { display: grid; gap: 20px; padding-block: 8px 40px; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1fr 360px; } }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.step-pill { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-300); }
.step-pill .dot { width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--cream-200); color: var(--ink-500); display: flex; align-items: center; justify-content: center; font-size: .72rem; }
.step-pill.active { color: var(--wine-700); }
.step-pill.active .dot { background: var(--wine-700); color: #fff; }
.step-pill.done { color: var(--green-700); }
.step-pill.done .dot { background: var(--green-600); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--line); align-self: center; }
.step-pill.done ~ .step-line { background: var(--green-600); }

.addr-card { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.addr-card input { margin-top: 3px; accent-color: var(--wine-700); }
.addr-card.selected { border-color: var(--wine-600); box-shadow: 0 0 0 3px var(--wine-50); }
.addr-card b { display: block; font-size: .94rem; }
.addr-card p { margin: 2px 0 0; font-size: .84rem; color: var(--ink-500); }

.pay-grid { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; cursor: pointer; transition: all var(--tr); }
.pay-option:hover { border-color: var(--wine-400); }
.pay-option.selected { border-color: var(--wine-600); box-shadow: 0 0 0 3px var(--wine-50); }
.pay-option.pay-disabled { opacity: .55; cursor: not-allowed; background: var(--cream-50); }
.pay-option.pay-disabled:hover { border-color: var(--line); }
.pay-option .pay-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--cream-100); display: flex; align-items: center; justify-content: center; color: var(--wine-700); flex-shrink: 0; }
.pay-option b { display: block; font-size: .94rem; }
.pay-option span { font-size: .8rem; color: var(--ink-500); }
.pay-option .pay-radio { margin-left: auto; width: 20px; height: 20px; border-radius: var(--r-pill); border: 2px solid var(--line); flex-shrink: 0; }
.pay-option.selected .pay-radio { border-color: var(--wine-700); background: var(--wine-700); box-shadow: inset 0 0 0 4px #fff; }

.summary-list { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding-block: 5px; color: var(--ink-700); }
.summary-item .si-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 22. Order / track ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px;
  background: var(--line);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--green-600); }
.tl-dot {
  width: 36px; height: 36px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--cream-200); color: var(--ink-300);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.tl-step.done .tl-dot { background: var(--green-600); color: #fff; }
.tl-step.active .tl-dot { background: var(--wine-700); color: #fff; animation: tlPulse 1.6s infinite; }
.tl-step.pending .tl-dot { background: var(--white); border: 2px solid var(--line); }
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 79, 160, .35); }
  50% { box-shadow: 0 0 0 9px rgba(107, 79, 160, 0); }
}
.tl-body b { display: block; font-size: .95rem; }
.tl-body span { font-size: .8rem; color: var(--ink-500); }
.tl-step.active .tl-body b { color: var(--wine-700); }

.rider-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.rider-avatar { width: 54px; height: 54px; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-600); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.rider-card b { display: block; }
.rider-card span { font-size: .8rem; color: var(--ink-500); }
.rider-card .btn { margin-left: auto; }

.eta-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--wine-800), var(--wine-600)); color: #fff;
  border-radius: var(--r-xl); padding: 20px 22px; margin-bottom: 16px;
}
.eta-card .eta-ico { color: var(--gold-300); display: flex; }
.eta-card b { font-size: 1.5rem; display: block; font-variant-numeric: tabular-nums; }
.eta-card span { font-size: .84rem; opacity: .92; }

/* ---------- 23. Account ---------- */
.acc-grid { display: grid; gap: 16px; padding-block: 8px 40px; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 260px 1fr; } }
.acc-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 900px) { .acc-nav { flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; position: sticky; top: 130px; align-self: start; } }
.acc-nav button {
  border: 0; background: transparent; text-align: left; padding: 12px 14px; border-radius: var(--r-md);
  font-weight: 600; font-size: .92rem; color: var(--ink-700); white-space: nowrap; display: flex; align-items: center; gap: 10px;
}
.acc-nav button [data-icon] { color: var(--ink-300); }
.acc-nav button.active { background: var(--wine-700); color: #fff; }
.acc-nav button.active [data-icon] { color: var(--gold-300); }
.acc-panel { display: none; }
.acc-panel.active { display: block; }
.profile-head { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.profile-avatar { width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--wine-100); color: var(--wine-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.profile-head b { font-size: 1.15rem; display: block; }
.profile-head span { color: var(--ink-500); font-size: .86rem; }

.loyalty-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--gold-100), var(--cream-100));
  border: 1px solid var(--gold-400); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 16px;
}
.loyalty-card b { font-size: 1.5rem; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.loyalty-card span { font-size: .86rem; color: var(--ink-700); }

.order-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.order-card .oc-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.order-card .oc-id { font-weight: 800; }
.order-card .oc-status { font-size: .78rem; font-weight: 700; color: var(--green-700); background: var(--green-100); border-radius: var(--r-pill); padding: 3px 10px; }
.order-card .oc-items { font-size: .86rem; color: var(--ink-500); margin-bottom: 10px; }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .oc-total b { font-size: 1rem; font-weight: 800; }

/* ---------- 24. Footer ---------- */
.site-footer, #site-footer {
  background: linear-gradient(180deg, #EFEAF9 0%, #E3DAF4 100%);
  color: #5A4A78; margin: 30px 10px 0; border-radius: 28px 28px 0 0;
  box-shadow: 0 -14px 44px rgba(107, 79, 160, .16); padding-top: 4px;
}
@media (min-width: 900px) { .site-footer, #site-footer { margin: 44px 24px 0; } }
.footer-grid { display: grid; gap: 28px; padding-block: 40px 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #45306F; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #5A4A78; font-size: .9rem; display: block; padding-block: 5px; }
.site-footer a:hover { color: var(--coral-500); }
.site-footer .brand-word { color: #45306F; }
.site-footer .footer-about p { font-size: .88rem; color: #6E5E8E; }
.footer-bottom { border-top: 1px solid rgba(69, 48, 111, .15); padding-block: 18px; font-size: .8rem; color: #6E5E8E; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.pay-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-note .pm-chip { border: 1px solid rgba(69, 48, 111, .28); border-radius: 6px; padding: 2px 8px; font-size: .68rem; font-weight: 700; }

/* ---------- 25. Toasts / modal ---------- */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 10px); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-900); color: #fff; border-radius: 14px; padding: 13px 16px;
  font-size: .9rem; font-weight: 600; box-shadow: var(--sh-lg);
  animation: toastIn var(--tr-slow);
}
.toast [data-icon] { color: var(--gold-300); flex-shrink: 0; }
.toast.error [data-icon] { color: var(--coral-400, var(--coral-500)); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(37, 26, 31, .55); z-index: var(--z-modal);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--tr);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--cream-50); border-radius: 22px 22px 0 0; width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(30px); transition: transform var(--tr-slow);
}
.modal-backdrop.open .modal { transform: translateY(0); }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } .modal { border-radius: 22px; } }
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal .modal-head h3 { margin: 0; }

/* Emergency quick picker */
.emergency-list { display: grid; gap: 10px; }
.emergency-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.emergency-item img { width: 44px; height: 44px; border-radius: 10px; background: var(--cream-100); padding: 5px; }
.emergency-item b { display: block; font-size: .92rem; }
.emergency-item span { font-size: .78rem; color: var(--ink-500); }
.emergency-item .btn { margin-left: auto; min-height: 38px; padding: 8px 14px; font-size: .84rem; }

/* Quick add sheet */
.qa-layout { display: flex; gap: 14px; }
.qa-layout .qa-img { width: 110px; height: 110px; border-radius: var(--r-md); background: var(--cream-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qa-layout .qa-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.qa-info { flex: 1; min-width: 0; }
.qa-info .qa-name { font-weight: 700; margin: 0 0 4px; font-size: .98rem; line-height: 1.3; }
.qa-info .qa-price b { font-size: 1.1rem; font-weight: 800; }
.qa-info .qa-price s { color: var(--ink-300); font-size: .84rem; margin-left: 6px; }

/* ---------- 26. Content pages (about/faq/legal) ---------- */
.content-wrap { max-width: 780px; padding-block: 12px 48px; }
.content-wrap h2 { margin-top: 36px; }
.content-wrap h3 { margin-top: 24px; }
.content-wrap li { margin-bottom: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; border: 0; padding: 16px 18px; text-align: left;
  font-weight: 700; font-size: .96rem; color: var(--ink-900);
}
.faq-q [data-icon] { transition: transform var(--tr); color: var(--wine-600); flex-shrink: 0; }
.faq-item.open .faq-q [data-icon] { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; font-size: .92rem; color: var(--ink-700); }
.faq-item.open .faq-a { display: block; }

.contact-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; }
.contact-card .cc-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--wine-50); color: var(--wine-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card b { display: block; font-size: .98rem; }
.contact-card span, .contact-card a { font-size: .88rem; color: var(--ink-500); }
.contact-card a { color: var(--wine-600); font-weight: 600; }

.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, var(--cream-100), var(--gold-100));
  border: 1px solid var(--line); border-radius: var(--r-xl); min-height: 220px;
  color: var(--ink-500); text-align: center; padding: 24px;
}
.map-placeholder [data-icon] { color: var(--wine-600); }

.timeline-years { position: relative; padding-left: 28px; }
.timeline-years::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-years .ty-item { position: relative; margin-bottom: 22px; }
.timeline-years .ty-item::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--gold-500); border: 2px solid var(--cream-50); }
.timeline-years .ty-year { font-weight: 800; color: var(--wine-700); font-variant-numeric: tabular-nums; }
.timeline-years p { margin: 2px 0 0; color: var(--ink-500); font-size: .9rem; }

/* ---------- 27. B2B ---------- */
.b2b-price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.b2b-price-table th, .b2b-price-table td { padding: 12px 14px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
.b2b-price-table th { background: var(--wine-700); color: #fff; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.b2b-price-table tr:last-child td { border-bottom: 0; }
.b2b-price-table td b { color: var(--wine-700); }

/* ---------- 28. 404 / empty states ---------- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .es-ico {
  width: 88px; height: 88px; border-radius: 28px; margin: 0 auto 18px;
  background: var(--wine-50); color: var(--wine-700); display: flex; align-items: center; justify-content: center;
}
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-500); max-width: 40ch; margin-inline: auto; }

/* ---------- 29. Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- 29.5 Announcement bar (half-inch ticker) ---------- */
.announce-bar {
  position: relative; overflow: hidden;
  background: #2E1652; color: #F0E2F9;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  border-bottom: 1px solid rgba(232, 199, 213, .28);
  height: 42px; display: flex; align-items: center;
}
.announce-track {
  display: flex; white-space: nowrap;
  animation: announceScroll 30s linear infinite;
  will-change: transform;
}
.announce-track:hover { animation-play-state: paused; }
.announce-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 26px; }
.announce-item [data-icon] { color: #E2B9CC; flex-shrink: 0; }
@keyframes announceScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer trust badges */
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-block: 18px 4px; margin-top: -10px;
  border-bottom: 1px solid rgba(69, 48, 111, .12);
}
.ft-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(107, 79, 160, .25); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: .76rem; font-weight: 600; color: #5A4A78;
  background: rgba(255, 255, 255, .6);
}
.ft-badge [data-icon] { color: var(--coral-500); }
.footer-guarantee {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px solid rgba(167, 107, 136, .45); border-radius: var(--r-md);
  padding: 10px 14px; font-size: .82rem; color: #6E5E8E; margin-top: 14px;
  background: rgba(255, 255, 255, .55);
}
.footer-guarantee b { color: #45306F; }
.footer-guarantee [data-icon] { color: var(--coral-500); }

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