/* ============================================================
   LUMIÈRE — Design System
   Premium clean-beauty e-commerce
   Tokens, base, components, pages
   ============================================================ */

/* ---------- 1. Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- 2. Design Tokens ---------- */
:root {
  /* Brand colors */
  --brand-900: #1E2E25;
  --brand-800: #24402F;
  --brand-700: #2C4A3B;
  --brand-600: #35594A;
  --brand-500: #4A7A63;
  --brand-400: #6E8F7C;
  --brand-200: #C3D3C9;
  --brand-100: #E7EFE9;
  --brand-50:  #F2F6F3;

  /* Accent */
  --accent:       #C19A4B;
  --accent-soft:  #F3E9D5;
  --accent-hover: #A9853B;

  /* Neutrals */
  --bg:            #FAF6F0;
  --bg-deep:       #F2ECE2;
  --surface:       #FFFFFF;
  --surface-2:     #F7F3EC;
  --ink:           #232019;
  --ink-2:         #6B675D;
  --ink-3:         #9A958A;
  --border:        #E8E2D6;
  --border-strong: #D8CFBC;

  /* Semantic */
  --success:      #3E7C4F;
  --success-bg:   #E9F3EC;
  --warning:      #B97A1E;
  --warning-bg:   #FBF2E3;
  --error:        #B4433B;
  --error-bg:     #F9EAE9;

  /* Typography */
  --font-display: 'Manrope', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-md:  0.9375rem;
  --fs-base: 1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-hero: clamp(2.6rem, 5vw, 4.25rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-normal: 1.6;

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

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(35, 32, 25, .05);
  --shadow-sm: 0 1px 3px rgba(35, 32, 25, .07), 0 1px 2px rgba(35, 32, 25, .04);
  --shadow-md: 0 4px 12px rgba(35, 32, 25, .08), 0 2px 4px rgba(35, 32, 25, .05);
  --shadow-lg: 0 12px 32px rgba(35, 32, 25, .12), 0 4px 10px rgba(35, 32, 25, .06);
  --shadow-xl: 0 24px 60px rgba(35, 32, 25, .18);

  /* Layout */
  --container: 1320px;
  --container-narrow: 900px;
  --header-h: 76px;
  --announce-h: 40px;
  --gutter: clamp(16px, 3vw, 40px);
}

/* ---------- 3. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-100); color: var(--brand-900); }

/* ---------- 4. Typography Utilities ---------- */
.h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-3xl); letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-2xl); }
.h4 { font-size: var(--fs-xl); }
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow--accent { color: var(--accent-hover); }
.display { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.lede { font-size: var(--fs-lg); color: var(--ink-2); line-height: var(--lh-snug); }
.text-center { text-align: center; }
.text-muted { color: var(--ink-2); }
.text-small { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-brand { color: var(--brand-700); }
.text-accent { color: var(--accent-hover); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-11); }
.section--sm { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-5); }
.section--tinted { background: var(--surface-2); }
.section--dark { background: var(--brand-900); color: #F4F0E7; }
.section--dark h2, .section--dark h3 { color: #F4F0E7; }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.wrap { flex-wrap: wrap; }

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

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.section-head__text { max-width: 620px; }
.section-head h2 { margin-top: var(--sp-2); }
.section-head p { margin-top: var(--sp-2); color: var(--ink-2); }
.section-head .link-arrow { flex-shrink: 0; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-pill);
  transition: gap .2s ease, color .2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent-hover); gap: var(--sp-3); }

.divider { height: 1px; background: var(--border); border: 0; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1;
  padding: 0 var(--sp-6);
  height: 50px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease;
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-900); box-shadow: var(--shadow-md); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand-900); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: var(--brand-900); }
.btn--accent:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-md); }

.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: var(--brand-50); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; border-color: var(--brand-700); color: var(--brand-700); }
.btn--outline:hover { background: var(--brand-700); color: #fff; }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--brand-900); border-color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-700); }
.btn--ghost:hover { background: var(--brand-100); }

.btn--subtle { background: var(--surface-2); color: var(--ink); }
.btn--subtle:hover { background: var(--bg-deep); }

.btn--sm { height: 40px; font-size: var(--fs-sm); padding-inline: var(--sp-4); }
.btn--lg { height: 56px; font-size: var(--fs-lg); padding-inline: var(--sp-7); }
.btn--block { width: 100%; }
.btn--icon {
  width: 46px; height: 46px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  transition: all .2s ease;
}
.btn--icon:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.btn--icon svg { width: 20px; height: 20px; }

.btn-group { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- 7. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field--row { flex-direction: row; align-items: center; gap: var(--sp-3); }
.field__label { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field__error { font-size: var(--fs-xs); color: var(--error); display: none; }
.field.is-invalid .field__error { display: block; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0 var(--sp-4);
  height: 50px;
  font-size: var(--fs-md);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}
.textarea { height: auto; padding-block: var(--sp-3); resize: vertical; min-height: 120px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-bg); }
.input[readonly] { background: var(--surface-2); }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B675D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-8);
}

.checkbox, .radio { display: inline-flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer; font-size: var(--fs-md); color: var(--ink-2); }
.checkbox input, .radio input {
  appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}
.checkbox input { border-radius: 5px; }
.radio input { border-radius: 50%; }
.checkbox input:hover, .radio input:hover { border-color: var(--brand-400); }
.checkbox input:checked, .radio input:checked { background: var(--brand-700); border-color: var(--brand-700); }
.checkbox input:checked::after {
  content: ''; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.radio input:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.checkbox input:focus-visible, .radio input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.input-group { display: flex; gap: 0; }
.input-group .input { border-radius: var(--r-pill) 0 0 var(--r-pill); height: 56px; }
.input-group .btn { border-radius: 0 var(--r-pill) var(--r-pill) 0; }

/* ---------- 8. Badges & Chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  line-height: 1;
}
.badge--sale { background: var(--error); color: #fff; }
.badge--new { background: var(--brand-700); color: #fff; }
.badge--bestseller { background: var(--accent); color: var(--brand-900); }
.badge--discount { background: var(--brand-100); color: var(--brand-700); }
.badge--low { background: var(--warning-bg); color: var(--warning); }
.badge--oos { background: var(--surface-2); color: var(--ink-3); }
.badge--eco { background: var(--success-bg); color: var(--success); }
.badge--soft { background: var(--brand-50); color: var(--brand-600); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: all .18s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--brand-400); color: var(--brand-700); }
.chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* ---------- 9. Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: var(--sp-2); }
.rating__stars { position: relative; display: inline-flex; line-height: 0; }
.rating__stars svg { width: 15px; height: 15px; }
.rating__stars .stars-base { display: inline-flex; color: var(--border-strong); }
.rating__stars .stars-fill {
  position: absolute; inset: 0;
  overflow: hidden;
  white-space: nowrap;
  display: inline-flex;
  color: var(--accent);
}
.rating__value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.rating__count { font-size: var(--fs-xs); color: var(--ink-3); }
.rating--lg svg { width: 18px; height: 18px; }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-3); padding-block: var(--sp-4); }
.breadcrumb a { color: var(--ink-2); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ============================================================
   11. Header & Navigation
   ============================================================ */
.announce {
  height: var(--announce-h);
  background: var(--brand-900);
  color: #EDE7D8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: var(--fs-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
}
.announce__track { overflow: hidden; width: 100%; }
.announce__items { display: flex; transition: transform .45s ease; }
.announce__item { flex: 0 0 100%; text-align: center; padding-inline: var(--gutter); }
.announce a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.header__left, .header__right { display: flex; align-items: center; gap: var(--sp-2); }
.header__nav { display: flex; align-items: center; gap: var(--sp-1); margin-inline: auto; }

.logo { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .14em; color: var(--brand-900); text-transform: uppercase; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.logo__mark svg { width: 18px; height: 18px; }
.logo--light { color: #F4F0E7; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  transition: color .18s ease, background .18s ease;
}
.nav__link svg { width: 14px; height: 14px; opacity: .55; transition: transform .2s ease; }
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link.is-active { color: var(--brand-700); }
.nav__item.has-mega:hover .nav__link svg { transform: rotate(180deg); }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  background: var(--accent); color: var(--brand-900);
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg);
}
.icon-btn__badge.is-hidden { display: none; }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 55;
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega,
.nav__item.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner { display: grid; grid-template-columns: 1.4fr 1.1fr 0.9fr; gap: var(--sp-7); padding-block: var(--sp-7); }
.mega__col h4 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-4); }
.mega__links { display: grid; gap: var(--sp-2); }
.mega__links a { font-size: var(--fs-md); color: var(--ink); padding: var(--sp-2) 0; transition: color .15s ease, padding-left .2s ease; display: flex; align-items: center; gap: var(--sp-2); }
.mega__links a small { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 600; background: var(--brand-100); padding: 2px 8px; border-radius: var(--r-pill); }
.mega__links a:hover { color: var(--brand-700); padding-left: 6px; }
.mega__feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,46,37,.75)); }
.mega__feature div { position: relative; z-index: 1; padding: var(--sp-6); color: #fff; }
.mega__feature strong { font-family: var(--font-display); font-size: var(--fs-lg); display: block; margin-bottom: var(--sp-2); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 46, 37, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer__head h3 { font-size: var(--fs-lg); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer__body::-webkit-scrollbar { width: 6px; }
.drawer__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.mnav { display: grid; }
#nav-toggle { display: none; }
button.mnav__link { width: 100%; text-align: left; }
.mnav__link { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--ink); }
.mnav__link:hover { color: var(--brand-700); }
.mnav__sub { display: none; padding: var(--sp-2) 0 var(--sp-4); grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.mnav__sub.is-open { display: grid; }
.mnav__sub a { padding: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); border-radius: var(--r-sm); }
.mnav__sub a:hover { background: var(--brand-50); color: var(--brand-700); }
.mnav__cta { padding: var(--sp-4) 0; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(250, 246, 240, .97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__head { padding: var(--sp-5) var(--gutter); border-bottom: 1px solid var(--border); background: var(--surface); }
.search-overlay__bar { display: flex; align-items: center; gap: var(--sp-4); max-width: var(--container-narrow); margin-inline: auto; }
.search-overlay__bar .input { height: 58px; font-size: var(--fs-lg); border-radius: var(--r-md); border: none; border-bottom: 2px solid var(--brand-500); box-shadow: none; background: transparent; padding-left: 0; }
.search-overlay__bar .input:focus { box-shadow: none; }
.search-overlay__body { flex: 1; overflow-y: auto; max-width: var(--container-narrow); width: 100%; margin-inline: auto; padding: var(--sp-6) var(--gutter); }
.search-overlay__results { display: grid; gap: var(--sp-3); }
.search-suggestion { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border-radius: var(--r-md); font-size: var(--fs-md); color: var(--ink-2); }
.search-suggestion svg { width: 16px; height: 16px; opacity: .5; }
.search-suggestion:hover { background: var(--brand-50); color: var(--brand-700); }
.search-section-title { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: var(--sp-6) 0 var(--sp-3); }

/* Mini cart */
.mini-cart__item { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.mini-cart__item img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-md); }
.mini-cart__item h4 { font-size: var(--fs-sm); font-weight: 600; font-family: var(--font-body); }
.mini-cart__item .variant { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.mini-cart__item .price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); margin-top: var(--sp-2); }
.mini-cart__remove { color: var(--ink-3); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.mini-cart__remove:hover { color: var(--error); background: var(--error-bg); }
.mini-cart__footer { padding: var(--sp-5) 0; border-top: 1px solid var(--border); }
.mini-cart__totals { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--brand-900); color: #C7CDBD; font-size: var(--fs-sm); }
.footer__top { padding: var(--sp-11) 0 var(--sp-8); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: var(--sp-8); }
.footer__brand p { margin-top: var(--sp-4); line-height: 1.7; max-width: 300px; }
.footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
  color: #EDE7D8;
  transition: all .2s ease;
}
.footer__social a svg { width: 17px; height: 17px; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
.footer__col h4 { color: #EDE7D8; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-5); }
.footer__links { display: grid; gap: var(--sp-3); }
.footer__links a { transition: color .15s ease, padding-left .2s ease; color: #C7CDBD; }
.footer__links a:hover { color: var(--accent); padding-left: 4px; }
.footer__contact li { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-5); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a:hover { color: var(--accent); }
.footer__pay { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.pay-badge {
  height: 26px; padding: 0 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.94); color: #38413B;
  font-family: var(--font-display); font-weight: 800; font-size: 10px;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
}

/* ============================================================
   13. Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,46,37,.82) 0%, rgba(30,46,37,.55) 40%, rgba(30,46,37,.15) 70%); }
.hero__content { position: relative; z-index: 1; min-height: min(640px, 92vh); display: flex; flex-direction: column; justify-content: center; padding-block: var(--sp-11); color: #F6F2E9; max-width: 640px; }
.hero__content .eyebrow { color: var(--accent); }
.hero__content .display { color: #FBF9F3; margin-top: var(--sp-4); }
.hero__content .lede { color: rgba(246,242,233,.85); margin-top: var(--sp-5); }
.hero__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  width: fit-content;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #F6F2E9;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   14. Cards & Product Grid
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }

.category-card { position: relative; border-radius: var(--r-lg); overflow: hidden; display: block; aspect-ratio: 4/5; min-height: 280px; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,46,37,0) 40%, rgba(30,46,37,.78)); transition: background .3s ease; }
.category-card__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--sp-6); color: #FBF9F3; }
.category-card__body h3 { color: #FBF9F3; font-size: var(--fs-xl); }
.category-card__body p { font-size: var(--fs-sm); color: rgba(251,249,243,.8); margin: var(--sp-2) 0 var(--sp-4); }
.category-card__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: #FBF9F3; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(251,249,243,.4);
  transition: text-decoration-color .2s ease, gap .2s ease;
}
.category-card__link svg { width: 15px; height: 15px; }
.category-card__link:hover { gap: var(--sp-3); text-decoration-color: var(--accent); }

.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.product-card__media:hover img { transform: scale(1.05); }
.product-card__badges { position: absolute; top: var(--sp-3); left: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); z-index: 2; }
.product-card__wishlist {
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); box-shadow: var(--shadow-xs);
  transition: all .2s ease;
}
.product-card__wishlist svg { width: 18px; height: 18px; }
.product-card__wishlist:hover { color: var(--error); background: #fff; transform: scale(1.06); }
.product-card__wishlist.is-active { color: var(--error); background: var(--error-bg); }
.product-card__wishlist.is-active svg { fill: var(--error); }
.product-card__quick {
  position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  background: rgba(255,255,255,.96); backdrop-filter: blur(4px);
  height: 46px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.product-card__quick svg { width: 17px; height: 17px; }
.product-card__quick:hover { background: var(--brand-700); color: #fff; }
.product-card__media:hover .product-card__quick, .product-card__quick:focus-visible { opacity: 1; transform: translateY(0); }
.product-card__quick.is-visible { opacity: 1; transform: translateY(0); }
@media (hover: hover) {
  .product-card__actions { display: none; }
}
@media (hover: none) {
  .product-card__quick { display: none; }
  .product-card__actions { display: flex; }
}
.product-card__oos {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  background: rgba(250, 246, 240, .82); backdrop-filter: blur(2px);
}
.product-card__oos span { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.product-card__body { padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card__cat { font-size: var(--fs-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.product-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink); line-height: var(--lh-snug); transition: color .15s ease; }
.product-card__name:hover { color: var(--brand-700); }
.product-card__rating { display: flex; align-items: center; gap: var(--sp-2); }
.product-card__price { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink); }
.price-was { font-size: var(--fs-sm); color: var(--ink-3); text-decoration: line-through; }
.product-card__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.product-card__actions .btn { flex: 1; height: 44px; font-size: var(--fs-sm); }
.product-card__actions .btn--icon { width: 44px; height: 44px; border-radius: var(--r-pill); }

/* Grid + list modes */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6) var(--sp-5); }
.product-grid.list-view { grid-template-columns: 1fr; gap: var(--sp-5); }
.product-grid.list-view .product-card { flex-direction: row; gap: var(--sp-5); align-items: center; }
.product-grid.list-view .product-card__media { flex: 0 0 220px; aspect-ratio: 1; }
.product-grid.list-view .product-card__quick { display: none; }
.product-grid.list-view .product-card__body { padding-top: 0; }
.product-grid.list-view .product-card__actions { margin-top: var(--sp-3); }

/* ============================================================
   15. Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: var(--brand-900);
  color: #F6F2E9;
  padding: var(--sp-11) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,154,75,.18), transparent 65%);
}
.page-hero h1 { color: #FBF9F3; }
.page-hero p { color: rgba(246,242,233,.78); margin-top: var(--sp-3); max-width: 560px; }
.page-hero .breadcrumb { color: rgba(246,242,233,.6); padding-bottom: var(--sp-5); }
.page-hero .breadcrumb a { color: rgba(246,242,233,.75); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb [aria-current] { color: #FBF9F3; }
.page-hero .breadcrumb .sep { color: rgba(246,242,233,.35); }

/* ============================================================
   16. Shop / Filters
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-8); align-items: start; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.shop-toolbar__count { font-size: var(--fs-sm); color: var(--ink-2); }
.shop-toolbar__right { display: flex; align-items: center; gap: var(--sp-3); }
.view-toggle { display: inline-flex; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.view-toggle button { width: 42px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); transition: all .15s ease; }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button.is-active { background: var(--brand-700); color: #fff; }
.view-toggle button:hover:not(.is-active) { color: var(--brand-700); }

.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--border); padding-block: var(--sp-5); }
.filter-group__title { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink); padding: 0; }
.filter-group__title svg { width: 16px; height: 16px; transition: transform .2s ease; }
.filter-group.is-closed .filter-group__title svg { transform: rotate(-90deg); }
.filter-group__body { display: grid; gap: var(--sp-3); padding-top: var(--sp-4); }
.filter-group.is-closed .filter-group__body { display: none; }
.filter-scroll { max-height: 240px; overflow-y: auto; padding-right: var(--sp-2); }
.filter-scroll::-webkit-scrollbar { width: 5px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.price-inputs { display: flex; align-items: center; gap: var(--sp-2); }
.price-inputs .input { height: 44px; font-size: var(--fs-sm); text-align: center; padding: 0; }
.price-apply { height: 44px; flex-shrink: 0; }

.filter-actions { display: flex; gap: var(--sp-2); padding-top: var(--sp-5); }
.filter-actions .btn { flex: 1; height: 44px; font-size: var(--fs-sm); }

/* Mobile filter drawer tools */
.shop-toolbar__btn { display: none; }

/* ---------- 17. Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-8); }
.pagination__btn {
  min-width: 44px; height: 44px; padding-inline: var(--sp-3);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.pagination__btn svg { width: 16px; height: 16px; }
.pagination__btn:hover:not([aria-disabled]) { border-color: var(--brand-500); color: var(--brand-700); }
.pagination__btn.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pagination__btn[aria-disabled] { opacity: .4; pointer-events: none; }

/* ============================================================
   18. Product Details
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-11); align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 4/5; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main__badges { position: absolute; top: var(--sp-4); left: var(--sp-4); display: flex; gap: var(--sp-2); z-index: 2; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
.gallery-thumbs button { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); transition: border-color .18s ease; padding: 0; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--brand-600); }
.gallery-thumbs button:hover { border-color: var(--brand-400); }

.pdp-info h1 { font-size: var(--fs-3xl); letter-spacing: -0.015em; }
.pdp-info__meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); }
.pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-5); }
.pdp-price .price-now { font-size: var(--fs-2xl); }
.pdp-desc { color: var(--ink-2); margin-top: var(--sp-5); line-height: 1.7; }

.option-group { margin-top: var(--sp-6); }
.option-group__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.option-group__label .note { font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); text-transform: capitalize; }
.option-swatches { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--border-strong);
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease;
  position: relative;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--brand-700); }
.size-option {
  min-width: 56px; height: 46px; padding-inline: var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--ink);
  transition: all .18s ease;
}
.size-option:hover { border-color: var(--brand-400); }
.size-option.is-active { border-color: var(--brand-700); background: var(--brand-50); color: var(--brand-800); }
.size-option.is-disabled { opacity: .4; pointer-events: none; text-decoration: line-through; }

.pdp-buy { display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-3); margin-top: var(--sp-7); }
.qty {
  display: inline-flex; align-items: center;
  height: 52px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  overflow: hidden;
}
.qty button { width: 42px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: color .15s ease, background .15s ease; }
.qty button:hover { color: var(--brand-700); background: var(--brand-50); }
.qty input { width: 44px; text-align: center; border: none; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pdp-buy .btn { height: 52px; }
.pdp-buy .btn--outline { padding-inline: 0; }

.pdp-utility { display: flex; align-items: center; gap: var(--sp-5); margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); }
.pdp-utility a { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); }
.pdp-utility a:hover { color: var(--brand-700); }
.pdp-utility svg { width: 17px; height: 17px; }

.pdp-assurance { margin-top: var(--sp-7); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pdp-assurance li { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); align-items: center; }
.pdp-assurance li + li { border-top: 1px solid var(--border); }
.pdp-assurance svg { width: 20px; height: 20px; color: var(--brand-500); flex-shrink: 0; }
.pdp-assurance .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.pdp-assurance .s { font-size: var(--fs-xs); color: var(--ink-3); }
.pdp-assurance .t-wrap { display: grid; gap: 2px; }

/* Tabs */
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: var(--sp-6); overflow-x: auto; }
.tabs__btn {
  position: relative;
  padding: var(--sp-4) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .18s ease;
}
.tabs__btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--brand-700);
  transform: scaleX(0); transition: transform .22s ease;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--brand-700); }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; padding-top: var(--sp-7); }
.tab-panel.is-active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Reviews */
.review-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-6); }
.review-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
.review-card__user { display: flex; align-items: center; gap: var(--sp-3); }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); }
.review-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.review-card__date { font-size: var(--fs-xs); color: var(--ink-3); }
.review-card__verified { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--success); background: var(--success-bg); padding: 3px 9px; border-radius: var(--r-pill); font-weight: 600; }
.review-card__verified svg { width: 12px; height: 12px; }
.review-card__body { margin-top: var(--sp-4); color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; }

/* Accordion */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink);
  text-align: left;
}
.accordion__head svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s ease; color: var(--brand-600); }
.accordion__item.is-open .accordion__head svg { transform: rotate(45deg); }
.accordion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion__item.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__content { overflow: hidden; }
.accordion__content > div { padding-bottom: var(--sp-5); color: var(--ink-2); line-height: 1.7; }

/* ============================================================
   19. Carousel
   ============================================================ */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: var(--sp-5); transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel__track > * { flex: 0 0 calc((100% - 3 * var(--sp-5)) / 4); }
.carousel__nav { display: flex; gap: var(--sp-2); }
.carousel__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.carousel__arrow[disabled] { opacity: .4; pointer-events: none; }

/* ============================================================
   20. Promo banner
   ============================================================ */
.promo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 420px;
  background: var(--brand-800);
}
.promo__content { padding: var(--sp-9); display: flex; flex-direction: column; justify-content: center; color: #F6F2E9; position: relative; z-index: 1; }
.promo__content .eyebrow { color: var(--accent); }
.promo__content h2 { color: #FBF9F3; margin-top: var(--sp-3); font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.015em; }
.promo__content p { color: rgba(246,242,233,.82); margin-top: var(--sp-4); max-width: 440px; }
.promo__meta { display: flex; gap: var(--sp-6); margin-top: var(--sp-6); flex-wrap: wrap; }
.promo__stat { font-family: var(--font-display); }
.promo__stat strong { display: block; font-size: var(--fs-2xl); color: var(--accent); }
.promo__stat span { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(246,242,233,.7); }
.promo__media { position: relative; min-height: 300px; }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__timer { display: inline-flex; gap: var(--sp-2); margin-top: var(--sp-6); }
.promo__timer .t-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: 10px 14px; text-align: center; min-width: 62px; backdrop-filter: blur(4px); }
.promo__timer .t-box strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); color: #FBF9F3; }
.promo__timer .t-box span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,242,233,.7); }

/* ============================================================
   21. Trust / features
   ============================================================ */
.trust-item { text-align: center; padding: var(--sp-6); border-radius: var(--r-lg); }
.trust-item__icon {
  width: 60px; height: 60px; margin-inline: auto;
  border-radius: var(--r-md);
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
}
.trust-item__icon svg { width: 28px; height: 28px; }
.trust-item h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.trust-item p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-2); }

/* ---------- 22. Testimonials ---------- */
.testimonial-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.testimonial-card__text { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; flex: 1; }
.testimonial-card__foot { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- 23. Newsletter ---------- */
.newsletter { border-radius: var(--r-xl); background: var(--brand-900); color: #F6F2E9; padding: var(--sp-9); display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(193,154,75,.16), transparent 65%); }
.newsletter h2 { color: #FBF9F3; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.newsletter p { color: rgba(246,242,233,.78); margin-top: var(--sp-3); font-size: var(--fs-md); }
.newsletter__form { position: relative; z-index: 1; }
.newsletter__privacy { font-size: var(--fs-xs); color: rgba(246,242,233,.6); margin-top: var(--sp-3); text-align: center; }
.newsletter__privacy a { text-decoration: underline; color: var(--accent); }

/* ============================================================
   24. Empty states
   ============================================================ */
.empty-state { text-align: center; padding: var(--sp-13) var(--sp-6); max-width: 460px; margin-inline: auto; }
.empty-state__icon {
  width: 88px; height: 88px; margin-inline: auto;
  border-radius: 50%;
  background: var(--brand-100); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.empty-state__icon svg { width: 40px; height: 40px; }
.empty-state h2 { margin-top: var(--sp-6); }
.empty-state p { color: var(--ink-2); margin-top: var(--sp-3); }
.empty-state .btn { margin-top: var(--sp-6); }

/* ============================================================
   25. Cart
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-8); align-items: start; }
.cart-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--sp-5);
  padding: var(--sp-5);
  align-items: center;
}
.cart-row + .cart-row { border-top: 1px solid var(--border); }
.cart-row img { width: 96px; height: 120px; object-fit: cover; border-radius: var(--r-md); }
.cart-row__info h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.cart-row__info h4 a:hover { color: var(--brand-700); }
.cart-row__variant { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 4px; }
.cart-row__price { font-family: var(--font-display); font-weight: 700; margin-top: var(--sp-2); }
.cart-row__unit { font-size: var(--fs-xs); color: var(--ink-3); }
.cart-row__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); }
.cart-row__line { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); }
.cart-row__actions { display: flex; align-items: center; gap: var(--sp-3); }
.cart-row__actions .qty { height: 40px; }
.cart-row__actions .qty button { width: 32px; }
.cart-row__actions .qty input { width: 36px; font-size: var(--fs-sm); }
.cart-row__remove { font-size: var(--fs-xs); color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.cart-row__remove:hover { color: var(--error); }
.cart-row__save { font-size: var(--fs-xs); color: var(--brand-600); font-weight: 600; }
.cart-row__save:hover { color: var(--brand-800); text-decoration: underline; }

.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); }
.cart-summary h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-md); color: var(--ink-2); padding-block: var(--sp-2); }
.summary-row strong { color: var(--ink); font-family: var(--font-display); }
.summary-row--discount { color: var(--success); }
.summary-row--total { border-top: 1px solid var(--border); margin-top: var(--sp-3); padding-top: var(--sp-4); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); }
.summary-row--total span { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; }
.coupon-form { display: flex; gap: var(--sp-2); margin: var(--sp-5) 0; }
.coupon-form .input { height: 46px; font-size: var(--fs-sm); }
.coupon-form .btn { height: 46px; font-size: var(--fs-sm); flex-shrink: 0; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; background: var(--success-bg); color: var(--success); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-3); }
.coupon-applied button { color: var(--success); text-decoration: underline; font-size: var(--fs-xs); }

.free-ship { background: var(--brand-50); border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--brand-800); }
.free-ship .bar { height: 6px; border-radius: 3px; background: var(--brand-100); margin-top: var(--sp-3); overflow: hidden; }
.free-ship .bar > span { display: block; height: 100%; border-radius: 3px; background: var(--brand-500); transition: width .4s ease; }
.free-ship strong { font-weight: 700; }

.trust-note { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-4); text-align: center; }
.trust-note svg { width: 14px; height: 14px; color: var(--success); }

/* ============================================================
   26. Checkout
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--sp-8); align-items: start; }
.checkout-main { max-width: 620px; }
.steps { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.step-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.step-chip .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); }
.step-chip.is-active { color: var(--brand-700); }
.step-chip.is-active .num { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.step-chip.is-done { color: var(--success); }
.step-chip.is-done .num { background: var(--success); border-color: var(--success); color: #fff; }
.steps .step-sep { width: 28px; height: 1.5px; background: var(--border-strong); }

.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); margin-bottom: var(--sp-5); }
.checkout-card h2 { font-size: var(--fs-xl); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.checkout-card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-700); color: #fff; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
.form-grid .span-2 { grid-column: 1 / -1; }

.pay-option { display: flex; align-items: center; gap: var(--sp-3); border: 1.5px solid var(--border-strong); border-radius: var(--r-md); padding: var(--sp-4); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.pay-option + .pay-option { margin-top: var(--sp-3); }
.pay-option:hover { border-color: var(--brand-400); }
.pay-option.is-selected { border-color: var(--brand-600); background: var(--brand-50); }
.pay-option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.pay-option.is-selected .pay-option__radio { border-color: var(--brand-700); background: var(--brand-700); }
.pay-option.is-selected .pay-option__radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pay-option__info { flex: 1; }
.pay-option__info strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); display: block; }
.pay-option__info small { font-size: var(--fs-xs); color: var(--ink-3); }
.pay-option__brand { display: inline-flex; gap: 5px; align-items: center; }

.delivery-option { display: flex; align-items: center; gap: var(--sp-4); border: 1.5px solid var(--border-strong); border-radius: var(--r-md); padding: var(--sp-4); cursor: pointer; transition: all .18s ease; }
.delivery-option + .delivery-option { margin-top: var(--sp-3); }
.delivery-option:hover { border-color: var(--brand-400); }
.delivery-option.is-selected { border-color: var(--brand-600); background: var(--brand-50); }
.delivery-option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.delivery-option.is-selected .delivery-option__radio { border-color: var(--brand-700); background: var(--brand-700); }
.delivery-option.is-selected .delivery-option__radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.delivery-option__info { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.delivery-option__info strong { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); display: block; }
.delivery-option__info small { font-size: var(--fs-xs); color: var(--ink-3); }
.delivery-option__price { font-family: var(--font-display); font-weight: 700; color: var(--brand-700); font-size: var(--fs-md); }

.checkout-review-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; }
.checkout-review-item + .checkout-review-item { border-top: 1px solid var(--border); }
.checkout-review-item img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.checkout-review-item h4 { font-size: var(--fs-sm); font-weight: 600; font-family: var(--font-body); }
.checkout-review-item .m { font-size: var(--fs-xs); color: var(--ink-3); }
.checkout-review-item .p { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); margin-left: auto; }

.checkout-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-7); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--ink-3); }
.secure-note svg { width: 14px; height: 14px; color: var(--success); }

/* Order confirmation */
.confirm-hero { text-align: center; padding: var(--sp-11) 0; }
.confirm-hero__icon { width: 88px; height: 88px; margin-inline: auto; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.confirm-hero__icon svg { width: 44px; height: 44px; }
.confirm-hero h1 { margin-top: var(--sp-6); }
.confirm-hero p { color: var(--ink-2); margin-top: var(--sp-3); }
.confirm-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.confirm-card__row { display: flex; justify-content: space-between; padding: var(--sp-4) var(--sp-6); font-size: var(--fs-sm); }
.confirm-card__row:nth-child(odd) { background: var(--surface-2); }
.confirm-card__row dt { color: var(--ink-3); }
.confirm-card__row dd { font-family: var(--font-display); font-weight: 700; }

/* ============================================================
   27. Account
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-8); align-items: start; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); position: sticky; top: calc(var(--header-h) + 16px); }
.account-nav__user { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-3); }
.account-nav__user .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; }
.account-nav__user strong { font-family: var(--font-display); font-size: var(--fs-sm); display: block; }
.account-nav__user small { font-size: var(--fs-xs); color: var(--ink-3); }
.account-nav__links { display: grid; gap: 2px; }
.account-nav__links a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: all .15s ease;
}
.account-nav__links a svg { width: 18px; height: 18px; }
.account-nav__links a:hover { background: var(--brand-50); color: var(--brand-700); }
.account-nav__links a.is-active { background: var(--brand-700); color: #fff; }
.account-nav__links a.is-active svg { color: #fff; }

.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.stat-card__label { font-size: var(--fs-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat-card__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); margin-top: var(--sp-2); }
.stat-card__sub { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-1); }

.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-5); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.order-card__head .num { font-family: var(--font-display); font-weight: 800; }
.order-card__head .date { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.order-card__head .total { font-family: var(--font-display); font-weight: 700; }
.order-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.order-card__items { display: grid; gap: var(--sp-3); }
.order-card__item { display: flex; align-items: center; gap: var(--sp-3); }
.order-card__item img { width: 52px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.order-card__item h5 { font-size: var(--fs-sm); font-weight: 600; }
.order-card__item small { font-size: var(--fs-xs); color: var(--ink-3); }
.order-card__item .p { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- 28. Order tracking timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); margin: var(--sp-7) 0; }
.timeline__step { position: relative; text-align: center; }
.timeline__step .dot {
  width: 40px; height: 40px; margin-inline: auto;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm);
}
.timeline__step .dot svg { width: 18px; height: 18px; }
.timeline__step::before {
  content: ''; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--border-strong);
}
.timeline__step:first-child::before { display: none; }
.timeline__step.is-done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline__step.is-done::before { background: var(--success); }
.timeline__step.is-current .dot { background: var(--accent); border-color: var(--accent); color: var(--brand-900); box-shadow: 0 0 0 6px var(--accent-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px var(--accent-soft); } 50% { box-shadow: 0 0 0 9px var(--accent-soft); } }.timeline__step .label { margin-top: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); color: var(--ink-2); }
.timeline__step .date { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   29. Auth
   ============================================================ */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-6) var(--sp-4); background: linear-gradient(160deg, var(--brand-50) 0%, var(--surface) 45%); }
.auth-wrap { width: 100%; max-width: 1000px; margin-inline: auto; }
.auth-card { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.auth-card__media { position: relative; min-height: 520px; }
.auth-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-card__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--sp-7); background: linear-gradient(180deg, rgba(24,46,35,.05) 0%, rgba(24,46,35,.72) 100%); }
.auth-logo { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); letter-spacing: .22em; color: #F4F0E7; text-decoration: none; }
.auth-quote { color: #F4F0E7; font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 600; line-height: 1.4; max-width: 22ch; }
.auth-card__form { padding: var(--sp-8) var(--sp-8); display: flex; flex-direction: column; justify-content: center; }
.auth-card__form .h1 { font-size: var(--fs-2xl); }
.auth-card__form > .text-muted { margin-top: var(--sp-2); }
.auth-form { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.auth-form .btn { margin-top: var(--sp-1); }
.auth-divider { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-5) 0; color: var(--ink-3); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-social { display: grid; }
.auth-social .btn svg { width: 18px; height: 18px; }
.auth-switch { text-align: center; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); }
.auth-switch a { color: var(--brand-700); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.icon-bubble { width: 64px; height: 64px; margin-inline: auto; border-radius: 50%; background: var(--success-soft); color: var(--success); display: inline-flex; align-items: center; justify-content: center; }
.icon-bubble svg { width: 28px; height: 28px; }
.social-btn { width: 100%; height: 50px; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); transition: all .18s ease; }
.social-btn:hover { border-color: var(--brand-400); background: var(--brand-50); }
.social-btn svg { width: 18px; height: 18px; }

.acct-panel { animation: fade-in .25s ease; }

.search-bar { display: flex; gap: var(--sp-3); }
.search-bar .input { flex: 1; }

.err-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 16vw, 150px); line-height: 1; color: var(--brand-100); text-shadow: 0 2px 0 var(--brand-700); letter-spacing: .02em; }
.err-code::after { content: ''; display: block; width: 72px; height: 5px; margin: var(--sp-4) auto 0; border-radius: 99px; background: var(--accent); }

.faq-cat { display: grid; gap: 2px; }
.grid-faq { grid-template-columns: 220px 1fr; gap: var(--sp-8); align-items: start; }
.value-card { text-align: center; padding: var(--sp-7) var(--sp-6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.value-card h3 { font-size: var(--fs-lg); margin-top: var(--sp-4); }
.value-card p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-3); line-height: 1.7; }
.value-card .icon-bubble { width: 56px; height: 56px; }
.value-card .icon-bubble svg { width: 24px; height: 24px; }
.check-list { list-style: none; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-md); color: var(--ink-2); font-weight: 600; }
.check-list li::before { content: ''; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--success) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E') center / 12px no-repeat; }
.aspect img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--alt { background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); }
.faq-cat a { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; transition: background .15s ease, color .15s ease; }
.faq-cat a:hover { background: var(--brand-50); color: var(--brand-700); }
.faq-cat a.is-active { background: var(--brand-700); color: #fff; }

/* ============================================================
   30. Utility pages
   ============================================================ */
.prose { line-height: 1.75; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: var(--fs-xl); margin: var(--sp-8) 0 var(--sp-4); }
.prose h3 { color: var(--ink); font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-3); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); list-style: disc; }
.prose ul li { margin-bottom: var(--sp-2); }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: var(--fs-sm); }
.prose table th, .prose table td { border: 1px solid var(--border); padding: var(--sp-3) var(--sp-4); text-align: left; }
.prose table th { background: var(--surface-2); font-family: var(--font-display); color: var(--ink); }

/* ============================================================
   31. Toasts, modal, misc
   ============================================================ */
.toast-region { position: fixed; bottom: var(--sp-5); right: var(--sp-5); z-index: 100; display: grid; gap: var(--sp-3); max-width: min(380px, 92vw); }
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--ink); color: #F4F0E7;
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.toast.is-show { transform: translateY(0); opacity: 1; }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.toast__icon svg { width: 15px; height: 15px; }
.toast--success .toast__icon { background: var(--success); color: #fff; }
.toast--error .toast__icon { background: var(--error); color: #fff; }
.toast--info .toast__icon { background: var(--accent); color: var(--brand-900); }
.toast__body { flex: 1; }
.toast__body strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); margin-bottom: 2px; }
.toast__body span { font-size: var(--fs-xs); color: rgba(244,240,231,.75); }
.toast__close { color: rgba(244,240,231,.6); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.toast__close:hover { color: #fff; background: rgba(255,255,255,.12); }

.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30,46,37,.55); opacity: 0; transition: opacity .25s ease; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 880px; max-height: 88vh;
  background: var(--bg);
  border-radius: var(--r-xl);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal--lg .modal__dialog { max-width: 560px; }
.modal__close { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); color: var(--ink); }
.modal__close:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.modal__close svg { width: 18px; height: 18px; }

.quickview-grid { display: grid; grid-template-columns: 1fr 1fr; }
.quickview-grid .gallery-main { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.quickview-info { padding: var(--sp-7); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(20,22,20,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: var(--sp-5); right: var(--sp-5); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: var(--accent); color: var(--brand-900); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__prev:hover, .lightbox__next:hover { background: var(--accent); color: var(--brand-900); }
.lightbox__prev { left: var(--sp-5); }
.lightbox__next { right: var(--sp-5); }
.lightbox__prev svg, .lightbox__next svg { width: 22px; height: 22px; }
.lightbox__counter { position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: var(--fs-sm); font-family: var(--font-display); }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #EFE9DD 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Skip link */
.skip-link { position: absolute; top: -60px; left: var(--sp-4); z-index: 120; background: var(--brand-700); color: #fff; padding: 12px 20px; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 700; transition: top .2s ease; }
.skip-link:focus { top: var(--sp-3); }

/* ============================================================
   31b. Homepage grids
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   32. Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel__track > * { flex: 0 0 calc((100% - 2 * var(--sp-5)) / 3); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .mega__inner { grid-template-columns: 1fr 1fr; }
  .mega__feature { display: none; }
  .promo { grid-template-columns: 1fr; }
  .promo__media { min-height: 260px; order: -1; }
  .newsletter { grid-template-columns: 1fr; gap: var(--sp-6); }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .account-nav__links { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .timeline__step:nth-child(n+4) { margin-top: var(--sp-3); }
  .timeline__step::before { display: none; }
  .pdp { grid-template-columns: 1fr; gap: var(--sp-7); }
  .pdp-gallery { position: static; }
  .hero__content { min-height: 560px; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__search-desktop { display: none; }
  #nav-toggle { display: inline-flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { display: none; }
  .shop-toolbar__btn { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .auth-card { grid-template-columns: 1fr; }
  .auth-card__media { display: none; }
  .grid-faq { grid-template-columns: 1fr; }
  .faq-cat { position: static !important; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-3); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .carousel__track > * { flex: 0 0 calc((100% - var(--sp-3)) / 2); }
  .carousel__track { gap: var(--sp-3); }
  .section { padding-block: var(--sp-8); }
  .pdp-buy { grid-template-columns: 1fr; }
  .quickview-grid { grid-template-columns: 1fr; }
  .quickview-grid .gallery-main { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row img { width: 72px; height: 90px; }
  .cart-row__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .promo__content { padding: var(--sp-7); }
  .newsletter { padding: var(--sp-7); }
  .confirm-hero { padding: var(--sp-8) 0; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .account-nav__links { grid-template-columns: 1fr; }
  .product-grid.list-view .product-card__media { flex: 0 0 140px; }
  .product-grid.list-view .product-card__actions { flex-direction: column; }
  .toast-region { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); max-width: none; }
  .auth-card__form { padding: var(--sp-6) var(--sp-5); }
}

@media (max-width: 420px) {
  .carousel__track > * { flex: 0 0 88%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero__content { min-height: 500px; }
  .hero__actions .btn { width: 100%; }
}

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