/* Theme: change these variables once the colour scheme is chosen. */
:root {
  --ink: #17251F;
  --ink-soft: #3F5048;
  --bg: #F5F3EE;
  --card: #FFFFFF;
  --line: #E3DED2;
  --brand: #1E3B33;
  --brand-ink: #F5F3EE;
  --brand-soft: #CFDDD5;
  --accent: #D08A2E;
  --accent-ink: #17251F;
  --accent-text: #8A5A12;
  --strip: #E9E3D3;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.5px; line-height: 1.15; }
.card-foot .btn { min-height: 44px; padding: 8px 16px; white-space: nowrap; }
.price { white-space: nowrap; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.site-header { background: var(--brand); color: var(--brand-ink); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: inherit; text-decoration: none; }
.logo .dot { color: var(--accent); font-weight: 400; }
.logo.small { font-size: 20px; }
.logo.small.mt { margin-top: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a { color: var(--brand-ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { text-decoration: underline; }

.cart-btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--font-body); cursor: pointer; }
.cart-count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent-ink); color: var(--brand-ink); text-align: center; font-size: 14px; }

.btn { display: inline-block; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { border-color: var(--brand-ink); color: var(--brand-ink); background: transparent; }
.btn-dark { background: var(--brand); color: var(--brand-ink); }
.btn-link { background: none; color: var(--brand); text-decoration: underline; padding: 12px 8px; }
.btn:focus-visible, .cart-btn:focus-visible, .chip:focus-visible, .step:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hero { background: var(--brand); color: var(--brand-ink); }
.hero-inner { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -1.5px; max-width: 760px; }
.lead { margin: 0; font-size: 19px; color: var(--brand-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.eyebrow.dark { color: var(--accent-text); }

.strip { background: var(--strip); border-bottom: 1px solid var(--line); }
.strip-row { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 16px; padding-bottom: 16px; font-weight: 500; }

.section { padding-top: 72px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 14px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; }
.section-lead { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 620px; }
.section-lead.light { color: var(--brand-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border: 2px solid var(--brand); border-radius: 999px; background: transparent; color: var(--brand); font: 700 15px var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card.placeholder { opacity: 0.8; }
.tile { height: 170px; background: #EAE4D6; display: flex; align-items: center; justify-content: center; }
.bar { width: 100px; height: 138px; border-radius: 6px; box-shadow: 0 8px 16px rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; color: #F5F3EE; font-weight: 700; font-size: 24px; background-image: linear-gradient(rgba(0,0,0,0.28) 2px, transparent 2px), linear-gradient(90deg, rgba(0,0,0,0.28) 2px, transparent 2px); background-size: 50% 33.4%; transform: rotate(-3deg); }
.wood { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #4A3416; font-weight: 700; font-size: 15px; background-image: repeating-linear-gradient(95deg, rgba(120,80,40,0.14) 0, rgba(120,80,40,0.14) 2px, transparent 2px, transparent 10px); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 20px; letter-spacing: 0; }
.card-body p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.origin { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--strip); font-size: 13px; font-weight: 700; color: var(--brand); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font-size: 20px; font-weight: 700; }

.bundle-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.bundle-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.bundle-meter { min-width: 200px; }
.meter-num { font: 700 36px var(--font-display); }
.meter-of { color: var(--ink-soft); font-weight: 500; }
.meter-bar { height: 10px; border-radius: 999px; background: var(--strip); overflow: hidden; margin-top: 6px; }
.meter-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.picker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pick-name { font-weight: 500; }
.pick-sub { display: block; font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.stepper { display: flex; align-items: center; gap: 4px; }
.step { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--brand); background: transparent; color: var(--brand); font: 700 20px var(--font-body); cursor: pointer; }
.step:disabled { opacity: 0.35; cursor: not-allowed; }
.qty { min-width: 28px; text-align: center; font-weight: 700; }
.bundle-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bundle-price { font: 700 28px var(--font-display); margin-right: auto; }

.wholesale { background: var(--brand); color: var(--brand-ink); border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.wholesale > * { flex: 1 1 320px; min-width: 0; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 700; font-size: 15px; }
.form input, .form textarea { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; font: 16px var(--font-body); }
.form .btn { margin-top: 8px; align-self: flex-start; }
.fine { margin: 0; font-size: 14px; color: var(--brand-soft); }

.footer { background: #17251F; color: var(--brand-ink); margin-top: 72px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 44px; padding-bottom: 44px; }
.footer-row > div { flex: 1 1 220px; min-width: 0; }
.footer p { margin: 6px 0 0; color: #BFD0C6; font-size: 15px; }
.foot-h { font-weight: 700; }

dialog#cart { width: min(480px, 100vw); max-height: 100vh; height: 100vh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
dialog#cart::backdrop { background: rgba(0,0,0,0.5); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
#cart-body { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 700; }
.line-note { font-size: 13px; color: var(--ink-soft); }
.line-end { text-align: right; white-space: nowrap; }
.rm { background: none; border: 0; color: var(--brand); text-decoration: underline; font: 14px var(--font-body); cursor: pointer; min-height: 32px; padding: 4px 0; }
.fulfil { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.fulfil legend { font-weight: 700; padding: 0 6px; }
.fulfil label { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.progress { font-size: 15px; padding: 10px 14px; border-radius: 10px; background: var(--strip); }
.totals { display: flex; flex-direction: column; gap: 4px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 700 22px var(--font-display); margin-top: 6px; }
.err { color: #9B1C1C; font-weight: 700; }
.empty { color: var(--ink-soft); }
