/* ============================================================
   NIDO — Design System
   Warm Scandinavian e-commerce. Sand / greige neutrals + clay.
   ============================================================ */

:root {
  /* Neutrals (warm) */
  --bg:        #F4EEE4;   /* page background, warm sand-white */
  --panel:     #EAE1D2;   /* sand panel */
  --panel-2:   #E0D5C2;   /* deeper sand */
  --card:      #FDFBF7;   /* warm white surface */
  --line:      #E2D8C7;   /* hairline border */
  --line-2:    #D4C8B4;

  --ink:       #2A2520;   /* warm near-black text */
  --ink-2:     #6F665A;   /* muted text */
  --ink-3:     #A89C8B;   /* faint text / placeholders */

  /* Accents */
  --clay:      #BB5E3C;   /* terracotta — primary CTA / sale */
  --clay-deep: #9E4D2F;
  --clay-soft: #EBD8CC;   /* clay tint background */
  --sage:      #6E7A5C;   /* secondary accent */
  --sage-soft: #DDE0D0;
  --cream:     #F8F2E7;

  /* Placeholder tones (for product imagery) */
  --tone-sand: #E4D9C6;
  --tone-clay: #E2C7B6;
  --tone-sage: #D3D6C2;
  --tone-gray: #D8D2C7;
  --tone-deep: #C9BBA6;

  /* Type */
  --f-display: "Schibsted Grotesk", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(42,37,32,.05), 0 2px 8px rgba(42,37,32,.04);
  --sh-2: 0 4px 14px rgba(42,37,32,.08), 0 14px 40px rgba(42,37,32,.07);
  --sh-3: 0 24px 60px rgba(42,37,32,.16);

  --maxw: 1280px;
  --header-h: 132px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--clay); color: #fff; }

h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.muted { color: var(--ink-2); }

/* ---------- App shell ---------- */
#root { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 6px 18px rgba(187,94,60,.28); }
.btn-primary:hover { background: var(--clay-deep); box-shadow: 0 10px 24px rgba(187,94,60,.34); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #1c1814; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(42,37,32,.03); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.btn-light:hover { box-shadow: var(--sh-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* Badges */
.badge {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.badge-sale { background: var(--clay); color: #fff; }
.badge-new  { background: var(--sage); color: #fff; }
.badge-best { background: var(--ink); color: var(--cream); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .18s; position: relative;
}
.icon-btn:hover { background: rgba(42,37,32,.06); }

.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--clay); color: #fff;
  border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   Header
   ============================================================ */
.announce {
  background: var(--ink); color: var(--cream);
  font-size: 13px; overflow: hidden; white-space: nowrap;
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 40px; height: 38px; }
.announce span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; }
.announce .dot { color: var(--clay); }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(42,37,32,.06); }
.header-main { display: flex; align-items: center; gap: 28px; height: 78px; }

.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 25px; letter-spacing: -.03em; color: var(--ink); }
.logo-word b { color: var(--clay); }

.search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0 8px 0 18px; height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--line-2); box-shadow: var(--sh-1); }
.search input { border: none; outline: none; background: none; flex: 1; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search .go { width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-action-label { display: none; }

.nav-row { border-top: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
  white-space: nowrap; transition: background .15s, color .15s; position: relative;
}
.nav a:hover { background: rgba(42,37,32,.05); }
.nav a.active { color: var(--clay); }
.nav a.promo-link { color: var(--clay); }
.nav a.promo-link::after { content: ""; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #CFC6B8; margin-top: 90px; }
.footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--cream); font-size: 15px; margin-bottom: 18px; font-family: var(--f-mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: #B6AC9D; font-size: 14.5px; transition: color .15s; }
.footer ul a:hover { color: var(--cream); }
.footer .logo-word { color: var(--cream); font-size: 28px; }
.footer .brand-blurb { color: #9C9384; max-width: 300px; margin-top: 16px; font-size: 14.5px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid #4A443B; display: flex; align-items: center; justify-content: center; color: #B6AC9D; transition: .18s; }
.footer-social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid #3A352E; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #877E70; font-family: var(--f-mono); }
.pay-row { display: flex; gap: 8px; align-items: center; }
.pay-chip { background: #322D27; border: 1px solid #433D35; border-radius: 6px; padding: 5px 9px; font-size: 11px; font-family: var(--f-mono); color: #B6AC9D; letter-spacing: .04em; }

/* ============================================================
   Placeholder imagery
   ============================================================ */
.ph { position: relative; overflow: hidden; background: var(--tone-sand); border-radius: inherit; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 2px, transparent 2px 12px);
  opacity: .5;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 70% 15%, rgba(255,255,255,.35), transparent 60%);
}
.ph-label {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(42,37,32,.5); background: rgba(255,255,255,.55);
  padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(2px);
}
.ph.tone-sand { background: var(--tone-sand); }
.ph.tone-clay { background: var(--tone-clay); }
.ph.tone-sage { background: var(--tone-sage); }
.ph.tone-gray { background: var(--tone-gray); }
.ph.tone-deep { background: var(--tone-deep); }

/* ============================================================
   Product card
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  display: flex; flex-direction: column; cursor: pointer;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.card-media { position: relative; aspect-ratio: 1/1; }
.card-media .ph { width: 100%; height: 100%; border-radius: 0; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 3; }
.card-fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; background: rgba(253,251,247,.9);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  box-shadow: var(--sh-1); transition: .18s; backdrop-filter: blur(3px);
}
.card-fav:hover { background: #fff; transform: scale(1.08); }
.card-fav.on { color: var(--clay); }
.card-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(8px); transition: .22s;
}
.card:hover .card-quick { opacity: 1; transform: none; }
.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.card-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.card-rating { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.stars { color: var(--clay); letter-spacing: 1px; font-size: 13px; }
.card-foot { margin-top: auto; display: flex; align-items: baseline; gap: 9px; padding-top: 8px; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 21px; color: var(--ink); }
.price-old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.price-save { font-family: var(--f-mono); font-size: 11px; color: var(--clay); font-weight: 700; margin-left: auto; }

/* ============================================================
   Section heading
   ============================================================ */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.section-head .eyebrow { margin-bottom: 10px; display: block; }
.link-arrow { font-family: var(--f-display); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); transition: gap .18s; white-space: nowrap; }
.link-arrow:hover { gap: 12px; color: var(--clay); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 30px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  background: var(--panel); border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); min-height: 520px;
}
.hero-copy { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(40px, 5vw, 66px); line-height: .98; }
.hero-copy p { font-size: 18px; color: var(--ink-2); margin: 22px 0 32px; max-width: 420px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .ph { position: absolute; inset: 0; border-radius: 0; }
.hero-float {
  position: absolute; bottom: 24px; left: 24px; z-index: 4;
  background: rgba(253,251,247,.92); backdrop-filter: blur(6px);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 12px;
}
.hero-float strong { font-family: var(--f-display); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stat .n { font-family: var(--f-display); font-weight: 800; font-size: 28px; white-space: nowrap; }
.hero-stat .l { font-size: 13px; color: var(--ink-2); }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 22px; }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.trust-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--clay-soft); color: var(--clay-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item .t { font-family: var(--f-display); font-weight: 700; font-size: 14.5px; }
.trust-item .s { font-size: 12.5px; color: var(--ink-2); }

/* ============================================================
   PROMO band (offers — prominent but elegant)
   ============================================================ */
.promo-band { background: var(--ink); border-radius: var(--r-xl); padding: 46px; color: var(--cream); position: relative; overflow: hidden; }
.promo-band .eyebrow { color: #E9A07E; }
.promo-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: stretch; }
.promo-lead h2 { color: var(--cream); font-size: clamp(28px,3.4vw,46px); }
.promo-lead p { color: #B6AC9D; margin-top: 14px; max-width: 320px; }
.offer-card {
  background: linear-gradient(160deg, var(--clay), var(--clay-deep));
  border-radius: var(--r-lg); padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; min-height: 200px;
}
.offer-card.alt { background: linear-gradient(160deg, #7A8763, var(--sage)); }
.offer-card .off { font-family: var(--f-display); font-weight: 800; font-size: 54px; line-height: .9; letter-spacing: -.03em; }
.offer-card .off small { font-size: 26px; }
.offer-card .desc { font-size: 14px; opacity: .92; margin-top: 6px; }
.offer-card .terms { font-family: var(--f-mono); font-size: 11px; opacity: .7; margin-top: auto; }
.offer-card .ring { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; right: -50px; top: -50px; }

/* ============================================================
   Category tiles
   ============================================================ */
.tile-grid { display: grid; gap: 20px; }
.tile-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.tile-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4; border: 1px solid var(--line);
}
.tile.wide { aspect-ratio: 16/10; }
.tile .ph { position: absolute; inset: 0; border-radius: 0; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.tile:hover .ph { transform: scale(1.05); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(42,37,32,.55)); z-index: 2; }
.tile-content { position: absolute; left: 22px; bottom: 20px; right: 22px; z-index: 3; color: #fff; }
.tile-content h3 { color: #fff; font-size: 22px; }
.tile-content .c { font-size: 13px; opacity: .85; }
.tile-arrow { position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: rgba(253,251,247,.92); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: .2s; }
.tile:hover .tile-arrow { background: var(--clay); color: #fff; transform: rotate(-45deg); }

/* ============================================================
   Editorial / service banner
   ============================================================ */
.editorial { display: grid; grid-template-columns: 1fr 1fr; background: var(--sage-soft); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.editorial.flip .editorial-copy { order: 2; }
.editorial-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.editorial-copy h2 { font-size: clamp(26px,3vw,40px); }
.editorial-copy p { color: var(--ink-2); margin: 18px 0 28px; font-size: 16.5px; }
.editorial-media { position: relative; min-height: 380px; }
.editorial-media .ph { position: absolute; inset: 0; border-radius: 0; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 30px; }
.feature-list li { display: flex; gap: 12px; align-items: center; list-style: none; font-size: 15.5px; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 999px; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-list ul { padding: 0; margin: 0; }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter { background: var(--clay-soft); border-radius: var(--r-xl); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.newsletter h2 { font-size: clamp(28px,3.2vw,42px); max-width: 600px; margin: 0 auto; }
.newsletter p { color: var(--ink-2); margin: 16px auto 28px; max-width: 460px; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.nl-form input { flex: 1; height: 54px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0 22px; font-size: 15px; outline: none; }
.nl-form input:focus { border-color: var(--clay); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 24px 0; font-family: var(--f-body); }
.crumb a:hover { color: var(--clay); }
.crumb .sep { color: var(--ink-3); }

/* ============================================================
   Category page
   ============================================================ */
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.cat-head h1 { font-size: clamp(32px,4vw,52px); }
.cat-layout { display: grid; grid-template-columns: 264px 1fr; gap: 36px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 8px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 20px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 14px; font-family: var(--f-display); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.check { display: flex; align-items: center; gap: 11px; padding: 6px 0; cursor: pointer; font-size: 14.5px; color: var(--ink-2); transition: color .15s; }
.check:hover { color: var(--ink); }
.check .box { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .15s; color: #fff; }
.check.on .box { background: var(--clay); border-color: var(--clay); }
.check .count { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); transition: .15s; position: relative; }
.swatch.on { border-color: var(--ink); }

/* price slider */
.range-wrap { padding: 8px 4px 0; }
.range-vals { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.range-track { position: relative; height: 4px; background: var(--line-2); border-radius: 999px; }
.range-fill { position: absolute; height: 100%; background: var(--clay); border-radius: 999px; }
input[type=range].range-input {
  -webkit-appearance: none; appearance: none; position: absolute; width: 100%; top: 50%; transform: translateY(-50%);
  background: none; pointer-events: none; height: 22px; margin: 0; accent-color: var(--clay);
}
input[type=range].range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 999px; background: var(--card); border: 2px solid var(--clay); box-shadow: var(--sh-1); cursor: grab; }
input[type=range].range-input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 999px; background: var(--card); border: 2px solid var(--clay); box-shadow: var(--sh-1); cursor: grab; }

.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.result-count { font-size: 14px; color: var(--ink-2); }
.result-count b { color: var(--ink); font-family: var(--f-display); }
.sort { display: flex; align-items: center; gap: 10px; }
.select { position: relative; }
.select select { appearance: none; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 10px 40px 10px 18px; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; outline: none; }
.select .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.chip button { display: flex; color: var(--ink-3); }
.chip button:hover { color: var(--clay); }
.chip-clear { background: none; border: none; color: var(--clay); font-family: var(--f-display); font-weight: 600; font-size: 13px; }

.mobile-filter-btn { display: none; }

/* ============================================================
   Product detail
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 8px 0 30px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 4/3.4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery-main .ph { position: absolute; inset: 0; border-radius: 0; }
.gallery-thumbs { display: flex; gap: 12px; }
.gallery-thumb { flex: 1; aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); cursor: pointer; transition: border-color .18s; position: relative; }
.gallery-thumb.on { border-color: var(--clay); }
.gallery-thumb .ph { position: absolute; inset: 0; border-radius: 0; }

.pdp-info h1 { font-size: clamp(30px,3.4vw,44px); margin: 10px 0 12px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.pdp-price .price { font-size: 36px; }
.pdp-price .price-old { font-size: 19px; }
.pdp-desc { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin-bottom: 26px; }
.opt-block { margin: 22px 0; }
.opt-label { font-family: var(--f-display); font-weight: 700; font-size: 14px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.opt-label span { color: var(--ink-2); font-weight: 500; font-family: var(--f-body); }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-opt { padding: 11px 18px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--card); font-family: var(--f-display); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.size-opt:hover { border-color: var(--ink-2); }
.size-opt.on { border-color: var(--clay); background: var(--clay-soft); color: var(--clay-deep); }
.color-row { display: flex; gap: 12px; }
.color-opt { width: 42px; height: 42px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); transition: .15s; }
.color-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }

.qty-row { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 46px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s; }
.stepper button:hover { background: rgba(42,37,32,.05); }
.stepper .val { width: 44px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.add-row { display: flex; gap: 12px; margin: 8px 0 28px; }
.add-row .btn-primary { flex: 1; }

.pdp-meta { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pdp-meta-item { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; }
.pdp-meta-item .ic { color: var(--clay); flex-shrink: 0; margin-top: 1px; }
.pdp-meta-item b { font-family: var(--f-display); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 50px 0 0; }
.tab { padding: 14px 20px; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.tab.on { color: var(--ink); border-color: var(--clay); }
.tab-body { padding: 30px 0; max-width: 760px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; max-width: 700px; }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-row span:first-child { color: var(--ink-2); }
.spec-row span:last-child { font-family: var(--f-display); font-weight: 600; color: var(--ink); }

/* ============================================================
   Cart (drawer + page)
   ============================================================ */
.drawer-scrim { position: fixed; inset: 0; background: rgba(42,37,32,.4); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw; z-index: 100;
  background: var(--bg); box-shadow: var(--sh-3); transform: translateX(100%); transition: transform .35s cubic-bezier(.3,.8,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 24px; background: var(--card); }

.line-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-media { width: 84px; height: 84px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; position: relative; }
.line-media .ph { position: absolute; inset: 0; border-radius: 0; }
.line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-name { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; }
.line-variant { font-size: 12.5px; color: var(--ink-2); }
.line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.mini-stepper { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; }
.mini-stepper button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.mini-stepper .v { width: 28px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.line-remove { color: var(--ink-3); transition: color .15s; }
.line-remove:hover { color: var(--clay); }

.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: var(--ink-2); }
.summary-row.total { font-size: 20px; color: var(--ink); padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.summary-row.total b, .summary-row.total span { font-family: var(--f-display); font-weight: 800; }
.free-ship-bar { background: var(--panel); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; font-size: 13.5px; }
.fsb-track { height: 6px; background: var(--line-2); border-radius: 999px; margin-top: 9px; overflow: hidden; }
.fsb-fill { height: 100%; background: var(--sage); border-radius: 999px; transition: width .4s; }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty .ic { width: 80px; height: 80px; border-radius: 999px; background: var(--panel); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: var(--ink-2); }

/* full cart page */
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding: 10px 0 40px; }
.cart-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 26px; }
.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { font-size: 20px; margin-bottom: 18px; }
.promo-input { display: flex; gap: 8px; margin: 18px 0; }
.promo-input input { flex: 1; height: 46px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 18px; font-size: 14px; outline: none; }
.promo-applied { display: flex; align-items: center; gap: 8px; background: var(--sage-soft); color: var(--sage); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-family: var(--f-display); font-weight: 600; margin: 14px 0; }

.cart-page .line-item:first-child { border-top: none; }
.cart-page .line-media { width: 110px; height: 110px; }
.cart-line-price { font-family: var(--f-display); font-weight: 800; font-size: 18px; }

/* toast */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: var(--cream); padding: 14px 20px; border-radius: 999px; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-family: var(--f-display); font-weight: 600; animation: toastIn .3s cubic-bezier(.2,.8,.3,1); }
.toast .ic { color: var(--sage-soft); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* fade for view transitions — safe: resting state is always visible */
.view-fade { animation: fade .42s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fade { from { transform: translateY(10px); } to { transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .prod-grid, .tile-grid.cols-4 { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 24px; }
}
@media (max-width: 900px) {
  :root { --header-h: 120px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; order: -1; }
  .hero-copy { padding: 40px 32px; }
  .promo-grid { grid-template-columns: 1fr; }
  .editorial, .editorial.flip { grid-template-columns: 1fr; }
  .editorial.flip .editorial-copy { order: 0; }
  .editorial-copy { padding: 38px 32px; }
  .editorial-media { min-height: 300px; order: -1; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .trust { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-action-label { display: none; }
}
@media (max-width: 760px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; height: 100%; width: 320px; max-width: 88vw; background: var(--bg); z-index: 100; transform: translateX(-100%); transition: transform .3s; padding: 24px; overflow-y: auto; box-shadow: var(--sh-3); }
  .filters.open { transform: none; }
  .mobile-filter-btn { display: inline-flex; }
  .nav-row { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .search { display: none; }
  .header-main { gap: 14px; }
  .prod-grid, .tile-grid.cols-4, .cat-grid, .tile-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .promo-band, .newsletter { padding: 32px 22px; }
  .section { padding: 48px 0; }
  .hero-copy h1 { font-size: 40px; }
  .nl-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pdp-price .price { font-size: 30px; }
}
@media (max-width: 440px) {
  .prod-grid, .tile-grid.cols-4, .cat-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}
