/* ===================================================================
   AmarBazar Storefront — Premium Design System v2
   Mobile-first · Niche-adaptive · Shopify-Hydrogen quality
   Note: Google Fonts are loaded via <link> in each HTML head — do NOT
   re-import here. @import inside CSS is render-blocking on mobile and
   delays application of every rule below it until the font URL resolves.
   =================================================================== */

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  --brand:        #E11D74;
  --brand-dark:   #B01560;
  --brand-accent: #FCD5CE;
  --brand-bg:     #FFF5F7;
  --brand-rgb:    225,29,116;

  --surface:      #ffffff;
  --surface2:     #f8f9fa;
  --surface3:     #f1f3f5;
  --border:       #e9ecef;
  --border2:      #dee2e6;
  --text:         #0f172a;
  --text2:        #475569;
  --text3:        #94a3b8;

  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-xs:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:    0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 20px 48px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-brand: 0 8px 24px rgba(var(--brand-rgb, 225,29,116), 0.3);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

/* ─── Reset + Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Bulletproof SVG default — prevents the 300×150 default render.
   NO forced width/height here; specific .class svg rules set sizes.
   Stroke-only icons (fill="none") are unaffected. */
svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  flex-shrink: 0;
}
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, system-ui, sans-serif;
  background: var(--surface2);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

.bn {
  font-family: 'Hind Siliguri', sans-serif;
  letter-spacing: 0.01em;
}

/* ─── Brand utility classes ─────────────────────────────────────── */
.brand-bg        { background-color: var(--brand); }
.brand-bg-dark   { background-color: var(--brand-dark); }
.brand-bg-accent { background-color: var(--brand-accent); }
.brand-bg-soft   { background-color: var(--brand-bg); }
.brand-text      { color: var(--brand); }
.brand-text-dark { color: var(--brand-dark); }
.brand-border    { border-color: var(--brand) !important; }
.brand-ring      { --tw-ring-color: var(--brand); }

/* ─── Mobile frame (desktop centering) ─────────────────────────── */
@media (min-width: 680px) {
  .mobile-frame {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    min-height: 100vh;
    background: var(--surface);
    position: relative;
  }
}

/* Desktop side panels */
@media (min-width: 900px) {
  body.has-side-panels {
    display: grid;
    grid-template-columns: 1fr 430px 1fr;
    gap: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
  }
  body.has-side-panels .mobile-frame {
    grid-column: 2;
  }
}

/* ─── Scrollbar suppression ─────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Typography ────────────────────────────────────────────────── */
.text-display {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 120ms var(--ease-spring), box-shadow 200ms, background 200ms, opacity 200ms;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb, 225,29,116), 0.35);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(var(--brand-rgb, 225,29,116), 0.45); }

.btn-secondary {
  background: var(--surface3);
  color: var(--text);
}
.btn-secondary:hover { background: var(--border2); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-bg); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { background: var(--surface3); color: var(--text); }

/* Legacy compat — inline copy of .btn-primary so older markup keeps working */
.btn-brand {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb, 225,29,116), 0.35);
}
.btn-brand:hover { background: var(--brand-dark); }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ─── Product Cards ─────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card:active { transform: scale(0.98); }

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface3);
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;     /* overrides global img { height: auto } via higher specificity */
  object-fit: cover;
  transition: transform 400ms var(--ease-spring);
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }

.product-card__body {
  padding: 0.6rem 0.75rem 0.75rem;
}

.product-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.16em;
}

.product-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.35rem;
}

.product-card__old-price {
  font-size: 0.74rem;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.product-card__rating {
  font-size: 0.7rem;
  color: var(--text3);
}

.product-card__discount {
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 9999px;
}

/* Badge */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  z-index: 2;
}

/* Wishlist heart */
.heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 200ms var(--ease-spring);
}
.heart-btn:active { transform: scale(1.3); }
.heart-btn.active svg { fill: #E11D74; stroke: #E11D74; }
.heart-btn svg {
  width: 15px;
  height: 15px;
  transition: fill 150ms, stroke 150ms;
}

/* Quick-view button */
.quick-view-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem;
  background: var(--text);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(100%);
  transition: transform 250ms var(--ease-spring);
  cursor: pointer;
  border: none;
  z-index: 2;
}
.product-card:hover .quick-view-btn { transform: translateY(0); }

/* ─── Niche Selector Cards ──────────────────────────────────────── */
.niche-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 250ms var(--ease-spring), box-shadow 250ms;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid rgba(255,255,255,0.2);
}
.niche-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.niche-card:active { transform: scale(0.97); }

.niche-card__img {
  width: 100%;
  height: 100%;     /* overrides global img { height: auto } */
  object-fit: cover;
  transition: transform 600ms var(--ease-spring);
}
.niche-card:hover .niche-card__img { transform: scale(1.08); }

.niche-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: white;
  transition: background 300ms;
}
.niche-card:hover .niche-card__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.82) 100%);
}

.niche-card__emoji {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  margin-bottom: 0.25rem;
}

.niche-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.niche-card__desc {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 0.15rem;
  line-height: 1.3;
}

.niche-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 250ms, transform 250ms var(--ease-spring);
}
.niche-card:hover .niche-card__cta { opacity: 1; transform: translateY(0); }

/* ─── Category Cards ────────────────────────────────────────────── */
.cat-card {
  flex-shrink: 0;
  width: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 200ms var(--ease-spring);
  text-decoration: none;
  display: block;
}
.cat-card:active { transform: scale(0.96); }

.cat-card__img {
  width: 100%;
  height: 100%;     /* overrides global img { height: auto } */
  object-fit: cover;
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.6rem 0.5rem;
}

.cat-card__name {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Legacy cat-chip */
.cat-chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 150ms;
  flex-shrink: 0;
}
.cat-chip.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.cat-chip:active { transform: scale(0.95); }

/* ─── Header ────────────────────────────────────────────────────── */
.store-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.65rem 0.85rem;
}

.store-deliver-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--text3);
  min-width: 0;
}
.store-deliver-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.store-deliver-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* Hide subtitle on very narrow screens to prevent overflow */
@media (max-width: 360px) {
  .store-deliver-line { display: none; }
  .trust-item { font-size: 0.62rem; padding: 0.65rem 0.25rem; }
  .trust-item svg { width: 18px; height: 18px; }
}

.store-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 150ms;
}
.store-logo-mark:active { transform: scale(0.9); }

.store-logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface3);
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--text);
  text-decoration: none;
  transition: background 150ms, transform 120ms;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--border); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 18px; height: 18px; }

.icon-btn .badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--brand);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
}
.icon-btn .badge-dot.visible { display: flex; }

/* ─── Bottom Navigation ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
@media (min-width: 680px) {
  .bottom-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text3);
  padding: 0.35rem 0;
  text-decoration: none;
  position: relative;
  transition: color 200ms;
}
.bottom-nav a svg { width: 20px; height: 20px; transition: transform 200ms var(--ease-spring); }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a.active svg { stroke: var(--brand); transform: translateY(-1px); }
.bottom-nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--brand);
  transition: transform 300ms var(--ease-spring);
}
.bottom-nav a.active::after { transform: translateX(-50%) scale(1); }

.bottom-nav .nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 15px;
  height: 15px;
  background: var(--brand);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid white;
}
.bottom-nav .nav-badge.visible { display: flex; }

/* ─── Toast ─────────────────────────────────────────────────────── */
.toast-msg {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #0f172a;
  color: white;
  padding: 0.65rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 250ms var(--ease-spring), transform 300ms var(--ease-spring);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: min(90vw, 380px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-msg .toast-undo {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-accent);
  cursor: pointer;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-img-wrap {
  position: relative;
  height: clamp(260px, 44vh, 340px);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;     /* overrides global img { height: auto } */
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-img.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-brand-tint {
  position: absolute;
  inset: 0;
  background: var(--brand);
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 270px;
}

.hero-sub {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 0.4rem;
  line-height: 1.5;
  max-width: 220px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: white;
  color: var(--brand);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: transform 150ms var(--ease-spring), box-shadow 150ms;
}
.hero-cta:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.hero-cta:active { transform: scale(0.97); }

/* Floating hero card */
.hero-float-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  animation: floatCard 3s ease-in-out infinite;
  max-width: 140px;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero-float-card img {
  width: 40px;
  height: 40px;     /* overrides global img { height: auto } */
  border-radius: 8px;
  object-fit: cover;
}

/* ─── Trust strip ───────────────────────────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
  gap: 0.4rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item svg { width: 22px; height: 22px; color: var(--brand); }

/* ─── Section headings ──────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: opacity 150ms;
}
.section-link:hover { opacity: 0.75; }

/* ─── Product grid layouts ──────────────────────────────────────── */
.product-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 1rem;
}

.product-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.product-scroll .product-card {
  flex-shrink: 0;
  width: 150px;
  scroll-snap-align: start;
}

/* ─── Flash sale countdown ──────────────────────────────────────── */
.flash-bar {
  margin: 0 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}
.flash-bar > * { min-width: 0; }
@media (max-width: 360px) {
  .flash-digit { min-width: 28px; padding: 0.18rem 0.35rem; font-size: 0.85rem; }
  .flash-countdown { gap: 0.3rem; }
}
.flash-bar::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 9999px;
}

.flash-countdown {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.flash-digit {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  min-width: 32px;
  text-align: center;
}
.flash-sep {
  font-weight: 800;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ─── Reviews ───────────────────────────────────────────────────── */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ─── Payment method logos ──────────────────────────────────────── */
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.payment-logo {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ─── Drawer/Panel ──────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 101;
  transform: translateY(100%);
  transition: transform 350ms var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.drawer-panel.open { transform: translateY(0); }

@media (min-width: 680px) {
  .drawer-panel {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }
  .drawer-panel.open {
    transform: translateX(-50%) translateY(0);
  }
}

.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border2);
  border-radius: 9999px;
  margin: 0.75rem auto 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
}

.drawer-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--surface3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
}
.drawer-close:hover { background: var(--border); }

/* ─── Search ────────────────────────────────────────────────────── */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  background: var(--surface3);
  border: 1.5px solid transparent;
  border-radius: 9999px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 150ms, background 150ms;
}
.search-input:focus {
  background: var(--surface);
  border-color: var(--brand);
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text3);
  pointer-events: none;
}
.search-icon svg { width: 16px; height: 16px; }

/* ─── Chat widget ───────────────────────────────────────────────── */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(18,140,126,0.4);
  z-index: 50;
  transition: transform 200ms var(--ease-spring);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab:active { transform: scale(0.94); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab .chat-dot {
  position: absolute;
  top: -1px; right: -1px;
  width: 12px; height: 12px;
  background: #ef4444;
  border-radius: 9999px;
  border: 2px solid white;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.chat-panel {
  position: fixed;
  right: 12px;
  bottom: 148px;
  width: 300px;
  max-height: 380px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 55;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms var(--ease-spring), opacity 250ms;
  border: 1px solid var(--border);
}
.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 680px) {
  .chat-fab, .chat-panel {
    right: calc(50% - 215px);
  }
}

.chat-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-agent-name { font-size: 0.85rem; font-weight: 600; }
.chat-status { font-size: 0.68rem; opacity: 0.9; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #e5ddd5;
}
.chat-bubble {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.chat-bubble.from-agent {
  background: white;
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.chat-bubble.from-user {
  background: #dcf8c6;
  border-radius: 12px 12px 3px 12px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.chat-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 12px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.chat-typing span {
  width: 7px; height: 7px;
  background: #94a3b8;
  border-radius: 9999px;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  background: var(--surface3);
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  font-family: inherit;
  outline: none;
}
.chat-send {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 120ms;
}
.chat-send:active { transform: scale(0.9); }
.chat-send svg { width: 14px; height: 14px; }

/* ─── Pay bar (cart/checkout) ───────────────────────────────────── */
.pay-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--border);
}
@media (min-width: 680px) {
  .pay-bar {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ─── Sticky filter bar (shop) ──────────────────────────────────── */
.filter-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* ─── Skeleton loaders ──────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--surface3) 0px,
    var(--border) 100px,
    var(--surface3) 200px
  );
  background-size: 400px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 6px;
}

/* ─── Checkout steps ────────────────────────────────────────────── */
.step-bar {
  display: flex;
  align-items: center;
  padding: 1rem 0.75rem;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* On very narrow screens, hide step labels to prevent overflow */
@media (max-width: 360px) {
  .step-label { display: none; }
  .step-bar { padding: 0.85rem 1rem; }
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface3);
  color: var(--text3);
  border: 2px solid var(--border2);
  transition: background 300ms, color 300ms, border-color 300ms;
}
.step-circle.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.step-circle.done {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  transition: color 300ms;
}
.step-label.active { color: var(--brand); }
.step-label.done { color: #16a34a; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border2);
  margin: 0 0.4rem;
  border-radius: 9999px;
  overflow: hidden;
}
.step-line-fill {
  height: 100%;
  background: #16a34a;
  width: 0%;
  transition: width 500ms var(--ease-spring);
}
.step-line-fill.full { width: 100%; }

/* ─── Form inputs ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: var(--surface3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.875rem;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 150ms, background 150ms;
  appearance: none;
}
.form-input:focus { border-color: var(--brand); background: var(--surface); }
.form-input.error { border-color: #ef4444; }
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  display: block;
  margin-bottom: 0.35rem;
}
.form-error {
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}
.form-error.visible { display: block; }

/* ─── Toggle switch ─────────────────────────────────────────────── */
.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border2);
  border-radius: 9999px;
  transition: background 200ms;
}
.toggle input:checked ~ .toggle-track { background: var(--brand); }
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 9999px;
  box-shadow: var(--shadow-xs);
  transition: transform 200ms var(--ease-spring);
}
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(18px); }

/* ─── Quantity stepper ──────────────────────────────────────────── */
.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--surface3);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
  transition: background 120ms;
  user-select: none;
}
.qty-btn:hover { background: var(--border); }
.qty-btn:active { background: var(--border2); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ─── Price range slider ────────────────────────────────────────── */
input[type="range"].price-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) var(--pct, 70%), var(--border2) var(--pct, 70%), var(--border2) 100%);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}
input[type="range"].price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--brand);
  border-radius: 9999px;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 225,29,116), 0.2);
  cursor: pointer;
}

/* ─── Order status pills ────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-pill.delivered { background: #dcfce7; color: #15803d; }
.status-pill.processing { background: #fef9c3; color: #854d0e; }
.status-pill.shipped { background: #dbeafe; color: #1d4ed8; }
.status-pill.cancelled { background: #fee2e2; color: #dc2626; }

/* ─── Tab nav ───────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text3);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color 200ms;
  white-space: nowrap;
}
.tab-btn.active { color: var(--brand); }
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.5rem; right: 0.5rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 250ms var(--ease-spring);
}
.tab-btn.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Spacers for fixed bars ────────────────────────────────────── */
.has-bottom-nav  { padding-bottom: 74px; }
.has-pay-bar     { padding-bottom: 88px; }
.has-both        { padding-bottom: calc(74px + 88px); }

/* ─── Empty state ───────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 0.75rem;
}
.empty-state svg {
  width: 64px; height: 64px;
  color: var(--border2);
}
.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
}
.empty-state-sub {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.5;
}

/* ─── Share modal ───────────────────────────────────────────────── */
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 150ms;
  text-decoration: none;
}
.share-option:hover { background: var(--surface3); }
.share-option-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.share-option-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
}

/* ─── Product zoom modal ────────────────────────────────────────── */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms;
}
.zoom-modal.open { opacity: 1; pointer-events: auto; }
.zoom-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}

/* ─── Wishlist page ─────────────────────────────────────────────── */
.wishlist-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
}
.wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.wishlist-card.removing {
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition: all 300ms var(--ease-in-out);
}

/* ─── Stagger animations ────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* stagger-child: opacity lives ONLY in the keyframe `from`, not as a
   static CSS property. This way if animations are disabled (prefers-reduced-
   motion, off-screen, browser quirk) elements are visible immediately. */
.stagger-child {
  animation: staggerIn 400ms var(--ease-spring) both;
}
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-child:nth-child(1) { animation-delay: 0ms; }
.stagger-child:nth-child(2) { animation-delay: 60ms; }
.stagger-child:nth-child(3) { animation-delay: 120ms; }
.stagger-child:nth-child(4) { animation-delay: 180ms; }
.stagger-child:nth-child(5) { animation-delay: 240ms; }
.stagger-child:nth-child(6) { animation-delay: 300ms; }
.stagger-child:nth-child(7) { animation-delay: 360ms; }
.stagger-child:nth-child(8) { animation-delay: 420ms; }

/* Safety: reduced-motion users see content immediately */
@media (prefers-reduced-motion: reduce) {
  .stagger-child { animation: none; opacity: 1; transform: none; }
}

/* ─── Niche selector page ───────────────────────────────────────── */
.index-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  min-height: 100vh;
}

/* ─── Admin legacy compatibility ────────────────────────────────── */
.admin-sidebar {
  background: #0f172a;
  color: #e2e8f0;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.15s;
}
.admin-sidebar a:hover { background: #1e293b; }
.admin-sidebar a.active { background: var(--brand); color: white; }

.metric-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}

.step-dot {
  width: 28px; height: 28px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #6b7280;
}
.step-dot.done { background: var(--brand); color: white; }

.stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }

/* ─── Product image thumbnails ──────────────────────────────────── */
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
}
.thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 150ms, transform 150ms;
}
.thumb.active { border-color: var(--brand); }
.thumb:hover { transform: scale(1.05); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }   /* overrides global img { height: auto } */

/* ─── Section spacers ───────────────────────────────────────────── */
.section { margin-bottom: 2rem; }

/* ─── Rating bars ───────────────────────────────────────────────── */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 9999px;
  transition: width 600ms var(--ease-spring);
}

/* ─── Delivery zone selector ─────────────────────────────────────── */
#zoneButtons {
  flex-wrap: wrap;
}
.delivery-zone-btn {
  flex: 1;
  min-width: calc(50% - 0.4rem);
  padding: 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface3);
  text-align: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  transition: all 150ms;
  white-space: nowrap;
}
.delivery-zone-btn.active {
  background: var(--brand-bg);
  border-color: var(--brand);
  color: var(--brand);
}

/* ─── Promo badge ───────────────────────────────────────────────── */
@keyframes promoBounce {
  0%,100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.05); }
}
.promo-badge {
  animation: promoBounce 3s ease-in-out infinite;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #fbbf24;
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(251,191,36,0.4);
  z-index: 3;
}

/* ─── Language toggle ───────────────────────────────────────────── */
.lang-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--surface3);
  color: var(--text2);
  border: none;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.lang-pill:hover { background: var(--border); }

/* ─── Order timeline ────────────────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}
.timeline-dot.done { background: #dcfce7; color: #15803d; border: 2px solid #15803d; }
.timeline-dot.active { background: var(--brand-bg); color: var(--brand); border: 2px solid var(--brand); }
.timeline-dot.pending { background: var(--surface3); color: var(--text3); border: 2px solid var(--border2); }
