/* ==========================================================================
   Fern & Fable - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: edit the custom properties in :root below.
   - --paper / --stone / --stone-2   warm white page and stone panel colors
   - --olive / --olive-deep          main brand color (buttons, header bar, story band)
   - --clay / --clay-soft            clay/rust accent (prices, highlights, badges)
   - --ink / --muted                 text colors (keep 4.5:1 contrast on --paper)
   - --font-display / --font-body    heading and body fonts. If you change them,
     also update the Google Fonts <link> in the <head> of every page.
   ========================================================================== */
:root {
  --paper: #fbf8f2;
  --paper-2: #f5f0e6;
  --stone: #ebe5d8;
  --stone-2: #dcd3c1;
  --line: #d9d0be;
  --olive: #4f5a36;
  --olive-deep: #2f3620;
  --olive-soft: #8b9468;
  --clay: #985636;
  --clay-soft: #c98f6c;
  --ink: #25251e;
  --muted: #5f5c51;
  --error: #a3341f;
  --success: #3f5a2a;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -22px rgba(47, 54, 32, .45);
}

/* ---------- Base ---------- */
*, *::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: 1.0625rem; line-height: 1.65;
  overflow-wrap: break-word; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.01em; color: var(--olive-deep); }
h1 { font-size: clamp(2.8rem, 8.5vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
h1 em, h2 em { color: var(--clay); }
p { margin: 0 0 1em; }
a { color: var(--olive); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--olive); color: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--olive-deep); color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--paper); }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 36rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 32rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; letter-spacing: .01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); color: #fff; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #7d4429; color: #fff; }
.btn-ghost { background: transparent; color: var(--olive-deep); border-color: var(--olive-soft); }
.btn-ghost:hover { border-color: var(--olive-deep); color: var(--olive-deep); background: var(--paper-2); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; color: var(--olive-deep); border-bottom: 1px solid var(--olive-soft); padding-bottom: 2px; }
.link-arrow:hover { color: var(--clay); border-color: var(--clay); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--olive-deep); color: #eef0e2; font-size: .84rem; text-align: center; padding: .5rem var(--gutter); }
.announce p { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 242, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--olive-deep); text-decoration: none; margin-right: auto; }
.logo:hover { color: var(--olive-deep); }
.logo-mark { width: 36px; height: 36px; flex: none; color: var(--olive); }
.logo-text { font-family: var(--font-display); font-size: 1.65rem; line-height: 1; white-space: nowrap; }
.logo-text em { color: var(--clay); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--olive-deep); cursor: pointer; font-weight: 600; font-size: .92rem; }
.icon-btn:hover { border-color: var(--olive-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: .75rem; font-weight: 700; }
.cart-count[data-empty="true"] { background: var(--stone-2); color: var(--olive-deep); }
.cart-btn-label { display: none; }

.nav-toggle .bars { position: relative; width: 18px; height: 1.5px; background: currentColor; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.25rem; }
.site-nav a { display: block; padding: .85rem 0; color: var(--olive-deep); text-decoration: none; font-family: var(--font-display); font-size: 1.55rem; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--clay); }
@media (min-width: 560px) { .cart-btn-label { display: inline; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .logo { margin-right: 0; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; margin: 0 auto; }
  .site-nav ul { display: flex; gap: 2.2rem; padding: 0; }
  .site-nav a { padding: .35rem 0; border: 0; font-family: var(--font-body); font-size: .95rem; font-weight: 500; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Product image placeholders ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1 / 1;
  border-radius: var(--radius); color: var(--olive-deep);
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(160deg, var(--ph-a, #efe8da), var(--ph-b, #ddd2bd));
}
.ph::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 9%; border-radius: 50%; background: rgba(47, 54, 32, .12); filter: blur(6px); }
.ph svg { position: relative; z-index: 1; width: 58%; height: 58%; }
.ph-label { position: absolute; z-index: 2; left: .7rem; bottom: .65rem; max-width: calc(100% - 1.4rem); font-size: .72rem; font-weight: 600; letter-spacing: .02em; background: rgba(251, 248, 242, .88); color: var(--olive-deep); padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tall { aspect-ratio: 4 / 5; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--olive); flex: none; }
.hero-art { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: .9rem; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: auto; height: 100%; min-height: 300px; }
.arch svg { width: 92%; height: 92%; }
.hero-art .stack { display: grid; gap: .9rem; }
.hero-art .stack .ph { aspect-ratio: 1 / 1.05; }
.hero-badge { position: absolute; z-index: 3; left: -6px; top: -14px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--clay); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; box-shadow: var(--shadow); transform: rotate(-10deg); }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .arch { min-height: 460px; }
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: 1.75rem 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.6rem; } }
@media (min-width: 1100px) { .product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card .ph-link { display: block; border-radius: var(--radius); text-decoration: none; }
.product-card .ph { transition: transform .4s var(--ease); }
.product-card .ph-link:hover .ph { transform: translateY(-4px); }
.product-card .badge { position: absolute; z-index: 2; top: .7rem; left: .7rem; background: var(--olive-deep); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.product-info { display: flex; flex-direction: column; gap: .2rem; padding-top: .85rem; flex: 1; }
.product-cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.product-name { font-family: var(--font-display); font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.15; margin: 0; }
.product-name a { color: var(--olive-deep); text-decoration: none; }
.product-name a:hover { color: var(--clay); }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .25rem; }
.price { font-weight: 700; color: var(--clay); }
.swatches { display: flex; gap: 4px; }
.swatches span { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(37, 37, 30, .25); }
.product-card .btn { margin-top: .85rem; min-height: 44px; padding: .6rem 1rem; font-size: .88rem; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; } }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 1.1rem; border-radius: var(--radius); text-decoration: none; color: var(--olive-deep); overflow: hidden; background: var(--stone); transition: transform .35s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); color: var(--olive-deep); }
.cat-tile svg { position: absolute; right: -8%; top: 4%; width: 72%; height: 72%; opacity: .95; }
.cat-tile h3 { position: relative; margin: 0; font-size: 1.45rem; }
.cat-tile span { position: relative; font-size: .85rem; color: var(--muted); }
.cat-tile.t1 { background: linear-gradient(160deg, #ece4d4, #dacdb4); }
.cat-tile.t2 { background: linear-gradient(160deg, #e3e5d3, #c9cdb0); }
.cat-tile.t3 { background: linear-gradient(160deg, #efdfd2, #ddbfa9); }
.cat-tile.t4 { background: linear-gradient(160deg, #e9e6df, #d4cfc3); }
@media (min-width: 900px) { .cat-tile { min-height: 300px; } }

/* ---------- Story band ---------- */
.story { background: var(--olive-deep); color: #e9ebdc; position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(233, 235, 220, .14); }
.story::after { content: ""; position: absolute; inset: auto -4% -45% auto; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(233, 235, 220, .14); }
.story-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.story h2 { color: #fbf8f2; }
.story h2 em { color: #e3b08f; }
.story .eyebrow { color: #e3b08f; }
.story p { color: #d6d9c6; }
.story .ph { color: #e3b08f; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, rgba(227, 176, 143, .22), transparent 62%), linear-gradient(160deg, #4a5539, #39412c); }
.story .ph::after { background: rgba(0, 0, 0, .25); }
@media (min-width: 900px) { .story .ph { aspect-ratio: 4 / 5; } }
.story .ph-label { background: rgba(47, 54, 32, .85); color: #e9ebdc; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(233, 235, 220, .2); list-style: none; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; color: #fbf8f2; line-height: 1; }
.stats span { font-size: .84rem; color: #c9cdb6; }
.btn-light { background: #fbf8f2; color: var(--olive-deep); }
.btn-light:hover { background: #fff; color: var(--clay); }
@media (min-width: 900px) { .story-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.review { margin: 0; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .8rem; }
.review-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); background: var(--paper-2); border: 1px solid var(--line); padding: .2rem .6rem; border-radius: 999px; }
.stars { display: flex; gap: 2px; color: var(--clay); }
.stars svg { width: 17px; height: 17px; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.32rem; line-height: 1.3; color: var(--olive-deep); }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--stone); border-radius: calc(var(--radius) * 1.6); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.8rem; align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(152, 86, 54, .18), transparent 70%); }
.newsletter h2 { margin-bottom: .3rem; }
.newsletter p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.inline-form .field-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.inline-form .field-row input { flex: 1 1 220px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
label { font-weight: 600; font-size: .92rem; color: var(--olive-deep); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1px solid #b9ae98; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .86rem; font-weight: 500; margin: .35rem 0 0; min-height: 1.3em; }
.form-success { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 10px; background: #e7ecd9; color: var(--success); font-weight: 600; }
.form-success:empty { display: none; }
.fine { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Shop page ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: .2em; }
.page-head p { color: var(--muted); max-width: 38rem; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--stone-2); }
.toolbar { display: grid; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.chips legend { width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; padding: 0; }
.chip { min-height: 42px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--olive-deep); cursor: pointer; font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--olive-soft); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.toolbar-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.result-count { margin: 0; color: var(--muted); font-size: .95rem; }
.sort { display: flex; align-items: center; gap: .6rem; }
.sort select { width: auto; min-width: 190px; }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto; align-items: end; } }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 2.5rem; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; } .pdp-gallery { position: sticky; top: 96px; } }
.pdp-main .ph { aspect-ratio: 1 / 1; }
.pdp-main .ph svg { width: 52%; height: 52%; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.thumb { width: 100%; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.thumb .ph { border-radius: 8px; }
.thumb .ph::after { display: none; }
.thumb[aria-pressed="true"] { border-color: var(--olive); }
.pdp-info .price { font-size: 1.5rem; display: block; margin-bottom: 1rem; }
.pdp-info h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-bottom: .3em; }
.rating-line { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.option-row { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 460px) { .option-row { grid-template-columns: 1fr auto; align-items: end; } }
.option-row .field { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #b9ae98; border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--olive-deep); }
.stepper button:hover { background: var(--paper-2); }
.stepper button:disabled { color: #a9a395; cursor: not-allowed; }
.stepper input { width: 48px; min-height: 46px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 36px; height: 36px; font-size: 1rem; }
.stepper.sm .qty-val { min-width: 28px; text-align: center; font-weight: 600; }
.pdp-perks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .55rem; font-size: .93rem; color: var(--muted); }
.pdp-perks li { display: flex; gap: .55rem; align-items: center; }
.pdp-perks svg { width: 18px; height: 18px; color: var(--olive); flex: none; }
.accordion { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 600; color: var(--olive-deep); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--clay); transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 1.2rem; color: var(--muted); }
.accordion ul { margin: 0; padding-left: 1.1rem; }
.added-note { margin: .8rem 0 0; font-weight: 600; color: var(--success); min-height: 1.5em; }

/* ---------- Cart line items (drawer + cart page) ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line .ph { border-radius: 10px; }
.cart-line .ph::after, .cart-line .ph-label { display: none; }
.cart-line .ph svg { width: 70%; height: 70%; }
.cart-line h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.cart-line h3 a { color: var(--olive-deep); text-decoration: none; }
.line-meta { font-size: .85rem; color: var(--muted); margin: .1rem 0 .55rem; }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.line-total { font-weight: 700; color: var(--clay); }
.remove-btn { border: 0; background: none; padding: .3rem 0; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .85rem; min-height: 36px; }
.remove-btn:hover { color: var(--error); }
.cart-empty { padding: 2.5rem 0; text-align: center; color: var(--muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--olive-soft); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.summary-row.total { font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; }
.checkout-msg { margin: .9rem 0 0; padding: .85rem 1rem; border-radius: 10px; background: #f4e5da; color: #6b3720; font-weight: 600; font-size: .92rem; }
.checkout-msg:empty { display: none; }

.cart-page { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .cart-page { grid-template-columns: 1.4fr .8fr; gap: 3.5rem; align-items: start; } }
.cart-page .cart-line { grid-template-columns: 96px minmax(0, 1fr); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.summary-card h2 { font-size: 1.8rem; }

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(37, 37, 30, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer-overlay.is-open { opacity: 1; }
.cart-drawer { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .35s var(--ease); }
.cart-drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.9rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 1.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.drawer-foot .fine { margin: .2rem 0 1rem; }
.drawer-foot .btn + .btn { margin-top: .6rem; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stone); color: var(--ink); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); max-width: 26rem; margin-top: .8rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: .9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; color: var(--muted); }
.footer-list a { color: var(--ink); text-decoration: none; }
.footer-list a:hover { color: var(--clay); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--stone-2); font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.built { font-size: .75rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.drawer-foot .summary-row.total { border-top: 0; margin-top: 0; padding-top: 0; }
