/* ==========================================================================
   CASAPLANT — Design System
   Direction: Rustic / Natural — earth tones, sage green, organic textures
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Karla:ital,wght@0,300..800;1,300..800&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Paper / surfaces */
  --paper: #FBF7EF;
  --paper-2: #F5EEE1;
  --paper-3: #EDE3D2;
  --paper-4: #E3D6C0;
  --white: #FFFFFF;

  /* Ink */
  --ink: #241F17;
  --ink-2: #3D3529;
  --stone: #7C7263;
  --stone-2: #9E9484;

  /* Sage */
  --sage-900: #26382A;
  --sage-800: #2F4633;
  --sage-700: #3F5C43;
  --sage-600: #527556;
  --sage-500: #6B8F6E;
  --sage-400: #8FA98C;
  --sage-300: #AEC2A7;
  --sage-200: #CBDBBF;
  --sage-100: #E1EBD6;
  --sage-50: #F0F5EA;

  /* Accents */
  --clay: #B4673A;
  --clay-600: #9C5730;
  --clay-700: #824425;
  --clay-100: #F2E1D3;
  --straw: #D8B87A;
  --straw-100: #F6EBD3;
  --berry: #8A3A3A;

  /* Semantic */
  --ok: var(--sage-600);
  --warn: #B5851F;
  --danger: #A6412F;
  --sale: var(--clay);

  /* Type */
  --display: 'Bebas Neue', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
  --display-spacing: .022em;   /* Bebas Neue is condensed — a little tracking helps */
  --body: 'Karla', -apple-system, 'Segoe UI', sans-serif;

  /* Radius — organic, generous */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 44px;
  --r-3xl: 64px;
  --r-pill: 999px;

  /* Shadows — warm-tinted, soft */
  --sh-xs: 0 1px 2px rgba(61, 53, 41, .06);
  --sh-sm: 0 2px 6px rgba(61, 53, 41, .07), 0 1px 2px rgba(61, 53, 41, .04);
  --sh-md: 0 8px 24px -6px rgba(61, 53, 41, .12), 0 2px 6px rgba(61, 53, 41, .05);
  --sh-lg: 0 20px 48px -14px rgba(61, 53, 41, .18), 0 4px 12px rgba(61, 53, 41, .06);
  --sh-xl: 0 36px 80px -24px rgba(61, 53, 41, .26), 0 8px 20px rgba(61, 53, 41, .08);

  /* Layout */
  --wrap: 1280px;
  --wrap-narrow: 780px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .68, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* <picture> must not introduce a box, so the inner <img> keeps participating
   in the parent's layout (e.g. .pcard-media img { height: 100% }) */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2.5px solid var(--sage-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage-200); color: var(--sage-900); }

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: var(--display-spacing);
  color: var(--ink);
  text-wrap: balance;
}
/* Bebas Neue has no true lowercase, so h4/h5 stay in the body face where
   they are used as compact labels and card titles. */
h4, h5 {
  font-family: var(--body);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.008em;
  color: var(--ink);
}
.d1 { font-size: clamp(3.3rem, 7.4vw, 6.2rem); }
.d2 { font-size: clamp(2.5rem, 5.1vw, 4.1rem); }
.d3 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.d4 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
h5 { font-size: 1.05rem; }

.serif-italic { font-family: var(--body); font-style: italic; font-weight: 500; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.66; color: var(--ink-2); }
.body-lg { font-size: 1.06rem; line-height: 1.72; }
.muted { color: var(--stone); }
.small { font-size: .875rem; line-height: 1.6; }
.tiny { font-size: .79rem; line-height: 1.5; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
}
.eyebrow.bare::before { display: none; }
.eyebrow.sage { color: var(--sage-600); }
.eyebrow.inv { color: var(--sage-300); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section-sm { padding-block: clamp(36px, 5vw, 64px); }
.section-tight { padding-block: clamp(28px, 3.5vw, 44px); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .titles { max-width: 720px; }
.sec-head h2 { margin-top: 12px; }
.sec-head p { margin-top: 14px; color: var(--stone); max-width: 62ch; }

.bg-paper2 { background: var(--paper-2); }
.bg-paper3 { background: var(--paper-3); }
.bg-sage { background: var(--sage-900); color: var(--sage-50); }
.bg-sage h1, .bg-sage h2, .bg-sage h3, .bg-sage h4 { color: var(--sage-50); }
.bg-cream-grad { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .86rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .012em;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
/* inline icons inside buttons/links must never inherit the SVG default size */
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn-lg svg { width: 1.1em; height: 1.1em; }
.btn-sm svg { width: 1em; height: 1em; }
.btn-primary { background: var(--sage-700); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--sage-800); box-shadow: var(--sh-md); transform: translateY(-1.5px); }
.btn-clay { background: var(--clay); color: #fff; box-shadow: var(--sh-sm); }
.btn-clay:hover { background: var(--clay-600); box-shadow: var(--sh-md); transform: translateY(-1.5px); }
.btn-outline { border-color: var(--stone-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--sage-700); background: var(--sage-50); color: var(--sage-800); }
.btn-ghost { color: var(--ink-2); background: rgba(255, 255, 255, .6); border-color: rgba(61, 53, 41, .1); }
.btn-ghost:hover { background: #fff; border-color: var(--sage-400); }
.btn-light { background: var(--paper); color: var(--sage-900); }
.btn-light:hover { background: #fff; transform: translateY(-1.5px); box-shadow: var(--sh-md); }
.btn-sm { padding: .62rem 1.15rem; font-size: .86rem; }
.btn-lg { padding: 1.06rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-icon { padding: .7rem; border-radius: var(--r-pill); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; color: var(--sage-700); transition: gap .25s var(--ease), color .2s; }
.link-arrow:hover { gap: .85rem; color: var(--sage-900); }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--sage-900);
  color: var(--sage-100);
  font-size: .81rem;
  padding-block: .5rem;
  position: relative;
  z-index: 60;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .42rem; opacity: .92; transition: opacity .2s; }
.topbar a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .pill { background: rgba(255, 255, 255, .1); padding: .16rem .6rem; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(251, 247, 239, .93);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(61, 53, 41, .09);
  transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.is-stuck { box-shadow: 0 8px 30px -14px rgba(61, 53, 41, .22); background: rgba(251, 247, 239, .97); }
.header-main { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: var(--sage-900); }
.logo-text span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 700; margin-top: .2rem; }

.search-form { flex: 1; max-width: 520px; position: relative; }
.search-form input {
  width: 100%;
  padding: .78rem 3.1rem .78rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--paper-4);
  background: var(--white);
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-form input::placeholder { color: var(--stone-2); }
.search-form input:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(107, 143, 110, .14); }
.search-form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--sage-700);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s;
}
.search-form button:hover { background: var(--sage-800); }
.search-form svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .8rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: .87rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--paper-3); color: var(--sage-800); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--paper);
}
.icon-btn .count:empty, .icon-btn .count[data-count="0"] { display: none; }

.nav-bar { border-top: 1px solid rgba(61, 53, 41, .07); }
.nav-bar .wrap { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .82rem .95rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--sage-800); background: var(--sage-50); }
.nav-link .chev { width: 12px; height: 12px; opacity: .55; transition: transform .25s; }
.nav-item { position: relative; }
.nav-item:hover > .nav-link .chev { transform: rotate(180deg); }
.nav-item:hover > .nav-link { color: var(--sage-800); background: var(--sage-50); }

.mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(61, 53, 41, .1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 22px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 70;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega.cols { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 8px 26px; min-width: 470px; }
.mega.cols-3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); min-width: 700px; }
.mega a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: .885rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .18s, color .18s, padding-left .18s;
}
.mega a:hover { background: var(--sage-50); color: var(--sage-800); padding-left: .95rem; }
.mega a .n { font-size: .7rem; color: var(--stone-2); font-weight: 700; background: var(--paper-2); padding: .1rem .42rem; border-radius: var(--r-pill); }
.mega-head { font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: var(--stone); font-weight: 800; padding: .35rem .7rem; grid-column: 1/-1; }
.mega-foot { grid-column: 1/-1; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--paper-3); }

.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sage-900); color: var(--sage-50); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(52px, 7vw, 100px); }
.hero h1 { color: #fff; }
.hero .lead { color: var(--sage-200); margin-top: 20px; max-width: 54ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .81rem; font-weight: 600;
  color: var(--sage-100);
  backdrop-filter: blur(6px);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--sage-300); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, .12);
  aspect-ratio: 4/3.4;
  background: var(--sage-800);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute;
  background: rgba(251, 247, 239, .96);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.hero-float .ico { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sage-100); color: var(--sage-700); flex-shrink: 0; }
.hero-float .ico svg { width: 20px; height: 20px; }
.hero-float b { display: block; font-size: .9rem; font-weight: 800; line-height: 1.25; }
.hero-float span { font-size: .76rem; color: var(--stone); }
.hero-float.f1 { bottom: 34px; left: -18px; animation: floaty 5s ease-in-out infinite; }
.hero-float.f2 { top: 30px; right: -14px; animation: floaty 6.5s ease-in-out infinite .9s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.hero-blob.b1 { width: 460px; height: 460px; background: var(--sage-600); top: -160px; right: -100px; }
.hero-blob.b2 { width: 380px; height: 380px; background: var(--clay-700); bottom: -180px; left: -120px; opacity: .38; }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: radial-gradient(circle at 18% 30%, rgba(107, 143, 110, .3), transparent 45%), radial-gradient(circle at 82% 70%, rgba(180, 103, 58, .22), transparent 42%); }

/* Page hero (inner pages) */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--paper-4); position: relative; overflow: hidden; }
.page-hero .inner { padding-block: clamp(34px, 5vw, 64px); position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-top: 10px; }
.page-hero p.sub { margin-top: 14px; color: var(--stone); max-width: 68ch; }
.crumbs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--stone); }
.crumbs a { color: var(--stone); transition: color .2s; }
.crumbs a:hover { color: var(--sage-700); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--ink); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Category tile */
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.cat-tile::after {
  content: '';
  position: absolute; inset: auto -30% -60% auto;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--sage-50);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--sage-300); }
.cat-tile:hover::after { transform: scale(1.5); }
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile .thumb {
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  background: var(--sage-50);
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--sage-100);
}
.cat-tile .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cat-tile h3 { font-size: 1.02rem; font-weight: 700; font-family: var(--body); letter-spacing: -.01em; }
.cat-tile .n { font-size: .79rem; color: var(--stone); font-weight: 600; }
.cat-tile .kids { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-tile .kids span { font-size: .72rem; padding: .18rem .55rem; background: var(--paper-2); border-radius: var(--r-pill); color: var(--stone); font-weight: 600; }

/* Product card */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--sage-300); }
.pcard-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--paper-2);
  overflow: hidden;
  display: block;
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.flag {
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: var(--r-pill);
  background: var(--clay); color: #fff;
  box-shadow: var(--sh-xs);
}
.flag.soft { background: var(--sage-700); }
.flag.out { background: var(--stone); }
.flag.bio { background: var(--sage-600); }
.pcard-quick {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.pcard:hover .pcard-quick { opacity: 1; transform: translateX(0); }
.qbtn {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--paper-3);
  display: grid; place-items: center;
  color: var(--ink-2);
  box-shadow: var(--sh-sm);
  transition: background .2s, color .2s, transform .2s;
}
.qbtn:hover { background: var(--sage-700); color: #fff; transform: scale(1.08); }
.qbtn.on { background: var(--clay); color: #fff; border-color: var(--clay); }
.qbtn svg { width: 16px; height: 16px; }
.pcard-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--sage-600); font-weight: 800; }
.pcard-title { font-family: var(--body); font-size: .97rem; font-weight: 700; line-height: 1.35; letter-spacing: -.008em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover .pcard-title { color: var(--sage-800); }
.pcard:hover .pcard-title { color: var(--sage-800); }
.pcard-meta { font-size: .76rem; color: var(--stone-2); font-weight: 600; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price .now { font-family: var(--display); font-size: 1.6rem; font-weight: 400; color: var(--sage-900); letter-spacing: .01em; line-height: 1; }
.price .now.free { color: var(--sage-600); font-size: 1.15rem; }
.price .was { font-size: .8rem; color: var(--stone-2); text-decoration: line-through; font-weight: 600; }
.price .save { font-size: .72rem; color: var(--clay); font-weight: 800; }
.add-btn {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--sage-700); color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--sage-900); transform: scale(1.08); }
.add-btn.added { background: var(--sage-500); }
.add-btn svg { width: 19px; height: 19px; }
.add-btn[disabled] { background: var(--paper-4); color: var(--stone); }

/* Compact product row (cart, mini) */
.prow { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-md); }
.prow img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r-sm); background: var(--paper-2); flex-shrink: 0; }

/* ---------- Feature / trust ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-lg); }
.trust-item .ico { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--sage-50); border: 1px solid var(--sage-100); display: grid; place-items: center; color: var(--sage-700); flex-shrink: 0; }
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: .95rem; font-weight: 800; margin-bottom: .2rem; }
.trust-item p { font-size: .84rem; color: var(--stone); line-height: 1.55; }

/* Editorial split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .ph { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--sh-lg); background: var(--paper-3); aspect-ratio: 4/3.2; }
.split-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.split-media .accent { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--straw-100); z-index: -1; }
.split-media .accent.a1 { top: -34px; left: -34px; }
.split-media .accent.a2 { bottom: -30px; right: -30px; background: var(--sage-100); }
.stat-row { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--paper-4); }
.stat b { font-family: var(--display); font-size: 2.7rem; font-weight: 400; color: var(--sage-800); display: block; line-height: 1; letter-spacing: .015em; }
.stat span { font-size: .82rem; color: var(--stone); font-weight: 600; margin-top: .4rem; display: block; }
.tick-list { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.tick-list svg { width: 20px; height: 20px; color: var(--sage-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 274px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 6px; }
.filters::-webkit-scrollbar { width: 5px; }
.filters::-webkit-scrollbar-thumb { background: var(--paper-4); border-radius: 3px; }
.fblock { background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-lg); padding: 18px; }
.fblock h4 { font-family: var(--body); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; color: var(--stone); font-weight: 800; margin-bottom: 14px; }
.fitem { display: flex; align-items: center; gap: 10px; padding: .38rem 0; font-size: .89rem; cursor: pointer; transition: color .18s; }
.fitem:hover { color: var(--sage-700); }
.fitem input[type=checkbox], .fitem input[type=radio] { width: 17px; height: 17px; accent-color: var(--sage-600); cursor: pointer; flex-shrink: 0; }
.fitem .n { margin-left: auto; font-size: .73rem; color: var(--stone-2); font-weight: 700; }
.fitem.sub { padding-left: 16px; font-size: .84rem; }
.fgroup-kids { margin-left: 2px; padding-left: 10px; border-left: 1.5px solid var(--paper-3); }
.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input { width: 100%; padding: .5rem .7rem; border: 1.5px solid var(--paper-4); border-radius: var(--r-sm); font-size: .88rem; background: var(--paper); }
.price-inputs input:focus { outline: none; border-color: var(--sage-500); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--paper-3); }
.results-count { font-size: .9rem; color: var(--stone); }
.results-count b { color: var(--ink); font-weight: 800; }
.toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.select {
  padding: .58rem 2.2rem .58rem .9rem;
  border: 1.5px solid var(--paper-4);
  border-radius: var(--r-pill);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C7263' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 14px;
  font-size: .87rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--sage-500); }
.view-toggle { display: flex; gap: 3px; background: var(--paper-2); padding: 3px; border-radius: var(--r-pill); }
.view-toggle button { width: 34px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--stone); transition: background .2s, color .2s; }
.view-toggle button.on { background: var(--white); color: var(--sage-800); box-shadow: var(--sh-xs); }
.view-toggle svg { width: 15px; height: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; color: var(--sage-800);
}
.chip button { color: var(--sage-600); display: grid; place-items: center; transition: color .2s; }
.chip button:hover { color: var(--clay); }
.chip svg { width: 12px; height: 12px; }
.chip.clear { background: transparent; border-color: var(--stone-2); color: var(--stone); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 22px; }
.pgrid.list { grid-template-columns: 1fr; }
.pgrid.list .pcard { flex-direction: row; }
.pgrid.list .pcard-media { width: 210px; flex-shrink: 0; aspect-ratio: auto; }
.pgrid.list .pcard-body { padding: 20px 24px; }
.pgrid.list .pcard-title { -webkit-line-clamp: 3; font-size: 1.08rem; }
.pgrid.list .pdesc { display: block; font-size: .87rem; color: var(--stone); line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdesc { display: none; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pager button, .pager a {
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--paper-4);
  background: var(--white);
  font-size: .9rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.pager button:hover:not([disabled]), .pager a:hover { border-color: var(--sage-600); color: var(--sage-800); background: var(--sage-50); }
.pager .on { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.pager svg { width: 16px; height: 16px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 4.5vw, 66px); align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-main {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  position: relative;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs button {
  width: 74px; height: 74px; border-radius: var(--r-md);
  border: 1.5px solid var(--paper-3); background: var(--white);
  overflow: hidden; padding: 0; transition: border-color .2s, transform .2s;
}
.pdp-thumbs button.on { border-color: var(--sage-600); }
.pdp-thumbs button:hover { transform: translateY(-2px); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: clamp(1.95rem, 3.2vw, 2.85rem); margin-top: 12px; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pdp-price-box { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 22px 0; padding: 20px 22px; background: var(--paper-2); border-radius: var(--r-lg); border: 1px solid var(--paper-3); }
.pdp-price-box .now { font-family: var(--display); font-size: 2.9rem; font-weight: 400; color: var(--sage-900); line-height: 1; letter-spacing: .015em; }
.pdp-price-box .was { font-size: 1rem; color: var(--stone-2); text-decoration: line-through; }
.pdp-price-box .vat { font-size: .77rem; color: var(--stone); }
.pdp-short { font-size: .96rem; color: var(--ink-2); line-height: 1.7; }
.pdp-buy { display: flex; gap: 12px; align-items: stretch; margin-top: 24px; flex-wrap: wrap; }
.qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--paper-4);
  border-radius: var(--r-pill);
  background: var(--white);
  overflow: hidden;
}
.qty button { width: 42px; height: 100%; min-height: 50px; display: grid; place-items: center; color: var(--stone); transition: background .2s, color .2s; }
.qty button:hover { background: var(--sage-50); color: var(--sage-800); }
.qty input { width: 54px; text-align: center; border: 0; font-weight: 800; font-size: 1rem; background: transparent; }
.qty input:focus { outline: none; }
.qty svg { width: 15px; height: 15px; }
.pdp-actions { display: flex; gap: 10px; margin-top: 14px; }
.pdp-assur { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.assur { display: flex; gap: 11px; align-items: flex-start; padding: 14px; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-md); }
.assur svg { width: 19px; height: 19px; color: var(--sage-600); flex-shrink: 0; margin-top: 2px; }
.assur b { display: block; font-size: .84rem; font-weight: 800; }
.assur span { font-size: .76rem; color: var(--stone); line-height: 1.5; }

.tabs { margin-top: clamp(44px, 6vw, 78px); }
.tab-nav { display: flex; gap: 6px; border-bottom: 1.5px solid var(--paper-3); overflow-x: auto; }
.tab-nav button {
  padding: .95rem 1.3rem;
  font-size: .92rem; font-weight: 700;
  color: var(--stone);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab-nav button:hover { color: var(--ink); }
.tab-nav button.on { color: var(--sage-800); border-color: var(--sage-700); }
.tab-panel { padding-top: 30px; display: none; animation: fadeUp .35s var(--ease-out); }
.tab-panel.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.prose { max-width: 76ch; font-size: 1rem; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.95rem; margin-top: 1.9em; color: var(--ink); }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; color: var(--ink); }
.prose h4 { font-family: var(--body); font-size: 1.03rem; font-weight: 800; margin-top: 1.5em; letter-spacing: 0; }
.prose p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.35em; margin-top: .9em; }
.prose li { margin-top: .5em; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li::marker { color: var(--sage-500); }
.prose a { color: var(--sage-700); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose a:hover { color: var(--clay); }
.prose strong, .prose b { font-weight: 800; color: var(--ink); }
.prose img { border-radius: var(--r-lg); margin-top: 1.5em; }
.prose table { margin-top: 1.5em; font-size: .9rem; border: 1px solid var(--paper-3); border-radius: var(--r-md); overflow: hidden; }
.prose th, .prose td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--paper-3); }
.prose th { background: var(--paper-2); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.prose blockquote { border-left: 3px solid var(--sage-400); padding-left: 1.2em; font-style: italic; color: var(--ink-2); font-family: var(--body); font-size: 1.06rem; }
.prose iframe { max-width: 100%; border-radius: var(--r-md); }

.spec-table { width: 100%; border: 1px solid var(--paper-3); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.spec-table tr:not(:last-child) { border-bottom: 1px solid var(--paper-3); }
.spec-table th { text-align: left; padding: .9rem 1.2rem; background: var(--paper-2); font-size: .84rem; font-weight: 800; color: var(--stone); text-transform: uppercase; letter-spacing: .05em; width: 32%; vertical-align: top; }
.spec-table td { padding: .9rem 1.2rem; font-size: .92rem; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-lg); transition: box-shadow .25s; }
.cart-item:hover { box-shadow: var(--sh-sm); }
.cart-item .thumb { width: 96px; height: 96px; border-radius: var(--r-md); background: var(--paper-2); overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-family: var(--body); font-size: .98rem; font-weight: 700; line-height: 1.35; }
.cart-item .cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-600); font-weight: 800; margin-bottom: .25rem; }
.cart-item .row2 { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.cart-item .line-price { font-family: var(--display); font-size: 1.45rem; font-weight: 400; color: var(--sage-900); white-space: nowrap; letter-spacing: .01em; }
.cart-remove { color: var(--stone-2); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.cart-remove:hover { background: #F6E4E0; color: var(--danger); }
.cart-remove svg { width: 16px; height: 16px; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-sm); }
.summary h3 { font-size: 1.6rem; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: .62rem 0; font-size: .93rem; }
.sum-row .k { color: var(--stone); }
.sum-row .v { font-weight: 700; }
.sum-row.total { border-top: 1.5px solid var(--paper-3); margin-top: 12px; padding-top: 16px; font-size: 1.05rem; }
.sum-row.total .v { font-family: var(--display); font-size: 1.95rem; color: var(--sage-900); font-weight: 400; letter-spacing: .01em; }
.sum-row.disc .v { color: var(--sage-600); }
.ship-note { font-size: .8rem; color: var(--stone); background: var(--sage-50); border: 1px solid var(--sage-100); border-radius: var(--r-md); padding: 12px 14px; margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; }
.ship-note svg { width: 16px; height: 16px; color: var(--sage-600); flex-shrink: 0; margin-top: 3px; }
.coupon { display: flex; gap: 8px; margin-top: 16px; }
.coupon input { flex: 1; padding: .68rem 1rem; border: 1.5px solid var(--paper-4); border-radius: var(--r-pill); font-size: .88rem; background: var(--paper); }
.coupon input:focus { outline: none; border-color: var(--sage-500); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  padding: .78rem 1rem;
  border: 1.5px solid var(--paper-4);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(107, 143, 110, .13); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { font-size: .78rem; color: var(--danger); font-weight: 600; display: none; }
.field.has-err input, .field.has-err select { border-color: var(--danger); }
.field.has-err .err { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-card { background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-xl); padding: 28px; }
.form-card > h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > .hint { font-size: .87rem; color: var(--stone); margin-bottom: 22px; }
.form-card + .form-card { margin-top: 22px; }

.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--paper-4); border-radius: var(--r-lg); background: var(--white); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.radio-card:hover { border-color: var(--sage-400); }
.radio-card.on { border-color: var(--sage-600); background: var(--sage-50); box-shadow: 0 0 0 3px rgba(107, 143, 110, .1); }
.radio-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sage-600); flex-shrink: 0; }
.radio-card .txt b { display: block; font-size: .95rem; font-weight: 800; }
.radio-card .txt span { font-size: .83rem; color: var(--stone); }
.radio-card .cost { margin-left: auto; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.radio-list { display: flex; flex-direction: column; gap: 12px; }

/* Steps */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; color: var(--stone); }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-3); color: var(--stone); display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.step.on { color: var(--sage-800); }
.step.on .num { background: var(--sage-700); color: #fff; }
.step.done .num { background: var(--sage-100); color: var(--sage-700); }
.step-line { flex: 1; height: 1.5px; background: var(--paper-4); min-width: 20px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { display: flex; gap: 10px; align-items: center; font-size: .76rem; color: var(--stone); font-weight: 600; }
.post-card .meta .tag { background: var(--sage-50); color: var(--sage-700); padding: .16rem .55rem; border-radius: var(--r-pill); font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.45rem; line-height: .98; letter-spacing: .02em; }
.post-card p { font-size: .88rem; color: var(--stone); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; padding-top: 8px; }

.article-hero { aspect-ratio: 21/9; border-radius: var(--r-2xl); overflow: hidden; margin-bottom: 40px; background: var(--paper-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--paper-3); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.acc + .acc { margin-top: 12px; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; text-align: left; font-size: 1rem; font-weight: 700; font-family: var(--body); transition: background .2s; }
.acc-head:hover { background: var(--paper); }
.acc-head .pm { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-50); color: var(--sage-700); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .2s, color .2s; }
.acc.on .acc-head .pm { transform: rotate(45deg); background: var(--sage-700); color: #fff; }
.acc-head .pm svg { width: 14px; height: 14px; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.acc-body > div { padding: 0 22px 22px; font-size: .93rem; color: var(--ink-2); line-height: 1.72; }

/* ---------- Toast / drawer / modal ---------- */
.toast-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--sage-900);
  color: var(--sage-50);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xl);
  font-size: .9rem; font-weight: 600;
  animation: toastIn .4s var(--ease-out);
  pointer-events: auto;
  max-width: 380px;
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; color: var(--sage-300); flex-shrink: 0; }
.toast a { text-decoration: underline; text-underline-offset: 3px; color: #fff; font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }

.drawer-mask { position: fixed; inset: 0; background: rgba(36, 31, 23, .5); backdrop-filter: blur(3px); z-index: 8000; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer-mask.on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--paper); z-index: 8100;
  transform: translateX(102%); transition: transform .42s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-xl);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--paper-3); }
.drawer-head h3 { font-size: 1.45rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--paper-3); background: var(--white); }
.close-x { width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--stone); transition: background .2s, color .2s; }
.close-x:hover { background: var(--paper-3); color: var(--ink); }
.close-x svg { width: 18px; height: 18px; }

.modal-mask { position: fixed; inset: 0; background: rgba(36, 31, 23, .55); backdrop-filter: blur(4px); z-index: 8500; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-mask.on { opacity: 1; visibility: visible; }
.modal { background: var(--paper); border-radius: var(--r-2xl); max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--sh-xl); transform: scale(.95) translateY(10px); transition: transform .35s var(--ease-out); }
.modal-mask.on .modal { transform: none; }
.modal-head { padding: 26px 30px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.modal-body { padding: 20px 30px 30px; }
.modal-foot { padding: 20px 30px 26px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 68px 24px; }
.empty .ico { width: 84px; height: 84px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; margin: 0 auto 22px; color: var(--sage-500); }
.empty .ico svg { width: 38px; height: 38px; }
.empty h3 { font-size: 1.85rem; margin-bottom: 10px; }
.empty p { color: var(--stone); max-width: 44ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: var(--sage-100); margin-top: auto; padding-top: clamp(52px, 7vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .logo img { height: 46px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .89rem; color: var(--sage-300); line-height: 1.7; margin-top: 18px; max-width: 34ch; }
.footer-col h5 { font-family: var(--body); font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; color: var(--sage-400); font-weight: 800; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: .89rem; color: var(--sage-200); transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; color: var(--sage-400); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: var(--sage-100); font-weight: 600; }
.footer-note { font-size: .8rem; color: var(--sage-400); margin-top: 16px; padding: 10px 12px; background: rgba(255, 255, 255, .05); border-radius: var(--r-sm); line-height: 1.55; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: var(--sage-400); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.footer-pay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-pay span { padding: .22rem .6rem; background: rgba(255, 255, 255, .08); border-radius: var(--r-sm); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }

/* ---------- Misc ---------- */
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.marquee { overflow: hidden; background: var(--paper-3); border-block: 1px solid var(--paper-4); padding-block: 14px; }
.marquee-track { display: flex; gap: 56px; animation: scrollX 34s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--display); font-size: 1.18rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-800); display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--clay); font-size: .82rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .42rem; padding: .34rem .78rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--paper-4); }
.badge.sage { background: var(--sage-50); border-color: var(--sage-200); color: var(--sage-800); }
.badge.clay { background: var(--clay-100); border-color: #E5C9B4; color: var(--clay-700); }
.badge.straw { background: var(--straw-100); border-color: #EBD6AB; color: #8A6A24; }
.badge svg { width: 13px; height: 13px; }

.progress-track { height: 7px; background: var(--paper-3); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--sage-500), var(--sage-700)); border-radius: var(--r-pill); transition: width .5s var(--ease); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--sage-800); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r-md); z-index: 10000; transition: top .2s; }
.skip-link:focus { top: 16px; }


/* ==========================================================================
   Header — responsive shell
   Desktop: logo · inline search · account / wishlist / cart
   Mobile:  menu | centred logo | search · cart
   ========================================================================== */
.only-mobile { display: none !important; }
.only-desktop { display: flex; }

/* ==========================================================================
   Full-screen search panel
   ========================================================================== */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 8400;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateY(-101%);
  visibility: hidden;
  transition: transform .42s var(--ease-out), visibility .42s;
}
.search-panel.on { transform: none; visibility: visible; }

.sp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper);
  flex-shrink: 0;
  padding-top: max(14px, env(safe-area-inset-top));
}
.sp-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 16px;
  background: var(--white);
  border: 1.5px solid var(--paper-4);
  border-radius: var(--r-pill);
  transition: border-color .2s, box-shadow .2s;
}
.sp-form:focus-within { border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(107, 143, 110, .13); }
.sp-form > svg { width: 18px; height: 18px; color: var(--stone); flex-shrink: 0; }
.sp-form input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; font-size: 1rem;
}
.sp-form input:focus { outline: none; }
.sp-form input::-webkit-search-cancel-button { display: none; }
.sp-clear {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--stone); background: var(--paper-2);
  transition: background .2s, color .2s;
}
.sp-clear:hover { background: var(--paper-3); color: var(--ink); }
.sp-clear svg { width: 14px; height: 14px; }

.sp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 22px 16px calc(40px + env(safe-area-inset-bottom));
}

.sp-section + .sp-section { margin-top: 32px; }
.sp-title {
  font-family: var(--body);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--stone);
  font-weight: 800;
  margin-bottom: 16px;
}

/* category circles */
.sp-circles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 10px;
}
.sp-circle { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.sp-circle .ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--paper-3);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.sp-circle:hover .ring, .sp-circle:active .ring {
  border-color: var(--sage-400);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.sp-circle .ring img { width: 60%; height: 60%; object-fit: contain; }
.sp-circle .ring svg { width: 26px; height: 26px; color: var(--sage-600); }
.sp-circle .lbl { font-size: .71rem; font-weight: 700; line-height: 1.25; color: var(--ink-2); }
.sp-circle .cnt { font-size: .64rem; font-weight: 700; color: var(--stone-2); }

/* result / recommendation rows */
.sp-recos, .sp-list { display: flex; flex-direction: column; gap: 8px; }
.sp-count { font-size: .85rem; color: var(--stone); margin-bottom: 14px; }
.sp-reco {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.sp-reco:hover, .sp-reco:active { border-color: var(--sage-300); }
.sp-reco img {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--paper-2);
}
.sp-reco .txt { flex: 1; min-width: 0; }
.sp-reco .txt b {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sp-reco .cat { display: block; font-size: .72rem; color: var(--stone); margin-top: 3px; }
.sp-reco .pr {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--sage-900);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-reco .pr s { display: block; font-family: var(--body); font-size: .76rem; color: var(--stone-2); }
.sp-all { margin-top: 18px; }

.sp-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 46px 16px;
}
.sp-empty > svg { width: 34px; height: 34px; color: var(--sage-500); }
.sp-empty b { font-size: 1rem; }
.sp-empty span { font-size: .87rem; color: var(--stone); max-width: 34ch; }

/* ==========================================================================
   Mobile nav — account shortcuts
   ========================================================================== */
.mnav-account {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-3);
}
.mnav-account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-2);
}
.mnav-account-link svg { width: 19px; height: 19px; color: var(--sage-600); flex-shrink: 0; }
.mnav-account-link .n { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--stone-2); }

/* ==========================================================================
   Product specifications — always visible, two columns
   ========================================================================== */
.spec-block { margin-top: clamp(34px, 4.5vw, 56px); }
.spec-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.spec-block-head h3 { font-size: 1.7rem; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.spec-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease);
}
.spec-item:hover { border-color: var(--sage-300); }
.spec-item .k {
  flex: 0 0 42%;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--stone);
  line-height: 1.4;
}
.spec-item .v { flex: 1; font-size: .94rem; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ==========================================================================
   Delivery & returns tab — card layout
   ========================================================================== */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ship-card {
  background: var(--white);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 24px;
}
.ship-card.highlight { background: var(--sage-50); border-color: var(--sage-200); }
.ship-card .ico {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  display: grid; place-items: center;
  color: var(--sage-700);
  margin-bottom: 15px;
}
.ship-card.highlight .ico { background: var(--white); }
.ship-card .ico svg { width: 22px; height: 22px; }
.ship-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.ship-card p { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }
.ship-card p + p { margin-top: .7em; }
.ship-card ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ship-card li { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; color: var(--ink-2); line-height: 1.55; }
.ship-card li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--sage-500);
}
.ship-card .big {
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
  color: var(--sage-800);
  display: block;
  margin-bottom: 6px;
}
.ship-card .free-note {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: .42rem .8rem;
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: var(--r-pill);
  font-size: .79rem; font-weight: 700; color: var(--sage-700);
}
.ship-card .free-note svg { width: 14px; height: 14px; }

.ship-table { margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--paper-3); background: var(--white); }
.ship-table tr:not(:last-child) { border-bottom: 1px solid var(--paper-3); }
.ship-table th {
  text-align: left; padding: 14px 18px; width: 46%;
  background: var(--paper-2);
  font-size: .8rem; font-weight: 800; color: var(--stone);
  text-transform: uppercase; letter-spacing: .05em;
  vertical-align: top;
}
.ship-table td { padding: 14px 18px; font-size: .92rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-aside { position: static; }
}
@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-float.f1 { left: 8px; bottom: 16px; }
  .hero-float.f2 { right: 8px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: flex; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .header-main { gap: 16px; }
  .nav-bar { display: none; }
  .search-form { max-width: none; }
  .mobile-toggle { display: grid; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
}
@media (max-width: 760px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
  .pgrid.list .pcard { flex-direction: column; }
  .pgrid.list .pcard-media { width: 100%; aspect-ratio: 1/1; }
  .trust-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .pdp-assur { grid-template-columns: 1fr; }
  .topbar-left span.hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item .thumb { width: 74px; height: 74px; }
  .cart-item > .line-price { grid-column: 2; text-align: left; }
  .header-actions .label { display: none; }
  .logo img { height: 36px; }
  .hero-float { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pcard-body { padding: 13px 14px 15px; }
  .price .now { font-size: 1.14rem; }
  .stat-row { gap: 24px; }
  .drawer { width: 100%; }
}
@media print { .site-header, .site-footer, .topbar, .toast-wrap { display: none; } }

/* Mobile nav panel */
.mobile-nav { position: fixed; inset: 0 0 0 0; z-index: 8200; background: var(--paper); transform: translateY(-102%); transition: transform .42s var(--ease-out); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav.on { transform: none; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--paper-3); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.mobile-nav-body { padding: 12px 20px 40px; }
.mnav-group { border-bottom: 1px solid var(--paper-3); }
.mnav-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; font-size: 1rem; font-weight: 700; text-align: left; }
.mnav-head svg { width: 16px; height: 16px; color: var(--stone); transition: transform .3s var(--ease); }
.mnav-group.on .mnav-head svg { transform: rotate(180deg); }
.mnav-kids { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.mnav-kids a { display: block; padding: 11px 4px 11px 18px; font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--paper-3); }
.mnav-kids a:hover { color: var(--sage-700); border-color: var(--sage-500); }
.mnav-kids a.sub2 { padding-left: 34px; font-size: .88rem; color: var(--stone); }

/* ==========================================================================
   Responsive refinements — declared last so they win over component rules
   ========================================================================== */

/* ---------- Tablet & mobile: menu | logo | search · cart ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  .header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    height: var(--header-h);
  }
  .header-main > .mobile-toggle { display: grid; justify-self: start; }
  .header-main > .logo { justify-self: center; }
  .header-main > .search-form { display: none; }
  .header-main > .header-actions { justify-self: end; margin-left: 0; gap: 2px; }

  .only-mobile { display: flex !important; }
  .only-desktop { display: none !important; }

  /* keep the mobile nav usable under the iOS notch */
  .mobile-nav-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .drawer-head { padding-top: max(20px, env(safe-area-inset-top)); }
  .drawer-foot { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .header-main > .logo img { height: 38px; }
  .header-actions .icon-btn { padding: .55rem .6rem; }
  .header-actions .icon-btn svg { width: 22px; height: 22px; }
  .header-actions .icon-btn .count { top: 0; right: 0; }

  .sp-body { padding: 20px 16px calc(36px + env(safe-area-inset-bottom)); }
  .sp-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .sp-circle .ring { width: 66px; height: 66px; }
  .sp-reco img { width: 48px; height: 48px; }
  .sp-reco .txt b { font-size: .85rem; }

  .spec-block-head h3 { font-size: 1.5rem; }
  .ship-card { padding: 20px; }
  .ship-card .big { font-size: 2rem; }
  .ship-table th, .ship-table td { padding: 12px 14px; }
  .ship-table th { width: 44%; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 420px) {
  .sp-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar .wrap { justify-content: center; }
  .topbar-right { display: none; }
}

/* ---------- Touch devices: reveal hover-only controls ---------- */
@media (hover: none), (pointer: coarse) {
  /* the quick wishlist / compare buttons are hover-revealed on desktop,
     which makes them unreachable on a touch screen */
  .pcard-quick { opacity: 1; transform: none; }
  .pcard:hover { transform: none; }
  .pcard-media img { transition: none; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 700px) {
  /* a single column is the only readable option for specs and delivery cards */
  .spec-grid, .ship-grid { grid-template-columns: 1fr; }
  .spec-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-item .k { flex: none; }
  .spec-block-head h3 { font-size: 1.5rem; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 760px) {
  /* iOS Safari zooms the whole page when a focused field is under 16px */
  input, select, textarea { font-size: 16px !important; }
  .search-form input, .coupon input, .price-inputs input,
  .field input, .field select, .field textarea, .sp-form input { font-size: 16px !important; }

  /* comfortable touch targets (>= 44px) */
  .qbtn { width: 40px; height: 40px; }
  .close-x { width: 44px; height: 44px; }
  .cart-remove { width: 40px; height: 40px; }
  .sp-clear { width: 38px; height: 38px; }
  .tab-nav button { padding: .9rem 1.05rem; }
  .filter-chips .chip { padding: .5rem .9rem; }
  .pdp-thumbs button { width: 64px; height: 64px; }

  /* keep long prose readable and prevent horizontal scroll */
  .prose, .lead, p { overflow-wrap: break-word; }
  .prose table { font-size: .85rem; }

  /* the account sidebar becomes a horizontal scrolling tab strip */
  .acct-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .acct-layout > aside { position: static; padding: 10px !important; }
  .acct-layout > aside nav { flex-direction: row !important; overflow-x: auto; gap: 6px !important; padding-bottom: 4px; }
  .acct-layout > aside nav button { white-space: nowrap; width: auto !important; }
  .acct-layout > aside nav .n { margin-left: 6px !important; }
}

/* ---------- Prevent sideways scroll from any stray wide element ---------- */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- Wide data tables: scroll instead of overflowing ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5em;
}
.compare-table { min-width: 620px; }

/* ---------- Micro-labels: keep them legible on a phone ---------- */
@media (max-width: 760px) {
  .flag,
  .pcard-cat,
  .pcard-meta,
  .post-card .meta,
  .post-card .meta .tag,
  .badge,
  .sp-circle .lbl,
  .sp-circle .cnt,
  .pcard-flags .flag,
  .cart-item .cat,
  .icon-btn .count { font-size: .75rem; }
}
