/* ==========================================================================
   Stainscare — Design System "Essential × Luxury Split"
   See ENTWICKLERPROMPT.md, Kapitel 6, for the rationale behind every token.
   ========================================================================== */

@import url('./fonts.css');

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Essential (light) */
  --e-bg: #ffffff;
  --e-bg-soft: #f5f5f3;
  --e-ink: #14141a;
  --e-ink-soft: #5b5b63;
  --e-navy: #141c33;
  --e-navy-2: #1e2a4a;
  --e-accent: #3f7fe0;
  --e-border: #e7e7e3;

  /* Luxury (dark) */
  --l-bg: #0a0a0b;
  --l-bg-soft: #141416;
  --l-ink: #f5f2ea;
  --l-ink-soft: #b9b3a2;
  --l-gold: #c9a24b;
  --l-gold-2: #e8cd8a;
  --l-gold-deep: #8a6a26;
  --l-border: #2a2a2c;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 40px rgba(20, 20, 26, .08);
  --shadow-soft-lg: 0 24px 64px rgba(20, 20, 26, .14);
  --shadow-gold: 0 12px 40px rgba(201, 162, 75, .25);
  --shadow-gold-lg: 0 24px 64px rgba(201, 162, 75, .32);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-h: 84px;
}

/* Global UI-chrome theme (header/footer/forms) — always the light Essential
   look; there is deliberately only one UI chrome appearance, no toggle and
   no OS-preference auto-switch. [data-theme="dark"] itself is still used
   explicitly by the Luxury sections of the page (split-hero, luxury product
   grid, cta-band), which set it on a wrapping element regardless of this. */
:root, [data-theme="light"] {
  --surface: var(--e-bg);
  --surface-soft: var(--e-bg-soft);
  --ink: var(--e-ink);
  --ink-soft: var(--e-ink-soft);
  --accent: var(--e-navy);
  --accent-2: var(--e-accent);
  --border: var(--e-border);
  --shadow: var(--shadow-soft);
}

[data-theme="dark"] {
  --surface: var(--l-bg);
  --surface-soft: var(--l-bg-soft);
  --ink: var(--l-ink);
  --ink-soft: var(--l-ink-soft);
  --accent: var(--l-gold);
  --accent-2: var(--l-gold-2);
  --border: var(--l-border);
  --shadow: var(--shadow-gold);
}

/* ---------- 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.overline {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .75;
}

.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---------- 3. Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-navy { background: var(--e-navy); border-color: var(--e-navy); color: #fff; }
.btn-navy:hover { background: var(--e-navy-2); box-shadow: var(--shadow-soft-lg); }

.btn-outline-navy { background: transparent; border-color: var(--e-navy); color: var(--e-navy); }
.btn-outline-navy:hover { background: var(--e-navy); color: #fff; box-shadow: var(--shadow-soft-lg); }

.btn-gold { background: linear-gradient(135deg, var(--l-gold-2), var(--l-gold) 60%, var(--l-gold-deep)); border-color: var(--l-gold); color: #16130a; }
.btn-gold:hover { box-shadow: var(--shadow-gold-lg); }

.btn-outline-gold { background: transparent; border-color: var(--l-gold); color: var(--l-gold-2); }
.btn-outline-gold:hover { background: var(--l-gold); color: #16130a; box-shadow: var(--shadow-gold-lg); }

.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .75rem; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: .85;
  transition: opacity .25s var(--ease), gap .25s var(--ease);
}
.link-underline:hover { opacity: 1; gap: 10px; }

/* ---------- 4. Header / Nav ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: currentColor; transition: right .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--surface-soft); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--surface);
  font-size: .65rem; font-weight: 700; line-height: 1;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
[data-theme="dark"] .cart-badge { color: #16130a; }

.nav-toggle { display: none; }

/* color:var(--ink) here is not redundant with the inherited default — inside
   [data-theme="dark"] (the split-hero-nav actions bar before it merges),
   nothing between here and <body> re-reads --ink locally, so without this
   the text was inheriting the light theme's near-black color straight
   through onto a near-black background (same root cause as the icon-btn
   fix above, just missed here). */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.lang-switch a { padding: 5px 8px; border-radius: 999px; opacity: .7; transition: opacity .2s var(--ease), background-color .2s var(--ease); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.is-active { opacity: 1; background: var(--surface-soft); }
[data-theme="dark"] .lang-switch a.is-active { background: rgba(255, 255, 255, .16); }

/* ---------- 4b. Mobile header (<900px only) --------------------------------- */
/* Below 900px neither the two-color split-hero-nav nor the full icon row in
   .site-header has room for lang-switch + search + account + cart + hamburger
   side by side — that's what caused header elements to overflow/overlap on
   phones. Below 900px both are replaced wholesale by this single compact
   bar (logo, cart, hamburger) with everything else tucked into the
   slide-down panel instead of fighting for horizontal space. */
.mobile-header { display: none; }
.mobile-panel { display: none; }

/* Split hero navigation: transparent overlay that is itself half-light /
   half-dark until the user scrolls, then merges into a single blurred bar. */
.split-hero-nav {
  position: absolute; inset: 0 0 auto 0; height: var(--nav-h); z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid transparent;
}
.split-hero-nav .split-hero-nav__half {
  display: flex; align-items: center; height: 100%;
  transition: background-color .4s var(--ease);
}
.split-hero-nav .split-hero-nav__half--light { background: var(--e-bg); color: var(--e-ink); justify-content: flex-start; }
.split-hero-nav .split-hero-nav__half--dark { background: var(--l-bg); color: var(--l-ink); justify-content: flex-end; }
.split-hero-nav .split-hero-nav__half .container { width: 100%; display: flex; align-items: center; }
.split-hero-nav .split-hero-nav__half--light .container { justify-content: flex-start; padding-right: 0; }
/* Centered (not flex-end) and with room reserved on the right: the persistent
   actions bar (lang/search/cart, see .split-hero-nav__actions) is absolutely
   positioned over this same half and was independently right-aligning to
   the exact same edge, so "Reviews/About" and the action icons were
   overlapping each other outright. */
.split-hero-nav .split-hero-nav__half--dark .container { justify-content: center; padding-left: 0; padding-right: 220px; }
.split-hero-nav .nav-links a { opacity: .85; }
.split-hero-nav .split-hero-nav__half--dark .nav-links a { color: var(--l-gold-2); }

/* Persistent actions bar (lang switch, search, cart) — a sibling of the two
   color halves, not nested in either, so it survives the dark half being
   hidden once the nav merges. Absolutely positioned on top of both halves;
   pointer-events is re-enabled only on the actions themselves so the empty
   space doesn't block clicks on the nav-links underneath. Deliberately NOT
   using the capped .container (max-width:1240px) here — it must hug the
   same viewport-edge alignment as the dark half's own nav-links beside it,
   which are edge-aligned too (see .split-hero-nav__half .container above). */
.split-hero-nav__actions { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.split-hero-nav__actions .container {
  max-width: none; width: 100%; margin-inline: 0; padding-inline: 24px;
  height: 100%; display: flex; align-items: center; justify-content: flex-end;
}
/* pointer-events re-enabled here, on the compact icon row itself — NOT on
   .container above, which spans the full 100% width/height of the nav and
   was silently swallowing clicks on "Start/Produkte/Bewertungen/Über uns"
   underneath it even though they're visually clear of the icons. */
.split-hero-nav__actions .nav-actions { pointer-events: auto; transition: color .4s var(--ease); }

.split-hero-nav.is-merged {
  position: sticky;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  display: block;
}
.split-hero-nav.is-merged .split-hero-nav__half { background: transparent !important; color: var(--ink) !important; }
.split-hero-nav.is-merged .split-hero-nav__half--dark { display: none; }
.split-hero-nav.is-merged .split-hero-nav__actions .container { padding-right: 24px; }

/* ---------- 5. Split hero --------------------------------------------------- */
.split-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 0px);
}
.split-hero__half {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
}
.split-hero__half--light { background: var(--e-bg); color: var(--e-ink); }
.split-hero__half--dark { background: var(--l-bg); color: var(--l-ink); }

/* Secondary split showcase (Essential/Premium overview further down the
   homepage) reuses the exact hero component — same light/dark halves, same
   inner/body/product composition — just without the top-of-page nav
   overlay, so it doesn't need var(--nav-h) reserved above its content. */
.split-hero--secondary .split-hero__half { padding: 72px 56px; min-height: 0; }

/* Bounds the text+product composition to a fixed-ish width, centered within
   the half. Without this, the text (capped at 380px) stays pinned to the
   padding edge while the product image's percentage-based position keeps
   sliding outward on wide viewports, opening an ever-growing empty gap
   between them — this keeps the pairing visually tight at any width. */
.split-hero__inner { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.split-hero__half--dark .split-hero__inner { margin-inline: auto; }
/* Homepage showcase section: a heading + a 1-2 column product grid needs
   more room than the hero's fixed text+image pairing, so drop the 560px cap. */
.split-hero__inner--wide { max-width: none; }

.split-hero__body { position: relative; z-index: 2; max-width: 320px; }
.split-hero__half--dark .split-hero__body { margin-left: auto; text-align: left; }

/* Sits right after .split-hero__sub in normal flow on desktop (.split-hero__product
   is position:absolute and takes up no flow space) — a sibling of .split-hero__body
   rather than its last child so mobile can reorder it independently past the product
   image via flexbox `order` below, without moving it out of .split-hero__inner (which
   would break .split-hero__product's absolute-position offsets on desktop). */
/* .btn is display:inline-flex — auto margins never resolve to anything but 0
   on inline-level boxes, so it must be a block-level flex container here for
   margin-left:auto to actually push it to the dark half's right-aligned text
   column (matching .split-hero__body's identical max-width+margin-left pairing). */
.split-hero__cta { display: flex; position: relative; z-index: 2; max-width: 320px; }
.split-hero__half--dark .split-hero__cta { margin-left: auto; }

.split-hero__eyebrow { font-family: var(--font-sans); }
.split-hero__title { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.split-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 600; }
.split-hero__sub { font-size: 1rem; color: var(--ink-soft); margin-bottom: 28px; }

.split-hero__product {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: min(48%, 230px);
  transition: transform .6s var(--ease);
  will-change: transform;
}
.split-hero__product img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.split-hero__half--dark .split-hero__product img { filter: drop-shadow(0 24px 50px rgba(201,162,75,.28)); }
.split-hero__half--dark .split-hero__product { right: auto; left: -10px; }

.split-hero__price-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.split-hero__price { font-size: 1.5rem; }
.split-hero__half--light .split-hero__price { color: var(--e-navy); }
.split-hero__half--dark .split-hero__price { color: var(--l-gold-2); }

.split-hero__spec-link { margin-top: 22px; }

.ink-blob {
  position: absolute;
  z-index: 1;
  opacity: .9;
}
/* Color itself is set inline per-render in includes/partials.php::render_ink_blob()
   (a real gradient id is generated per call), since the dark variant needs an
   actual gold gradient a single CSS custom property cannot express. These
   rules only control opacity per theme half. */
.split-hero__half--light .ink-blob { opacity: .06; }
.split-hero__half--dark .ink-blob { opacity: .16; }

@media (max-width: 900px) {
  .split-hero { grid-template-columns: 1fr; }
  /* No var(--nav-h) offset here: .split-hero-nav is display:none below
     900px (see §4b) and .mobile-header is a normal sticky bar that already
     occupies its own space in document flow, not an absolute overlay — so
     the hero no longer needs to reserve extra room under it. */
  .split-hero__half { min-height: auto; padding: 40px 28px 48px; }
  .split-hero--secondary .split-hero__half { padding: 44px 28px; }
  .split-hero__half--dark .split-hero__body { margin-left: 0; }
  .split-hero__product { position: static; transform: none; width: 62%; margin: 40px auto 0; }
  /* Text, then image, then CTA — the button only comes after the product photo
     on mobile, instead of sitting directly under the subtitle with the (now
     in-flow) image landing after it. */
  .split-hero__inner { display: flex; flex-direction: column; }
  .split-hero__body { order: 1; }
  .split-hero__product { order: 2; }
  .split-hero__cta,
  .split-hero__half--dark .split-hero__cta { order: 3; max-width: none; margin-left: 0; margin-top: 24px; }
}

/* ---------- 5b. Bottle silhouette (placeholder product visual) ------------- */
.logo-gold { filter: invert(1) sepia(.6) saturate(4) hue-rotate(-12deg) brightness(1.08) contrast(1.05); }

.bottle { position: relative; width: 100%; max-width: 260px; margin-inline: auto; }
.bottle.bottle--sm { max-width: 150px; }
.bottle__cap {
  width: 38%; height: 64px; margin-inline: auto; position: relative; z-index: 2;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(160deg, #ffffff, #cfd6e0);
  border: 1px solid rgba(0,0,0,.08);
}
.bottle__trigger { position: absolute; right: 6%; top: 4px; width: 26%; height: 30px; background: #1c2740; border-radius: 0 16px 16px 4px; z-index: 1; }
.bottle__nozzle { position: absolute; left: 2%; top: -2px; width: 16%; height: 12px; background: #1c2740; border-radius: 8px 0 0 8px; z-index: 1; }
.bottle__body {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 26px; position: relative; margin-top: -8px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(210,220,235,.35) 45%, rgba(180,195,215,.55));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 0 40px rgba(255,255,255,.3), 0 20px 40px rgba(20,20,26,.12);
}
.bottle__label { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 76%; }

.bottle--dark .bottle__cap { background: linear-gradient(160deg, #2f2f31, #0d0d0e); border-color: rgba(201,162,75,.3); }
.bottle--dark .bottle__trigger, .bottle--dark .bottle__nozzle { background: linear-gradient(160deg, var(--l-gold-2), var(--l-gold)); }
.bottle--dark .bottle__body {
  background: linear-gradient(160deg, rgba(30,30,30,.95), rgba(0,0,0,.6) 60%);
  border-color: rgba(201,162,75,.35);
  box-shadow: inset 0 0 40px rgba(201,162,75,.1), 0 20px 50px rgba(0,0,0,.55);
}

/* ---------- 6. Sections / scroll reveal ------------------------------------ */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--light { background: var(--e-bg); color: var(--e-ink); }
.section--soft-light { background: var(--e-bg-soft); color: var(--e-ink); }
.section--dark { background: var(--l-bg); color: var(--l-ink); }
.section--soft-dark { background: var(--l-bg-soft); color: var(--l-ink); }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.2; }
.section-head h2 em { font-family: var(--font-serif); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { --reveal-delay: 90ms; }
[data-reveal-delay="2"] { --reveal-delay: 180ms; }
[data-reveal-delay="3"] { --reveal-delay: 270ms; }
[data-reveal-delay="4"] { --reveal-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition-duration: .01ms !important; transition-delay: 0ms !important; transform: none !important; }
  .split-hero__product { transition: none !important; }
}

/* ---------- 7. Product grid / cards ---------------------------------------- */
.product-grid {
  display: grid;
  /* Capped (not 1fr) so a row with only one or two products doesn't stretch
     a lone card to fill the entire container width — auto-fit + 1fr expands
     the one occupied track to consume all the leftover space from the
     collapsed empty tracks, blowing the card (and its 1:1 media square) up
     to near full-page width. justify-content centers the resulting fixed-
     width track(s) instead of leaving them pinned left with dead space. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 28px;
}
/* Homepage Essential/Premium showcase: same card, tuned for a narrower
   column (one half of the split section, not the full page width) so two
   cards comfortably fit per row instead of collapsing to one. */
.product-grid--showcase { grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); justify-content: start; gap: 20px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--surface-soft); border-radius: var(--radius-sm); overflow: hidden; }
.product-card__media img { height: 84%; object-fit: contain; }
/* Fallback sizing for render_product_media()'s <img class="product-media-img">
   wherever it lands outside a context with its own more specific rule
   (.product-card__media img, .split-hero__product img, ...) — those win on
   specificity automatically, this just keeps a bare drop-in from collapsing. */
.product-media-img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-card__badge {
  align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-soft);
}
.product-card--luxury .product-card__badge { color: var(--l-gold-2); border-color: var(--l-gold-deep); }
.product-card__name { font-size: 1.05rem; font-weight: 600; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ---------- 8. Feature strip ------------------------------------------------ */
.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 16px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.cart-item { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.cart-item__media { width: 72px; height: 72px; flex-shrink: 0; display: block; }
.cart-item__info { flex: 1; min-width: 140px; }
.cart-item__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.cart-item__price { width: 90px; text-align: right; }
.product-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature-box {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  text-align: center;
}
.feature-box__icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-box__title { font-weight: 600; margin-bottom: 6px; }
.feature-box__text { font-size: .9rem; color: var(--ink-soft); }

/* ---------- 9. Testimonial slider ------------------------------------------ */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 86vw);
}
.testimonial-card {
  height: 100%;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card__stars { letter-spacing: .15em; color: var(--accent); }
.testimonial-card__quote { font-size: 1.02rem; line-height: 1.6; }
.testimonial-card__author { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.slider__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.slider__dot.is-active { background: var(--accent); transform: scale(1.3); }
.slider__arrows { display: flex; gap: 10px; }

/* ---------- 10. CTA band ---------------------------------------------------- */
.cta-band {
  position: relative;
  background: radial-gradient(ellipse at top, var(--l-bg-soft), var(--l-bg) 70%);
  color: var(--l-ink);
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 0;
  box-shadow: inset 0 0 120px rgba(201,162,75,.12);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: var(--l-ink-soft); margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--l-border); background: var(--l-bg-soft); color: var(--l-ink);
}
.newsletter-form input[type="email"]::placeholder { color: var(--l-ink-soft); }

/* ---------- 11. Footer ------------------------------------------------------ */
.site-footer { background: var(--l-bg); color: var(--l-ink-soft); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; font-size: .9rem; }
.footer-col h4 { color: var(--l-ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--l-gold-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--l-border); font-size: .8rem; }
.footer-bottom .socials { display: flex; gap: 14px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 12. Forms (auth / checkout / contact / admin) ------------------ */
.form-card {
  max-width: 460px;
  margin: 64px auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.form-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.form-card .form-sub { color: var(--ink-soft); margin-bottom: 28px; font-size: .92rem; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.form-foot { margin-top: 24px; font-size: .88rem; color: var(--ink-soft); text-align: center; }
.form-foot a { color: var(--accent); font-weight: 600; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 20px; }
.alert-success { background: #e8f6ee; color: #1f6b3f; border: 1px solid #bfe6cf; }
.alert-error { background: #fdecec; color: #9c2626; border: 1px solid #f5c2c2; }
[data-theme="dark"] .alert-success { background: rgba(38,107,63,.18); color: #7fe0a6; border-color: rgba(127,224,166,.25); }
[data-theme="dark"] .alert-error { background: rgba(156,38,38,.18); color: #f39a9a; border-color: rgba(243,154,154,.25); }

/* Honeypot field for the contact form spam trap */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* ---------- 15. Mini cart drawer -------------------------------------------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(400px, 100vw);
  background: var(--surface); color: var(--ink); border-left: 1px solid var(--border);
  z-index: 300; transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; padding: 28px;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-shrink: 0; }
.cart-drawer__items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.cart-drawer__foot { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; flex-shrink: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(10,10,11,.5); z-index: 290;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- 16. Misc / responsive ------------------------------------------- */
@media (max-width: 900px) {
  .split-hero-nav, .site-header { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .mobile-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
  .mobile-header .brand img { height: 32px; }
  .mobile-header .nav-actions { gap: 10px; }

  .mobile-panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .mobile-panel.is-open { display: flex; }
  .mobile-panel > a {
    width: 100%;
    padding: 13px 0;
    font-size: .92rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .mobile-panel > a:last-of-type { border-bottom: none; }
  .mobile-panel .lang-switch { justify-content: center; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  /* Media+name+quantity+price+remove no longer fit on one row at phone
     widths — wrap the actions onto their own full-width row instead of
     letting the item card overflow horizontally. Even that row's own
     content (quantity form + price + remove, ~373px) is still too wide for
     a narrow phone's available card width (~291px), so it wraps internally
     too: the quantity form takes its own line, price + remove share the
     next one. */
  .cart-item__actions { flex-basis: 100%; flex-wrap: wrap; row-gap: 12px; margin-left: 0; justify-content: space-between; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  /* Generous desktop section rhythm reads as excessive dead space stacked
     on a small screen — tighten it down for mobile. */
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }
  .cta-band { padding: 56px 0; }
  .footer-grid { gap: 32px; margin-bottom: 36px; }
  .site-footer { padding: 48px 0 24px; }
}

.badge-line {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.badge-line--essential { background: color-mix(in srgb, var(--e-navy) 10%, transparent); color: var(--e-navy); }
.badge-line--luxury { background: color-mix(in srgb, var(--l-gold) 18%, transparent); color: var(--l-gold); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--surface); padding: 12px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

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