/* ==========================================================================
   Hearth & Whisk — Kitchen Gadgets Store
   Stylesheet: /css/style.css
   --------------------------------------------------------------------------
   01. Design tokens
   02. Reset & base
   03. Typography helpers
   04. Layout & utilities
   05. Buttons & forms
   06. Header & navigation
   07. Hero
   08. Trust bar
   09. Section furniture
   10. Article & table of contents
   11. Catalog: filters, cards
   12. Comparison table
   13. Guide steps
   14. FAQ accordion
   15. Newsletter
   16. Contact
   17. Footer
   18. Cart drawer
   19. Modals & overlays
   20. Cookie banner
   21. Toasts, back-to-top, progress
   22. Legal pages
   23. Responsive
   24. Motion & print
   ========================================================================== */

/* 01. Design tokens
   ========================================================================== */
:root {
  --forest: #2f4739;
  --forest-700: #24382c;
  --forest-900: #16241c;
  --sage: #7fa88b;
  --sage-100: #e6efe8;
  --cream: #f6f1e7;
  --cream-200: #efe7d8;
  --paper: #fffdf8;
  --terracotta: #c2603f;
  --terracotta-700: #a44e30;
  --gold: #c9a227;
  --ink: #23281f;
  --ink-70: #4d5347;
  --ink-50: #767c6d;
  --line: #ded5c4;
  --line-soft: #ebe4d6;
  --white: #ffffff;
  --danger: #b3402c;
  --danger-bg: #fbeceb;
  --success: #2c6e49;
  --success-bg: #e8f3ec;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiquid", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.3rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.5rem + 1.1vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.7rem + 2.2vw, 3.4rem);

  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.35rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(35, 40, 31, 0.06), 0 2px 6px rgba(35, 40, 31, 0.05);
  --shadow-md: 0 6px 18px rgba(35, 40, 31, 0.09), 0 2px 6px rgba(35, 40, 31, 0.05);
  --shadow-lg: 0 22px 55px rgba(22, 36, 28, 0.2);

  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 02. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

/* NOTE: scroll-behavior is deliberately left at "auto" here. Smooth scrolling
   is handled by jQuery in /js/script.js; combining native CSS smooth scrolling
   with a scripted scrollTop animation makes each animation step re-trigger a
   native smooth scroll, which slows the movement to a crawl. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--cream-200); }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-700); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-lg) 0;
}

table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--sage); color: var(--forest-900); }

/* 03. Typography helpers
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--forest-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 650; color: var(--forest-900); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-700);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lead {
  font-size: var(--step-1);
  color: var(--ink-70);
  line-height: 1.6;
}

.muted { color: var(--ink-50); }
.small { font-size: var(--step--1); }
.center { text-align: center; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  background: var(--forest);
  color: var(--cream);
  padding: 0.75rem 1.15rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--cream); }

/* 04. Layout & utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.25rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 7vw, var(--space-2xl)); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage-100); }
.section--forest { background: var(--forest); color: var(--cream-200); }
.section--forest h2, .section--forest h3, .section--forest h4 { color: var(--paper); }
.section--forest .eyebrow { color: var(--gold); }
.section--bordered { border-block: 1px solid var(--line); }

.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--space-md); }

.badge {
  display: inline-block;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--sage-100);
  color: var(--forest);
  border: 1px solid rgba(47, 71, 57, 0.14);
}
.badge--gold { background: #fbf3d8; color: #7a6110; border-color: #ecdca4; }
.badge--clay { background: #fbeae3; color: var(--terracotta-700); border-color: #f0cfc0; }

.note {
  background: var(--sage-100);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-md);
  font-size: var(--step--1);
  color: var(--ink-70);
}
.note strong { color: var(--forest); }
.note--gold { background: #fbf5e2; border-left-color: var(--gold); }

/* 05. Buttons & forms
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--forest-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--clay { background: var(--terracotta); }
.btn--clay:hover { background: var(--terracotta-700); }
.btn--gold { background: var(--gold); color: var(--forest-900); }
.btn--gold:hover { background: #b8931f; color: var(--forest-900); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); box-shadow: none; }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--light { background: var(--paper); color: var(--forest); border-color: var(--line); }
.btn--light:hover { background: var(--cream-200); color: var(--forest-900); }
.btn--on-dark { background: transparent; color: var(--cream); border-color: rgba(246, 241, 231, 0.5); box-shadow: none; }
.btn--on-dark:hover { background: var(--cream); color: var(--forest-900); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--text {
  background: none; border: 0; box-shadow: none; color: var(--forest);
  padding: 0.3rem 0; text-decoration: underline; border-radius: 0; font-weight: 600;
}
.btn--text:hover { background: none; color: var(--terracotta-700); transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--forest);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  position: relative;
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.icon-btn svg { width: 20px; height: 20px; }

.field { margin-bottom: var(--space-md); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 0.4rem;
}
.label .req { color: var(--terracotta-700); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  font-size: 0.97rem;
}
.input:hover, .select:hover, .textarea:hover { border-color: #c8bda8; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(127, 168, 139, 0.32);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4739' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 17px;
  padding-right: 2.4rem;
}
.input.is-invalid, .textarea.is-invalid, .select.is-invalid {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
}
.field-error.is-visible { display: block; }

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-70);
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 19px; height: 19px;
  margin: 0.18rem 0 0;
  accent-color: var(--forest);
  flex: 0 0 auto;
  cursor: pointer;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--success-bg); color: var(--success); border-color: #bcdcc8; }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); border-color: #eec7c2; }

.search-field { position: relative; }
.search-field .input { padding-left: 2.5rem; }
.search-field svg {
  position: absolute;
  left: 0.8rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-50);
  pointer-events: none;
}

/* 06. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest-900);
  margin-right: auto;
  flex: 0 0 auto;
}
.brand:hover { color: var(--forest-900); }
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; background: transparent; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav__link:hover { color: var(--forest-900); background: var(--sage-100); }
.nav__link.is-active { color: var(--forest-900); background: var(--sage-100); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  border: 2px solid var(--paper);
  transform: scale(0);
  transition: transform 0.22s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }

.nav-toggle { display: none; }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 07. Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(168deg, var(--paper) 0%, var(--cream) 52%, var(--sage-100) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}
.hero__title { margin-bottom: 0.55em; }
.hero__title em {
  font-style: italic;
  color: var(--terracotta-700);
}
.hero__text { max-width: 54ch; margin-bottom: var(--space-md); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--ink-70);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta svg { width: 17px; height: 17px; color: var(--sage); flex: 0 0 auto; }

.hero__figure { position: relative; margin: 0; }
.hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: -22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1.05rem;
  max-width: 260px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-70);
}
.hero__caption strong { display: block; color: var(--forest-900); font-size: 0.9rem; margin-bottom: 2px; }

/* 08. Trust bar
   ========================================================================== */
.trust { background: var(--forest); color: var(--cream-200); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  padding-block: var(--space-lg);
}
.trust__item { display: flex; gap: 0.8rem; align-items: flex-start; }
.trust__item svg { width: 26px; height: 26px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.trust__item h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.15rem;
  letter-spacing: 0;
}
.trust__item p { font-size: 0.83rem; margin: 0; color: rgba(246, 241, 231, 0.78); line-height: 1.5; }

/* 09. Section furniture
   ========================================================================== */
.section-head { max-width: 70ch; margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--ink-70); }

.split-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.split-head .section-head { margin-bottom: 0; }

/* 10. Article & table of contents
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.toc__title {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 0.75rem;
}
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc__list li { margin: 0; counter-increment: toc; }
.toc__link {
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  font-size: 0.87rem;
  line-height: 1.4;
  color: var(--ink-70);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.toc__link::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-50);
  padding-top: 2px;
}
.toc__link:hover { background: var(--sage-100); color: var(--forest-900); }
.toc__link.is-active {
  background: var(--sage-100);
  border-left-color: var(--terracotta);
  color: var(--forest-900);
  font-weight: 650;
}
.toc__link.is-active::before { color: var(--terracotta-700); }

.toc__footer { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line-soft); }

.article { max-width: 74ch; }
.article__header { margin-bottom: var(--space-lg); }
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-50);
}
.article__byline strong { color: var(--ink-70); font-weight: 650; }
.article__byline time { font-variant-numeric: tabular-nums; }

.article h2 {
  margin-top: var(--space-xl);
  padding-top: var(--space-xs);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article h2:first-of-type { margin-top: 0; }
.article h3 { margin-top: var(--space-lg); font-size: var(--step-1); }
.article p, .article li { color: var(--ink-70); }
.article p strong, .article li strong { color: var(--forest-900); }
.article a { color: var(--terracotta-700); font-weight: 600; }

.article__figure { margin: var(--space-lg) 0; }
.article__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article__figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-50);
  line-height: 1.5;
  padding-left: 0.85rem;
  border-left: 2px solid var(--sage);
}

.pullquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
}
.pullquote p { color: var(--cream); margin: 0; }
.pullquote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.checklist { list-style: none; padding: 0; margin: var(--space-md) 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--sage-100);
  border: 1.5px solid var(--sage);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 0.72em;
  width: 6px; height: 3px;
  border-left: 1.8px solid var(--forest);
  border-bottom: 1.8px solid var(--forest);
  transform: rotate(-45deg);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.definition-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.definition-card h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--forest);
}
.definition-card p { font-size: 0.86rem; margin: 0; line-height: 1.55; }

/* 11. Catalog: filters, cards
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.48rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink-70);
  font-size: 0.85rem;
  font-weight: 650;
  transition: all 0.16s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--forest-900); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.toolbar-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.toolbar-controls .search-field { min-width: 210px; }
.toolbar-controls .select { width: auto; min-width: 172px; padding-block: 0.6rem; }

.result-count { font-size: 0.85rem; color: var(--ink-50); margin-bottom: var(--space-md); }
.result-count strong { color: var(--forest-900); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.product-card.is-hidden { display: none; }

.product-card__media { position: relative; overflow: hidden; background: var(--cream-200); }
.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.045); }
.product-card__flags {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.product-card__quick {
  position: absolute;
  bottom: 0.7rem; right: 0.7rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick { opacity: 1; transform: translateY(0); }

.product-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terracotta-700);
  margin-bottom: 0.4rem;
}
.product-card__name {
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  line-height: 1.28;
}
.product-card__desc { font-size: 0.88rem; color: var(--ink-70); margin-bottom: 0.85rem; line-height: 1.55; }
.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.product-card__specs li {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-70);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.18rem 0.5rem;
}
.product-card__foot {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price__now {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  color: var(--forest-900);
  font-variant-numeric: tabular-nums;
}
.price__note { font-size: 0.7rem; color: var(--ink-50); margin-top: 2px; }

.empty-state {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state.is-visible { display: block; }
.empty-state svg { width: 44px; height: 44px; color: var(--ink-50); margin: 0 auto var(--space-sm); }
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--ink-50); margin-bottom: var(--space-md); }

/* 12. Comparison table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 680px; font-size: 0.9rem; }
.data-table caption {
  caption-side: bottom;
  padding: 0.85rem var(--space-md);
  font-size: 0.8rem;
  color: var(--ink-50);
  text-align: left;
  border-top: 1px solid var(--line-soft);
}
.data-table th, .data-table td {
  padding: 0.85rem var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.data-table thead th {
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(246, 241, 231, 0.55); }
.data-table tbody tr:hover { background: var(--sage-100); }
.data-table td:first-child { font-weight: 650; color: var(--forest-900); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 13. Guide steps
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: var(--space-md); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -16px; left: var(--space-md);
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.89rem; color: var(--ink-70); margin: 0; line-height: 1.6; }

/* 14. FAQ accordion
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.faq__item.is-open { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.05rem var(--space-md);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 650;
  color: var(--forest-900);
  line-height: 1.35;
}
.faq__q:hover { background: var(--sage-100); }
.faq__icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.24s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--forest);
  border-radius: 2px;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.faq__icon::before { width: 11px; height: 1.8px; }
.faq__icon::after { width: 1.8px; height: 11px; }
.faq__item.is-open .faq__icon { background: var(--forest); border-color: var(--forest); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before { background: var(--cream); }
.faq__item.is-open .faq__icon::after { opacity: 0; }
.faq__a { display: none; padding: 0 var(--space-md) var(--space-md); }
.faq__a p, .faq__a li { font-size: 0.92rem; color: var(--ink-70); }
.faq__a > :first-child { margin-top: 0; }

/* 15. Newsletter
   ========================================================================== */
.newsletter {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  color: var(--cream-200);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  box-shadow: var(--shadow-md);
}
.newsletter h2 { color: var(--paper); margin-bottom: 0.4em; }
.newsletter p { color: rgba(246, 241, 231, 0.8); font-size: 0.95rem; }
.newsletter .label { color: rgba(246, 241, 231, 0.85); }
.newsletter .checkbox { color: rgba(246, 241, 231, 0.78); }
.newsletter a { color: var(--gold); }
.newsletter__form { background: rgba(255, 253, 248, 0.07); border: 1px solid rgba(246, 241, 231, 0.16); border-radius: var(--radius); padding: var(--space-md); }
.newsletter__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter__row .input { flex: 1 1 190px; }
.newsletter__fine { font-size: 0.76rem; color: rgba(246, 241, 231, 0.62); margin-top: 0.75rem; margin-bottom: 0; line-height: 1.5; }

/* 16. Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 0.85rem;
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list svg { width: 21px; height: 21px; color: var(--terracotta); flex: 0 0 auto; margin-top: 3px; }
.contact-list h4 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 0.25rem;
}
.contact-list p { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.contact-list address { font-style: normal; font-size: 0.93rem; line-height: 1.55; }

.map-placeholder {
  margin-top: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(127, 168, 139, 0.14) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(127, 168, 139, 0.14) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--sage-100);
  padding: var(--space-md);
  text-align: center;
  font-size: 0.83rem;
  color: var(--ink-70);
}
.map-placeholder svg { width: 28px; height: 28px; color: var(--forest); margin: 0 auto 0.4rem; }

/* 17. Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-900);
  color: rgba(246, 241, 231, 0.72);
  padding-top: var(--space-xl);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.site-footer .brand { color: var(--paper); margin-bottom: var(--space-sm); }
.site-footer .brand:hover { color: var(--paper); }
.site-footer .brand__tag { color: rgba(246, 241, 231, 0.55); }
.footer-about p { font-size: 0.87rem; line-height: 1.65; max-width: 40ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-sm);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a, .footer-links button {
  color: rgba(246, 241, 231, 0.75);
  text-decoration: none;
  font-size: 0.89rem;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  transition: color 0.16s var(--ease);
}
.footer-links a:hover, .footer-links button:hover { color: var(--paper); text-decoration: underline; }
.footer-links address { font-style: normal; line-height: 1.6; font-size: 0.89rem; }

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  padding-block: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem var(--space-md);
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; padding: 0; margin: 0; }
.footer-legal li { margin: 0; }
.footer-legal a, .footer-legal button {
  color: rgba(246, 241, 231, 0.7);
  text-decoration: none;
  background: none; border: 0; padding: 0;
  font-size: 0.82rem;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--paper); text-decoration: underline; }

.disclaimer {
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  padding-block: var(--space-md);
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.5);
}
.disclaimer p { margin: 0 0 0.5rem; }
.disclaimer p:last-child { margin-bottom: 0; }

/* 18. Cart drawer
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(22, 36, 28, 0.55);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s var(--ease);
}
.scrim.is-visible { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--cream);
  z-index: 110;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.drawer__head h2 { font-size: 1.2rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-md); }
.drawer__foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--space-md);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cart-item__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cart-item__name { font-size: 0.93rem; font-weight: 650; color: var(--forest-900); margin: 0 0 0.2rem; line-height: 1.3; }
.cart-item__meta { font-size: 0.78rem; color: var(--ink-50); margin: 0 0 0.5rem; }
.cart-item__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-item__total { font-weight: 700; color: var(--forest-900); font-variant-numeric: tabular-nums; font-size: 0.95rem; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  overflow: hidden;
}
.qty__btn {
  width: 29px; height: 29px;
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease);
}
.qty__btn:hover { background: var(--sage-100); }
.qty__val {
  min-width: 30px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.link-remove {
  background: none; border: 0; padding: 0;
  font-size: 0.77rem;
  color: var(--ink-50);
  text-decoration: underline;
}
.link-remove:hover { color: var(--danger); }

.cart-empty { text-align: center; padding: var(--space-xl) var(--space-sm); }
.cart-empty svg { width: 50px; height: 50px; color: var(--ink-50); margin: 0 auto var(--space-sm); }
.cart-empty h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.cart-empty p { font-size: 0.89rem; color: var(--ink-50); margin-bottom: var(--space-md); }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--ink-70);
}
.summary-row span:last-child { font-variant-numeric: tabular-nums; }
.summary-row--total {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  margin-bottom: var(--space-md);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--forest-900);
}
.summary-note { font-size: 0.75rem; color: var(--ink-50); margin: 0.7rem 0 0; line-height: 1.5; }

.ship-progress { margin-bottom: var(--space-md); }
.ship-progress__bar {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--cream-200);
  overflow: hidden;
  margin-top: 0.4rem;
}
.ship-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sage), var(--forest));
  border-radius: var(--radius-pill);
  transition: width 0.35s var(--ease);
}
.ship-progress__label { font-size: 0.78rem; color: var(--ink-70); margin: 0; }

/* 19. Modals & overlays
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.26s var(--ease);
  border: 1px solid var(--line);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__dialog--wide { max-width: 860px; }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal__head h2 { font-size: 1.28rem; margin: 0; }
.modal__head p { font-size: 0.83rem; color: var(--ink-50); margin: 0.2rem 0 0; }
.modal__body { padding: var(--space-lg); }
.modal__foot {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  /* Keep actions reachable when the dialog body is taller than the viewport. */
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -6px 16px rgba(35, 40, 31, 0.06);
}

.quick-view { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.quick-view__img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1/1; object-fit: cover; }
.quick-view__price { font-family: var(--font-display); font-size: 1.85rem; font-weight: 650; color: var(--forest-900); margin: 0.5rem 0; }
.quick-view__specs { list-style: none; padding: 0; margin: var(--space-md) 0; font-size: 0.88rem; }
.quick-view__specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.quick-view__specs li span:first-child { color: var(--ink-50); }
.quick-view__specs li span:last-child { font-weight: 650; color: var(--forest-900); text-align: right; }

.cookie-pref {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--space-md);
  margin-bottom: 0.75rem;
}
.cookie-pref__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: 0.4rem; }
.cookie-pref__head h3 { font-family: var(--font-body); font-size: 0.97rem; font-weight: 700; margin: 0; }
.cookie-pref p { font-size: 0.85rem; color: var(--ink-70); margin: 0; line-height: 1.55; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease);
  pointer-events: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--forest); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.switch input:disabled + .switch__track { background: var(--sage); opacity: 0.7; cursor: not-allowed; }

.order-lines { list-style: none; padding: 0; margin: 0 0 var(--space-md); }
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  margin: 0;
}
.order-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 650; }

.confirm-badge {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid #bcdcc8;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
}
.confirm-badge svg { width: 30px; height: 30px; color: var(--success); }
.order-ref {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--sage-100);
  border: 1px dashed var(--sage);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  color: var(--forest-900);
  margin-bottom: var(--space-md);
}

/* 20. Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -12px 40px rgba(22, 36, 28, 0.18);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-banner.is-visible { transform: translateY(0); visibility: visible; }
.cookie-banner__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-md);
}
.cookie-banner__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sage-100);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.cookie-banner__icon svg { width: 26px; height: 26px; color: var(--forest); }
.cookie-banner__text h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.cookie-banner__text p { font-size: 0.85rem; color: var(--ink-70); margin: 0; line-height: 1.55; max-width: 82ch; }
.cookie-banner__text a { color: var(--terracotta-700); font-weight: 650; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* 21. Toasts, back-to-top, progress
   ========================================================================== */
.toast-stack {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
  max-width: min(340px, calc(100vw - 1.5rem));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--forest-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  line-height: 1.45;
  border-left: 3px solid var(--sage);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: auto;
}
.toast.is-visible { transform: translateX(0); opacity: 1; }
.toast--success { border-left-color: #6ec896; }
.toast--error { border-left-color: #e88b76; }
.toast--info { border-left-color: var(--gold); }
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.toast__close {
  background: none; border: 0; color: rgba(246, 241, 231, 0.6);
  padding: 0; margin-left: auto; font-size: 1.1rem; line-height: 1;
}
.toast__close:hover { color: var(--cream); }

.to-top {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 92;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--forest-700); }
.to-top svg { width: 20px; height: 20px; }
body.has-cookie-banner .to-top { bottom: calc(clamp(0.75rem, 3vw, 1.5rem) + 128px); }

.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  z-index: 99;
  transition: width 0.1s linear;
}

/* 22. Legal pages
   ========================================================================== */
.page-hero {
  background: linear-gradient(168deg, var(--paper), var(--sage-100));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.breadcrumbs { font-size: 0.82rem; color: var(--ink-50); margin-bottom: var(--space-sm); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--ink-70); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-700); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--forest-900); font-weight: 650; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-70);
}

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: var(--step-2); margin-top: var(--space-xl); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--step-1); margin-top: var(--space-lg); }
.legal-body p, .legal-body li { color: var(--ink-70); }
.legal-body a { color: var(--terracotta-700); font-weight: 600; }
.legal-body ul, .legal-body ol { margin-bottom: 1.1em; }

.policy-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.policy-summary h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.policy-summary ul { margin: 0; padding-left: 1.15rem; }
.policy-summary li { font-size: 0.9rem; margin-bottom: 0.35rem; }

.legal-nav { list-style: none; padding: 0; margin: 0; }
.legal-nav li { margin: 0; }
.legal-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-70);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.legal-nav a:hover { background: var(--sage-100); color: var(--forest-900); }
.legal-nav a[aria-current="page"] {
  background: var(--sage-100);
  border-left-color: var(--terracotta);
  color: var(--forest-900);
  font-weight: 650;
}

.cookie-table td:first-child { white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; }

/* 23. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .article-layout, .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: var(--space-lg); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) clamp(1rem, 4vw, 2.25rem) var(--space-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s var(--ease), visibility 0.3s var(--ease), padding 0.3s var(--ease);
  }
  .nav.is-open { max-height: 420px; visibility: visible; }
  .nav__link { padding: 0.75rem 0.85rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__link:last-child { border-bottom: 0; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__caption { position: static; margin-top: var(--space-sm); max-width: none; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .article-layout, .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.2rem; }
  .article, .legal-body { max-width: none; }

  .newsletter { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .quick-view { grid-template-columns: 1fr; }
  .quick-view__img { max-width: 320px; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.1rem; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-controls { flex-direction: column; align-items: stretch; }
  .toolbar-controls .select, .toolbar-controls .search-field { width: 100%; min-width: 0; }
  .cookie-banner__inner { grid-template-columns: 1fr; gap: var(--space-sm); }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal__body, .modal__head, .modal__foot { padding-inline: var(--space-md); }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
  body.has-cookie-banner .to-top { bottom: calc(clamp(0.75rem, 3vw, 1.5rem) + 190px); }
  .article h2 { margin-top: var(--space-lg); }
  .pullquote { padding: var(--space-md); }
  .contact-card { padding: var(--space-md); }
}

@media (max-width: 480px) {
  .trust__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .btn { padding: 0.78rem 1.2rem; font-size: 0.9rem; }
  .hero__meta { flex-direction: column; gap: 0.5rem; }
  .cart-item { grid-template-columns: 58px minmax(0, 1fr); }
  .cart-item__img { width: 58px; height: 58px; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}

/* 24. Motion & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .product-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .toast-stack,
  .drawer, .scrim, .modal, .toc, .catalog-toolbar, .read-progress,
  .newsletter, .btn, .product-card__quick { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-layout, .legal-layout, .hero__inner { grid-template-columns: 1fr; }
  .section { padding-block: 1rem; }
  a { color: #000; text-decoration: underline; }
  .article__figure img, .hero__img { box-shadow: none; max-height: 260px; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  .product-card, .faq__item, .definition-card { page-break-inside: avoid; border-color: #999; }
  .faq__a { display: block !important; }
}
