/* ==========================================================================
   Grain & Grit Goods — one stylesheet for every page
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --walnut: #2d2016;
  --walnut-2: #3a2a1d;
  --walnut-3: #4a3726;
  --grain: #8b6f47;
  --gold: #c4a97a;
  --gold-2: #d9c39b;
  --sand: #f6f1e8;
  --paper: #fffdf9;
  --warm: #ede4d0;
  --warm-2: #e0d5bc;
  --ink: #1d140b;
  --ink-2: #5d4f40;
  --ink-3: #8a7a67;
  --good: #3f7a4f;
  --good-bg: #e8f1e7;
  --bad: #a4412c;
  --bad-bg: #f8e9e4;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(45, 32, 22, .06), 0 8px 28px rgba(45, 32, 22, .08);
  --shadow-lg: 0 18px 50px rgba(45, 32, 22, .18);
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--sand);
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--walnut); }
:focus-visible { outline: 2px solid var(--grain); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--walnut); padding: 8px 14px; border-radius: 6px; z-index: 300; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; line-height: 1.15; letter-spacing: -.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--grain); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grain);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--walnut); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--walnut); color: var(--sand); }
.btn-dark:hover { background: var(--walnut-3); }
.btn-line { background: transparent; color: var(--walnut); border-color: var(--warm-2); }
.btn-line:hover { background: var(--warm); }
.btn-line-light { background: transparent; color: var(--gold-2); border-color: rgba(196, 169, 122, .45); }
.btn-line-light:hover { background: rgba(196, 169, 122, .12); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 15.5px; padding: 14px 28px; }
.link-arrow { color: var(--grain); font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(45, 32, 22, .97); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(196, 169, 122, .14);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--ff-display); font-size: 20px; color: var(--sand); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.logo em { font-style: italic; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #cdbfa8; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.nav .btn { color: var(--walnut); min-height: 40px; padding: 8px 18px; font-size: 13.5px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: var(--gold); position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--walnut-2); padding: 8px 24px 24px; border-bottom: 1px solid rgba(196, 169, 122, .2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(196, 169, 122, .12); }
  .nav .btn { margin-top: 16px; border-bottom: 0; min-height: 48px; }
}

/* ---------- hero ---------- */
.hero { background: var(--walnut); color: var(--sand); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; min-height: min(78vh, 720px); padding-top: 56px; padding-bottom: 56px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(42px, 6vw, 72px); color: var(--sand); margin-bottom: 22px; }
.hero h1 em { color: var(--gold); }
.hero p { color: #cbbda7; font-size: 17.5px; max-width: 470px; margin-bottom: 34px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); background: var(--walnut-2); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(29, 20, 11, .78), transparent);
  font-family: var(--ff-display); font-style: italic; font-size: 14px; color: rgba(246, 241, 232, .85);
}
.hero-facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(196, 169, 122, .18); }
.hero-facts div { font-size: 13px; color: #b8a88f; }
.hero-facts b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 26px; color: var(--gold); line-height: 1.1; }
.wood-strip { display: flex; height: 5px; }
.wood-strip span { flex: 1; }
.wood-strip span:nth-child(1) { background: #c4a97a; }
.wood-strip span:nth-child(2) { background: #3d2416; }
.wood-strip span:nth-child(3) { background: #d8c9ad; }
.wood-strip span:nth-child(4) { background: #8b6f47; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-warm { background: var(--warm); }
.section-dark { background: var(--walnut); color: var(--sand); }
.section-dark .section-title { color: var(--sand); }
.section-dark .section-title em { color: var(--gold); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lede { color: #c9baa2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head .lede { margin-top: 4px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card-item {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--warm-2);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6c7a7; }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--warm); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-item:hover .card-photo img { transform: scale(1.035); }
.card-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 253, 249, .94); color: var(--walnut); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-family: var(--ff-display); font-size: 19px; line-height: 1.25; color: var(--walnut); }
.card-meta { font-size: 13.5px; color: var(--ink-3); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--ff-display); font-size: 21px; color: var(--walnut); }
.card-cta { font-size: 13px; font-weight: 500; color: var(--grain); }
.card-custom { background: var(--walnut); border-color: var(--walnut); color: var(--sand); }
.card-custom .card-photo { background: var(--walnut-2); display: flex; align-items: center; justify-content: center; }
.card-custom .card-name { color: var(--sand); }
.card-custom .card-meta { color: #b8a88f; }
.card-custom .card-cta { color: var(--gold); }
.plus { font-family: var(--ff-display); font-size: 52px; color: rgba(196, 169, 122, .5); line-height: 1; }

/* loading + empty states */
.skeleton { background: linear-gradient(100deg, var(--warm) 30%, #f3ecdf 50%, var(--warm) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-card { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--warm-2); }
.skel-card .skeleton.photo { aspect-ratio: 4 / 3; }
.skel-card .skeleton.line { height: 14px; margin: 16px 18px 0; border-radius: 6px; }
.skel-card .skeleton.line.short { width: 40%; margin-bottom: 18px; }
.notice {
  grid-column: 1 / -1; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px dashed var(--warm-2);
  text-align: center; color: var(--ink-2);
}
.notice h3 { font-size: 22px; margin-bottom: 6px; color: var(--walnut); }
.notice .btn { margin-top: 14px; }

/* ---------- shop page ---------- */
.page-head { background: var(--walnut); color: var(--sand); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); color: var(--sand); }
.page-head h1 em { color: var(--gold); }
.page-head p { color: #c9baa2; max-width: 620px; margin-top: 10px; }
.page-head .eyebrow { color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--warm-2); background: var(--paper); color: var(--ink-2); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--grain); }
.chip[aria-pressed="true"] { background: var(--walnut); border-color: var(--walnut); color: var(--sand); }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.input, .select {
  min-height: 44px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--warm-2); background: var(--paper);
  font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus, .select:focus { border-color: var(--grain); box-shadow: 0 0 0 3px rgba(139, 111, 71, .15); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b6f47' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.toolbar .input { width: 220px; }
.toolbar .select { width: auto; }
.count { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }

/* ---------- commission band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: rgba(196, 169, 122, .08); border: 1px solid rgba(196, 169, 122, .2); border-radius: 14px; padding: 30px 32px; }
.panel h3 { font-size: 21px; margin-bottom: 16px; color: var(--sand); }
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 12px; color: #d5c8b2; font-size: 15px; }
.ticks li::before { content: ''; flex: 0 0 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--warm-2); border-radius: var(--radius); padding: 24px 22px 26px; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--ff-display); font-size: 40px; line-height: 1; color: var(--warm-2); margin-bottom: 16px; }
.step h3 { font-size: 19px; color: var(--walnut); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.folio { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.folio-item { background: var(--paper); border: 1px solid var(--warm-2); border-radius: var(--radius); overflow: hidden; }
.folio-item.wide { grid-column: span 2; }
.folio-photo { aspect-ratio: 4 / 3; background: var(--warm); overflow: hidden; position: relative; }
.folio-item.wide .folio-photo { aspect-ratio: 16 / 8.6; }
.folio-photo img { width: 100%; height: 100%; object-fit: cover; }
.folio-photo a {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; text-decoration: none;
  background: linear-gradient(to top, rgba(29, 20, 11, .6), transparent 55%); opacity: 0; transition: opacity .3s;
  color: var(--sand); font-size: 14px; font-weight: 500;
}
.folio-item:hover .folio-photo a, .folio-photo a:focus-visible { opacity: 1; }
.folio-info { padding: 16px 18px 18px; }
.folio-info h3 { font-size: 19px; color: var(--walnut); margin-bottom: 4px; }
.folio-info p { font-size: 13.5px; color: var(--ink-3); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--warm); color: var(--ink-2); }

/* ---------- about ---------- */
.about-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--warm); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--warm-2); color: var(--ink-2); background: var(--paper); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 14px; padding: 28px 30px; }
.contact-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--walnut); }
.dl { display: grid; gap: 12px; }
.dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 15px; }
.dl dt { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.dl dd a { color: var(--grain); }

/* ---------- product page ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 22px 0 6px; }
.crumbs a { color: var(--grain); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding: 14px 0 80px; }
.gallery-main { border-radius: 14px; overflow: hidden; background: var(--warm); aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--warm); opacity: .72; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--grain); opacity: 1; }
.thumb:hover { opacity: 1; }
.pdp-info h1 { font-size: clamp(30px, 3.6vw, 44px); color: var(--walnut); margin-bottom: 8px; }
.pdp-price { font-family: var(--ff-display); font-size: 30px; color: var(--grain); margin-bottom: 18px; }
.pdp-desc { font-size: 16.5px; color: var(--ink-2); margin-bottom: 20px; white-space: pre-line; }
.facts { border-top: 1px solid var(--warm-2); margin-bottom: 24px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--warm-2); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { text-align: right; }
.availability { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--good); margin-bottom: 18px; }
.availability::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.availability.sold { color: var(--ink-3); }

/* ---------- checkout ---------- */
.checkout { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.checkout h2 { font-size: 24px; color: var(--walnut); margin-bottom: 4px; }
.checkout .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.co-step { border: 0; border-top: 1px solid var(--warm-2); padding: 16px 0 0; margin: 16px 0 0; min-width: 0; }
fieldset.co-step { border-top: 0; padding-top: 0; margin-top: 0; }
fieldset.co-step legend { padding: 0; }
.co-label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grain); margin-bottom: 10px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; display: block; border: 1.5px solid var(--warm-2); border-radius: 10px; padding: 13px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option b { display: block; font-weight: 500; font-size: 15px; }
.option small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.option:has(input:checked) { border-color: var(--grain); background: rgba(139, 111, 71, .07); }
.option.is-checked { border-color: var(--grain); background: rgba(139, 111, 71, .07); }
.option:has(input:focus-visible) { outline: 2px solid var(--grain); outline-offset: 2px; }
.option.off { opacity: .5; cursor: not-allowed; }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.summary { background: var(--sand); border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); }
.summary .row.total { border-top: 1px solid var(--warm-2); margin-top: 6px; padding-top: 10px; color: var(--walnut); font-weight: 500; font-size: 17px; }
.summary .pending { color: var(--ink-3); font-style: italic; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }
.msg-bad { background: var(--bad-bg); color: var(--bad); }
.msg-info { background: var(--warm); color: var(--ink-2); }
.msg-good { background: var(--good-bg); color: var(--good); }
.pay-row { margin-top: 18px; }
.fine { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.fine a { color: var(--grain); }
.lock { display: inline-block; width: 12px; height: 13px; margin-right: 5px; vertical-align: -2px; color: var(--grain); }
.lock svg { display: block; width: 100%; height: 100%; }
.done { text-align: center; padding: 10px 4px; }
.done .tick { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.done .ref { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: var(--sand); padding: 2px 8px; border-radius: 6px; }
.sold-box { padding: 20px; border-radius: 12px; background: var(--warm); color: var(--ink-2); }
.sold-box a { color: var(--grain); }

/* ---------- pay page ---------- */
.pay-wrap { max-width: 560px; margin: 0 auto; padding: 56px 0 96px; }
.pay-card { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.pay-card h1 { font-size: 32px; color: var(--walnut); margin-bottom: 6px; }
.pay-amount { font-family: var(--ff-display); font-size: 44px; color: var(--walnut); margin: 14px 0 4px; }

/* ---------- commission form ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 330px; gap: 44px; align-items: start; padding: 48px 0 88px; }
.form-card { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 14px; padding: 30px; }
.form-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--warm-2); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section h2 { font-size: 24px; color: var(--walnut); margin-bottom: 4px; }
.form-section > p { color: var(--ink-3); font-size: 14.5px; margin-bottom: 18px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.species { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatch-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--warm-2); border-radius: 10px; padding: 11px 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.swatch-opt input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-opt.is-checked { border-color: var(--grain); background: rgba(139, 111, 71, .07); }
.swatch-opt:has(input:focus-visible) { outline: 2px solid var(--grain); outline-offset: 2px; }
.swatch { width: 30px; height: 30px; border-radius: 6px; flex: 0 0 30px; }
.sw-ash { background: linear-gradient(135deg, #ddd0b8, #c4b49a); }
.sw-poplar { background: linear-gradient(135deg, #c8c4a0, #a8a480); }
.sw-oak { background: linear-gradient(135deg, #d4b483, #b8935a); }
.sw-walnut { background: linear-gradient(135deg, #6b4423, #3d2416); }
.sw-any { background: conic-gradient(#d4b483, #6b4423, #c8c4a0, #ddd0b8, #d4b483); }
.swatch-opt b { display: block; font-weight: 500; font-size: 14.5px; }
.swatch-opt small { color: var(--ink-3); font-size: 12.5px; }
.swatch-opt .cost { margin-left: auto; color: var(--grain); font-size: 13px; font-weight: 500; }
.swatch-opt.wide { grid-column: 1 / -1; }
.tone { width: 100%; accent-color: var(--grain); }
.tone-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tone-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ddd0b8, #c4a97a, #8b6f47, #6b4423, #3d2416); margin-bottom: 6px; }
.dropzone { position: relative; border: 1.5px dashed var(--warm-2); border-radius: 12px; padding: 26px; text-align: center; color: var(--ink-3); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--grain); background: rgba(139, 111, 71, .04); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--grain); font-weight: 500; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.preview { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--warm); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(29, 20, 11, .72); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; }
.aside-card { background: var(--walnut); color: #d5c8b2; border-radius: 14px; padding: 24px; }
.aside-card h3 { font-size: 20px; color: var(--sand); margin-bottom: 10px; }
.aside-card p { font-size: 14.5px; margin-bottom: 12px; }
.aside-card a { color: var(--gold); }
.aside-note { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 14px; padding: 20px; font-size: 14.5px; color: var(--ink-2); }
.aside-note h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grain); margin-bottom: 6px; font-weight: 500; }
.woods { display: grid; gap: 10px; }
.wood-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--warm-2); border-radius: 10px; padding: 12px 14px; }
.wood-row .swatch { width: 64px; height: 38px; }
.wood-row b { font-family: var(--ff-display); font-weight: 400; font-size: 17px; color: var(--walnut); }
.wood-row p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a89880; padding: 44px 0 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo { font-size: 19px; }
.site-footer p { font-size: 14px; margin-top: 10px; max-width: 320px; }
.site-footer h4 { font-family: var(--ff-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 500; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #cdbfa8; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-base { border-top: 1px solid rgba(196, 169, 122, .14); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .folio { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 40px; }
  .hero-figure { aspect-ratio: 4 / 3; }
  .split, .contact-grid, .pdp { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .steps, .folio { grid-template-columns: 1fr; }
  .folio-item.wide { grid-column: auto; }
  .folio-item.wide .folio-photo { aspect-ratio: 4 / 3; }
  .options, .fields, .species { grid-template-columns: 1fr; }
  .toolbar .input { width: 100%; }
  .toolbar-right { width: 100%; }
  .toolbar-right .select { flex: 1; }
  .checkout, .form-card, .pay-card { padding: 20px 18px; }
  .dl div { grid-template-columns: 1fr; gap: 2px; }
  .hero-facts { gap: 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 16px; }
  .price { font-size: 17px; }
  .card-cta { display: none; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- cart ---------- */
.cart-link-mobile { display: none; }
.nav a.cart-link.has-items { color: var(--gold-2); }
@media (max-width: 860px) {
  .cart-link-mobile { display: inline-flex; align-items: center; margin-left: auto; color: #cdbfa8; text-decoration: none; font-size: 14px; font-weight: 500; min-height: 44px; }
  .cart-link-mobile.has-items { color: var(--gold-2); }
  .nav a.cart-link:not(.cart-link-mobile) { display: none; }
}
.cart-title { font-family: var(--ff-display); font-size: 34px; color: var(--walnut); margin: 6px 0 20px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 60px; }
.cart-layout > .notice { grid-column: 1 / -1; }
.cart-lines { background: var(--paper); border: 1px solid var(--warm-2); border-radius: 14px; padding: 8px 18px; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--warm-2); align-items: start; }
.cart-line.gone .cart-photo, .cart-line.gone .cart-name { opacity: .55; }
.cart-photo { display: block; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--sand); }
.cart-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-name { color: var(--walnut); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.cart-unit { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.cart-problem { margin-top: 8px; }
.cart-controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.cart-line-total { font-weight: 500; white-space: nowrap; }
.cart-sub { display: flex; justify-content: space-between; padding: 14px 0 6px; font-weight: 500; color: var(--walnut); }
.cart-actions { display: flex; justify-content: space-between; padding: 6px 0 10px; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--grain); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 32px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--warm-2); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 36px; height: 36px; border: 0; background: var(--sand); font-size: 18px; cursor: pointer; color: var(--walnut); }
.qty-btn:disabled { opacity: .4; cursor: default; }
.qty-n { min-width: 34px; text-align: center; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-notes { margin: 10px 0 0 18px; color: var(--ink-3); font-size: 13.5px; }
.rate-list { display: grid; gap: 8px; }
.cart-done { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; }
.add-box { padding: 18px; }
.add-row { display: flex; gap: 12px; align-items: flex-end; }
.qty-pick { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.qty-pick .select { min-width: 84px; }
.ship-notes { margin: 0 0 14px 18px; color: var(--ink-2); font-size: 14px; }
.folio-desc { margin-top: 4px; font-size: 14px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-photo { width: 60px; height: 60px; }
  .cart-line-total { grid-column: 2; }
  .cart-title { font-size: 28px; }
}
