/* ==========================================================================
   Lumero — storefront design system (indigo marketplace)
   Plain CSS on top of a purged Bootstrap 5. No preprocessor, no build step.
   Reference look: https://lumero-redesign.vercel.app/

   1 tokens · 2 base · 3 type · 4 layout & panels · 5 buttons · 6 forms
   7 price, ratings, badges, chips · 8 header · 9 live search · 10 footer & tab bar
   11 product card & row · 12 navigation pieces (crumbs, pagination, tabs)
   13 feedback (alerts, toasts, empty, modal, offcanvas, tables)
   14 WhatsApp widget · 15 utilities · 16 responsive chrome · 17 print
   then LEGACY page styles, then one PAGES block per storefront area.

   Colours come from Settings → Appearance (partials/theme.blade.php sets
   --flame --ember --glow --navy --panel --ink --ground --font-ui --font-display
   --logo-h). Every other brand tone is derived from those with color-mix(), so
   changing them in the admin re-themes the whole storefront. Sale red and
   "ok" green are fixed: they carry meaning, not brand.
   ========================================================================== */

/* 1 — TOKENS ============================================================== */

:root {
  /* admin-driven (defaults; theme.blade.php overrides them) */
  --flame:  #2B1FB8;   /* brand indigo: header band, primary buttons, links, active states */
  --ember:  #2217A0;   /* darker indigo: hover / pressed */
  --glow:   #FFD23F;   /* yellow: search button, count badges, rank tabs, promo */
  --navy:   #14123A;   /* footer */
  --panel:  #14123A;   /* dark promo panels (same as navy by default) */
  --ink:    #16181D;   /* body text */
  --ground: #F1F2F5;   /* page background */

  /* derived from the admin colours */
  --flame-ink:  color-mix(in srgb, var(--ember) 88%, #000);   /* brand-coloured text on white (AA) */
  --flame-soft: color-mix(in srgb, var(--flame) 8%, #fff);    /* tinted hover / selected background */
  --flame-tint: color-mix(in srgb, var(--flame) 16%, #fff);   /* stronger tint: hover on soft, tracks */
  --flame-line: color-mix(in srgb, var(--flame) 30%, #fff);   /* soft brand borders */
  --flame-ring: color-mix(in srgb, var(--flame) 16%, transparent);
  --on-flame:   color-mix(in srgb, var(--flame) 22%, #fff);   /* secondary text on the brand band */
  --glow-ink:   color-mix(in srgb, var(--glow) 90%, #000);    /* yellow hover */
  --glow-soft:  color-mix(in srgb, var(--glow) 18%, #fff);
  --navy-2:     color-mix(in srgb, var(--navy) 80%, var(--flame)); /* raised surface on the footer */
  --ink-2:      color-mix(in srgb, var(--ink) 82%, #fff);     /* secondary text, nav links */
  --star:       color-mix(in srgb, var(--glow) 88%, #E08A00);

  /* fixed: meaning, not brand */
  --sale:      #D72B26;  /* discounts, flash sale, "Only N left" (4.9:1 with white text) */
  --sale-ink:  #C8231F;  /* red text on white (AA) */
  --sale-soft: #FDECEB;
  --ok:        #0E7A4A;  /* cash on delivery, in stock, delivered */
  --ok-soft:   #E6F4EC;
  --warn:      #A35F00;
  --warn-soft: #FFF4DE;
  --stop:      #C62828;
  --stop-soft: #FDECEC;
  --info:      #1565C0;
  --info-soft: #E9F1FB;

  /* fixed neutrals */
  --slate: #4F5560;
  --mute:  #646A74;    /* small grey text; 4.5:1 on white and on --ground */
  --line:  #E3E5EA;
  --line-2:#EEF0F3;
  --tile:  #F6F7F9;    /* image wells */
  --card:  #FFFFFF;
  --field: #D9DCE2;    /* input borders */
  --link:  var(--flame);
  --blue:  #1A73C8;
  --blue-soft: #EAF2FB;

  /* type */
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* geometry */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(22, 24, 29, .06);
  --sh-2: 0 10px 28px -10px rgba(22, 24, 29, .28);
  --sh-3: 0 24px 64px rgba(22, 24, 29, .3);

  /* layout */
  --header-h: 114px;   /* sticky band (70) + category bar (44) */
  --maxw: 1320px;
}

/* 2 — BASE =============================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: .90625rem; /* 14.5px at the default 16px base; follows Settings → Appearance → base size */
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ember); text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--line); opacity: 1; margin: 20px 0; }
::selection { background: var(--flame); color: #fff; }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--glow); }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* 3 — TYPE =============================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); font-weight: 900; }
h2 { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.25rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: 1rem; }
h5 { font-size: .9375rem; }
h6 { font-size: .875rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1rem; color: var(--slate); line-height: 1.6; max-width: 68ch; }

.prose { max-width: 72ch; color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; font-size: 1.25rem; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .875rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--tile); color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--flame); color: var(--ink); }

.t-sm { font-size: .8125rem; }
.t-xs { font-size: .75rem; }
.t-mute { color: var(--mute); }
.t-slate { color: var(--slate); }
.t-ink { color: var(--ink); }
.t-flame { color: var(--flame-ink); }
.t-sale { color: var(--sale-ink); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-wide { font-stretch: 115%; }   /* Archivo's wide cut, for big display lines */
.min-w-0 { min-width: 0; }
.fw-6 { font-weight: 600; }
.fw-8 { font-weight: 800; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* 4 — LAYOUT & PANELS ===================================================== */

.container { max-width: var(--maxw); padding-left: 16px; padding-right: 16px; }

.page-wrap { padding-bottom: 40px; }
.section { padding: 24px 0 0; }
.section-tight { padding: 12px 0 0; }

/* white rounded block on the grey ground — the basic building block */
.panel { background: var(--card); border-radius: var(--r-lg); }
.panel-pad { padding: 18px 18px 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.panel-head > * { min-width: 0; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.0625rem; }
.panel-foot { padding: 14px 18px; border-top: 1px solid var(--line-2); }

/* section title — "Flash sale", "Best sellers"; .more is the "See all ›" link */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.1875rem; }
.section-head .sub { font-size: .8125rem; color: var(--mute); margin: 2px 0 0; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: .84375rem; font-weight: 700; color: var(--flame); white-space: nowrap; }
.more::after { content: "\203A"; font-size: 1.25em; line-height: 1; }
.more:hover { color: var(--ember); text-decoration: none; }

/* product grids: Bootstrap .row + row-cols-* for the column count, .p-grid for the tight gutter */
.p-grid { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
/* cards butted together inside a panel (flash sale strip) */
.p-grid-flush { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.p-grid-flush .p-card { border-radius: 0; border-color: transparent; }
.p-grid-flush .p-card:hover { box-shadow: var(--sh-2); z-index: 2; }

/* 5 — BUTTONS ============================================================ */

.btn {
  font-family: var(--font-ui); font-weight: 700;
  border-radius: var(--r-sm); padding: 9px 17px; font-size: .875rem; line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
/* primary — brand indigo */
.btn-flame { background: var(--flame); border: 1px solid var(--flame); color: #fff; }
.btn-flame:hover, .btn-flame:focus { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-flame:active { background: var(--ember) !important; border-color: var(--ember) !important; color: #fff !important; }
/* secondary — dark ("Buy now") */
.btn-navy { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
/* outlined brand; .btn-line is the wide "Load more" / "Shop all" variant */
.btn-outline-flame, .btn-line { background: #fff; border: 1.5px solid var(--flame); color: var(--flame); }
.btn-outline-flame:hover, .btn-outline-flame:focus, .btn-line:hover, .btn-line:focus { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn-ink { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: #000; border-color: #000; color: #fff; }
/* white with a grey border — tertiary, cancel, filters */
.btn-quiet { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-quiet:hover, .btn-quiet:focus { background: #fff; border-color: var(--flame); color: var(--flame); }
.btn-link { --bs-btn-color: var(--link); --bs-btn-hover-color: var(--ember); --bs-btn-active-color: var(--ember); --bs-btn-disabled-color: var(--mute); font-weight: 700; text-decoration: none; }
.btn-link:hover, .btn-link:focus-visible { text-decoration: underline; }
/* tinted brand */
.btn-soft { background: var(--flame-soft); border: 1px solid transparent; color: var(--flame); }
.btn-soft:hover, .btn-soft:focus { background: var(--flame-tint); color: var(--ember); }
/* yellow — "Add to cart" on the product page, promo, subscribe */
.btn-glow { background: var(--glow); border: 1px solid var(--glow); color: var(--ink); }
.btn-glow:hover, .btn-glow:focus { background: var(--glow-ink); border-color: var(--glow-ink); color: var(--ink); }
.btn:disabled, .btn.disabled { opacity: .55; }

.btn-lg { padding: 12px 22px; font-size: .96875rem; }
.btn-xl { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* 6 — FORMS ============================================================== */

.form-label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-label .req { color: var(--stop); margin-left: 2px; }

.form-control, .form-select {
  border: 1.5px solid var(--field); border-radius: var(--r-sm);
  padding: 9px 13px; font-size: .90625rem; color: var(--ink); background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-select { padding-right: 34px; background-position: right 10px center; }
.form-control::placeholder { color: #8C919A; }
.form-control:focus, .form-select:focus {
  border-color: var(--flame);
  box-shadow: 0 0 0 3px var(--flame-ring);
  outline: none;
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--stop); }
.form-text { font-size: .75rem; color: var(--mute); }
.invalid-feedback { display: block; font-size: .75rem; }

.form-check-input { border: 1.5px solid #A3A8B1; }
.form-check-input:checked { background-color: var(--flame); border-color: var(--flame); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--flame-ring); border-color: var(--flame); }
.form-check-label { font-size: .84375rem; color: var(--ink-2); }

.input-group-text { background: var(--tile); border: 1.5px solid var(--field); color: var(--slate); font-size: .8125rem; }

.field-icon { position: relative; }
.field-icon > .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 1rem; pointer-events: none; z-index: 3; }
.field-icon .form-control { padding-left: 38px; }

.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--mute); padding: 6px 8px; cursor: pointer; font-size: 1rem; z-index: 3;
}
.pw-toggle:hover { color: var(--ink); }

/* quantity stepper — lumero.js wires .qty button[data-inc] */
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty button { width: 38px; min-height: 40px; border: 0; background: none; color: var(--ink-2); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.qty button:hover { background: var(--flame-soft); color: var(--flame); }
.qty button:disabled { color: #C8CBD1; cursor: not-allowed; background: none; }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 700; font-size: .9375rem; color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--flame-soft); }
.qty-sm button { width: 30px; min-height: 32px; font-size: 1rem; }
.qty-sm input { width: 34px; font-size: .875rem; }

/* 7 — PRICE, RATINGS, BADGES, CHIPS ======================================= */

.price { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-lg { font-size: 1.875rem; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.price-md { font-size: 1.125rem; }
.price-sm { font-size: 1rem; }
.price-sale { color: var(--sale); }
.price-was { color: var(--mute); font-weight: 400; text-decoration: line-through; font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-off { color: var(--sale-ink); font-weight: 800; font-size: .75rem; white-space: nowrap; }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); font-size: .75rem; line-height: 1; }
.stars .off { color: #D9DCE2; }
.rating-count { font-size: .75rem; color: var(--mute); margin-left: 4px; }

/* discount tag — "-25%" on images and buy boxes */
.tag-off {
  display: inline-block; background: var(--sale); color: #fff;
  font-size: .75rem; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: 4px;
}
.tag-off-glow { background: var(--glow); color: var(--ink); }
.tag-off-lg { font-size: .8125rem; padding: 6px 9px; }

/* green "Free delivery" note */
.tag-free {
  align-self: flex-start; display: inline-block;
  font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-soft);
  border-radius: 4px; padding: 1px 6px;
}

/* small flag over a product image */
.flag { display: inline-block; font-size: .75rem; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: 4px; background: var(--tile); color: var(--slate); }
.flag-flame, .flag-sale { background: var(--sale); color: #fff; }
.flag-ink { background: var(--ink); color: #fff; }
.flag-info { background: var(--flame); color: #fff; }
.flag-glow { background: var(--glow); color: var(--ink); }
.card-flag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; pointer-events: none; }

/* status pill — orders, returns, reviews (components/status) */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--line-2); color: var(--slate);
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-stop { background: var(--stop-soft); color: var(--stop); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-flame { background: var(--flame-soft); color: var(--flame); }
.pill-ink { background: var(--ink); color: #fff; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* chips — sub-category links and active filters; lumero.js removes a .chip when its button is clicked */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 13px; font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.chip small { color: inherit; opacity: .65; }
a.chip:hover { border-color: var(--flame); color: var(--flame); text-decoration: none; }
.chip.is-on, .chip.active { background: var(--flame); border-color: var(--flame); color: #fff; }
.chip button { border: 0; background: none; color: inherit; padding: 0; line-height: 1; cursor: pointer; font-size: .9375rem; }
.chip button:hover { color: var(--stop); }

/* 8 — HEADER ============================================================= */

/* thin white strip: delivery / COD / returns messages + help links */
.topbar { background: #fff; color: var(--mute); font-size: .78125rem; border-bottom: 1px solid var(--line-2); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.topbar-note { display: flex; gap: 22px; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar-note > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-note .bi { color: var(--flame); margin-right: 6px; }
.topbar-links { display: flex; gap: 16px; flex: 0 0 auto; }
.topbar-links a { color: var(--mute); }
.topbar-links a:hover { color: var(--flame); text-decoration: none; }

/* sticky header: indigo band (logo · search · actions) + white category bar */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 6px 20px -14px rgba(22, 24, 29, .45); }
.hd-band { background: var(--flame); color: #fff; }
.hd-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; padding: 6px 0; }

.hd-menu { display: none; flex: 0 0 auto; width: 40px; height: 40px; margin-left: -6px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: #fff; font-size: 1.6rem; line-height: 1; }
.hd-menu:hover { background: rgba(255, 255, 255, .12); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #fff; }
.brand:hover { color: #fff; text-decoration: none; }
/* Uploaded logos come in any size; height comes from Settings → Appearance → Logo size and the band grows to fit. */
.brand .brand-logo { height: var(--logo-h, 48px); width: auto; max-width: min(260px, 55vw); object-fit: contain; object-position: left center; }
.brand .brand-logo.is-tile { background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: border-box; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; background: #fff; border-radius: 8px; color: var(--flame); font-size: 1.3rem; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; color: #fff; }

.hd-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 720px; }
.hd-search form { display: flex; height: 44px; background: #fff; border-radius: var(--r-sm); }
.hd-search form:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 55%, transparent); }
.hd-search input { flex: 1 1 auto; min-width: 0; border: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); padding: 0 16px; font-size: .90625rem; color: var(--ink); background: #fff; outline: none; }
.hd-search input::placeholder { color: #80858F; }
.hd-search input::-webkit-search-cancel-button { cursor: pointer; }
.hd-search button { flex: 0 0 58px; border: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--glow); color: var(--ink); display: grid; place-items: center; font-size: 1.125rem; cursor: pointer; }
.hd-search button:hover { background: var(--glow-ink); }

.hd-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.hd-action { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-sm); color: #fff; font-size: .8125rem; line-height: 1.2; }
.hd-action:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.hd-action > .bi { font-size: 1.4375rem; line-height: 1; }
.hd-action small { display: block; color: var(--on-flame); font-size: .71875rem; line-height: 1.1; }
.hd-action b { display: block; font-weight: 700; color: #fff; }
/* count badge — data-cart-count / data-wish-count, painted by Livewire and lumero.js */
.hd-count {
  position: absolute; top: 1px; left: 24px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--glow); color: var(--ink); border: 2px solid var(--flame);
  font-size: .65625rem; font-weight: 800; line-height: 1;
  display: grid; place-items: center; font-family: var(--font-ui);
}

/* white category bar (desktop) */
.cat-nav { background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav .cn-inner { display: flex; align-items: stretch; gap: 2px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.cat-nav .cn-inner::-webkit-scrollbar { display: none; }
.cat-nav .dropdown { display: flex; }
.cat-nav .cn-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 11px; white-space: nowrap; border: 0; background: none;
  font-size: .84375rem; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}
.cat-nav .cn-link:hover { color: var(--flame); text-decoration: none; }
.cat-nav .cn-link.is-active { color: var(--flame); box-shadow: inset 0 -2px 0 var(--flame); }
.cat-nav .cn-all { font-weight: 800; color: var(--ink); padding-left: 0; margin-right: 6px; }
.cat-nav .cn-all::after { display: none; }
.cat-nav .cn-all > .bi { font-size: 1.15rem; }
.cat-nav .cn-deals { color: var(--sale); font-weight: 800; }
.cat-nav .cn-deals:hover, .cat-nav .cn-deals.is-active { color: var(--sale); box-shadow: inset 0 -2px 0 var(--sale); }
.cat-nav .cn-track { margin-left: auto; color: var(--mute); font-weight: 500; }

.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 6px 0; font-size: .84375rem; }
.dropdown-item { padding: 8px 16px; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--flame-soft); color: var(--flame); }
.dropdown-item.is-active, .dropdown-item.active { background: var(--flame); color: #fff; }
/* "All categories" mega menu: one column per department */
.cn-menu { z-index: 1045; width: min(920px, 94vw); padding: 22px 24px 8px; }
.cn-mega { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 28px; }
.cn-mega h3 { font-size: .875rem; margin: 0 0 6px; }
.cn-mega h3 a { color: var(--ink); }
.cn-mega h3 a:hover { color: var(--flame); text-decoration: none; }
.cn-mega h3 .dropdown-item { color: var(--ink); font-size: .875rem; font-weight: 800; background: none; }
.cn-mega ul { list-style: none; margin: 0 0 16px; padding: 0; }
.cn-mega .dropdown-item { padding: 3px 0; background: none; color: var(--mute); font-size: .84375rem; font-weight: 500; white-space: normal; }
.cn-mega .dropdown-item:hover, .cn-mega .dropdown-item:focus { background: none; color: var(--flame); }

/* 9 — LIVE SEARCH SUGGESTIONS (markup built by lumero.js) ================== */

.search-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2);
  max-height: min(70vh, 460px); overflow-y: auto; overscroll-behavior: contain; color: var(--ink);
  animation: sp-in .14s ease;
}
@keyframes sp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: .71875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.sp-item:last-child { border-bottom: 0; }
.sp-item:hover, .sp-item.is-on { background: var(--flame-soft); color: var(--ink); text-decoration: none; }
.sp-item.is-on { box-shadow: inset 3px 0 0 var(--flame); }
.sp-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { min-width: 0; flex: 1 1 auto; }
.sp-name { display: block; font-size: .84375rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-name mark { background: none; color: var(--flame); font-weight: 800; padding: 0; }
.sp-note { display: block; font-size: .75rem; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-price { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.sp-price .price { display: block; color: var(--sale); }
.sp-price .price-was { font-size: .6875rem; }
.sp-out { font-size: .71875rem; font-weight: 700; color: var(--stop); }
.sp-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; color: var(--flame); font-size: .84375rem; font-weight: 700; text-decoration: none; position: sticky; bottom: 0; }
.sp-all:hover, .sp-all.is-on { background: var(--flame-soft); color: var(--flame); text-decoration: none; }
.sp-empty { padding: 22px 16px; text-align: center; color: var(--slate); font-size: .84375rem; }
.sp-empty .bi { font-size: 1.4rem; color: var(--mute); display: block; margin-bottom: 6px; }
.sp-skeleton { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.sp-skeleton span { background: var(--line-2); border-radius: var(--r-sm); height: 10px; animation: sp-pulse 1.1s ease-in-out infinite; }
.sp-skeleton .sp-sk-thumb { width: 44px; height: 44px; flex: 0 0 44px; }
.sp-skeleton .sp-sk-line { flex: 1 1 auto; max-width: 60%; }
@keyframes sp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* 10 — FOOTER, NEWSLETTER, TAB BAR ======================================== */

/* newsletter: an indigo block above the footer */
.newsletter { margin-top: 32px; }
.newsletter .nl-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  background: var(--flame); color: #fff; border-radius: var(--r-lg); padding: 26px 28px;
}
.nl-copy { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 340px; }
.nl-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--glow); font-size: 1.35rem; }
.newsletter h2 { color: #fff; font-size: 1.375rem; font-weight: 900; margin: 0 0 4px; }
.newsletter p { color: var(--on-flame); margin: 0; font-size: .875rem; }
.newsletter form { display: flex; gap: 8px; flex: 1 1 360px; max-width: 520px; min-width: 0; }
.newsletter input { flex: 1 1 auto; min-width: 0; height: 46px; border: 0; border-radius: var(--r-sm); padding: 0 14px; font-size: .90625rem; color: var(--ink); }
.newsletter input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 60%, transparent); }
.newsletter .btn { height: 46px; padding: 0 24px; }

.site-footer { margin-top: 32px; background: var(--navy); color: rgba(255, 255, 255, .66); font-size: .875rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer h2 { color: #fff; font-size: .875rem; font-weight: 800; letter-spacing: 0; margin: 0 0 14px; }
.ft-cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 48px 0 40px; }
.ft-about p { max-width: 34ch; margin: 0; }
.ft-name { font-weight: 900; font-stretch: 118%; font-size: 1.375rem; letter-spacing: -.03em; color: #fff; margin: 0 0 12px; line-height: 1; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-list .bi { margin-right: 8px; }
.ft-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy-2);
  color: #fff !important; font-size: 1rem; text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.social-btn:hover { background: var(--glow); color: var(--ink) !important; }
.ft-mid { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .78125rem; }
.ft-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ft-chips-label { margin-right: 4px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: var(--r-sm); background: var(--navy-2);
  color: rgba(255, 255, 255, .86); font-size: .75rem;
}
.ft-legal { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0; font-size: .78125rem; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1035;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; box-shadow: var(--sh-2);
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; visibility: hidden; cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease, background-color .15s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--flame); }

/* phones and tablets: app-style bottom tab bar (shown in section 16) */
.tabbar { display: none; }

/* 11 — PRODUCT CARD & ROW ================================================= */

/* marketplace tile: photo · two-line name · price · struck price + % · one status line · round cart button */
.p-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.p-card:hover { box-shadow: var(--sh-2); border-color: transparent; }
.p-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.p-card:hover .p-card-media img { transform: scale(1.04); }
/* yellow rank tab for ranked lists (<x-product-card :rank="1">) */
.p-rank { position: absolute; top: 0; left: 10px; z-index: 2; background: var(--glow); color: var(--ink); font-weight: 900; font-size: .8125rem; line-height: 1; padding: 6px 7px 8px; border-radius: 0 0 6px 6px; }
.p-soldout { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(22, 24, 29, .82); color: #fff; text-align: center; font-size: .75rem; font-weight: 700; padding: 6px; }

.p-card-tools { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.p-tool {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); border: 0; border-radius: 50%; box-shadow: var(--sh-1);
  color: var(--ink-2); font-size: .875rem; cursor: pointer;
  transition: color .12s ease, background-color .12s ease;
}
.p-tool:hover { color: var(--sale); background: #fff; }
.p-tool.is-on, .p-tool.is-on .bi { color: var(--sale); }

.p-card-body { position: relative; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; padding: 10px 10px 12px; }
.p-card-title {
  margin: 0 0 2px; font-size: .84375rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.p-card-title a { color: inherit; }
.p-card-title a:hover { color: var(--flame); text-decoration: none; }
/* whole card is the link target; tools and the cart button sit above this layer */
.p-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card:has(.p-card-title a:hover) .p-card-title { color: var(--flame); }
.p-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.p-card-price .price { font-size: 1.03125rem; }
.p-card-was { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: .75rem; }
/* one status line: green COD / red "Only N left" / grey "N sold"; leaves room for the cart button */
.p-status { margin: auto 0 0; padding: 4px 40px 0 0; font-size: .75rem; color: var(--mute); }
.p-status.is-low { color: var(--sale-ink); font-weight: 700; }
.p-status.is-cod { color: var(--ok); }
.stock-bar + .p-status { margin-top: 0; padding-top: 3px; }
/* kept for older views */
.p-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: .75rem; color: var(--mute); }
.p-sold { font-size: .75rem; color: var(--mute); }

/* round cart button. The Livewire AddToCartButton renders `.btn.btn-flame.w-100` with text spans;
   the text stays for screen readers, the icon is drawn here. */
.p-card-cta { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.p-card-cta .btn {
  position: relative; width: 34px !important; height: 34px; margin: 0 !important; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--flame-soft); color: var(--flame); font-size: 1rem; line-height: 1;
}
.p-card-cta .btn::before { content: "\f23f"; font-family: "bootstrap-icons"; font-weight: 400; }
.p-card-cta .btn > span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-card-cta .btn:hover, .p-card-cta .btn:focus-visible { background: var(--flame); color: #fff; }
.p-card-cta .btn:disabled { opacity: .6; }

/* "Only N left" / claimed bar on flash-sale cards */
.stock-bar { height: 5px; border-radius: 3px; background: var(--sale-soft); overflow: hidden; margin: auto 40px 0 0; }
.stock-bar span { display: block; height: 100%; background: var(--sale); }

/* horizontal line item — top-rated lists, wishlist, order detail */
.p-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.p-row:last-child { border-bottom: 0; }
.p-row-media { flex: 0 0 68px; width: 68px; aspect-ratio: 1 / 1; background: var(--tile); border-radius: var(--r-sm); overflow: hidden; }
.p-row-media img { width: 100%; height: 100%; object-fit: cover; }
.p-row-body { flex: 1 1 auto; min-width: 0; }
.p-row-title { font-size: .84375rem; font-weight: 500; letter-spacing: 0; color: var(--ink); margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row-title a { color: inherit; }
.p-row-title a:hover { color: var(--flame); text-decoration: none; }
.p-row-variant { font-size: .75rem; color: var(--mute); margin: 0 0 4px; }
.p-row-meta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.p-row-rating { display: inline-flex; align-items: center; }

/* 12 — NAVIGATION PIECES ================================================== */

/* breadcrumbs (components/crumbs) */
.crumbs { padding: 14px 0 6px; font-size: .78125rem; color: var(--mute); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--flame); text-decoration: none; }
.crumbs .sep { color: #C3C8D0; font-size: .9375rem; line-height: 1; }
.crumbs [aria-current] { color: var(--ink-2); }

/* pagination (Laravel's bootstrap-5 views) */
.pagination { gap: 6px; margin: 0; flex-wrap: wrap; }
.page-link {
  min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px;
  border: 1.5px solid var(--line) !important; border-radius: var(--r-sm) !important;
  background: #fff; color: var(--ink-2); font-size: .84375rem; font-weight: 600;
}
.page-link:hover { background: #fff; border-color: var(--flame) !important; color: var(--flame); }
.page-link:focus { box-shadow: 0 0 0 3px var(--flame-ring); }
.page-item.active .page-link { background: var(--flame); border-color: var(--flame) !important; color: #fff; }
.page-item.disabled .page-link { color: #BFC3CA; background: #fff; }
nav[role="navigation"] p.small, nav .small.text-muted { color: var(--mute) !important; font-size: .8125rem; }

/* tabs — thick brand underline on the active tab */
.nav-tabs { border-bottom: 1px solid var(--line); gap: 0 22px; padding: 0 18px; background: none; }
.nav-tabs .nav-link {
  border: 0; border-bottom: 3px solid transparent; border-radius: 0; margin-bottom: -1px;
  color: var(--mute); font-weight: 700; font-size: .90625rem; padding: 13px 2px; background: none;
}
.nav-tabs .nav-link:hover { color: var(--flame); }
.nav-tabs .nav-link.active { color: var(--flame); border-bottom-color: var(--flame); background: none; }

/* 13 — FEEDBACK & OVERLAYS ================================================ */

.alert { border: 1px solid transparent; border-radius: var(--r-sm); font-size: .84375rem; padding: 12px 14px; }
.alert-ok { background: var(--ok-soft); border-color: #C3E3D1; color: #0B5E39; }
.alert-warn { background: var(--warn-soft); border-color: #F2DDB4; color: #7F4A00; }
.alert-stop { background: var(--stop-soft); border-color: #F3C9C9; color: #9E2020; }
.alert-info { background: var(--info-soft); border-color: #C4DAF3; color: #10498F; }
.alert-flame { background: var(--flame-soft); border-color: var(--flame-line); color: var(--flame-ink); }

/* toasts — dark, bottom centre (partials/toasts + lumeroToast()) */
.toast-stack { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1090; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.lm-toast {
  background: var(--ink); color: #fff; border-radius: var(--r);
  padding: 12px 16px; font-size: .875rem;
  box-shadow: var(--sh-2); display: flex; align-items: center; gap: 12px;
  animation: toast-in .25s ease; pointer-events: auto;
}
.lm-toast a { color: var(--glow); font-weight: 700; }
.lm-toast .bi { color: var(--glow); font-size: 1rem; }
.lm-toast[role="alert"] .bi { color: #FF8A80; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* empty state (partials/empty) */
.empty { text-align: center; padding: 48px 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--flame-soft); color: var(--flame); font-size: 2rem; margin-bottom: 14px; }
.empty-title, .empty h3 { font-size: 1.125rem; margin: 0 0 6px; }
.empty-text, .empty p { color: var(--mute); max-width: 44ch; margin: 0 auto 18px; }
.empty > .bi { font-size: 2.5rem; color: var(--flame-tint); }

/* modal & offcanvas skin */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.modal-header { border-bottom: 1px solid var(--line-2); padding: 14px 18px; }
.modal-header .modal-title { font-size: 1.125rem; }
.modal-body { padding: 18px; }
.modal-backdrop.show { opacity: .55; }

.offcanvas { font-size: .875rem; }
.offcanvas-header { background: var(--flame); color: #fff; padding: 14px 16px; }
.offcanvas-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .9; }
.offcanvas-title { color: #fff; font-size: 1rem; margin: 0; }
.m-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500;
}
.m-nav a:hover { background: var(--flame-soft); color: var(--flame); text-decoration: none; }
.m-nav a > .bi:last-child { margin-left: auto; color: #BFC3CA; font-size: .75rem; }
.m-nav .m-ic { width: 20px; text-align: center; color: var(--flame); font-size: 1rem; }
.m-nav .m-deal, .m-nav .m-deal .m-ic { color: var(--sale); font-weight: 700; }
.m-nav .m-label { margin: 0; font-size: .71875rem; font-weight: 700; color: var(--mute); padding: 16px 16px 6px; text-transform: uppercase; letter-spacing: .05em; background: var(--tile); }

/* tables */
.table { --bs-table-color: var(--ink-2); font-size: .84375rem; margin: 0; }
.table > :not(caption) > * > * { padding: 12px 16px; }
.table thead th { font-size: .75rem; font-weight: 700; color: var(--mute); background: var(--tile); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody td { border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: var(--flame-soft); }

/* 14 — WHATSAPP CHAT WIDGET (partials/whatsapp) ============================= */

.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1045; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: #14874A; color: #fff; font-weight: 700; font-size: .875rem;
  box-shadow: 0 8px 22px -6px rgba(15, 90, 45, .55); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wa-fab .bi { font-size: 1.5rem; line-height: 1; }
.wa-fab:hover { transform: translateY(-2px); background: #0F6E3C; }
.wa-fab:focus-visible { outline: 3px solid rgba(31, 168, 85, .45); outline-offset: 3px; }
.wa-widget.is-open .wa-fab-label { display: none; }
.wa-widget.is-open .wa-fab { width: 52px; padding: 0; justify-content: center; }
.wa-card {
  width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(17, 28, 48, .22), 0 2px 8px rgba(17, 28, 48, .08);
  animation: wa-in .18s ease-out; transform-origin: bottom right;
}
.wa-card[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #075E54; color: #fff; }
.wa-card-head strong { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.2; }
.wa-card-head span { font-size: .75rem; color: #D1F4E2; display: inline-flex; align-items: center; gap: 6px; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; display: inline-block; }
.wa-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #25D366; display: grid; place-items: center; font-size: 1.3rem; }
.wa-close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.wa-close:hover { background: rgba(255, 255, 255, .22); }
.wa-card-body { padding: 16px; background: #ECE5DD; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { position: relative; max-width: 88%; background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 12px 6px; font-size: .875rem; color: #111B21; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-bubble::before { content: ""; position: absolute; left: -7px; top: 0; border: 7px solid transparent; border-top-color: #fff; border-right-color: #fff; }
.wa-bubble time { display: block; text-align: right; font-size: .6875rem; color: #667781; }
.wa-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wa-quick button { border: 1px solid #25D366; background: #fff; color: #075E54; border-radius: 999px; padding: 5px 11px; font-size: .75rem; font-weight: 600; cursor: pointer; }
.wa-quick button:hover { background: #14874A; border-color: #14874A; color: #fff; }
.wa-card-foot { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #F0F2F5; }
.wa-card-foot textarea { flex: 1 1 auto; min-width: 0; resize: none; border: 0; border-radius: 20px; padding: 9px 14px; font-size: .875rem; line-height: 1.35; max-height: 120px; background: #fff; color: #111B21; }
.wa-card-foot textarea:focus { outline: 2px solid #25D366; }
.wa-card-foot button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.05rem; cursor: pointer; }
.wa-card-foot button:hover { background: #1EBE57; }
body:has(.wa-widget) .to-top { bottom: 82px; }
/* The chat button stacks above Bootstrap's slide-out panels; hide it while one is open. */
body:has(.offcanvas.show, .offcanvas.showing) .wa-widget { display: none; }
.btn-wa-sm { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border-radius: var(--r-sm); background: #1FA855; color: #fff; display: inline-grid; place-items: center; font-size: 1.3rem; }
.btn-wa-sm:hover, .btn-wa-sm:focus-visible { background: #178C46; color: #fff; }

/* 15 — UTILITIES ========================================================= */

.d-contents { display: contents; }
.border-line { border: 1px solid var(--line) !important; }
.rounded-l { border-radius: var(--r-lg) !important; }
.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
.sticky-offset { position: sticky; top: calc(var(--header-h) + 14px); }
.link-quiet { color: var(--slate); }
.link-quiet:hover { color: var(--flame); }

/* 16 — RESPONSIVE CHROME ==================================================
   Breakpoints follow Bootstrap: sm 576 · md 768 · lg 992 · xl 1200.
   ≥992 full header + category bar · <992 menu button, logo, cart; search on its own row;
   bottom tab bar. <576 blocks go edge to edge. */

@media (max-width: 1199.98px) {
  .hd-inner { gap: 16px; }
  .hd-action-acct span { display: none; }
  .cn-mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  body { font-size: .875rem; }
  .topbar-links, .cat-nav { display: none; }
  .topbar-note > :not(:first-child) { display: none; }
  .topbar-inner { justify-content: center; height: 30px; }
  .hd-menu { display: grid; place-items: center; }
  .hd-inner { flex-wrap: wrap; gap: 4px 8px; min-height: 0; padding: 7px 0 10px; }
  .brand-word { font-size: 1.3125rem; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 1.1rem; }
  /* Phones and tablets: a little smaller than desktop, never wider than the space beside the icons. */
  .brand .brand-logo { height: max(28px, calc(var(--logo-h, 48px) * .8)) !important; max-width: 46vw !important; }
  .hd-search { order: 3; flex: 1 0 100%; max-width: none; }
  .hd-search form { height: 42px; }
  .hd-search button { flex-basis: 50px; }
  .hd-action-acct, .hd-action-wish { display: none; }
  .hd-action { padding: 6px; }
  .hd-action-cart b { display: none; }
  .sticky-offset { position: static; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: 36px 0 28px; }
  .ft-about { grid-column: 1 / -1; }

  /* bottom tab bar — not on pages with their own sticky buy bar */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1036;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(22, 24, 29, .06);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0; font-size: .6875rem; font-weight: 600; color: var(--mute); }
  .tabbar a:hover { text-decoration: none; color: var(--flame); }
  .tabbar a.is-on { color: var(--flame); }
  .tabbar .bi { font-size: 1.3125rem; line-height: 1; }
  .tabbar .hd-count { top: -1px; left: calc(50% + 4px); border-color: #fff; }
  body:has(.tabbar) { padding-bottom: 64px; }
  body:has(.buy-sticky) .tabbar { display: none; }

  .wa-widget { right: 14px; bottom: 14px; transition: transform .2s ease, opacity .2s ease; }
  .wa-fab { height: 46px; width: 46px; padding: 0; justify-content: center; }
  .wa-fab-label { display: none; }
  .wa-fab .bi { font-size: 1.375rem; }
  .wa-widget.is-tucked { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  body:has(.tabbar):not(:has(.buy-sticky)) .wa-widget { bottom: 80px; }
  body:has(.tabbar):not(:has(.buy-sticky)) .to-top { bottom: 136px; right: 14px; }
  body:has(.tabbar):not(:has(.buy-sticky)) .toast-stack { bottom: 84px; }
  /* On the product page the WhatsApp button lives in the sticky "Add to cart" bar instead. */
  body:has(.buy-sticky) .wa-fab { display: none; }
  body:has(.buy-sticky) .wa-widget { bottom: 86px; }
  body:has(.buy-sticky):has(.wa-widget) .to-top { bottom: 96px; }
  body:has(.buy-sticky) { padding-bottom: 76px; }
  body:has(.buy-sticky) .toast-stack { bottom: 86px; }
}

@media (max-width: 767.98px) {
  .section { padding-top: 16px; }
  .section-head h2 { font-size: 1.0625rem; }
  .panel-pad { padding: 14px 12px 16px; }
  .price-lg { font-size: 1.625rem; }
  .p-grid { --bs-gutter-x: 8px; --bs-gutter-y: 8px; }
  .p-grid-flush { --bs-gutter-x: 0; --bs-gutter-y: 0; }
  .table > :not(caption) > * > * { padding: 10px 12px; }
  .newsletter { margin-top: 24px; }
  .newsletter .nl-inner { padding: 20px 18px; }
  .newsletter h2 { font-size: 1.1875rem; }
  .nl-icon { display: none; }
}

@media (max-width: 575.98px) {
  .p-card-body { padding: 8px 8px 10px; }
  .p-card-title { font-size: .78125rem; }
  .p-card-price .price { font-size: .9375rem; }
  .p-card-cta { right: 8px; bottom: 8px; }
  .p-card-cta .btn { width: 30px !important; height: 30px; font-size: .875rem; }
  .p-status { padding-right: 34px; }
  .stock-bar { margin-right: 34px; }
  .newsletter form { flex-direction: column; }
  .newsletter .btn { width: 100%; }
  .ft-cols { gap: 24px 16px; padding-top: 28px; }
  .ft-mid { flex-direction: column; align-items: flex-start; }
}

/* 17 — PRINT — order confirmations get printed ============================ */

@media print {
  .topbar, .site-header, .cat-nav, .site-footer, .newsletter, .tabbar,
  .to-top, .buy-sticky, .wa-widget, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; padding: 0 !important; }
  .panel, .p-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
}

/* ==========================================================================
   ===== LEGACY page styles =====
   Rules from the previous design that the redesigned views still use; the PAGES
   blocks below build on (and in places override) them.
   ========================================================================== */

/* --- home: hero carousel (photo banners, arrows, indicators) -------------- */
/* Slim arrows in the outer gutter, so they never sit on the headline. */
#heroCarousel .carousel-control-prev, #heroCarousel .carousel-control-next { width: 44px; z-index: 3; }
/* Uploaded banner photo: covers the slide, with a navy fade on the left so the headline stays readable. */
.hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-photo::before { display: none; }
.hero-slide-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 88%, transparent) 0%, color-mix(in srgb, var(--navy) 60%, transparent) 45%, transparent 80%);
}

.carousel-indicators [data-bs-target] {
  width: 22px; height: 4px; border-radius: 2px; border: 0;
  background: rgba(255, 255, 255, .45); opacity: 1;
}
.carousel-indicators .active { background: var(--glow); }

/* promo cards (listing page) */
.promo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 22px 24px; border-radius: var(--r);
  color: #fff; overflow: hidden;
}
.promo-card:hover { text-decoration: none; color: #fff; }
.promo-card h3 {
  color: #fff; margin: 0 0 4px; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .01em;
}
.promo-card p { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.promo-navy { background: linear-gradient(120deg, var(--navy), color-mix(in srgb, var(--navy) 60%, var(--flame))); }
.promo-card .promo-kicker {
  align-self: flex-start;
  background: rgba(255, 255, 255, .16); border-radius: var(--r-sm);
  padding: 4px 9px; font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: auto;
}

/* --- catalog & filters ---------------------------------------------------- */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.filter-group { border-bottom: 1px solid var(--line-2); padding: 15px 16px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group > h2 { font-size: .8125rem; font-weight: 700; margin: 0 0 11px; font-variation-settings: "wdth" 100; }
.filter-list { max-height: 208px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.filter-list .form-check { margin-bottom: 7px; }
.filter-list .form-check:last-child { margin-bottom: 0; }
.filter-count { color: var(--mute); font-size: .75rem; }

.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.view-toggle button { border: 0; background: #fff; color: var(--slate); width: 34px; height: 32px; cursor: pointer; font-size: .9rem; }
.view-toggle button.is-on { background: var(--flame); color: #fff; }

/* --- product detail ------------------------------------------------------- */
.gallery-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: relative;
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.gallery-zoom { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-zoom[hidden] { display: none; }
.gallery-zoom-hint {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(20, 26, 34, .72); color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  opacity: .9; pointer-events: none;
}
.gallery-video { position: absolute; inset: 0; background: #000; }
.gallery-video[hidden] { display: none; }
.gallery-video iframe { width: 100%; height: 100%; border: 0; }
.gallery-thumb { position: relative; }
.gallery-thumb-video img { object-fit: cover; padding: 0; }
.gallery-thumb-video .play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.5rem;
  background: rgba(0, 0, 0, .28);
}
.gallery-thumb-video .play .bi { width: 30px; height: 30px; border-radius: 50%; background: #FF0000; display: grid; place-items: center; font-size: 1.1rem; }

/* Full-screen image viewer with tap-to-zoom */
.zoom-box { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 14, 20, .94); display: flex; align-items: center; justify-content: center; }
.zoom-box[hidden] { display: none; }
.zoom-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; padding: 56px 16px; }
.zoom-stage img {
  max-width: min(100%, 1100px); max-height: 100%; width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 10px; cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none;
  transition: transform .18s ease;
}
.zoom-box.is-zoomed .zoom-stage img { cursor: zoom-out; transition: none; }
.zoom-close, .zoom-nav {
  position: absolute; z-index: 2; border: 0; color: #fff; background: rgba(255, 255, 255, .14);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
}
.zoom-close:hover, .zoom-nav:hover { background: rgba(255, 255, 255, .26); }
.zoom-close { top: 12px; right: 12px; }
.zoom-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.zoom-next { right: 12px; top: 50%; transform: translateY(-50%); }
.zoom-help { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #C3CDDC; font-size: .8125rem; margin: 0; pointer-events: none; }
.zoom-count { position: absolute; top: 22px; left: 18px; color: #fff; font-size: .875rem; font-weight: 600; }
.zoom-box.is-zoomed .zoom-help, .zoom-box.is-zoomed .zoom-nav { opacity: 0; pointer-events: none; }
@media (max-width: 575.98px) {
  .zoom-nav { width: 40px; height: 40px; top: auto; bottom: 44px; transform: none; }
  .zoom-prev { left: calc(50% - 52px); }
  .zoom-next { right: calc(50% - 52px); }
}
@media (hover: hover) { .gallery-zoom-hint { opacity: 0; transition: opacity .15s; } .gallery-zoom:hover .gallery-zoom-hint { opacity: .9; } }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 62px; height: 62px; flex: 0 0 62px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color .12s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery-thumb.is-on { border-color: var(--flame); box-shadow: 0 0 0 2px color-mix(in srgb, var(--flame) 18%, transparent); }

.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: var(--r); padding: 8px 14px; font-size: .8125rem; font-weight: 600;
  cursor: pointer; transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}
.variant:hover { border-color: var(--flame); color: var(--ember); }
.variant.is-on { border-color: var(--flame); background: var(--flame-soft); color: var(--ember); }
.variant:disabled { color: var(--line); background: #FAFAFB; cursor: not-allowed; text-decoration: line-through; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }

.avatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: var(--flame-soft); color: var(--flame-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem;
}
.avatar-lg { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.25rem; }

.rating-score { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 9px; font-size: .75rem; color: var(--slate); }
.rating-bar { flex: 1 1 auto; height: 7px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; min-width: 110px; }
.rating-bar span { display: block; height: 100%; background: var(--glow); }

.buy-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 -4px 14px rgba(26, 18, 8, .08);
}
.btn-check:checked + .variant { border-color: var(--flame); background: var(--flame-soft); color: var(--ember); }
.btn-check:disabled + .variant { color: var(--line); background: #FAFAFB; cursor: not-allowed; text-decoration: line-through; }
.btn-check:focus-visible + .variant { outline: 2px solid var(--flame); outline-offset: 2px; }

/* --- cart & checkout ------------------------------------------------------ */
.steps { display: flex; align-items: center; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--mute);
  display: grid; place-items: center; font-weight: 700; font-size: .8125rem;
}
.step-label { font-size: .8125rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.step-line { flex: 1 1 auto; height: 1px; background: var(--line); margin: 0 12px; }
.step.is-done .step-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-done .step-label { color: var(--ink-2); }
.step.is-on .step-num { background: var(--ember); border-color: var(--ember); color: #fff; }
.step.is-on .step-label { color: var(--ink); }

.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; padding: 7px 0; color: var(--slate); }
.summary-row > span { min-width: 0; overflow-wrap: anywhere; }
.summary-row strong { color: var(--ink); font-weight: 600; flex: 0 0 auto; text-align: right; white-space: nowrap; }
.summary-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.summary-line-media { flex: 0 0 52px; width: 52px; }
.summary-line-body { flex: 1 1 auto; min-width: 0; }
.summary-line-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
.summary-line .price { flex: 0 0 auto; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 13px; }
.summary-total .label { font-size: .9375rem; font-weight: 700; color: var(--ink); }

/* selectable radio card — addresses, payment, shipping */
.pick {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px 15px 44px; background: #fff;
  transition: border-color .12s ease, background-color .12s ease;
}
.pick:hover { border-color: var(--flame); }
.pick > input { position: absolute; left: 16px; top: 17px; }
/* these are spans inside a <label>, so they need to be blocks to stack */
.pick-title { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.pick-note { display: block; font-size: .75rem; color: var(--slate); margin: 0; }
.pick:has(input:checked) { border-color: var(--flame); background: var(--flame-soft); }
.pick:has(input:checked) .pick-title { color: var(--ember); }

.voucher-form { display: flex; gap: 8px; }
.voucher-form .form-control { flex: 1 1 auto; }

/* order timeline — numbered because it genuinely is a sequence */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 26px 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--mute);
  display: grid; place-items: center; font-weight: 700; font-size: .75rem;
}
.tl-item.is-done .tl-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.is-on .tl-num { background: var(--ember); border-color: var(--ember); color: #fff; }
.tl-item.is-on .tl-num::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--flame); opacity: .35; }
.tl-title { font-size: .875rem; font-weight: 600; color: var(--ink); margin: 5px 0 2px; }
.tl-item.is-todo .tl-title { color: var(--mute); }
.tl-meta { font-size: .75rem; color: var(--mute); }

/* --- account -------------------------------------------------------------- */
.acct-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid var(--line); background: var(--flame-soft); }
.acct-user strong { display: block; font-size: .875rem; color: var(--ink); }
.acct-user span { font-size: .75rem; color: var(--slate); }
.acct-nav { padding: 6px; }
.acct-nav-label { font-size: .625rem; font-weight: 700; color: var(--mute); padding: 11px 12px 5px; letter-spacing: .04em; }
.acct-nav a, .acct-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.acct-nav a:hover, .acct-nav button:hover { background: var(--ground); color: var(--ink); text-decoration: none; }
.acct-nav a.is-active { background: var(--flame); color: #fff; font-weight: 600; }
.acct-nav a.is-active .bi { color: #fff; }
.acct-nav a .bi, .acct-nav button .bi { color: var(--mute); font-size: 1rem; width: 18px; }
.acct-nav a .badge-n { margin-left: auto; background: var(--ground); color: var(--slate); border-radius: var(--r-pill); padding: 2px 7px; font-size: .6875rem; font-weight: 700; }
.acct-nav a.is-active .badge-n { background: rgba(255, 255, 255, .22); color: #fff; }
/* Phones and tablets: the account menu becomes one swipeable row so the page content starts right away. */
@media (max-width: 991.98px) {
  .acct-side { position: static; }
  .acct-user { display: none; }
  .acct-nav { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav-label { display: none; }
  .acct-nav a, .acct-nav button { flex: 0 0 auto; white-space: nowrap; width: auto; padding: 8px 12px; }
  .acct-nav form { flex: 0 0 auto; }
  .acct-nav a .badge-n { margin-left: 4px; }
}

.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; height: 100%; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--r); display: grid; place-items: center; font-size: 1.2rem; background: var(--flame-soft); color: var(--ember); }
.stat-icon-glow { background: var(--glow-soft); color: var(--warn); }
.stat-icon-ok { background: var(--ok-soft); color: var(--ok); }
.stat-icon-info { background: var(--info-soft); color: var(--info); }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.stat-label { font-size: .75rem; color: var(--mute); }

.addr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; height: 100%; }
.addr-card.is-default { border-color: var(--flame); }
.addr-name { font-size: .875rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.addr-lines { font-size: .8125rem; color: var(--slate); line-height: 1.6; margin: 0 0 12px; }
.addr-actions { display: flex; gap: 14px; font-size: .75rem; font-weight: 600; }

.voucher-card { display: flex; align-items: stretch; overflow: hidden; border: 1px dashed var(--flame); border-radius: var(--r); background: #fff; }
.voucher-left { flex: 0 0 96px; background: var(--flame); color: #fff; display: grid; place-items: center; text-align: center; padding: 14px 8px; }
.voucher-left .v-amt { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.voucher-left .v-cur { font-size: .625rem; opacity: .9; }
.voucher-body { padding: 13px 16px; flex: 1 1 auto; }
.voucher-code { font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; color: var(--ink); background: var(--ground); border-radius: var(--r-sm); padding: 3px 8px; }
.voucher-card.is-used { border-color: var(--line); opacity: .62; }
.voucher-card.is-used .voucher-left { background: var(--mute); }
.acct-nav button { width: 100%; border: 0; background: none; text-align: left; }

/* --- auth ----------------------------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center;
  padding: 36px 0;
  background:
    radial-gradient(760px 340px at 88% 8%, color-mix(in srgb, var(--glow) 20%, transparent), transparent 62%),
    radial-gradient(640px 300px at 6% 92%, color-mix(in srgb, var(--flame) 13%, transparent), transparent 60%),
    var(--ground);
}
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { font-size: .875rem; color: var(--slate); margin-bottom: 24px; }
.auth-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--flame) 10%, transparent); color: var(--flame); font-size: 1.35rem;
}

.auth-aside {
  background: var(--panel);
  background-image: radial-gradient(520px 420px at 78% 22%, color-mix(in srgb, var(--glow) 42%, transparent), transparent 66%);
  color: #fff; border-radius: var(--r-lg); padding: 36px 32px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-aside h2 { color: #fff; font-size: 1.5rem; }
.auth-aside p { color: #C3CDDC; font-size: .875rem; }
.auth-aside .ul-check { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-aside .ul-check li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: #DCE4EF; margin-bottom: 12px; }
.auth-aside .ul-check .bi { color: var(--glow); margin-top: 2px; }

.or-rule { display: flex; align-items: center; gap: 14px; color: var(--mute); font-size: .75rem; margin: 20px 0; }
.or-rule::before, .or-rule::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-row input {
  width: 52px; height: 58px; text-align: center;
  font-size: 1.4rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.otp-row input:focus { border-color: var(--flame); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame) 14%, transparent); outline: none; }

.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter span { flex: 1 1 0; height: 4px; border-radius: var(--r-pill); background: var(--line); }
.pw-meter.is-1 span:nth-child(1) { background: var(--stop); }
.pw-meter.is-2 span:nth-child(-n+2) { background: var(--warn); }
.pw-meter.is-3 span:nth-child(-n+3) { background: var(--glow); }
.pw-meter.is-4 span { background: var(--ok); }

/* --- blog ----------------------------------------------------------------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.post-card:hover { border-color: #D8DBE0; box-shadow: var(--sh-2); }
.post-media { aspect-ratio: 16 / 9; background: var(--ground); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.post-title { font-size: 1rem; margin: 0; line-height: 1.35; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--ember); text-decoration: none; }
.post-excerpt { font-size: .8125rem; color: var(--slate); margin: 0; }
.post-meta { font-size: .75rem; color: var(--mute); display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }

.post-hero { aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: var(--ground); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.toc ol { margin: 0; padding-left: 18px; font-size: .8125rem; }
.toc li { margin-bottom: 7px; }

/* --- all departments page ------------------------------------------------- */
.dept-jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dept-jump-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink);
}
.dept-jump-item:hover { border-color: var(--flame); text-decoration: none; }
.dept-jump-item img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.dept-jump-item span { min-width: 0; display: flex; flex-direction: column; }
.dept-jump-item strong { font-size: .875rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.dept-jump-item small { font-size: .75rem; color: var(--mute); }
.dept { scroll-margin-top: 90px; overflow: hidden; }
.dept-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dept-head img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.dept-title { flex: 1 1 auto; min-width: 0; }
.dept-title h2 { font-size: 1.125rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

@media (max-width: 767.98px) {
  .dept-jump { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dept-jump-item { padding: 8px 10px; }
  .dept-jump-item img { width: 32px; height: 32px; flex-basis: 32px; }
  .dept-head { padding: 12px 14px; gap: 10px; }
  .dept-head img { width: 40px; height: 40px; flex-basis: 40px; }
  .dept-title h2 { font-size: 1rem; }
  /* Chips and products scroll sideways instead of stacking into a very long page. */
  .dept-chips, .dept-products > .row {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    scroll-snap-type: x proximity; padding: 0 14px; margin-left: 0; margin-right: 0;
  }
  .dept-chips::-webkit-scrollbar, .dept-products > .row::-webkit-scrollbar { display: none; }
  .dept-chips { margin-bottom: 12px; }
  .dept-chips .chip { flex: 0 0 auto; white-space: nowrap; }
  .dept-products > .row { --bs-gutter-x: 10px; }
  .dept-products > .row > .col { flex: 0 0 44%; max-width: 44%; scroll-snap-align: start; }
}

/* --- compare with Daraz (product page) ------------------------------------- */
.dz-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 14px; border: 1px dashed var(--flame-line); border-radius: var(--r);
  background: var(--flame-soft); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dz-trigger:hover, .dz-trigger:focus-visible { border-color: var(--flame); border-style: solid; box-shadow: var(--sh-2); }
.dz-trigger-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--flame); color: #fff; flex: 0 0 auto; }
.dz-trigger-text { flex: 1 1 auto; font-weight: 700; font-size: .875rem; line-height: 1.25; }
.dz-trigger-text small { display: block; font-weight: 600; font-size: .75rem; color: var(--ok); }
.dz-trigger > .bi-chevron-right { color: var(--flame); }

.dz-modal { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.dz-save {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 10px 14px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-size: .9375rem;
}
.dz-save .bi { font-size: 1.25rem; }
.dz-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.dz-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.dz-ours { border: 2px solid var(--flame); box-shadow: 0 6px 20px color-mix(in srgb, var(--flame) 12%, transparent); }
.dz-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 10px; border-radius: var(--r-pill); background: var(--ember); color: #fff; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.dz-store { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); text-align: center; }
.dz-ours .dz-store { color: var(--flame-ink); }
.dz-img { display: grid; place-items: center; height: 150px; border-radius: var(--r); background: var(--tile); overflow: hidden; }
.dz-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.dz-img .bi { font-size: 2rem; color: var(--mute); }
.dz-card h3 { font-size: .875rem; font-weight: 600; line-height: 1.35; margin: 0; min-height: 2.7em; color: var(--ink-2); }
.dz-price { font-size: 1.375rem; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dz-ours .dz-price { color: var(--flame-ink); }
.dz-price .price-was { font-size: .8125rem; font-weight: 500; }
.dz-perks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; font-size: .8125rem; color: var(--slate); }
.dz-perks .bi { color: var(--ok); margin-right: 4px; }
.dz-card .btn { margin-top: auto; }
.dz-vs {
  align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .75rem; font-weight: 800;
}
.dz-note { margin: 14px 0 0; font-size: .75rem; color: var(--mute); text-align: center; }
@media (max-width: 575.98px) {
  .dz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dz-vs { display: none; }
  .dz-card { padding: 16px 10px 12px; }
  .dz-img { height: 110px; }
  .dz-img img { max-height: 110px; }
  .dz-price { font-size: 1.125rem; }
  .dz-perks { font-size: .75rem; }
  .dz-card .btn { font-size: .8125rem; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
}

/* --- share menu (product page) -------------------------------------------- */
.share-menu { min-width: 200px; }
.share-menu .dropdown-item { display: flex; align-items: center; gap: 10px; }
.share-menu .bi { width: 18px; text-align: center; font-size: 1rem; color: var(--slate); }
.share-menu .share-wa { color: #25D366; }
.share-menu .share-fb { color: #1877F2; }
.share-menu .share-ig { color: #E1306C; }

/* --- legacy responsive ----------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero-slide-photo::after { background: color-mix(in srgb, var(--navy) 62%, transparent); }
  /* arrows would sit on top of the headline at this width — swipe and the indicators still work */
  .carousel-control-prev, .carousel-control-next { display: none; }
  .auth-card { padding: 24px 20px; }
  .rating-score { font-size: 2.25rem; }
}
@media (max-width: 575.98px) {
  .otp-row input { width: 44px; height: 50px; font-size: 1.15rem; }
  .steps .step-label { display: none; }
  .voucher-left { flex-basis: 78px; }
}

/* ==========================================================================
   PAGES: home
   ========================================================================== */
/* --- home (resources/views/home.blade.php) --------------------------------
   Marketplace home: departments · slider · welcome column, flash sale, category
   icons, department panels, best sellers, deal of the day, new arrivals, "Just for you".
   Replaces the LEGACY "home: hero, side tiles" and "home: flash sale, category
   tiles, CTA band, promo cards" blocks. Note: .promo-card / .promo-navy are still
   used by shop/listing.blade.php, so keep those legacy rules until catalog moves. */

.hm-top { padding-top: 16px; }
.hm-sec { margin-top: 16px; }
.hm-sec-lg { margin-top: 28px; }
.hm-block { padding: 18px 18px 20px; }
.hm-block > .section-head { align-items: center; }

/* departments · slider · welcome */
.hm-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 12px; align-items: stretch; }

.hm-cats { background: var(--card); border-radius: var(--r-lg); padding: 10px 8px; min-width: 0; }
.hm-cats h2 { font-size: .875rem; margin: 4px 10px 8px; }
.hm-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: .84375rem; font-weight: 600; color: var(--ink-2); }
.hm-cats a:hover, .hm-cats a:focus-visible { background: var(--flame-soft); color: var(--flame); text-decoration: none; }
.hm-cats img { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: var(--tile); padding: 3px; }
.hm-cats span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cats .bi { margin-left: auto; font-size: .6875rem; color: var(--mute); }
.hm-cats a.hm-cats-all { justify-content: center; margin-top: 4px; color: var(--flame); font-weight: 700; }

.hm-slider { position: relative; min-width: 0; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.hm-slider .carousel-inner, .hm-slider .carousel-item { height: 100%; }
.hm-slide {
  position: relative; height: 100%; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 12px; padding: 0 6%;
  background: linear-gradient(110deg, #fff 0%, var(--flame-soft) 100%);
}
.hm-slide-body { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hm-kicker { font-size: .78125rem; font-weight: 800; color: #fff; background: var(--sale); padding: 3px 9px; border-radius: 4px; }
.hm-slide h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; font-stretch: 115%; line-height: 1.02; letter-spacing: -.03em; color: var(--ink); margin: .35em 0 .4em; max-width: 13ch; }
.hm-slide p { color: var(--slate); font-size: .875rem; margin: 0 0 16px; max-width: 34ch; }
.hm-slide-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; }
.hm-slide-art img { max-height: 260px; max-width: 100%; width: auto; object-fit: contain; }
/* uploaded banner photo covers the slide; a white fade keeps the headline readable (class names asserted by tests) */
.hm-slide.hero-slide-photo { grid-template-columns: minmax(0, 1fr); background: var(--tile); }
.hm-slide.hero-slide-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 36%, rgba(255, 255, 255, 0) 56%);
}
.hm-slide .hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

.hm-slider .carousel-indicators { z-index: 3; margin-bottom: 12px; }
.hm-slider .carousel-indicators [data-bs-target] { width: 8px; height: 8px; margin: 0 4px; border: 0; border-radius: 50%; background: var(--ink); opacity: .25; transition: width .2s ease; }
.hm-slider .carousel-indicators .active { width: 22px; border-radius: 4px; background: var(--flame); opacity: 1; }
.hm-slider .carousel-control-prev, .hm-slider .carousel-control-next {
  z-index: 3; top: 50%; bottom: auto; width: 38px; height: 38px; margin: 0 12px; transform: translateY(-50%);
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1rem; opacity: 0; box-shadow: var(--sh-1); transition: opacity .15s;
}
.hm-slider:hover .carousel-control-prev, .hm-slider:hover .carousel-control-next,
.hm-slider .carousel-control-prev:focus-visible, .hm-slider .carousel-control-next:focus-visible { opacity: 1; }

.hm-hello { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hm-hello-card { background: var(--card); border-radius: var(--r-lg); padding: 16px; }
.hm-hello-card b { display: block; font-size: .96875rem; font-weight: 800; }
.hm-hello-card > span { display: block; color: var(--mute); font-size: .8125rem; margin-top: 2px; }
.hm-hello-btns { display: flex; gap: 8px; margin-top: 10px; }
.hm-hello-btns .btn { flex: 1 1 0; }
.hm-perks { list-style: none; margin: 0; padding: 6px 16px; background: var(--card); border-radius: var(--r-lg); }
.hm-perks li { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.hm-perks li + li { border-top: 1px solid var(--line-2); }
.hm-perks .bi { flex: 0 0 24px; font-size: 1.25rem; color: var(--flame); text-align: center; }
.hm-perks a { color: inherit; }
.hm-perks a:hover { text-decoration: none; color: var(--flame); }
.hm-perks b { display: block; font-size: .84375rem; line-height: 1.2; }
.hm-perks span { font-size: .75rem; color: var(--mute); }
.hm-promo {
  position: relative; flex: 1 1 0; min-height: 64px; overflow: hidden;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--glow); color: var(--ink);
}
.hm-promo:hover { color: var(--ink); text-decoration: none; background: var(--glow-ink); }
.hm-promo-alt { background: var(--flame); color: #fff; }
.hm-promo-alt:hover { background: var(--ember); color: #fff; }
.hm-promo-body { position: relative; z-index: 2; min-width: 0; }
.hm-promo small { display: block; font-size: .75rem; font-weight: 700; opacity: .8; }
.hm-promo b { display: block; font-size: 1.0625rem; font-weight: 900; line-height: 1.1; }
.hm-promo-art { width: 64px; height: 64px; margin-left: auto; object-fit: contain; }
.hm-promo-photo { align-items: flex-end; background: var(--navy); color: #fff; }
.hm-promo-photo:hover { color: #fff; }
.hm-promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-promo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--navy) 85%, transparent) 100%); }

.hm-perk-strip { display: none; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 0; white-space: nowrap; font-size: .78125rem; font-weight: 600; color: var(--ink-2); }
.hm-perk-strip::-webkit-scrollbar { display: none; }
.hm-perk-strip .bi { color: var(--flame); margin-right: 5px; }

/* flash sale: red head, white countdown boxes */
.hm-flash { background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
.hm-flash-head {
  display: flex; align-items: center; gap: 18px; padding: 12px 18px; color: #fff;
  background: linear-gradient(90deg, var(--sale) 0%, color-mix(in srgb, var(--sale) 92%, var(--glow)) 100%);
}
.hm-flash-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: #fff; font-size: 1.25rem; font-weight: 900; font-stretch: 112%; }
.hm-flash-head h2 .bi { color: var(--glow); }
.hm-cd { display: flex; align-items: center; gap: 5px; font-size: .8125rem; font-weight: 600; }
.hm-cd > span:first-child { margin-right: 4px; }
.hm-cd b { min-width: 30px; padding: 2px 4px; border-radius: 4px; background: #fff; color: var(--sale-ink); text-align: center; font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hm-cd i { font-style: normal; font-weight: 800; }
.hm-cd-days { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; }
.hm-cd-days[hidden] { display: none; }
.hm-flash-head .more { margin-left: auto; color: #fff; }
.hm-flash-head .more:hover { color: var(--glow); }
.hm-flash > .p-grid { margin: 0; padding: 14px 13px 18px; }

/* category icons */
.hm-cat-icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 10px; }
.hm-cat-icons a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hm-cat-icons a:hover { text-decoration: none; }
.hm-cat-icons .hm-ph { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tile); border: 1px solid var(--line-2); display: grid; place-items: center; }
.hm-cat-icons img { width: 62%; height: 62%; object-fit: contain; transition: transform .25s; }
.hm-cat-icons a:hover img { transform: scale(1.08); }
.hm-nm { font-size: .78125rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.hm-cat-icons a:hover .hm-nm { color: var(--flame); }

/* department panels: 2×2 mini products */
.hm-depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-dept { display: flex; flex-direction: column; }
.hm-dept .section-head h2 { font-size: 1.1875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; align-content: start; }
.hm-mini { display: block; color: var(--ink); }
.hm-mini:hover { text-decoration: none; color: var(--ink); }
.hm-mini .hm-ph { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); }
.hm-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.hm-mini:hover img { transform: scale(1.05); }
.hm-mini b { display: inline-block; margin-top: 6px; font-size: .84375rem; font-weight: 800; }
.hm-mini small { margin-left: 6px; color: var(--sale-ink); font-weight: 700; font-size: .75rem; }
.hm-dept > .more { margin-top: 12px; align-self: flex-start; }

/* deal of the day */
.hm-dotd { display: flex; align-items: center; gap: 22px; padding: 14px 28px 14px 14px; border-radius: var(--r-lg); background: var(--flame); color: #fff; overflow: hidden; }
.hm-dotd:hover { color: #fff; text-decoration: none; background: var(--ember); }
.hm-dotd img { flex-shrink: 0; width: 120px; height: 120px; border-radius: var(--r); object-fit: cover; background: #fff; }
.hm-dotd-body { min-width: 0; }
.hm-dotd small { display: block; color: var(--glow); font-weight: 800; font-size: .78125rem; }
.hm-dotd b { display: block; margin: 2px 0 6px; font-size: clamp(18px, 2vw, 24px); font-weight: 900; line-height: 1.15; }
.hm-dotd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.hm-dotd strong { font-size: 1.375rem; font-weight: 900; color: var(--glow); }
.hm-dotd s { color: color-mix(in srgb, #fff 72%, var(--flame)); }
.hm-dotd em { font-style: normal; background: var(--sale); border-radius: 4px; padding: 1px 7px; font-size: .78125rem; font-weight: 800; }
.hm-dotd .btn { flex-shrink: 0; margin-left: auto; }

/* just for you */
.hm-jfy-title { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 1.25rem; text-align: center; }
.hm-jfy-title::before, .hm-jfy-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hm-load { min-width: 260px; }

@media (max-width: 1199.98px) {
  .hm-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .hm-cats { display: none; }
  .hm-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-hello { display: none; }
  .hm-perk-strip { display: flex; }
  .hm-slider { min-height: 0; aspect-ratio: 16 / 9; }
  .hm-slide { padding: 0 18px; grid-template-columns: minmax(0, 1fr) 38%; }
  .hm-slide.hero-slide-photo::after { background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 70%); }
  .hm-slide h2 { font-size: 22px; max-width: 11ch; }
  .hm-slide p { display: none; }
  .hm-slide .btn { padding: .4rem .8rem; font-size: .8125rem; }
  .hm-kicker { font-size: .6875rem; }
  .hm-slide-art img { max-height: 70%; }
  .hm-slider .carousel-control-prev, .hm-slider .carousel-control-next { display: none; }
  .hm-cat-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .hm-flash-head { flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; }
  .hm-flash-head .more { margin-left: 0; }
  .hm-flash > .p-grid { padding: 12px 8px; }
  /* product rows become one swipeable row */
  .hm-swipe { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-swipe::-webkit-scrollbar { display: none; }
  .hm-swipe > .col { flex: 0 0 42%; width: 42%; scroll-snap-align: start; }
  .hm-dotd { padding: 12px; gap: 12px; }
  .hm-dotd img { width: 84px; height: 84px; }
  .hm-dotd .btn { display: none; }
}

@media (max-width: 575.98px) {
  /* blocks run edge to edge on phones */
  .hm-grid, .hm-flash, .hm-block, .hm-dotd { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .hm-slider { border-radius: 0; }
  .hm-perk-strip { padding-top: 8px; }
  .hm-sec { margin-top: 10px; }
  .hm-block { padding: 14px 12px 16px; }
  .hm-cat-icons { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 22%; overflow-x: auto; scrollbar-width: none; }
  .hm-cat-icons::-webkit-scrollbar { display: none; }
  .hm-depts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-minis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .hm-mini b { font-size: .75rem; }
  .hm-mini small { display: block; margin: 0; }
  .hm-load { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-cat-icons img, .hm-mini img, .hm-slider .carousel-indicators [data-bs-target] { transition: none; }
}


/* ==========================================================================
   PAGES: catalog
   ========================================================================== */
/* ===== CATALOGUE — category listing, search, all departments, shop 404 =====
   Replaces the LEGACY blocks: "page banner" (.page-banner; still used by other pages, keep if so),
   "catalog & filters" (.filter-*, .toolbar, .view-toggle) and the .dept-jump / .dept* block. */

/* --- page head (shared by every catalogue / cart / account / content page) ---
   Plain: breadcrumb, big black h1, muted intro, straight on the grey ground. */
.page-head { padding: 4px 0 14px; }
.page-head h1 { margin: 0; font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 900; color: var(--ink); letter-spacing: -.015em; line-height: 1.15; overflow-wrap: anywhere; }
.page-head p { margin: 4px 0 0; max-width: 70ch; font-size: .84375rem; color: var(--mute); }
.page-head p a { color: var(--link); font-weight: 600; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }

/* sub-category chips under the page head */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* --- listing layout: white filter panel + results ------------------------ */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.listing-main { min-width: 0; }
.listing-banner { min-height: 110px; margin-bottom: 12px; }

/* white toolbar: count left, filters / sort / view right */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; background: var(--card); border-radius: var(--r-lg); }
.list-count { margin: 0; font-size: .84375rem; color: var(--mute); }
.list-count strong { color: var(--ink); font-weight: 700; }
.list-count a { color: var(--link); }
.list-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.sort-form { display: flex; align-items: center; gap: 8px; font-size: .84375rem; color: var(--mute); }
.sort-form label { margin: 0; white-space: nowrap; }
.sort-form .form-select { width: auto; min-width: 180px; height: 36px; font-size: .84375rem; padding: .35rem 2.2rem .35rem .8rem; background-color: #fff; }

.view-toggle { display: inline-flex; background: #fff; border: 1.5px solid var(--field); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { width: 34px; height: 33px; border: 0; background: #fff; color: var(--slate); font-size: .9rem; cursor: pointer; }
.view-toggle button + button { border-left: 1.5px solid var(--field); }
.view-toggle button:hover { color: var(--flame); }
.view-toggle button.is-on { background: var(--flame-soft); color: var(--flame); }
.view-toggle button:focus-visible { outline: 2px solid var(--flame); outline-offset: -2px; }

.list-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; }
.list-filter-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--flame); color: #fff; font-size: .6875rem; font-weight: 700; }

.list-active { margin-bottom: 10px; }
.list-active .chip span { font-size: .875rem; line-height: 1; }
.list-clear { font-size: .8125rem; font-weight: 700; color: var(--link); }

.list-pager { display: flex; justify-content: center; margin-top: 20px; }

/* list view (the grid/list toggle swaps the grid to row-cols-1): horizontal cards */
.list-grid.row-cols-1 > .col { flex: 0 0 100%; max-width: 100%; }
.list-grid.row-cols-1 .p-card { flex-direction: row; }
.list-grid.row-cols-1 .p-card-media { flex: 0 0 180px; width: 180px; }
.list-grid.row-cols-1 .p-card-body { padding: 14px 16px; }
.list-grid.row-cols-1 .p-card-title { font-size: .9375rem; -webkit-line-clamp: 2; min-height: 0; padding-right: 36px; }
.list-grid.row-cols-1 .p-card-cta { right: 14px; bottom: 14px; }

/* --- filter panel (components/filters) ----------------------------------- */
.filter-panel { padding: 20px; }
.filter-group { margin: 0; padding: 14px 0; border: 0; min-width: 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group + .filter-group { border-top: 1px solid var(--line-2); }
.filter-group > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: .84375rem; font-weight: 800; color: var(--ink); }
.filter-list { max-height: 228px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 3px 0; margin: 0 0 3px; font-size: .84375rem; color: var(--ink-2); cursor: pointer; line-height: 1.35; }
.filter-opt:hover { color: var(--flame); }
.filter-opt .form-check-input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; cursor: pointer; }
.filter-opt .stars { font-size: .8125rem; }
.filter-opt > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.filter-count { color: var(--mute); font-size: .75rem; margin-left: auto; }
.filter-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.filter-range .form-control { min-width: 0; height: 36px; padding: .4rem .6rem; font-size: .84375rem; }
.filter-go { height: 36px; width: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--flame); color: #fff; font-size: .8125rem; cursor: pointer; }
.filter-go:hover { background: var(--ember); }
.filter-go:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.filter-hint { margin: 6px 0 0; font-size: .75rem; color: var(--mute); }
.filter-actions { display: grid; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--line-2); }
.filter-actions .btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* mobile filter sheet */
.filter-sheet .offcanvas-body { padding: 0; background: #fff; }
.filter-sheet .filter-panel { border-radius: 0; }
.filter-sheet .filter-actions { position: sticky; bottom: 0; background: #fff; margin: 0 -20px -20px; padding: 12px 20px; }

/* --- search: related searches -------------------------------------------- */
.search-related { margin-top: 18px; padding: 18px 20px; }
.search-related h2 { margin: 0 0 12px; font-size: .96875rem; font-weight: 800; color: var(--ink); }

/* --- all departments: grid of white department panels --------------------- */
.dept { height: 100%; }
.dept-link { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--ink); }
.dept-link:hover { color: var(--ink); text-decoration: none; }
.dept-link:hover h2 { color: var(--flame); }
.dept-link img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--ground); }
.dept-name { flex: 1 1 auto; min-width: 0; }
.dept-name h2 { margin: 0; font-size: 1.15rem; font-weight: 800; transition: color .12s ease; }
.dept-name small { display: block; font-size: .8125rem; color: var(--mute); }
.dept-link > .bi { color: var(--flame); font-size: 1.1rem; }
.dept .subcats { margin: 0; }

/* --- shop 404 ------------------------------------------------------------- */
.nf { position: relative; overflow: hidden; padding: 48px 20px 40px; }
.nf-code { position: absolute; top: -6px; right: 18px; font-size: 7rem; font-weight: 900; line-height: 1; color: var(--line-2); pointer-events: none; }
.nf > *:not(.nf-code) { position: relative; }
.nf h1.empty-title { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 900; }
.nf-search { display: flex; max-width: 460px; margin: 0 auto 16px; }
.nf-search .form-control { height: 44px; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.nf-search .btn { width: 52px; height: 44px; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 0; }
.nf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 991.98px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .subcats::-webkit-scrollbar { display: none; }
  .subcats .chip { flex: 0 0 auto; }
  .dept .subcats { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .toolbar { padding: 8px 10px; }
  .toolbar .list-count { flex: 1 1 100%; }
  .toolbar .list-range { display: none; }
  .list-tools { width: 100%; flex-wrap: nowrap; }
  .list-tools .sort-form { flex: 1 1 auto; min-width: 0; }
  .list-tools .sort-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .list-tools .sort-form .form-select { flex: 1 1 auto; min-width: 0; }
  .list-grid.row-cols-1 .p-card-media { flex-basis: 120px; width: 120px; }
  .list-grid.row-cols-1 .p-card-body { padding: 10px 12px; }
  .list-grid.row-cols-1 .p-card-cta { right: 10px; bottom: 10px; }
  .nf-code { font-size: 4.5rem; }
}

/* ==========================================================================
   PAGES: product
   ========================================================================== */
/* --- product detail (Daraz-style) ------------------------------------------
   Replaces the LEGACY "product detail" block in lumero.css. Keep with it on merge:
   .zoom-* lightbox, .gallery-zoom*, .gallery-video*, .gallery-thumb-video*, .variant / .btn-check + .variant,
   .review*, .avatar*, .rating-bar*, .buy-sticky, .dz-*, .share-menu. Drop: .buy-box, .buy-price, .rating-summary
   (.spec-table is redefined below). */

/* top block: gallery · info + buy (data-buy) · delivery & services */
.pdp-top { background: var(--card); border-radius: var(--r-lg); padding: 20px; margin-top: 4px; }
.pdp-top > .row > * { min-width: 0; }

/* gallery — overrides the legacy bordered well */
.pdp-gallery .gallery-main { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.pdp-gallery .gallery-main img { padding: 4%; }
.pdp-flag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--sale); color: #fff; font-weight: 800; font-size: .8125rem; border-radius: 4px; padding: 3px 8px; pointer-events: none; }
.pdp-gallery .gallery-thumbs { gap: 8px; }
.pdp-gallery .gallery-thumb { width: 64px; height: 64px; flex-basis: 64px; background: var(--card); border: 2px solid var(--line-2); border-radius: var(--r-sm); }
.pdp-gallery .gallery-thumb img { padding: 4%; }
.pdp-gallery .gallery-thumb:hover, .pdp-gallery .gallery-thumb.is-on { border-color: var(--flame); box-shadow: none; }

/* title, meta, price */
.pdp-cat { font-size: .78125rem; font-weight: 700; color: var(--flame); }
.pdp-cat:hover { color: var(--ember); }
.pdp-title { font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.2; margin: 4px 0 6px; color: var(--ink); overflow-wrap: anywhere; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .78125rem; color: var(--mute); margin: 8px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.pdp-meta b { color: var(--ink); font-weight: 700; }
.pdp-meta a { color: var(--flame); }
.pdp-meta a:hover { text-decoration: underline; }
.pdp-rating { display: inline-flex; align-items: center; gap: 6px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0; }
.pdp-price .price-lg { font-size: 1.875rem; font-weight: 900; letter-spacing: -.02em; }
.pdp-price .price-was { font-size: .9375rem; }
.pdp-from { font-size: .8125rem; color: var(--mute); }
.pdp-save { background: var(--sale-soft); color: var(--sale-ink); font-weight: 800; font-size: .78125rem; padding: 3px 8px; border-radius: 4px; }
.pdp-note { font-size: .8125rem; color: var(--mute); margin: 0 0 10px; }
.pdp-info .dz-trigger { margin: 4px 0 12px; padding: 9px 12px; }
.pdp-lede { font-size: .875rem; color: var(--slate); margin: 4px 0 14px; max-width: 56ch; }

/* stock, options, quantity, buttons (Livewire buy box) */
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--ok); }
.stock-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-pill.is-low, .stock-pill.is-out { color: var(--sale-ink); }
.stock-pill.is-wait { color: var(--mute); }
.pdp-opt { margin: 4px 0 14px; font-size: .84375rem; }
.pdp-opt-picked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pdp-opt-label { color: var(--mute); }
.pdp-opt-picked .price { margin-left: 4px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.buy-row .qty { height: 48px; }
.buy-row .qty button { width: 40px; min-height: 0; }
.buy-row .btn { flex: 1 1 auto; white-space: nowrap; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-left: .9rem; padding-right: .9rem; }

/* WhatsApp order, wishlist, share */
.pdp-tools { display: flex; gap: 8px; margin-bottom: 14px; }
.pdp-wa { flex: 1 1 auto; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #14874A; border: 0; color: #fff; }
.pdp-wa:hover, .pdp-wa:focus-visible { background: #0F6E3C; color: #fff; }
.pdp-tool { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink-2); font-size: 1.05rem; cursor: pointer; }
.pdp-tool:hover, .pdp-tool[aria-expanded="true"] { border-color: var(--flame); color: var(--flame); }
.pdp-tool.is-on, .pdp-tool.is-on .bi { color: var(--sale); }

/* side box: delivery & services */
.svc { background: var(--tile); border-radius: var(--r); padding: 16px; }
.svc h2 { font-size: .875rem; font-weight: 800; margin: 0 0 6px; }
.svc-row { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; border-bottom: 1px solid var(--line); }
.svc-row > .bi { font-size: 1.125rem; color: var(--flame); line-height: 1.2; }
.svc b { display: block; font-size: .84375rem; color: var(--ink); }
.svc div > span { display: block; font-size: .78125rem; color: var(--mute); }
.svc-seller { display: flex; gap: 10px; align-items: center; padding: 12px 0 10px; }
.svc .svc-logo { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--flame); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.svc-seller small { display: block; font-size: .71875rem; color: var(--mute); }
.svc-seller b { font-size: .875rem; }
.svc .btn { background: var(--card); }

/* description / specs / delivery tabs */
.pdp-below { margin-top: 16px; overflow: hidden; }
.pdp-below .nav-tabs { padding: 0 16px; }
.pdp-below .nav-link { white-space: nowrap; padding: 13px 4px; margin-right: 22px; }
.pdp-below .prose { max-width: none; }
.pdp-below .prose img { max-width: 100%; height: auto; }
.spec-table { width: 100%; font-size: .875rem; }
.spec-table th { width: 34%; color: var(--mute); font-weight: 500; padding: 10px 12px; background: var(--tile); border-bottom: 2px solid var(--card); vertical-align: top; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

/* reviews */
.pdp-reviews-panel { margin-top: 16px; scroll-margin-top: calc(var(--header-h) + 12px); }
.pdp-rev-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pdp-rev-head h2 { font-size: 1.125rem; font-weight: 800; margin: 0; }
.review-empty { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 16px; background: var(--tile); border-radius: var(--r); }
.review-empty > .bi { font-size: 1.75rem; color: var(--flame); }
.pdp-ratings { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; align-items: center; margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp-ratings .rating-score { font-size: 3rem; font-weight: 800; }
.pdp-ratings .rating-score small { font-size: 1.25rem; color: var(--mute); }
.pdp-stars-lg { font-size: 1.25rem; margin-top: 6px; }
.pdp-bars { display: grid; gap: 6px; max-width: 420px; }
.pdp-bars .rating-bar-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 36px; gap: 10px; color: var(--mute); }
.pdp-bars .rating-bar { min-width: 0; height: 8px; background: var(--line-2); }
.pdp-bars .rating-bar span { background: var(--star); }
.pdp-reviews .review { border-bottom: 0; border-top: 1px solid var(--line); }
.pdp-reviews .review:first-child { border-top: 0; }

@media (max-width: 767.98px) {
  .pdp-top { padding: 14px; }
  .pdp-below .nav-tabs { padding: 0 8px; gap: 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pdp-below .nav-tabs .nav-link { white-space: nowrap; }
  .pdp-ratings { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pdp-ratings .rating-score { font-size: 2.5rem; }
}
/* phones/tablets: the sticky bar repeats the price and buttons */
@media (max-width: 991.98px) {
  .buy-sticky { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .buy-sticky-price { flex: 0 1 auto; min-width: 0; line-height: 1.15; }
  .buy-sticky-price .price { font-size: 1.0625rem; font-weight: 900; }
  .buy-sticky-price .price-was { font-size: .75rem; }
  .buy-sticky .btn:not(.btn-wa-sm) { flex: 1 1 0; height: 44px; padding: 0 10px; font-size: .9375rem; white-space: nowrap; }
}
@media (max-width: 399.98px) {
  .buy-sticky .btn:not(.btn-wa-sm) { font-size: .8125rem; padding: 0 6px; }
}

/* ==========================================================================
   PAGES: cart
   ========================================================================== */
/* CART, CHECKOUT, ORDER SUCCESS, TRACKING ==================================
   Replaces the LEGACY "cart & checkout" block (steps, summary, pick, voucher-form, timeline)
   and the `.steps .step-label` rule in the legacy <576 media query. */

/* --- checkout steps: inline numbers, indigo current, green done ------------ */
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: .8125rem; font-weight: 600; color: var(--mute); }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  background: var(--line); color: var(--ink-2);
  display: grid; place-items: center; font-weight: 700; font-size: .75rem; border: 0;
}
.step-num .bi { font-size: .875rem; line-height: 1; }
.step-label { white-space: nowrap; }
.step-line { flex: 0 0 28px; height: 2px; margin: 0; background: var(--line); }
.step.is-done .step-label { color: inherit; }
.step.is-done .step-num { background: var(--ok); color: #fff; }
.step.is-done + .step-line { background: var(--ok); }
.step.is-on { color: var(--ink); }
.step.is-on .step-num { background: var(--flame); color: #fff; }

/* --- cart ------------------------------------------------------------------ */
.cart-panel { padding: 18px 20px 4px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.cart-title { margin: 0; font-size: .96875rem; font-weight: 800; color: var(--ink); }
.cart-head-acts { display: flex; align-items: center; gap: 16px; }

/* small text-icon buttons: Empty cart, Save for later, Remove */
.cart-act {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 0;
  font-size: .8125rem; color: var(--mute); cursor: pointer;
}
.cart-act .bi { font-size: .95rem; }
.cart-act:hover { color: var(--flame); text-decoration: none; }
.cart-act.cart-rm:hover { color: var(--stop); }
.cart-continue { color: var(--flame); font-weight: 700; }

.cart-line {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-media { display: block; width: 84px; height: 84px; background: var(--tile); border-radius: var(--r-sm); overflow: hidden; }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { min-width: 0; }
.cart-line-title { font-size: .875rem; font-weight: 600; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line-title a { color: var(--ink); }
.cart-line-title a:hover { color: var(--flame); text-decoration: none; }
.cart-line-variant { font-size: .8125rem; color: var(--mute); margin: 0; }
.cart-line-variant:empty { display: none; }
.cart-line-low { display: inline-block; margin-top: 2px; font-size: .75rem; color: var(--sale-ink); font-weight: 700; }
.cart-line-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; align-self: start; padding-top: 2px; }
.cart-line-price .price { font-size: .9375rem; font-weight: 800; }

.cart-perks { display: grid; gap: 14px; }
.cart-perk { display: flex; gap: 12px; align-items: flex-start; }
.cart-perk > .bi { color: var(--flame); font-size: 1.15rem; line-height: 1.2; }
.cart-perk > div { flex: 1 1 auto; min-width: 0; }
.cart-perk strong { display: block; font-size: .8125rem; font-weight: 700; color: var(--ink); }
.cart-perk span { display: block; font-size: .75rem; color: var(--mute); }

/* free-delivery progress (inside the summary) */
.ship-progress { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--flame-soft); font-size: .8125rem; color: var(--ink-2); }
.ship-progress strong { color: var(--ink); font-weight: 700; }
.ship-meter { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--flame-tint); overflow: hidden; }
.ship-meter > span { display: block; height: 100%; background: var(--flame); border-radius: 3px; transition: width .3s ease; }

/* --- order summary card (cart + checkout) ---------------------------------- */
.sum-card { padding: 20px; }
.sum-title { font-size: .96875rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; padding: 6px 0; color: var(--ink-2); }
.summary-row > span { min-width: 0; overflow-wrap: anywhere; }
.summary-row strong { color: var(--ink); font-weight: 600; flex: 0 0 auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary-total .label { font-size: 1.125rem; font-weight: 900; color: var(--ink); }
.summary-total .price { font-size: 1.125rem; font-weight: 900; color: var(--sale); }
.sum-voucher { margin: 8px 0 4px; }
.sum-voucher.is-applied {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px; font-size: .8125rem; color: var(--ok);
  background: var(--ok-soft); border: 1px dashed var(--ok); border-radius: var(--r-sm);
}
.voucher-form { display: flex; gap: 8px; }
.voucher-form .form-control { flex: 1 1 auto; min-width: 0; }

/* item list inside the checkout package panel */
.summary-line { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.summary-line:last-child { border-bottom: 0; }
.summary-line-media { flex: 0 0 56px; width: 56px; }
.summary-line-body { flex: 1 1 auto; min-width: 0; }
.summary-line-title { font-size: .84375rem; font-weight: 600; margin: 0 0 2px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
.summary-line .price { flex: 0 0 auto; }

/* --- checkout ---------------------------------------------------------------- */
/* selectable radio card — addresses, payment, shipping (target .pay-opt) */
.pick {
  display: block; position: relative; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 14px 16px 14px 44px; background: #fff;
  transition: border-color .12s ease, background-color .12s ease;
}
.pick:hover { border-color: var(--flame-line); }
.pick > input { position: absolute; left: 16px; top: 17px; accent-color: var(--flame); }
.pick-title { display: block; font-size: .90625rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.pick-note { display: block; font-size: .8125rem; color: var(--mute); margin: 0; }
.pick:has(input:checked) { border-color: var(--flame); background: var(--flame-soft); }
.pick:has(input:checked) .pick-title { color: var(--ink); }
/* not a choice, just a highlighted card (the only delivery option) */
.pick.is-static { cursor: default; border-color: var(--flame); background: var(--flame-soft); }
.co-ship-icon { position: absolute; left: 14px; top: 14px; font-size: 1.1rem; color: var(--flame); }
.co-items { margin: 6px 0 8px; }

/* --- order success ----------------------------------------------------------- */
.done-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 24px; }
.done-icon {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; background: var(--ok-soft); color: var(--ok);
}
.done-body { min-width: 0; max-width: 560px; }
.done-body .d-flex { justify-content: center; }
.done-title { font-size: 1.5rem; font-weight: 900; color: var(--ink); margin: 0 0 8px; }
.done-number {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  padding: 8px 8px 8px 14px; background: var(--ground); border-radius: var(--r);
}
.done-number .mono { font-size: 1.0625rem; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.done-perk-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; background: var(--flame-soft); color: var(--flame);
}

/* --- order tracking -------------------------------------------------------- */
.track-card .field-icon .form-control { min-width: 0; }

/* --- order timeline (success, tracker, account) ----------------------------
   Vertical by default; horizontal progress bar when its box is wide enough. */
.tl-wrap { container-type: inline-size; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before, .tl-item.is-on .tl-num::after { content: none; }
.tl-item { position: relative; padding: 0 0 22px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl-item.is-done:not(:last-child)::after { background: var(--ok); }
.tl-num {
  position: absolute; left: 0; top: 1px; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: var(--ink-2); border: 0;
  display: grid; place-items: center; font-weight: 700; font-size: .6875rem;
}
.tl-num .bi { font-size: .75rem; }
.tl-item.is-done .tl-num { background: var(--ok); color: #fff; }
.tl-item.is-on .tl-num { background: var(--flame); color: #fff; box-shadow: 0 0 0 4px var(--flame-tint); }
.tl-title { font-size: .90625rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.tl-item.is-todo .tl-title { color: var(--ink-2); font-weight: 600; }
.tl-meta { font-size: .8125rem; color: var(--mute); }

@container (min-width: 540px) {
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); }
  .tl-item { padding: 0 8px; text-align: center; }
  .tl-item:not(:last-child)::after { display: none; }
  .tl-num { position: relative; margin: 0 auto 8px; width: 24px; height: 24px; }
  /* connector to the previous step, green once this step is reached */
  .tl-item + .tl-item::before {
    content: ""; position: absolute; top: 11px; right: calc(50% + 16px); width: calc(100% - 32px);
    height: 2px; background: var(--line);
  }
  .tl-item.is-done + .tl-item.is-done::before, .tl-item.is-done + .tl-item.is-on::before { background: var(--ok); }
}

/* --- phones ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .cart-panel { padding: 14px 14px 2px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "m b" "m p"; gap: 4px 12px; align-items: start; padding: 14px 0; }
  .cart-line-media { grid-area: m; width: 72px; height: 72px; }
  .cart-line-body { grid-area: b; }
  .cart-line-price { grid-area: p; flex-direction: row; align-items: baseline; gap: 2px 8px; padding: 0; justify-content: flex-start; }
  .cart-line-ctl .cart-act span { display: none; }
  .cart-line-ctl .cart-act .bi { font-size: 1.1rem; }
  .done-hero { padding: 22px 16px; }
}
@media (max-width: 575.98px) {
  .steps .step-label { display: none; }
  .steps .step.is-on .step-label { display: inline; }
  .step-line { flex-basis: 16px; }
}

/* ==========================================================================
   PAGES: account
   ========================================================================== */
/* ==========================================================================
   ACCOUNT + AUTH — customer account area and sign-in / register / code / password pages.
   Replaces the LEGACY "--- account ---" and "--- auth ---" blocks in lumero.css (and the
   matching .auth-card / .otp-row / .voucher-left lines in "legacy responsive").
   Views: layouts/account, partials/account-nav, account/**, auth/**, components/auth-shell,
   components/password-field. .acct-nav is also used by content/faq (generic rules kept).
   ========================================================================== */

/* --- account: page frame --------------------------------------------------- */

.acct-main > .page-head { padding-top: 0; }
.acct-title { font-size: 1.375rem; font-weight: 900; color: var(--ink); margin: 0 0 12px; }

/* generic link list (also the FAQ "Jump to" menu) */
.acct-nav { padding: 6px; }
.acct-nav-label { font-size: .84375rem; font-weight: 800; color: var(--ink); padding: 12px 12px 4px; }
.acct-nav a, .acct-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left;
  font-size: .875rem; color: var(--ink-2); cursor: pointer;
}
.acct-nav a:hover, .acct-nav button:hover { background: var(--tile); color: var(--flame); text-decoration: none; }
.acct-nav a .bi, .acct-nav button .bi { color: var(--mute); font-size: 1.05rem; width: 18px; }
.acct-nav a.is-active { background: var(--flame-soft); color: var(--flame); font-weight: 700; }
.acct-nav a.is-active .bi { color: var(--flame); }
.acct-nav .badge-n {
  margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--line-2); color: var(--slate); font-size: .6875rem; font-weight: 700; text-align: center;
}
.acct-nav a.is-active .badge-n { background: var(--flame); color: #fff; }

/* sidebar: white panel — who's signed in, then links with an indigo left rule on the active one */
.acct-side { background: var(--card); border: 0; border-radius: var(--r-lg); overflow: hidden; }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line-2); background: none; }
.acct-user > div { min-width: 0; }
.acct-user .avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--flame); color: #fff; font-size: .9375rem; font-weight: 800; }
.acct-user strong { display: block; font-size: .9375rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; line-height: 1.25; }
.acct-user > div span { display: block; font-size: .78125rem; color: var(--mute); overflow-wrap: anywhere; }
.acct-user .acct-verified { color: var(--ok); margin-top: 1px; }
.acct-side .acct-nav { padding: 6px 0; }
.acct-side .acct-nav a, .acct-side .acct-nav button { gap: 12px; padding: 11px 18px; border-radius: 0; border-left: 3px solid transparent; font-weight: 500; }
.acct-side .acct-nav a.is-active { border-left-color: var(--flame); font-weight: 700; }
.acct-side .acct-nav form { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }

/* Phones and tablets: the menu becomes one swipeable row of chips so the page starts right away. */
@media (max-width: 991.98px) {
  .acct-side { position: static; background: none; border-radius: 0; overflow: visible; }
  .acct-user, .acct-side .acct-nav-label { display: none; }
  .acct-side .acct-nav {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 0 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .acct-side .acct-nav::-webkit-scrollbar { display: none; }
  .acct-side .acct-nav a, .acct-side .acct-nav button {
    flex: 0 0 auto; width: auto; white-space: nowrap; gap: 6px;
    padding: 6px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card);
    font-size: .8125rem; font-weight: 600; color: var(--ink-2);
  }
  .acct-side .acct-nav a .bi, .acct-side .acct-nav button .bi { display: none; }
  .acct-side .acct-nav a.is-active { border-color: var(--flame); background: var(--flame); color: #fff; }
  .acct-side .acct-nav a.is-active .badge-n { background: #fff; color: var(--flame); }
  .acct-side .acct-nav .badge-n { margin-left: 2px; }
  .acct-side .acct-nav form { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
}

/* --- account: dashboard ----------------------------------------------------- */

.acct-card { padding: 20px; font-size: .875rem; color: var(--ink-2); }
.acct-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.acct-card-head h2 { margin: 0; font-size: .96875rem; font-weight: 800; color: var(--ink); }
.acct-card-head a { font-size: .8125rem; font-weight: 700; color: var(--flame); }
.acct-card-label { font-size: .75rem; color: var(--mute); margin: 0 0 4px; }

/* stat tiles: big number, muted label */
.stat-card { display: block; height: 100%; padding: 16px; border: 0; border-radius: var(--r-lg); background: var(--card); color: var(--ink); transition: box-shadow .15s ease; }
a.stat-card:hover { box-shadow: var(--sh-2); text-decoration: none; color: var(--ink); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: .8125rem; color: var(--mute); }

/* --- account: address book ------------------------------------------------- */

.addr-card { height: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); }
.addr-card.is-default { border-color: var(--flame); background: var(--flame-soft); }
.addr-name { font-size: .9375rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.addr-lines { font-size: .84375rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.addr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: .8125rem; font-weight: 700; }
.addr-actions .btn-link { font-size: .8125rem; font-weight: 700; color: var(--link); text-decoration: none; }
.addr-actions .btn-link:hover { text-decoration: underline; }
.addr-actions .link-quiet { color: var(--mute); }

/* --- account: vouchers (ticket with a perforated edge) ---------------------- */

.voucher-card { position: relative; display: flex; align-items: stretch; border: 1.5px solid var(--flame-line); border-radius: var(--r); background: var(--card); }
.voucher-left {
  position: relative; flex: 0 0 96px; display: grid; place-items: center; padding: 14px 8px; text-align: center;
  background: var(--flame); color: #fff; border-radius: calc(var(--r) - 1px) 0 0 calc(var(--r) - 1px);
}
/* punched holes top and bottom of the tear line */
.voucher-left::before, .voucher-left::after {
  content: ""; position: absolute; right: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ground); border: 1.5px solid var(--flame-line);
}
.voucher-left::before { top: -8px; }
.voucher-left::after { bottom: -8px; }
.voucher-left .v-amt { font-size: 1.25rem; font-weight: 900; line-height: 1.1; }
.voucher-left .v-cur { font-size: .625rem; opacity: .9; }
.voucher-body { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border-left: 1px dashed var(--flame-line); }
.voucher-code { font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; color: var(--ink); background: var(--tile); border: 1px dashed var(--field); border-radius: var(--r-sm); padding: 2px 8px; }
.voucher-card.is-used { border-color: var(--line); opacity: .65; }
.voucher-card.is-used .voucher-left { background: var(--mute); }
.voucher-card.is-used .voucher-left::before, .voucher-card.is-used .voucher-left::after { border-color: var(--line); }
.voucher-card.is-used .voucher-body { border-left-color: var(--line); }

/* --- auth: one narrow white card centred on the grey ground ------------------ */

.auth-wrap { display: block; min-height: 0; padding: 24px 0 8px; background: none; }
.auth-wrap > .container { max-width: 472px; }
.auth-card { display: block; max-width: none; margin: 0; padding: 0; border: 0; background: var(--card); border-radius: var(--r-lg); box-shadow: none; }
.auth-main { padding: 28px; }
.auth-main h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.auth-main .sub { font-size: .875rem; color: var(--mute); margin-bottom: 20px; }
.auth-main a:not(.btn) { color: var(--flame); font-weight: 600; }
.auth-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--flame-soft); color: var(--flame); font-size: 1.25rem;
}

/* reassurance note under the card */
.auth-aside { display: block; height: auto; margin: 16px 0 0; padding: 0 4px; color: var(--mute); background: none; border: 0; }
.auth-aside h2 { font-size: .875rem; font-weight: 800; color: var(--ink-2); margin: 0 0 4px; }
.auth-aside p { font-size: .8125rem; color: var(--mute); margin: 0; }
.auth-aside .ul-check { list-style: none; padding: 0; margin: 10px 0 0; }
.auth-aside .ul-check li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; font-size: .8125rem; color: var(--mute); }
.auth-aside .ul-check .bi { color: var(--ok); margin-top: 1px; }

.or-rule { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: .78125rem; margin: 16px 0; }
.or-rule::before, .or-rule::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* six one-digit boxes (lumero.js moves focus / handles paste) */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-row input {
  flex: 0 1 52px; min-width: 0; height: 56px; text-align: center;
  font-size: 1.375rem; font-weight: 800; color: var(--ink);
  border: 1.5px solid var(--field); border-radius: var(--r-sm); background: #fff;
}
.otp-row input:focus { border-color: var(--flame); box-shadow: 0 0 0 3px var(--flame-ring); outline: none; }

/* password strength bar ([data-pw-strength] sets .is-0 … .is-4) */
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter span { flex: 1 1 0; height: 4px; border-radius: var(--r-pill); background: var(--line); }
.pw-meter.is-1 span:nth-child(1) { background: var(--stop); }
.pw-meter.is-2 span:nth-child(-n+2) { background: var(--warn); }
.pw-meter.is-3 span:nth-child(-n+3) { background: var(--glow); }
.pw-meter.is-4 span { background: var(--ok); }

/* keep Bootstrap's red invalid icon clear of the show-password button */
.field-icon:has(.pw-toggle) .form-control.is-invalid { background-position: right 40px center; padding-right: 64px; }

@media (max-width: 575.98px) {
  .auth-wrap { padding-top: 12px; }
  .auth-main { padding: 22px 18px; }
  .otp-row { gap: 6px; }
  .otp-row input { height: 50px; font-size: 1.15rem; }
  .voucher-left { flex-basis: 78px; }
}

/* vouchers page: keep "Apply to cart" on one line beside the code field */
.voucher-form .btn { flex: 0 0 auto; white-space: nowrap; }

/* ==========================================================================
   PAGES: content
   ========================================================================== */
/* --- content pages: blog, post, about, contact, FAQ, shipping, CMS page, closed, style guide ---
   Replaces the LEGACY "blog" block (.post-*, .toc). The content views no longer use .page-banner,
   .stat-card/.stat-icon, .timeline or .avatar (still used by other areas, so their LEGACY rules stay). */

/* page head: the shared plain .page-head (PAGES: catalog), no panel */

/* reading column: article panels keep lines near 70 characters */
.ct-article { padding: 26px 32px 28px; }
.ct-article .prose { max-width: 70ch; }
.prose { color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.0625rem; font-weight: 800; color: var(--ink); margin: 1.4em 0 .4em; }
.prose a { color: var(--flame); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ember); }
.prose img { border-radius: var(--r); margin: 1.25rem 0; }
.prose > :first-child { margin-top: 0; }
.prose-sm { font-size: .875rem; }

.ct-post-head { margin-bottom: 20px; }
.ct-post-head h1 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); font-weight: 900; line-height: 1.2; margin: 8px 0 12px; }
.ct-intro { color: var(--mute); font-size: 1rem; margin: -4px 0 12px; max-width: 70ch; }
.ct-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .75rem; color: var(--mute); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ct-byline .bi { margin-right: 5px; }
.ct-author { display: inline-flex; align-items: center; gap: 10px; }
.ct-author strong { display: block; font-size: .8125rem; font-weight: 700; color: var(--ink); }
.ct-author small { display: block; font-size: .75rem; color: var(--mute); }
.ct-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: var(--flame); color: #fff; font-weight: 800; font-size: .8125rem; }

.post-hero { aspect-ratio: 21 / 9; margin: 0 0 22px; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.ct-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.ct-share > span { font-size: .8125rem; color: var(--mute); margin-right: 4px; }
.ct-share .bi { margin-right: 4px; }

/* small brand-tinted topic label (blog cards, post head) */
.post-topic {
  align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.2;
  padding: 0; background: none; color: var(--flame);
}
a.post-topic:hover { color: var(--ember); text-decoration: underline; }

/* blog cards (components/post-card) */
.post-card {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--r-lg); transition: box-shadow .15s ease;
}
.post-card:hover { box-shadow: var(--sh-2); }
.post-media { display: block; aspect-ratio: 16 / 9; background: var(--flame-soft); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.post-title { font-size: 1.03125rem; font-weight: 800; margin: 0; line-height: 1.3; }
.post-title a { color: var(--ink); }
.post-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card:hover .post-title a { color: var(--flame); text-decoration: none; }
.post-excerpt { font-size: .84375rem; color: var(--mute); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: .75rem; color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: auto 0 0; padding-top: 4px; }
.post-meta .bi { margin-right: 4px; }

/* featured post at the top of the blog: picture beside the text on wide screens */
.post-lead { height: auto; margin-bottom: 16px; }
.post-lead .post-title { font-size: 1.5rem; line-height: 1.25; }
.post-lead .post-excerpt { font-size: .875rem; -webkit-line-clamp: 4; }
@media (min-width: 768px) {
  .post-lead { flex-direction: row; }
  .post-lead .post-media { position: relative; flex: 0 0 56%; aspect-ratio: auto; min-height: 260px; }
  .post-lead .post-media img { position: absolute; inset: 0; }
  .post-lead .post-body { padding: 22px 24px; justify-content: center; }
  .post-lead .post-meta { margin-top: 6px; }
}

.ct-result { margin: 0 0 10px; }
.ct-chip.is-on { background: var(--flame); border-color: var(--flame); color: #fff; }
.ct-chip.is-on:hover { background: var(--ember); color: #fff; }

/* numbered / plain side lists: "Popular this month", "More reading" */
.ct-rank { list-style: none; margin: 0; padding: 4px 18px; }
.ct-rank li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.ct-rank li + li { border-top: 1px solid var(--line-2); }
.ct-rank h3 { font-size: .84375rem; font-weight: 700; line-height: 1.4; margin: 0 0 3px; }
.ct-rank h3 a { color: var(--ink); }
.ct-rank h3 a:hover { color: var(--flame); }
.ct-rank-n { flex: 0 0 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--tile); color: var(--mute); font-size: .8125rem; font-weight: 700; }
.ct-rank li:first-child .ct-rank-n { background: var(--flame); color: #fff; }

/* table of contents (post, CMS page) */
.toc ol { margin: 0; padding: 10px 18px 12px 36px; font-size: .8125rem; }
.toc li { padding: 4px 0; color: var(--mute); }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--flame); }

/* round-cornered icon tile used across content pages */
.ct-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r); display: grid; place-items: center; font-size: 1.15rem; background: var(--flame-soft); color: var(--flame); }
.ct-ic-ok { background: var(--ok-soft); color: var(--ok); }
.ct-ic-info { background: var(--info-soft); color: var(--info); }
.ct-ic-glow { background: var(--glow-soft); color: var(--warn); }

/* about: numbers */
.ct-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.ct-stats > div { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.ct-stats > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.ct-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.ct-stats dt { font-size: .75rem; font-weight: 400; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.ct-stats dt .ct-ic { width: 34px; height: 34px; flex-basis: 34px; font-size: 1rem; }
.ct-stats dd { margin: 4px 0 0; font-size: 1.75rem; font-weight: 900; color: var(--flame); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; padding-left: 44px; }
.ct-checks { list-style: none; margin: 0; font-size: .8125rem; }
.ct-checks li { display: flex; gap: 8px; }
.ct-checks li + li { margin-top: 10px; }
.ct-checks .bi { color: var(--ok); }
.ct-lines { font-size: .84375rem; color: var(--mute); line-height: 1.6; margin: 0 0 12px; }

/* contact: details list and self-service links */
.ct-contact { list-style: none; margin: 0; padding: 4px 18px; }
.ct-contact li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.ct-contact li + li { border-top: 1px solid var(--line-2); }
.ct-contact div { min-width: 0; font-size: .8125rem; }
.ct-contact strong { display: block; font-weight: 800; color: var(--ink); margin-bottom: 1px; }
.ct-contact a { display: block; overflow-wrap: anywhere; }
.ct-contact small { display: block; font-size: .75rem; color: var(--mute); }
.ct-links a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.ct-links a + a { border-top: 1px solid var(--line-2); }
.ct-links a:hover { background: var(--tile); color: var(--flame); text-decoration: none; }
.ct-links .bi:first-child { color: var(--flame); font-size: 1rem; }
.ct-links .bi:last-child { margin-left: auto; color: #BDBDBD; font-size: .75rem; }

/* FAQ */
.ct-jump { padding: 6px 0; }
.ct-jump a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: var(--ink-2); font-size: .875rem; font-weight: 500; border-left: 3px solid transparent; }
.ct-jump a:hover { background: var(--tile); color: var(--flame); text-decoration: none; }
.ct-jump span { margin-left: auto; font-size: .6875rem; color: var(--mute); background: var(--tile); border-radius: var(--r-pill); padding: 2px 7px; }
.ct-faq { scroll-margin-top: calc(var(--header-h) + 16px); overflow: hidden; }
.ct-faq .accordion {
  --bs-accordion-border-color: var(--line-2); --bs-accordion-bg: var(--card);
  --bs-accordion-btn-padding-x: 18px; --bs-accordion-btn-padding-y: 15px; --bs-accordion-body-padding-x: 18px;
  --bs-accordion-active-bg: var(--flame-soft); --bs-accordion-active-color: var(--flame);
  --bs-accordion-btn-focus-box-shadow: inset 0 0 0 3px var(--flame-ring);
}
.ct-faq .accordion-button { font-size: .9375rem; font-weight: 700; color: var(--ink); gap: 12px; }
.ct-faq .accordion-button:hover { color: var(--flame); }
.ct-faq .accordion-button:not(.collapsed) { color: var(--flame); }
.ct-faq .accordion-button:not(.collapsed) { box-shadow: none; }
.ct-faq .accordion-body { padding-top: 12px; font-size: .875rem; line-height: 1.65; color: var(--mute); max-width: 75ch; }

/* shipping */
.ct-perks { display: grid; grid-template-columns: repeat(3, 1fr); }
.ct-perk { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.ct-perk + .ct-perk { border-left: 1px solid var(--line-2); }
.ct-perk h2 { font-size: 1rem; font-weight: 800; margin: 2px 0 4px; }
.ct-perk p { font-size: .84375rem; color: var(--mute); margin: 0; }
.ct-steps { list-style: none; margin: 0; counter-reset: step; }
.ct-steps li { position: relative; padding: 0 0 20px 46px; counter-increment: step; }
.ct-steps li:last-child { padding-bottom: 0; }
.ct-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flame); color: #fff; font-size: .8125rem; font-weight: 700;
}
.ct-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--flame-line); }
.ct-steps h3 { font-size: .9375rem; font-weight: 800; margin: 5px 0 3px; }
.ct-steps p { font-size: .84375rem; color: var(--mute); margin: 0; }

/* store closed */
.ct-closed { max-width: 640px; margin: 0 auto; }
.ct-closed .empty-title { font-size: 1.5rem; font-weight: 900; }

/* style guide */
.ct-swatch { height: 56px; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

@media (max-width: 991.98px) {
  .ct-perks { grid-template-columns: 1fr; }
  .ct-perk + .ct-perk { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 767.98px) {
  .ct-article { padding: 18px 16px 20px; }
  .post-hero { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .post-lead .post-title { font-size: 1.125rem; }
  .ct-perk { padding: 14px 16px; }
}
