/* Trellis & Tendril — modern minimal botanical */
:root {
  --paper: #FAFAF7;
  --paper-deep: #F1F2EC;
  --white: #FFFFFF;
  --sage: #8DA48A;
  --sage-soft: #E3EAE1;
  --sage-ink: #4F6A4C;
  --ink: #1E2320;
  --ink-soft: #4A524D;
  --line: #DCDFD7;
  --clay: #C8693F;
  --clay-hover: #B45A33;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);
  --step-5: clamp(2.9rem, 1.9rem + 5vw, 6.2rem);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 8rem);

  --measure: 62ch;
  --wrap: 1280px;
  --gutter: clamp(1.1rem, 0.6rem + 2.5vw, 3rem);
  --radius: 2px;
  --head-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 var(--space-s); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-s); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.eyebrow { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-ink); margin-bottom: var(--space-s); font-weight: 500; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; line-height: 1.55; }

/* Buttons & links */
.btn-clay {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--clay); color: var(--white); border: 0; border-radius: var(--radius);
  font-size: 1.2rem; font-weight: 700; letter-spacing: .01em;
  padding: 1rem 2rem; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-clay:hover { background: var(--clay-hover); }
.btn-clay:active { transform: translateY(1px); }
.btn-clay[disabled] { opacity: .5; cursor: not-allowed; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid currentColor; color: var(--ink);
  border-radius: var(--radius); padding: .85rem 1.6rem; text-decoration: none; cursor: pointer; font-weight: 500;
}
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.link-arrow { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--sage); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-color: var(--ink); }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  color: var(--ink); background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.has-hero .site-head:not(.is-solid) { background: transparent; color: var(--white); border-color: transparent; }
.site-head.is-solid { background: var(--white); color: var(--ink); border-color: var(--line); }
.head-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.brand-word em { font-style: italic; color: var(--sage); }
.has-hero .site-head:not(.is-solid) .brand-word em { color: #CFE0CC; }
.nav-main { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-main a { text-decoration: none; font-size: .95rem; letter-spacing: .02em; padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: currentColor; }
.head-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; background: none; border: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; color: inherit; border-radius: 50%; }
.icon-btn:hover { background: rgba(141,164,138,.18); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: var(--white); font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count[data-zero="true"] { display: none; }
.nav-toggle { display: none; }
.page-body { padding-top: var(--head-h); }
.has-hero .page-body { padding-top: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav-main {
    position: fixed; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); color: var(--ink); padding: var(--space-s) var(--gutter) var(--space-m);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-main.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-main a { font-size: 1.15rem; padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .brand-word { font-size: 1.25rem; }
}
@media (max-width: 370px) { .brand svg { display: none; } }

/* Hero */
.hero-full {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,35,32,.62) 0%, rgba(30,35,32,.38) 55%, rgba(30,35,32,.12) 100%), linear-gradient(180deg, rgba(30,35,32,.45) 0%, rgba(30,35,32,.05) 30%, rgba(30,35,32,.6) 100%); }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(3rem, 9vh, 7rem); padding-top: calc(var(--head-h) + 3rem); }
.hero-copy .eyebrow { color: #DCE8DA; }
.display-xl { font-size: var(--step-5); max-width: 14ch; margin-bottom: var(--space-m); }
.hero-copy .lede { color: rgba(255,255,255,.88); margin-bottom: var(--space-l); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.hero-actions .link-arrow { color: var(--white); border-color: rgba(255,255,255,.6); }

/* Section rhythm */
.band { padding: var(--space-xl) 0; }
.band-tint { background: var(--sage-soft); }
.band-paper-deep { background: var(--paper-deep); }
.section-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-l); max-width: 760px; }
.section-head h2 { font-size: var(--step-4); margin: 0; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin: 0; }

/* Grow up intro */
.intro-up { display: grid; grid-template-columns: 1fr; gap: var(--space-l); }
.intro-up h2 { font-size: var(--step-5); margin: 0; }
.intro-up h2 span { display: block; color: var(--sage); font-style: italic; }
.num-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); border-top: 1px solid var(--line); padding-top: var(--space-l); }
.num-col b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); color: var(--sage); line-height: 1; margin-bottom: var(--space-s); }
.num-col h3 { font-size: var(--step-2); }
.num-col p { color: var(--ink-soft); }
@media (max-width: 820px) { .num-cols { grid-template-columns: 1fr; } }

/* Zig-zag categories */
.zig-list { display: grid; gap: clamp(3rem, 8vw, 7rem); }
.row-zig { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.row-zig:nth-child(even) .zig-media { order: 2; }
.zig-media { display: block; overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-deep); }
.zig-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.zig-media:hover img { transform: scale(1.04); }
.zig-copy .zig-num { font-size: var(--step--1); letter-spacing: .14em; color: var(--sage-ink); display: block; margin-bottom: var(--space-s); }
.zig-copy h3 { font-size: var(--step-3); }
.zig-copy p { color: var(--ink-soft); max-width: 38ch; margin-bottom: var(--space-m); }
@media (max-width: 760px) {
  .row-zig { grid-template-columns: 1fr; gap: var(--space-m); }
  .row-zig:nth-child(even) .zig-media { order: 0; }
}

/* Size guide */
.size-guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.plant-picks { display: flex; flex-wrap: wrap; gap: .6rem; margin: var(--space-m) 0; padding: 0; border: 0; }
.plant-picks legend { font-weight: 500; margin-bottom: .8rem; padding: 0; }
.pick-pill { position: relative; }
.pick-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick-pill span { display: inline-block; padding: .7rem 1.3rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; transition: all .2s var(--ease); cursor: pointer; }
.pick-pill input:checked + span { background: var(--ink); color: var(--white); }
.pick-pill input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }
.pick-pill:hover span { background: rgba(30,35,32,.06); }
.pick-pill input:checked:hover + span { background: var(--ink); }
.guide-result { background: var(--white); padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 110px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); min-height: 420px; }
.ruler { width: 100%; height: 360px; }
.ruler .bar { transition: y .7s var(--ease), height .7s var(--ease); }
.ruler .band-range { transition: y .7s var(--ease), height .7s var(--ease); }
.guide-height { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; margin-bottom: .4rem; }
.guide-kind { color: var(--sage-ink); font-weight: 500; margin-bottom: var(--space-s); }
.guide-tip { color: var(--ink-soft); border-left: 2px solid var(--sage); padding-left: 1rem; margin: var(--space-m) 0; }
.guide-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.guide-picks a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.guide-picks a:hover { color: var(--sage-ink); }
.guide-empty { color: var(--ink-soft); align-self: center; }
@media (max-width: 900px) { .size-guide { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .guide-result { grid-template-columns: 70px 1fr; } .ruler { height: 300px; } }

/* Product grid & cards */
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4rem); }
@media (max-width: 640px) { .grid-two { grid-template-columns: 1fr; } }
.card-tall a { text-decoration: none; display: block; }
.frame-zoom { margin: 0 0 1.1rem; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-deep); position: relative; }
.frame-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card-tall a:hover .frame-zoom img, .card-tall a:focus-visible .frame-zoom img { transform: scale(1.06); }
.tag-sale { position: absolute; top: 1rem; left: 1rem; background: var(--white); color: var(--ink); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card-meta h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: 0; }
.card-meta .card-cat { display: block; color: var(--sage-ink); font-size: var(--step--1); margin-top: .25rem; }
.price-line { white-space: nowrap; font-size: var(--step-0); margin: 0; }
.price-line s { color: var(--ink-soft); margin-left: .4rem; font-size: .9em; }
.grid-foot { margin-top: var(--space-l); text-align: center; }

/* Promise strip */
.promise-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-l) 0; }
.promise-strip h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: .3rem; letter-spacing: 0; }
.promise-strip p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .promise-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promise-strip { grid-template-columns: 1fr; } }

/* Page head (inner pages) */
.page-head { padding: var(--space-xl) 0 var(--space-l); }
.page-head h1 { font-size: var(--step-5); max-width: 16ch; }
.page-head .lede { margin-top: var(--space-s); }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: var(--space-m); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .5rem; color: var(--sage); }

.collection-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding: var(--space-l) 0 var(--space-xl); }
.collection-hero figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.collection-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.collection-hero h1 { font-size: var(--step-4); }
.field-note { background: var(--sage-soft); padding: var(--space-m); margin-top: var(--space-m); }
.field-note b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); margin-bottom: .3rem; }
.field-note p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .collection-hero { grid-template-columns: 1fr; } .collection-hero figure { order: -1; } }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-l); }
.chip-row button, .chip-row a { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; text-decoration: none; font-size: .95rem; }
.chip-row button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip-row a:hover, .chip-row button:hover { border-color: var(--ink); }

/* Product page */
.prod-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--space-l) 0 var(--space-xl); align-items: start; }
.prod-gallery .main-shot { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.prod-gallery .main-shot img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: .75rem; margin-top: .75rem; }
.thumb-row button { padding: 0; border: 1px solid transparent; background: none; width: 88px; aspect-ratio: 1; overflow: hidden; cursor: pointer; opacity: .65; transition: opacity .2s; }
.thumb-row button img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.prod-info { position: sticky; top: calc(var(--head-h) + 2rem); }
.prod-info h1 { font-size: var(--step-3); }
.prod-price { font-size: var(--step-2); margin-bottom: var(--space-s); }
.prod-price s { font-size: .6em; color: var(--ink-soft); margin-left: .6rem; }
.prod-price .save { font-size: .5em; color: var(--clay-hover); margin-left: .6rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; }
.prod-short { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.buy-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: var(--space-m) 0; }
.buy-row .btn-clay { flex: 1 1 220px; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.qty-step button { width: 44px; height: 52px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty-step input { width: 44px; text-align: center; border: 0; background: none; height: 52px; -moz-appearance: textfield; }
.qty-step input::-webkit-outer-spin-button, .qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ship-note { display: flex; gap: .8rem; padding: var(--space-s) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.ship-note svg { flex: none; width: 22px; height: 22px; color: var(--sage-ink); margin-top: 2px; }
.prod-detail { margin-top: var(--space-m); }
.prod-detail h2 { font-size: var(--step-2); margin-top: var(--space-m); }
.feature-list { padding-left: 1.1rem; margin: 0 0 var(--space-m); }
.feature-list li { margin-bottom: .35rem; }
.feature-list li::marker { color: var(--sage); }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0; font-size: .95rem; }
.spec-list dt { color: var(--ink-soft); }
.spec-list dd { margin: 0; }
.added-msg { min-height: 1.5em; color: var(--sage-ink); font-weight: 500; margin: 0; }
@media (max-width: 860px) { .prod-layout { grid-template-columns: 1fr; } .prod-info { position: static; } .thumb-row button { width: 72px; } }

/* Prose pages */
.prose { max-width: var(--measure); padding-bottom: var(--space-xl); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-top: var(--space-m); letter-spacing: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--ink-soft); font-size: var(--step--1); }
.split-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: var(--space-xl); }
.split-about figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.split-about figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split-about { grid-template-columns: 1fr; } }

.faq-list details { border-bottom: 1px solid var(--line); padding: var(--space-s) 0; }
.faq-list summary { cursor: pointer; list-style: none; font-size: var(--step-1); display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--sage-ink); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); margin: .6rem 0 .4rem; max-width: var(--measure); }

/* Forms */
.form-stack { display: grid; gap: var(--space-s); }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-size: .9rem; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid #B9BFB5; background: var(--white); border-radius: var(--radius);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--sage-ink); outline-offset: 0; border-color: var(--sage-ink); }
.form-field .hint { font-size: .82rem; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.field-row-3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: var(--space-s); }
@media (max-width: 600px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.form-field [aria-invalid="true"] { border-color: #A33B1F; }
.form-msg { padding: var(--space-s) var(--space-m); background: var(--sage-soft); border-left: 3px solid var(--sage-ink); }
.form-msg[hidden] { display: none; }
.form-msg.is-warn { background: #FBEDE6; border-left-color: var(--clay); }
fieldset.plain { border: 0; padding: 0; margin: 0 0 var(--space-m); }
fieldset.plain legend { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: var(--space-s); padding: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); padding-bottom: var(--space-xl); }
.contact-grid address { font-style: normal; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); padding-bottom: var(--space-xl); align-items: start; }
.summary-box { background: var(--white); padding: clamp(1.25rem, 3vw, 2.25rem); position: sticky; top: calc(var(--head-h) + 1.5rem); }
.summary-box h2 { font-size: var(--step-2); }
.summary-lines { list-style: none; margin: 0 0 var(--space-s); padding: 0; }
.summary-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-lines img { width: 64px; height: 64px; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; padding: .3rem 0; }
.sum-total { font-size: var(--step-1); font-weight: 600; border-top: 1px solid var(--ink); margin-top: .5rem; padding-top: .8rem; }
.pay-placeholder { border: 1px dashed var(--sage); padding: var(--space-s) var(--space-m); color: var(--ink-soft); font-size: .92rem; margin-bottom: var(--space-m); background: var(--paper); }
.ship-choice { display: grid; gap: .6rem; }
.ship-choice label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); padding: .9rem 1rem; background: var(--white); cursor: pointer; }
.ship-choice label:has(input:checked) { border-color: var(--ink); }
.ship-choice input { margin-right: .6rem; accent-color: var(--ink); }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .summary-box { position: static; order: -1; } }

/* Cart dialog */
.cart-dialog {
  width: min(560px, calc(100vw - 2rem)); max-height: min(86vh, 760px);
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(30,35,32,.28);
}
.cart-dialog::backdrop { background: rgba(30,35,32,.55); backdrop-filter: blur(3px); }
.cart-dialog[open] { display: flex; flex-direction: column; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cart-top { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-top h2 { font-size: var(--step-2); margin: 0; }
.ship-meter { padding: 1rem 1.5rem 0; font-size: .92rem; }
.ship-meter p { margin: 0 0 .5rem; }
.meter-track { height: 4px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; background: var(--sage); width: 0; transition: width .5s var(--ease); }
.cart-lines { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow-y: auto; flex: 1; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item img { width: 76px; height: 92px; object-fit: cover; }
.line-item h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 500; margin: 0 0 .5rem; line-height: 1.35; letter-spacing: 0; }
.line-item h3 a { text-decoration: none; }
.line-tools { display: flex; align-items: center; gap: .9rem; }
.line-item .qty-step button { width: 32px; height: 34px; font-size: 1rem; }
.line-item .qty-step input { width: 34px; height: 34px; }
.line-remove { background: none; border: 0; text-decoration: underline; color: var(--ink-soft); cursor: pointer; font-size: .85rem; padding: .2rem; }
.line-price { font-weight: 500; white-space: nowrap; }
.cart-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-soft); }
.cart-bottom { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--white); }
.cart-bottom .sum-row { font-size: var(--step-1); }
.cart-bottom .fine { font-size: .85rem; color: var(--ink-soft); margin: .2rem 0 1rem; }
.cart-bottom .btn-clay { width: 100%; }
@media (max-width: 420px) { .line-item { grid-template-columns: 60px 1fr; } .line-item img { width: 60px; height: 74px; } .line-price { grid-column: 2; } }

/* Search overlay */
.search-veil {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; border: 0; padding: 0;
  background: rgba(250,250,247,.985); color: var(--ink);
}
.search-veil::backdrop { background: rgba(30,35,32,.2); }
.search-veil[open] { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.search-inner { max-width: 960px; margin: 0 auto; padding: clamp(1.5rem, 6vh, 5rem) var(--gutter) 3rem; height: 100%; display: flex; flex-direction: column; }
.search-bar { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-display); font-size: var(--step-3); padding: .6rem 0; }
.search-bar input:focus { outline: none; }
.search-count { color: var(--ink-soft); font-size: .9rem; margin: 1rem 0; }
.search-results { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2rem; align-content: start; }
.search-results a { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results img { width: 64px; height: 76px; object-fit: cover; }
.search-results small { display: block; color: var(--sage-ink); }
.search-results a:hover strong { text-decoration: underline; }
@media (max-width: 640px) { .search-results { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: #D9DED6; padding: var(--space-xl) 0 var(--space-m); margin-top: 0; }
.site-foot a { text-decoration: none; color: #D9DED6; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-l); }
.foot-brand .brand { color: var(--white); margin-bottom: var(--space-s); }
.foot-brand p { max-width: 34ch; color: #B7BFB3; }
.foot-col h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-s); font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.foot-legal { border-top: 1px solid #39413C; margin-top: var(--space-l); padding-top: var(--space-m); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #A9B2A5; }
.foot-legal address { font-style: normal; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

.toast-msg { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: .8rem 1.3rem; opacity: 0; transition: all .3s var(--ease); z-index: 100; pointer-events: none; max-width: calc(100vw - 2rem); }
.toast-msg.is-shown { opacity: 1; transform: translate(-50%, 0); }

.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: var(--space-xl) var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.btn-clay.is-off { opacity: .45; pointer-events: none; }
.search-none { padding: 1rem 0; color: var(--ink-soft); }
@media (max-width: 480px) {
  .head-inner { gap: .5rem; }
  .head-tools { gap: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .brand { gap: .5rem; }
  .brand svg { width: 28px; height: 28px; }
  .brand-word { font-size: 1.15rem; }
}
