/* =====================================================================
   Wiffy Health Care — Frontend design system
   Developed by Melon Software Solutions

   1.  Font & tokens          9.  Trust strip
   2.  Base & reset          10.  Categories
   3.  Layout helpers        11.  Product cards
   4.  Buttons & links       12.  Why choose / contents label
   5.  Forms & badges        13.  Promo band
   6.  Top bar & header      14.  Reviews
   7.  Search panel & drawer 15.  FAQ
   8.  Hero & kit            16.  Help CTA & footer
                             17.  Toasts, WhatsApp, skeleton, reveal
                             18.  Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Font & tokens
   Colours are taken from the Wiffy logo. Change them here only.
   ------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand */
  --primary: #10522A;          /* logo green */
  --primary-dark: #0A3A1D;
  --primary-soft: #E7F1EA;
  --primary-line: #CFE2D5;
  --secondary: #00A86B;
  --secondary-dark: #008455;
  --accent: #E31E24;           /* logo red cross: sale & discount only */
  --accent-soft: #FDECEC;

  /* Neutrals */
  --bg: #F7FAF8;
  --white: #FFFFFF;
  --text: #1F2937;
  --muted: #5B5B5B;            /* logo grey */
  --line: #E2E9E4;
  --warning: #A15C07;
  --warning-soft: #FEF3E2;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: 1.75rem;     /* 28 */
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);    /* section titles */
  --fs-hero: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem);

  /* Shape — radius grows with the size of the surface */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 82, 42, .06);
  --shadow-md: 0 2px 4px rgba(16, 82, 42, .04), 0 12px 28px rgba(16, 82, 42, .08);
  --shadow-lg: 0 24px 60px rgba(10, 58, 29, .16);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --header-full: var(--header-h);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------------
   2. Base & reset
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-full) + 16px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--primary-dark);
}
h3, h4 { letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 96px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 { font-size: var(--fs-2xl); margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--primary);
  border-bottom: 2px solid var(--primary-line);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.link-more:hover { border-color: var(--primary); }

/* ---------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--white);
  --btn-bd: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:hover { --btn-bg: var(--primary-dark); --btn-bd: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-secondary { --btn-bg: var(--white); --btn-fg: var(--primary); --btn-bd: var(--primary-line); }
.btn-secondary:hover { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-dark); --btn-bd: var(--primary); }

.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.5); }
.btn-ghost-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: var(--white); }

.btn-light { --btn-bg: var(--white); --btn-fg: var(--primary-dark); --btn-bd: var(--white); }
.btn-light:hover { --btn-bg: var(--primary-soft); --btn-bd: var(--primary-soft); --btn-fg: var(--primary-dark); }

.btn-whatsapp { --btn-bg: #25D366; --btn-fg: #06341C; --btn-bd: #25D366; }
.btn-whatsapp:hover { --btn-bg: #1EBE5A; --btn-bd: #1EBE5A; --btn-fg: #06341C; }

.btn-sm { min-height: 40px; padding: 8px 14px; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--primary-dark);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }

.count-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--white);
  font-size: 11px; font-weight: 800; line-height: 19px;
  text-align: center;
  border: 2px solid var(--white);
  box-sizing: content-box;
}
.count-badge:empty, .count-badge[data-count="0"] { display: none; }
.count-badge.is-bumping { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------------
   5. Forms & badges
   ------------------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--fs-base);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, .15);
}
.field-error { color: var(--accent); font-size: var(--fs-sm); }
.input.is-invalid { border-color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 800; line-height: 1.4;
}
.badge-sale { background: var(--accent); color: var(--white); }
.badge-new  { background: var(--primary); color: var(--white); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in  { color: var(--secondary-dark); }
.stock-low { color: var(--warning); }
.stock-out { color: #8A8F98; }

.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; color: #D5DCD8; }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #F2A900; white-space: nowrap; }
.stars span::before { content: "★★★★★"; }

/* ---------------------------------------------------------------------
   6. Top bar & header
   ------------------------------------------------------------------- */
.topbar {
  background: var(--primary-dark);
  color: #D9EADF;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 38px;
}
.topbar-points { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.topbar-points li { display: inline-flex; align-items: center; gap: 7px; }
.topbar-points .icon { width: 15px; height: 15px; color: #7DDCB2; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background-color .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 82, 42, .08); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand img { height: 46px; width: auto; }

.main-nav ul { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--text);
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 3px; border-radius: 3px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-toggle { display: none; }

/* ---------------------------------------------------------------------
   7. Search panel & mobile drawer
   ------------------------------------------------------------------- */
.search-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 20px 0 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.search-form {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 2px solid var(--primary-line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--secondary); background: var(--white); }
.search-form .icon { color: var(--muted); }
.search-form input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  min-height: 44px;
  font-size: var(--fs-md);
  outline: none;
}
.search-hint { margin: 10px 2px 0; font-size: var(--fs-sm); color: var(--muted); }

.search-results { display: grid; gap: 4px; margin-top: 14px; max-height: min(60vh, 460px); overflow-y: auto; }
.search-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
}
.search-item:hover, .search-item.is-active { background: var(--primary-soft); }
.search-item .thumb { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--primary-soft); display: grid; place-items: center; overflow: hidden; }
.search-item .thumb svg, .search-item .thumb img { width: 44px; height: 44px; object-fit: contain; }
.search-item strong { display: block; font-size: var(--fs-base); line-height: 1.3; }
.search-item .meta { font-size: var(--fs-xs); color: var(--muted); }
.search-item .meta .stock { margin-left: 8px; font-size: var(--fs-xs); }
.search-item .price { font-weight: 800; color: var(--primary-dark); text-align: right; }
.search-item mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }

.search-empty { padding: 20px 4px 4px; }
.search-empty p { margin-bottom: 12px; font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 6px 14px;
  border: 1.5px solid var(--primary-line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-weight: 700; font-size: var(--fs-sm); color: var(--primary);
  transition: background-color .2s, border-color .2s;
}
.chip:hover { background: var(--primary-soft); border-color: var(--primary); }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 58, 29, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s linear .25s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(360px, 88vw);
  display: flex; flex-direction: column;
  background: var(--white);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s linear .32s;
  box-shadow: var(--shadow-lg);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-head img { height: 36px; width: auto; }
.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md); font-weight: 700;
}
.drawer-nav li { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .35s var(--ease); }
body.drawer-open .drawer-nav li { opacity: 1; transform: none; }
body.drawer-open .drawer-nav li:nth-child(2) { transition-delay: .04s; }
body.drawer-open .drawer-nav li:nth-child(3) { transition-delay: .08s; }
body.drawer-open .drawer-nav li:nth-child(4) { transition-delay: .12s; }
body.drawer-open .drawer-nav li:nth-child(5) { transition-delay: .16s; }
body.drawer-open .drawer-nav li:nth-child(6) { transition-delay: .20s; }
body.drawer-open .drawer-nav li:nth-child(7) { transition-delay: .24s; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 20px; }
.drawer-foot .contact-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------------
   8. Hero & the open-kit illustration
   ------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero-copy .lead { font-size: var(--fs-md); color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 700; color: var(--primary-dark); }
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances .icon { width: 18px; height: 18px; color: var(--secondary); }

.hero-visual { position: relative; }
.hero-visual::before {                       /* the "tray" the kit rests on */
  content: "";
  position: absolute;
  inset: 8% 0 0 6%;
  border-radius: 40px;
  background: var(--primary-soft);
  z-index: -1;
}
.kit-svg { width: 100%; height: auto; overflow: visible; }

/* Page-load sequence: lid lifts open, then each compartment fills. */
.kit-lid {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: lidOpen 1s var(--ease) .15s both;
}
@keyframes lidOpen {
  0%   { transform: scaleY(.04); opacity: .6; }
  60%  { transform: scaleY(1.03); opacity: 1; }
  100% { transform: scaleY(1); }
}
.kit-item {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: itemIn .55s var(--ease) both;
  animation-delay: calc(.85s + var(--i, 0) * .09s);
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(14px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
.kit-tag {
  animation: tagIn .5s var(--ease) 1.6s both;
}
@keyframes tagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   9. Trust strip
   ------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 24px clamp(16px, 2vw, 28px);
}
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--primary);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.trust-item:hover .trust-icon { background: var(--primary); color: var(--white); transform: rotate(-6deg); }
.trust-item h3 { font-size: var(--fs-base); margin: 2px 0 4px; }
.trust-item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------------------
   10. Categories
   ------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px;
  grid-template-rows: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.category-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card h3 { font-size: var(--fs-lg); margin: 0 0 6px; }
.category-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.category-card .count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); display: block; margin-bottom: 14px; }
.category-art {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid; place-items: center;
  transition: transform .35s var(--ease);
}
.category-art svg { width: 76px; height: 76px; }
.category-card:hover .category-art { transform: scale(1.06) rotate(-4deg); }
.category-card .link-more::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

/* ---------------------------------------------------------------------
   11. Product cards
   ------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-line); }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tint, var(--primary-soft));
  display: grid; place-items: center;
  overflow: hidden;
}
.product-media > svg { width: 72%; height: 72%; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media img, .product-media > svg {
  transition: transform .45s var(--ease);
}
.product-card:hover .product-media img,
.product-card:hover .product-media > svg { transform: scale(1.06); }
.product-card.is-out .product-media > img, .product-card.is-out .product-media > svg { filter: grayscale(.8); opacity: .6; }

.product-flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: color .2s, transform .2s var(--ease);
}
.wish-btn:hover { color: var(--accent); }
.wish-btn .icon { width: 20px; height: 20px; }
.wish-btn[aria-pressed="true"] { color: var(--accent); }
.wish-btn[aria-pressed="true"] .icon path { fill: currentColor; }
.wish-btn.is-popping { animation: heartPop .45s var(--ease); }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.product-sku { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: var(--fs-base); font-weight: 800; line-height: 1.35; min-height: 2.7em; margin: 0 0 8px; color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-name a::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1 / 1; } /* image also links */
.product-card .rating { margin-bottom: 10px; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.price { font-size: var(--fs-lg); font-weight: 800; color: var(--primary-dark); letter-spacing: -0.01em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: var(--fs-sm); }
.price-off { color: var(--accent); font-weight: 800; font-size: var(--fs-sm); }

.product-card .stock { margin-bottom: 14px; }
.product-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.product-actions .btn { min-height: 42px; padding: 8px 10px; font-size: var(--fs-sm); }

/* add-to-cart confirmation state */
.btn-cart .when-idle { display: inline-flex; align-items: center; gap: 8px; }
.btn-cart .when-added { display: none; }
.btn-cart.is-added { --btn-bg: var(--secondary); --btn-bd: var(--secondary); }
.btn-cart.is-added .when-idle { display: none; }
.btn-cart.is-added .when-added { display: inline-flex; align-items: center; gap: 6px; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.5); border-top-color: var(--white);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after { border-color: var(--primary-line); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* item that flies to the cart icon */
.fly-dot {
  position: fixed; z-index: 120;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, .2);
  pointer-events: none;
  transition: transform .7s cubic-bezier(.5, -0.3, .7, 1), opacity .7s;
}

/* ---------------------------------------------------------------------
   12. Why choose us + contents label
   ------------------------------------------------------------------- */
.why { background: var(--white); border-block: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

/* Styled like the printed contents label inside a kit lid */
.contents-label {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  padding: 28px 28px 24px;
  background: #FFFEFA;
  border: 2px solid var(--primary);
  border-radius: var(--r-md);
  box-shadow: 10px 10px 0 var(--primary-soft);
  transform: rotate(-1.5deg);
}
.contents-label header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.contents-label .cross {
  flex: none; width: 40px; height: 40px;
  border-radius: var(--r-xs);
  background: var(--accent);
  display: grid; place-items: center;
}
.contents-label header strong { display: block; font-size: var(--fs-md); color: var(--primary-dark); line-height: 1.25; }
.contents-label header span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.contents-label ul { list-style: none; margin: 0; padding: 0; }
.contents-label li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--primary-line);
  font-size: var(--fs-sm); font-weight: 600;
}
.contents-label li::before {
  content: ""; flex: none;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transform: translateY(2px);
}
.contents-label li .qty { margin-left: auto; color: var(--muted); font-weight: 700; white-space: nowrap; }
.contents-label footer { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }

.why-copy h2 { font-size: var(--fs-2xl); max-width: 18ch; }
.why-copy > p { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.why-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.why-list .trust-icon { width: 44px; height: 44px; }
.why-list strong { display: block; color: var(--primary-dark); margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   13. Promotional band
   ------------------------------------------------------------------- */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: var(--primary);
  color: #E3F1E8;
  overflow: hidden;
  isolation: isolate;
}
.promo::before {               /* large faint cross from the logo */
  content: "";
  position: absolute; left: -110px; bottom: -150px; z-index: -1;
  width: 380px; height: 380px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3'%3E%3Cpath d='M1 0h1v1h1v1H2v1H1V2H0V1h1z' fill='%23fff' fill-opacity='.06'/%3E%3C/svg%3E") center / contain no-repeat;
}
.promo h2 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.promo p { max-width: 44ch; margin-bottom: 28px; font-size: var(--fs-md); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-place {
  display: grid; justify-items: center; gap: 10px;
  padding: 22px 10px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-weight: 700; font-size: var(--fs-sm); color: var(--white);
  transition: background-color .25s;
}
.promo-place:hover { background: rgba(255, 255, 255, .14); }
.promo-place svg { width: 56px; height: 56px; }

/* ---------------------------------------------------------------------
   14. Reviews
   ------------------------------------------------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  display: flex; flex-direction: column;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.review-card .stars { font-size: 17px; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 20px; font-size: var(--fs-base); line-height: 1.65; }
.review-card footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 800;
}
.review-card footer strong { display: block; font-size: var(--fs-sm); }
.review-card footer span { font-size: var(--fs-xs); color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--secondary-dark) !important; font-weight: 700; }

/* ---------------------------------------------------------------------
   15. FAQ accordion
   ------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-intro h2 { font-size: var(--fs-2xl); }
.faq-intro p { color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.is-open { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 0; background: transparent;
  text-align: left;
  font-weight: 800; font-size: var(--fs-base);
  color: var(--primary-dark);
}
.faq-q .plus {
  position: relative; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-soft);
  transition: background-color .25s, transform .3s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .25s;
}
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .plus { background: var(--primary); transform: rotate(180deg); }
.faq-item.is-open .plus::before, .faq-item.is-open .plus::after { background: var(--white); }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 20px 20px; color: var(--muted); max-width: 64ch; }

/* ---------------------------------------------------------------------
   16. Help CTA, newsletter & footer
   ------------------------------------------------------------------- */
.help-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 2px solid var(--primary-line);
}
.help-cta .help-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.help-cta .help-icon .icon { width: 34px; height: 34px; }
.help-cta h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.help-cta p { margin: 0; color: var(--muted); max-width: 56ch; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { margin-top: 0; background: var(--primary-dark); color: #C4D9CB; font-size: var(--fs-sm); }
.newsletter {
  display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 20px 40px; align-items: center;
  padding-block: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.newsletter h2 { color: var(--white); font-size: var(--fs-lg); margin: 0 0 4px; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--white); }
.newsletter-form .input::placeholder { color: #9DB9A6; }
.newsletter-form .input:focus { background: rgba(255, 255, 255, .12); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr;
  gap: 32px;
  padding-block: 48px 36px;
}
.footer-brand .logo-plate { display: inline-block; padding: 10px 14px; border-radius: var(--r-sm); background: var(--white); margin-bottom: 16px; }
.footer-brand .logo-plate img { height: 42px; width: auto; }
.footer-brand p { max-width: 34ch; }
.footer-col h3 { color: var(--white); font-size: var(--fs-base); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.contact-list .icon { width: 18px; height: 18px; color: #7DDCB2; margin-top: 2px; }

.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--white); color: var(--primary-dark); }
.socials .icon { width: 18px; height: 18px; }

.disclaimer {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: #A9C2B2;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
}
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods span {
  padding: 4px 9px; border-radius: var(--r-xs);
  background: var(--white); color: var(--primary-dark);
  font-weight: 800; font-size: 11px;
}
.footer-bottom a { color: var(--white); font-weight: 700; }

/* ---------------------------------------------------------------------
   17. Toasts, WhatsApp button, skeletons, reveal
   ------------------------------------------------------------------- */
.toast-stack {
  position: fixed; z-index: 150;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid; gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: var(--fs-sm);
  pointer-events: auto;
  animation: toastIn .35s var(--ease) both;
}
.toast.is-leaving { animation: toastOut .3s var(--ease) both; }
.toast .icon { color: #7DDCB2; }
.toast-error { background: #7A1114; }
.toast-error .icon { color: #FFB4B6; }
.toast a { margin-left: auto; color: #7DDCB2; font-weight: 800; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

.wa-float {
  position: fixed; z-index: 70;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

.skeleton {
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, #EDF2EF 25%, #F6F9F7 37%, #EDF2EF 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.skeleton-line { height: 12px; margin: 6px 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   18. Responsive
   ------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-grid .footer-contact { grid-column: 1 / -1; }
  .footer-contact .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-content: flex-end; }
  .topbar-contact { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .hero-visual { max-width: 600px; width: 100%; margin-inline: auto; }

  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .why-visual { order: 2; }
  .promo { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review-grid > :nth-child(3) { display: none; }
  .help-cta { grid-template-columns: auto 1fr; }
  .help-actions { grid-column: 1 / -1; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .topbar-points li:not(:first-child) { display: none; }
  .topbar .container { justify-content: center; }
  .header-actions .hide-mobile { display: none; }
  .brand img { height: 38px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: var(--fs-sm); }
  .price { font-size: var(--fs-md); }
  .product-actions { grid-template-columns: 1fr; }
  .product-actions .btn-buy { display: none; }   /* Buy now lives on the product page on small screens */

  .scroll-row {                                    /* best sellers swipe sideways on phones */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .scroll-row::-webkit-scrollbar { display: none; }
  .scroll-row > * { scroll-snap-align: start; }
  .scroll-row .product-actions .btn-buy { display: inline-flex; }
  .scroll-row .product-actions { grid-template-columns: 1fr 1fr; }

  .review-grid { grid-template-columns: 1fr; }
  .review-grid > :nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact .contact-list { grid-template-columns: 1fr; }
  .promo-places { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .promo-place { padding: 16px 6px 12px; font-size: var(--fs-xs); }
  .promo-place svg { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { grid-template-columns: 1fr 88px; min-height: 0; padding: 20px; }
  .category-art { width: 88px; height: 88px; }
  .category-art svg { width: 58px; height: 58px; }
  .help-cta { grid-template-columns: 1fr; text-align: left; }
  .help-cta .help-icon { width: 56px; height: 56px; }
  .help-actions .btn { flex: 1 1 100%; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contents-label { transform: none; box-shadow: 6px 6px 0 var(--primary-soft); padding: 22px 18px 18px; }
}

@media (max-width: 400px) {
  .product-grid:not(.scroll-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-sku { display: none; }
  .header-actions .icon-btn { width: 40px; }
}

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

@media print {
  .topbar, .site-header, .wa-float, .toast-stack, .site-footer { display: none !important; }
  body { background: #fff; }
}

[hidden] { display: none !important; }

/* =====================================================================
   19. Inner pages (listing, product, cart, checkout, account, content)
   ===================================================================== */
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.center { text-align: center; }
.left { text-align: left; }
.h3 { font-size: var(--fs-md); }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.select.is-invalid, .textarea.is-invalid { border-color: var(--accent); }
.no-scroll { overflow: hidden; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row.center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--accent); }
.link-remove { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.link-remove:hover { color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.inline-radios { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.inline-radios legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-narrow { max-width: 520px; }

/* Alerts & flash */
.flash-wrap { padding-top: 18px; display: grid; gap: 10px; }
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; border: 1px solid; margin: 0 0 14px; transition: opacity .4s; }
.alert-success { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-dark); }
.alert-error { background: var(--accent-soft); border-color: #F6C3C4; color: #9B1418; }
.alert-info { background: #EEF6FF; border-color: #CFE0F5; color: #1D4F86; }
.alert-warning { background: var(--warning-soft); border-color: #F4D6A8; color: var(--warning); }
.alert.is-hiding { opacity: 0; }

/* Pills */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; font-style: normal; white-space: nowrap; }
.pill-ok { background: var(--primary-soft); color: var(--primary-dark); }
.pill-info { background: #EAF3FF; color: #1D4F86; }
.pill-wait { background: var(--warning-soft); color: var(--warning); }
.pill-bad { background: var(--accent-soft); color: #9B1418; }
.pill-muted { background: #EEF1EF; color: var(--muted); }

/* Page hero & breadcrumb */
.page-hero { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); padding: clamp(22px, 3vw, 40px) 0 clamp(18px, 2.5vw, 30px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-2xl); margin: 6px 0 6px; color: var(--primary-dark); letter-spacing: -.02em; }
.page-hero p { color: var(--muted); margin: 0; max-width: 720px; }
.page-hero-sm h1 { font-size: var(--fs-xl); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9AAAA0; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 700; }
.search-inline { margin-top: 16px; max-width: 640px; background: var(--white); }

/* Listing & filters */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-full) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-size: var(--fs-md); margin: 0; }
.filters-close, .filters-open { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--line); padding: 14px 0 6px; margin: 0; display: grid; gap: 9px; }
.filter-group legend { font-weight: 800; font-size: var(--fs-sm); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.filter-group .count { color: var(--muted); font-size: var(--fs-xs); }
.check-sub { padding-left: 22px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .input { min-height: 42px; padding: 8px 10px; }
.filter-actions { display: grid; gap: 8px; margin-top: 12px; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.listing-count { margin: 0; font-weight: 700; color: var(--muted); font-size: var(--fs-sm); }
.listing-tools { display: flex; align-items: center; gap: 10px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.sort-form .select { min-height: 42px; padding: 8px 36px 8px 12px; width: auto; }
.product-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { text-align: center; background: var(--white); border: 1px dashed var(--primary-line); border-radius: var(--r-md); padding: clamp(32px, 6vw, 64px) 20px; }
.empty-state > .icon { width: 44px; height: 44px; color: var(--primary); margin-bottom: 10px; }
.empty-state h2 { margin: 0 0 6px; font-size: var(--fs-lg); }
.empty-state p { color: var(--muted); margin: 0 auto 18px; max-width: 460px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.page-link { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.page-gap { align-self: center; color: var(--muted); }
.category-art img { width: 76px; height: 76px; object-fit: contain; }
.sub-chips { margin-top: 10px; gap: 6px; }
.chip-sm { padding: 4px 10px; font-size: var(--fs-xs); }
.hero-image { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* Product page */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 16px; }
.gallery-main { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease-out; }
.gallery-main .product-flags { position: absolute; top: 14px; left: 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { border-color: var(--primary); }
.pdp-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; margin: 4px 0 10px; letter-spacing: -.02em; color: var(--primary-dark); }
.pdp-info .rating { margin-bottom: 14px; }
.pdp-price .price { font-size: 2rem; }
.tax-note { margin: 2px 0 12px; font-size: var(--fs-xs); color: var(--muted); }
.pdp-short { color: var(--muted); margin: 14px 0 0; }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 18px; }
.pdp-buy .btn-lg { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); height: 52px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; color: var(--primary); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 40px; }
.qty-sm button { width: 34px; }
.qty-sm input { width: 40px; }
.wish-inline { position: static; width: 52px; height: 52px; border: 1.5px solid var(--line); }
.pdp-assure { list-style: none; padding: 16px 0 0; margin: 0 0 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.pdp-assure li { display: flex; gap: 10px; align-items: center; }
.pdp-assure .icon { color: var(--primary); }
.pdp-details { margin-top: clamp(32px, 5vw, 56px); }
.pdp-tabs { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: var(--header-full); z-index: 5; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); }
.pdp-tabs a { flex: none; padding: 9px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--muted); }
.pdp-tabs a:hover { background: var(--primary-soft); color: var(--primary); }
.pdp-section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-full) + 60px); }
.pdp-section h2 { font-size: var(--fs-lg); margin: 0 0 14px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.two-col h2, .three-col h2 { font-size: var(--fs-md); margin: 0 0 8px; }
.rich-text { line-height: 1.7; }
.rich-text h2 { font-size: var(--fs-lg); margin: 26px 0 10px; color: var(--primary-dark); }
.rich-text ul { padding-left: 20px; }
.rich-text li { margin-bottom: 6px; }
.contents-label-flat { max-width: 640px; box-shadow: none; transform: none; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
.spec-table th { width: 38%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.disclaimer-light { font-size: var(--fs-xs); color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin: 24px 0 0; }
.reviews-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.reviews-summary { display: grid; justify-items: start; gap: 6px; align-content: start; }
.big-rating { font-size: 3rem; line-height: 1; color: var(--primary-dark); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item h3 { font-size: var(--fs-base); margin: 8px 0 4px; }
.review-item p { margin: 6px 0; }
.review-item footer { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.review-form-wrap { margin-top: 20px; }
.review-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; max-width: 620px; }
.review-form h3 { margin: 0 0 10px; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 4px; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #D6DDD8; cursor: pointer; padding: 0 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #F5A623; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

/* Cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 12px; align-content: start; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; transition: opacity .25s, transform .25s; }
.cart-line.has-issue { border-color: #F6C3C4; }
.cart-line.is-updating { opacity: .6; }
.cart-line.is-removing { opacity: 0; transform: translateX(20px); }
.cart-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--primary-soft); }
.cart-info { display: grid; gap: 3px; }
.cart-name { font-weight: 800; color: var(--text); line-height: 1.3; }
.cart-name:hover { color: var(--primary); }
.cart-unit { font-size: var(--fs-sm); color: var(--muted); }
.line-issue { color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.cart-qty { display: grid; justify-items: center; gap: 6px; }
.cart-line-total { font-size: var(--fs-md); min-width: 90px; text-align: right; }
.wish-actions { display: grid; justify-items: end; gap: 6px; }
.summary-card { position: sticky; top: calc(var(--header-full) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-md); display: grid; gap: 14px; }
.summary-card h2 { font-size: var(--fs-lg); margin: 0; }
.totals { margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals dt { color: var(--muted); }
.totals dt small { display: block; font-size: 11px; }
.totals dd { margin: 0; font-weight: 700; }
.totals .t-discount dd { color: var(--secondary-dark); }
.totals .t-grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: var(--fs-md); }
.totals .t-grand dt { color: var(--text); font-weight: 800; }
.totals .t-grand dd { font-weight: 800; color: var(--primary-dark); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 44px; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--primary-soft); border: 1px dashed var(--primary-line); border-radius: var(--r-sm); padding: 10px 12px; font-size: var(--fs-sm); color: var(--primary-dark); }
.coupon-applied .link-remove { margin-left: auto; }
.free-ship-hint { margin: 0; font-size: var(--fs-sm); color: var(--warning); background: var(--warning-soft); border-radius: var(--r-sm); padding: 8px 12px; }
.free-ship-hint:empty { display: none; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(16px, 2.5vw, 24px); margin-bottom: 16px; }
.panel h2 { font-size: var(--fs-md); margin: 0 0 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.checkout-step h2 { display: flex; align-items: center; gap: 10px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: var(--fs-sm); flex: none; }
.customer-line { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; font-size: var(--fs-sm); }
.address-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.address-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px; cursor: pointer; font-size: var(--fs-sm); line-height: 1.5; }
.address-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.address-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-box { display: flex; gap: 14px; align-items: flex-start; background: var(--primary-soft); border-radius: var(--r-sm); padding: 14px; }
.pay-box > .icon { color: var(--primary); width: 26px; height: 26px; flex: none; }
.pay-box p { margin: 4px 0 0; }
.pay-methods-light { margin-top: 12px; }
.pay-methods-light span { background: var(--white); color: var(--primary-dark); border-color: var(--primary-line); }
.summary-items { display: grid; gap: 10px; max-height: 300px; overflow: auto; }
.mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: var(--fs-sm); padding: 6px 0; }
.mini-line img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-xs); background: var(--primary-soft); }
.mini-line div { display: grid; gap: 2px; font-weight: 600; }
.mini-thumb { position: relative; }
.mini-thumb b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--primary); color: var(--white); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-full) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
.account-nav nav { display: grid; gap: 2px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-sm); color: var(--text); background: none; border: 0; width: 100%; font-family: inherit; cursor: pointer; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--primary-soft); color: var(--primary); }
.account-nav a[aria-current] { background: var(--primary); color: var(--white); }
.account-nav form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 4px; color: var(--text); }
.stat-card span { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-card strong { font-size: var(--fs-xl); color: var(--primary-dark); }
.stat-card:hover { border-color: var(--primary); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.address-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: var(--fs-sm); display: grid; gap: 10px; align-content: start; }
.address-card.is-default { border-color: var(--primary); }
.address-card p { margin: 0; line-height: 1.6; }
.address-top { display: flex; gap: 6px; }
.address-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.address-actions form { display: inline; }
.address-add { border-style: dashed; place-items: center; justify-content: center; min-height: 170px; color: var(--primary); font-weight: 800; display: flex; gap: 8px; }
.address-add:hover { background: var(--primary-soft); }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; color: var(--text); }
.order-row:hover { border-color: var(--primary); }
.order-row img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--primary-soft); }
.order-row div { display: grid; gap: 2px; }
.progress-steps { list-style: none; margin: 0 0 18px; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); counter-reset: s; }
.progress-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-align: center; }
.progress-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: var(--white); z-index: 1; }
.progress-steps li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.is-done { color: var(--primary-dark); }
.progress-steps li.is-done span { background: var(--primary); border-color: var(--primary); }
.progress-steps li.is-done::before { background: var(--primary); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--primary-line); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; gap: 2px; font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--white); }
.timeline p { margin: 2px 0 0; color: var(--muted); }

/* Auth, result & error pages */
.auth-section { background: linear-gradient(180deg, var(--primary-soft), var(--bg) 60%); }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: var(--fs-xl); margin: 0 0 4px; color: var(--primary-dark); }
.auth-card > .muted { margin: 0 0 20px; }
.auth-switch { text-align: center; margin: 18px 0 0; font-size: var(--fs-sm); }
.auth-switch a { font-weight: 800; }
.result-wrap { max-width: 720px; }
.result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 44px); text-align: center; box-shadow: var(--shadow-md); }
.result-card h1 { font-size: var(--fs-2xl); margin: 12px 0 8px; color: var(--primary-dark); }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.result-icon .icon { width: 38px; height: 38px; }
.result-icon.ok { background: var(--primary-soft); color: var(--primary); }
.result-icon.bad { background: var(--accent-soft); color: var(--accent); }
.result-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.result-facts div { background: var(--bg); border-radius: var(--r-sm); padding: 12px; }
.result-facts dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.result-facts dd { margin: 4px 0 0; font-weight: 800; }
.ship-to { font-size: var(--fs-sm); margin: 14px 0 0; }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--primary-line); letter-spacing: -.04em; }

/* Content, contact, FAQ */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.content-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 4vw, 40px); }
.content-body > :first-child { margin-top: 0; }
.content-aside .panel { position: sticky; top: calc(var(--header-full) + 16px); font-size: var(--fs-sm); }
.content-links { display: grid; gap: 2px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.content-links a { padding: 7px 0; font-weight: 600; color: var(--text); }
.content-links a[aria-current], .content-links a:hover { color: var(--primary); }
.content-narrow { max-width: 860px; }
.faq-group { font-size: var(--fs-lg); margin: 28px 0 12px; }
.faq-group:first-child { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; color: var(--text); }
.contact-card div { display: grid; gap: 2px; font-size: var(--fs-sm); }
.contact-card strong { font-size: var(--fs-base); }
a.contact-card:hover { border-color: var(--primary); }
.map-wrap { margin-top: 28px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 6; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .product-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 90; border-radius: 0; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; }
  .filters-close, .filters-open { display: inline-flex; }
  .pdp-grid, .cart-layout, .checkout-layout, .account-layout, .content-layout, .contact-grid, .reviews-layout { grid-template-columns: 1fr; }
  .summary-card, .account-nav, .content-aside .panel { position: static; }
  .account-nav nav { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .account-nav form { border: 0; margin: 0; padding: 0; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-col { grid-template-columns: 1fr; }
  .result-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .form-grid, .two-col, .address-options, .address-grid { grid-template-columns: 1fr; }
  .product-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-thumb img { width: 72px; height: 72px; }
  .cart-qty { justify-items: start; grid-column: 2; grid-auto-flow: column; align-items: center; gap: 14px; }
  .cart-line-total, .wish-actions { grid-column: 2; text-align: left; justify-items: start; }
  .order-row { grid-template-columns: 52px minmax(0, 1fr); }
  .order-row img { width: 52px; height: 52px; }
  .order-row > span, .order-row > strong { grid-column: 2; }
  .pdp-buy .qty { width: 100%; justify-content: space-between; }
  .pdp-buy .qty input { flex: 1; }
  .wish-inline { flex: none; }
  .sort-form label { display: none; }
  .progress-steps { padding: 14px 6px; }
}

@media print {
  .topbar, .site-header, .site-footer, .wa-float, .account-nav, .btn-row, .toast-stack, .drawer, .search-panel { display: none !important; }
  .account-layout { grid-template-columns: 1fr; }
  body { background: #fff; }
  .panel { border-color: #ccc; break-inside: avoid; }
}

/* =====================================================================
   20. Category mega menu, drawer categories, mobile bottom navigation
   ===================================================================== */
.icon-xs { width: 14px; height: 14px; }
.main-nav li.has-mega { position: static; }
.main-nav .has-mega > a { display: inline-flex; align-items: center; gap: 6px; }
.mega-caret { transform: rotate(90deg); transition: transform .2s; opacity: .7; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgba(10, 58, 29, .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s;
  z-index: 65;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.has-mega:hover .mega-caret, .has-mega.is-open .mega-caret { transform: rotate(-90deg); }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; padding-top: 26px; padding-bottom: 28px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.main-nav .mega a { padding: 0; border-radius: 0; background: none; font-weight: 600; }
.main-nav .mega a::after { display: none; }
.main-nav .mega-cat { display: flex !important; align-items: center; gap: 12px; padding: 6px !important; margin: -6px; border-radius: var(--r-sm) !important; }
.main-nav .mega-cat:hover { background: var(--primary-soft) !important; }
.mega-img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; overflow: hidden; }
.mega-img img { width: 42px; height: 42px; object-fit: contain; }
.mega-cat strong { display: block; color: var(--primary-dark); font-size: var(--fs-base); font-weight: 800; }
.mega-cat small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.main-nav .mega-subs { list-style: none; margin: 8px 0 0 68px; padding: 0; display: grid; justify-content: start; gap: 6px; }
.main-nav .mega-subs li { position: relative; padding-left: 12px; }
.main-nav .mega-subs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-line); }
.main-nav .mega-subs a { font-size: var(--fs-sm); color: var(--muted); display: inline-block; }
.main-nav .mega-subs a:hover { color: var(--primary); text-decoration: underline; }
.mega-promo { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: var(--white); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mega-promo strong { font-size: var(--fs-md); }
.mega-promo p { margin: 0; color: #CFE2D5; font-size: var(--fs-sm); }
.main-nav .mega-promo .btn { padding: 8px 14px; background: var(--white); border-radius: var(--r-sm); font-weight: 800; color: var(--primary); }
.main-nav .mega-wa { display: inline-flex !important; align-items: center; gap: 6px; color: #7DDCB2 !important; font-size: var(--fs-sm); font-weight: 700; margin-top: auto; }

/* Drawer: categories accordion */
.drawer-body { flex: 1; overflow-y: auto; margin: 0 -20px; padding: 0 20px; overscroll-behavior: contain; }
.drawer-cats { margin-bottom: 18px; }
.drawer-cats h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px; }
.dcat { border-bottom: 1px solid var(--line); }
.dcat-row { display: flex; align-items: center; }
.dcat-link { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 700; color: var(--text); }
.dcat-img { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; flex: none; }
.dcat-img img { width: 30px; height: 30px; object-fit: contain; }
.dcat-toggle { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-sm); }
.dcat-toggle .icon { transform: rotate(90deg); transition: transform .2s; }
.dcat-toggle[aria-expanded="true"] { color: var(--primary); background: var(--primary-soft); }
.dcat-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.dcat-subs { list-style: none; margin: 0 0 10px 52px; padding: 0; display: grid; gap: 2px; }
.dcat-subs a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-xs); font-size: var(--fs-sm); color: var(--text); }
.dcat-subs a:hover { background: var(--primary-soft); color: var(--primary); }
.dcat-subs span { color: var(--muted); font-size: var(--fs-xs); }
.drawer-cats.is-highlight { animation: catFlash 1s var(--ease); }
@keyframes catFlash { 0% { background: var(--primary-soft); } 100% { background: transparent; } }

/* Mobile bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 82, 42, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @supports (backdrop-filter: blur(8px)) { .bottom-nav { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); } }
  .bottom-nav a, .bottom-nav button {
    position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px;
    border: 0; background: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
  }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .bottom-nav [aria-current="page"] { color: var(--primary); }
  .bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .bottom-nav .count-badge { position: absolute; top: 3px; left: calc(50% + 6px); right: auto; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; right: 14px; }
  .toast-stack { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* the bottom bar replaces these header icons on phones */
  .header-actions [data-search-toggle], .header-actions [data-cart-icon] { display: none; }
  .brand img { height: 40px; }
  .topbar-points li:not(:first-child) { display: none; }
  .topbar-points { justify-content: center; width: 100%; }
}
@media print { .bottom-nav, .mega { display: none !important; } }

/* =====================================================================
   21. Wider mega menu, homepage additions (stats, brands, collage)
   ===================================================================== */
.mega-wide { grid-template-columns: minmax(0, 1fr) 230px; }
.mega-wide .mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 22px; }
.mega-wide .mega-img { width: 48px; height: 48px; }
.mega-wide .mega-subs { margin-left: 12px; }
.main-nav .mega-more a { color: var(--primary) !important; font-weight: 800 !important; }
.main-nav .mega-more::before { display: none; }
.mega-img img, .dcat-img img, .category-art img { border-radius: 50%; object-fit: cover; }
.mega-img img { width: 100%; height: 100%; }
.dcat-img img { width: 100%; height: 100%; }
.category-art { overflow: hidden; }
.category-art img { width: 100%; height: 100%; }
.category-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stats-band { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: var(--white); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-md); }
.stat { display: grid; justify-items: center; text-align: center; gap: 2px; }
.stat strong { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat > span { color: #CFE2D5; font-size: var(--fs-sm); font-weight: 600; }

.brands { padding: 6px 0 clamp(36px, 5vw, 64px); }
.brands-title { text-align: center; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.brand-pill { flex: none; padding: 12px 22px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-weight: 800; font-size: var(--fs-md); color: var(--primary-dark); letter-spacing: -.01em; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.brand-pill:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

.collage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 10px; }
.collage-tile { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); aspect-ratio: 1; animation: floaty 6s ease-in-out infinite; }
.collage-tile.t2 { margin-top: 36px; animation-delay: -1.5s; }
.collage-tile.t3 { margin-top: -36px; animation-delay: -3s; }
.collage-tile.t4 { animation-delay: -4.5s; }
.collage-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collage-tile span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .92); font-size: var(--fs-xs); font-weight: 700; color: var(--primary-dark); transform: translateY(8px); opacity: 0; transition: .35s var(--ease); }
.collage-tile:hover img { transform: scale(1.08); }
.collage-tile:hover span { transform: none; opacity: 1; }
.collage-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent); color: var(--white); width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; box-shadow: 0 14px 30px rgba(227, 30, 36, .35); border: 5px solid var(--white); animation: pulseRing 2.8s ease-out infinite; }
.collage-badge strong { font-size: 1.7rem; line-height: 1; }
.collage-badge span { font-size: 11px; font-weight: 700; line-height: 1.2; padding: 0 10px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, .45), 0 14px 30px rgba(227, 30, 36, .35); } 70%, 100% { box-shadow: 0 0 0 22px rgba(227, 30, 36, 0), 0 14px 30px rgba(227, 30, 36, .35); } }
.promo-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .12); border: 3px solid rgba(255, 255, 255, .25); display: block; margin: 0 auto 8px; transition: transform .35s var(--ease); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-place:hover .promo-img { transform: scale(1.08) rotate(-4deg); }

/* =====================================================================
   22. Motion: entrances, scroll effects, micro-interactions
   All of it switches off for visitors who prefer reduced motion.
   ===================================================================== */
/* Page fade-in */
main#main { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent)); pointer-events: none; }

/* Hero: staggered entrance + soft moving background shapes */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; pointer-events: none; z-index: 0; }
.hero::before { width: 420px; height: 420px; background: #D5EFE0; top: -120px; right: -80px; animation: blob 16s ease-in-out infinite; }
.hero::after { width: 300px; height: 300px; background: #FBE3E4; bottom: -120px; left: -60px; animation: blob 20s ease-in-out infinite reverse; }
.hero > .container { position: relative; z-index: 1; }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-40px, 30px) scale(1.1); } 66% { transform: translate(30px, -20px) scale(.95); } }
.hero-copy > * { animation: fadeUp .8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .18s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .42s; }
.hero-visual { animation: fadeScale 1s var(--ease) .2s both; }
.hero-image { animation: floaty 7s ease-in-out infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }

/* Page hero (inner pages) */
.page-hero { background-size: 200% 200%; animation: heroGradient 14s ease infinite; }
.page-hero h1, .page-hero p, .page-hero .breadcrumb { animation: fadeUp .6s var(--ease) both; }
.page-hero h1 { animation-delay: .08s; } .page-hero p { animation-delay: .16s; }
@keyframes heroGradient { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

/* Reveal variants + staggered children (driven by app.js) */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-zoom { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.is-visible, .reveal-right.is-visible, .reveal-zoom.is-visible { opacity: 1; transform: none; }
.js-anim .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-anim .stagger.is-visible > * { opacity: 1; transform: none; }

/* Section titles: underline grows in */
.section-head h2, .why-copy h2, .faq-intro h2 { position: relative; padding-bottom: 10px; }
.section-head h2::after, .why-copy h2::after, .faq-intro h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 56px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s; }
.reveal.is-visible h2::after, .is-visible .section-head h2::after, .section-head.is-visible h2::after { transform: scaleX(1); }
html:not(.js-anim) .section-head h2::after { transform: scaleX(1); }

/* Buttons: shine sweep + press */
.btn { position: relative; overflow: hidden; }
.btn:not(.btn-secondary):not(.btn-light):not(.btn-ghost-light)::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn:not(.btn-secondary):not(.btn-light):not(.btn-ghost-light):hover::before { left: 130%; }
.btn:active { transform: translateY(1px) scale(.98); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn-secondary .ripple, .btn-light .ripple { background: rgba(16, 82, 42, .18); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* Cards */
.product-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 82, 42, .14); }
.category-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16, 82, 42, .12); }
.trust-item .trust-icon { transition: transform .4s var(--ease); }
.trust-item:hover .trust-icon { transform: rotate(-8deg) scale(1.12); }
.badge-sale { animation: saleWiggle 3.5s ease-in-out infinite; }
@keyframes saleWiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-6deg) scale(1.08); } 96% { transform: rotate(5deg) scale(1.08); } }

/* Count badge bump when the cart/wishlist changes */
.count-badge.bump, .count-badge.is-bumping { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* WhatsApp button pulse */
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 69; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--primary); box-shadow: var(--shadow-md); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .35s var(--ease), background .2s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); color: var(--white); }
.to-top .icon { transform: rotate(-90deg); }
@media (max-width: 768px) { .to-top { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); right: 17px; width: 42px; height: 42px; } }

/* Drawer & mega menu items slide in */
.has-mega.is-open .mega-col, .has-mega:hover .mega-col { animation: fadeUp .45s var(--ease) both; }
.mega-col:nth-child(2) { animation-delay: .04s !important; } .mega-col:nth-child(3) { animation-delay: .08s !important; } .mega-col:nth-child(4) { animation-delay: .12s !important; }
.mega-col:nth-child(5) { animation-delay: .16s !important; } .mega-col:nth-child(6) { animation-delay: .2s !important; } .mega-col:nth-child(7) { animation-delay: .24s !important; } .mega-col:nth-child(8) { animation-delay: .28s !important; }
body.drawer-open .dcat { animation: slideInRight .4s var(--ease) both; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .category-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega-wide .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .category-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .collage { gap: 10px; } .collage-badge { width: 92px; height: 92px; } .collage-badge strong { font-size: 1.35rem; }
  .brand-pill { padding: 9px 16px; font-size: var(--fs-base); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .js-anim .stagger > *, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; }
}
/* Slide-in animations must never widen the page on phones */
.why, .promo, .stats-band { overflow: hidden; }
main#main { overflow-x: clip; }
/* 4-column category cards: photo on top, text below */
.category-grid-4 .category-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 18px; min-height: 0; text-align: left; }
.category-grid-4 .category-art { grid-row: 1; grid-column: 1; width: 96px; height: 96px; border: 4px solid var(--white); box-shadow: 0 6px 18px rgba(16, 82, 42, .12); }
.category-grid-4 .category-card h3 { font-size: var(--fs-md); margin-top: 6px; }
.category-grid-4 .category-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.category-grid-4 .category-card:hover .category-art { transform: scale(1.06) rotate(-4deg); }

/* =====================================================================
   23. Admin-managed menu: simple dropdowns & drawer sub-menus
   ===================================================================== */
.main-nav li.has-drop { position: relative; }
.main-nav .has-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav .dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 220px; margin: 0; padding: 8px; list-style: none;
  display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(10, 58, 29, .14); z-index: 65;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s;
}
.main-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .05s, .05s, 0s; }
.has-drop:hover .mega-caret, .has-drop.is-open .mega-caret { transform: rotate(-90deg); }
.main-nav .dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.main-nav .dropdown a::after { display: none; }
.main-nav .dropdown a:hover, .main-nav .dropdown a[aria-current] { background: var(--primary-soft); color: var(--primary); }
.has-drop:hover .dropdown li, .has-drop.is-open .dropdown li { animation: fadeUp .3s var(--ease) both; }
.main-nav .mega-link { font-weight: 800; color: var(--primary); }
.drawer-nav .dnav-parent .dcat-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-nav .dnav-parent .dcat-row > a { border: 0; flex: 1; }
.drawer-nav .dnav-parent .dcat-subs { margin: 6px 0 10px 12px; }
.drawer-nav .dnav-parent .dcat-subs a { border: 0; padding: 8px 10px; font-weight: 600; font-size: var(--fs-sm); }


/* =====================================================================
   24. Two-row header: search + help, "All Categories" dropdown + menu
   ===================================================================== */
.header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.header-search { justify-self: center; width: 100%; max-width: 560px; display: flex; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #F6F8F7; padding: 0 6px 0 20px; transition: border-color .2s, background .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(16, 82, 42, .08); }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--fs-sm); outline: none; color: var(--text); }
.header-search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--primary); color: var(--white); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s, background .2s; }
.header-search button:hover { background: var(--primary-dark); transform: scale(1.06); }
.header-search button .icon { width: 18px; height: 18px; }
.header-help { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.header-help > .icon { width: 30px; height: 30px; color: var(--primary); }
.header-help span { display: grid; line-height: 1.2; }
.header-help small { font-size: 11px; color: var(--muted); font-weight: 600; }
.header-help strong { font-size: var(--fs-sm); color: var(--primary-dark); }
.header-actions .search-icon-btn { display: none; }

.header-bottom { border-top: 1px solid var(--line); }
.header-bottom-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.header-bottom .main-nav { flex: 1; min-width: 0; }
.header-bottom .main-nav ul { justify-content: flex-start; }
.header-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--primary); white-space: nowrap; }

.allcats { position: relative; flex: none; width: 272px; align-self: stretch; display: flex; align-items: center; }
.allcats-btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--white); font: inherit; font-weight: 800; font-size: var(--fs-sm); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 18px rgba(227, 30, 36, .25); transition: background .2s, transform .2s, box-shadow .2s; }
.allcats-btn:hover { background: #C8171D; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(227, 30, 36, .32); }
.allcats-btn span { flex: 1; text-align: left; }
.allcats-caret { transform: rotate(90deg); transition: transform .25s var(--ease); }
.allcats.is-open .allcats-caret { transform: rotate(-90deg); }
.allcats-total { position: absolute; left: 40px; bottom: -11px; padding: 2px 10px; border-radius: var(--r-pill); background: #EDF0F2; border: 2px solid var(--white); color: #5B6560; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.allcats-panel { position: absolute; top: calc(100% + 4px); left: 0; width: 100%; z-index: 66; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 22px 44px rgba(10, 58, 29, .14); padding: 18px 0 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .25s var(--ease), visibility 0s linear .25s; }
.allcats.is-open .allcats-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.allcats-list { list-style: none; margin: 0; padding: 0; }
.allcats-list > li { position: relative; }
.allcats-list > li.is-extra { display: none; }
.allcats-panel.show-all .allcats-list > li.is-extra { display: block; animation: fadeUp .3s var(--ease) both; }
.allcats-list > li > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 24px; font-size: var(--fs-sm); font-weight: 500; color: #3E4A44; transition: color .15s, background .15s, padding-left .2s; }
.allcats-list > li > a:hover, .allcats-list > li:focus-within > a { color: var(--primary); background: var(--primary-soft); padding-left: 30px; }
.allcats-list .icon-xs { color: var(--muted); }
.allcats.is-open .allcats-list > li:not(.is-extra) { animation: fadeUp .35s var(--ease) both; }
.allcats.is-open .allcats-list > li:nth-child(n+2) { animation-delay: .02s; } .allcats.is-open .allcats-list > li:nth-child(n+4) { animation-delay: .05s; }
.allcats.is-open .allcats-list > li:nth-child(n+7) { animation-delay: .08s; } .allcats.is-open .allcats-list > li:nth-child(n+10) { animation-delay: .11s; }
.allcats-sub { position: absolute; left: 100%; top: -8px; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(10, 58, 29, .14);
  opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .18s, transform .2s, visibility 0s linear .2s; }
.allcats-list > li.has-sub:hover > .allcats-sub, .allcats-list > li.has-sub:focus-within > .allcats-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.allcats-sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: #3E4A44; }
.allcats-sub a:hover { background: var(--primary-soft); color: var(--primary); }
.allcats-sub-all { font-weight: 800; color: var(--primary) !important; }
.allcats-more { display: flex; align-items: center; gap: 6px; margin: 6px 24px 0; padding: 8px 0 2px; border: 0; border-top: 1px dashed var(--line); width: calc(100% - 48px); background: none; font: inherit; font-size: var(--fs-sm); font-weight: 800; color: var(--primary); cursor: pointer; }
.allcats-more .icon-xs { transform: rotate(90deg); transition: transform .2s; }
.allcats-more[aria-expanded="true"] .icon-xs { transform: rotate(-90deg); }
.allcats-empty { margin: 0; padding: 4px 24px; color: var(--muted); font-size: var(--fs-sm); }

@media (min-width: 1025px) {
  :root { --header-full: calc(var(--header-h) + 59px); }

}
@media (max-width: 1240px) { .header-help { display: none; } .header-note { display: none; } }
@media (max-width: 1024px) {
  .header-search, .header-help, .header-bottom { display: none; }
  .header-actions .search-icon-btn { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr; }
}

/* Menu never wraps: links stay on one line; extra links move into "More" (app.js) */
.header-bottom .main-nav { overflow: visible; }
.header-bottom .main-nav > ul { flex-wrap: nowrap; }
.header-bottom .main-nav > ul > li > a { white-space: nowrap; }
.main-nav .nav-more > a { cursor: pointer; }
.main-nav .nav-more .dropdown { left: auto; right: 0; transform: translate(0, -6px); }
.main-nav .nav-more:hover .dropdown, .main-nav .nav-more:focus-within .dropdown, .main-nav .nav-more.is-open .dropdown { transform: translate(0, 0); }
.header-bottom.is-crowded .header-note { display: none; }

/* =====================================================================
   25. "All Categories" as a mega menu (more than 12 categories)
   ===================================================================== */
.allcats-mega .allcats-panel {
  width: min(calc(var(--container) - 2 * var(--gutter)), calc(100vw - 2 * var(--gutter)));
  border-top: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0; max-height: calc(100vh - var(--header-full) - 40px); overflow: auto; overscroll-behavior: contain;
}
.allcats-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 14px; padding: 16px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.allcats-head strong { font-size: var(--fs-md); color: var(--primary-dark); }
.allcats-head span { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.allcats-head a { margin-left: auto; font-weight: 800; font-size: var(--fs-sm); color: var(--primary); }
.allcats-mega .allcats-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; padding: 14px 16px 18px; }
.allcats-mega .allcats-list > li > a { justify-content: flex-start; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.allcats-mega .allcats-list > li > a:hover, .allcats-mega .allcats-list > li:focus-within > a { padding-left: 10px; background: var(--primary-soft); }
.allcats-img { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: var(--primary-soft); border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(16, 82, 42, .1); transition: transform .25s var(--ease); }
.allcats-img img { width: 100%; height: 100%; object-fit: cover; }
.allcats-mega .allcats-list > li > a:hover .allcats-img { transform: scale(1.1) rotate(-4deg); }
.allcats-name { display: grid; line-height: 1.25; min-width: 0; }
.allcats-name small { font-size: 11px; color: var(--muted); font-weight: 600; }
.allcats-mega .allcats-list > li > a:hover .allcats-name { color: var(--primary); }
/* sub-categories listed under their category (no flyout in mega mode) */
.allcats-mega .allcats-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px 60px; background: none; }
.allcats-mega .allcats-sub a { padding: 3px 0; font-size: var(--fs-xs); color: var(--muted); border-radius: 0; }
.allcats-mega .allcats-sub a:hover { background: none; color: var(--primary); text-decoration: underline; }
.allcats-mega .allcats-sub .allcats-sub-all { display: none; }
.allcats-mega.is-open .allcats-list > li { animation: fadeUp .35s var(--ease) both; }
