:root {
  --cream: #f6eee5;
  --paper: #fffaf5;
  --brown: #2b160d;
  --cocoa: #5b2d18;
  --caramel: #c27a31;
  --gold: #e5ad65;
  --muted: #78665b;
  --line: rgba(43, 22, 13, 0.14);
  --radius: 24px;
  --shadow: 0 20px 60px rgba(43, 22, 13, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--brown); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.advance-notice { padding: 10px 18px; color: white; background: var(--caramel); text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .025em; }

.site-header {
  position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 clamp(20px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; width: max-content; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.wordmark strong { font: italic 700 1.85rem/1 "Playfair Display", serif; text-transform: none; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 32px; font-size: .87rem; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.header-order { justify-self: end; padding: 11px 18px; border-radius: 999px; color: white; background: var(--brown); text-decoration: none; font-size: .85rem; font-weight: 700; }

.hero { position: relative; margin: 18px; overflow: hidden; border-radius: clamp(20px, 3vw, 42px); background: #e8d5c2; }
.hero img { width: 100%; height: auto; }
.hero-cta { position: absolute; left: 6.2%; bottom: 20%; display: flex; align-items: center; gap: 18px; padding: 15px 22px; border-radius: 999px; background: var(--brown); color: white; text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.hero-cta span { font-size: 1.25rem; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.intro { padding-block: clamp(76px, 10vw, 140px); }
.eyebrow { margin: 0 0 18px; color: var(--caramel); font-size: .73rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.section-heading h1, .builder h2, .promise h2, .dialog-card h2 { margin: 0; font: 700 clamp(2.4rem, 5vw, 5rem)/.95 "Playfair Display", serif; letter-spacing: -.05em; }
.section-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 22px; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: white; border: 1px solid rgba(43,22,13,.08); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.product-card:hover img { transform: scale(1.035); }
.product-meta { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding: 15px 3px 0; }
.product-meta h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.product-price { flex: none; color: var(--muted); font-weight: 600; }
.quantity-control { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; border-radius: 999px; background: rgba(255,250,245,.96); box-shadow: 0 7px 24px rgba(43,22,13,.16); overflow: hidden; }
.quantity-control button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--brown); font-size: 1.25rem; cursor: pointer; }
.quantity-control output { min-width: 27px; text-align: center; font-weight: 700; }
.quantity-control.is-empty .minus, .quantity-control.is-empty output { display: none; }
.quantity-control.is-empty .plus { width: auto; padding-inline: 16px; font-size: .79rem; font-weight: 700; }
.quantity-control.is-empty .plus::before { content: "Add  "; }

.builder { padding-block: clamp(72px, 9vw, 120px); color: white; background: var(--brown); }
.builder-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.eyebrow-light { color: var(--gold); }
.builder-copy > p:not(.eyebrow) { max-width: 520px; color: #d8c9bd; font-size: 1.1rem; line-height: 1.65; }
.builder-copy .builder-notice { margin-top: 22px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; color: white; background: rgba(229,173,101,.12); border: 1px solid rgba(229,173,101,.3); border-radius: 14px; font-size: .85rem; line-height: 1.45; }
.builder-notice span { flex: none; color: var(--gold); font-size: 1.1rem; }
.size-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 34px; }
.size-option { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; color: white; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 17px; cursor: pointer; text-align: left; }
.size-option strong { font-size: 1.4rem; }
.size-option small { color: #d8c9bd; }
.size-option.is-active { color: var(--brown); background: var(--gold); border-color: var(--gold); }
.size-option.is-active small { color: var(--brown); }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; font-size: .86rem; }
#progress-text { font-weight: 700; }
#progress-hint { color: #d8c9bd; }
.progress-track { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .3s ease; }
.box-visual { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 28px; background: #e9dac8; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.box-visual img { width: 100%; height: 100%; object-fit: cover; }

.contact-section { padding-block: clamp(64px, 8vw, 108px); display: grid; grid-template-columns: minmax(170px, 250px) 1fr; gap: clamp(34px, 7vw, 90px); align-items: center; }
.contact-qr { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); text-align: center; }
.contact-qr img { width: 100%; border-radius: 12px; }
.contact-qr figcaption { margin-top: 12px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-copy h2 { margin: 0 0 24px; color: var(--caramel); font: 700 clamp(.78rem, 1.4vw, 1rem)/1.4 "DM Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-action { min-height: 48px; padding: 12px 18px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 700; }
.contact-action span { color: var(--caramel); }
.contact-action-primary { color: white; background: #177e45; border-color: #177e45; }
.contact-action-primary span { color: white; }
.contact-action-email { width: max-content; }

footer { padding: 42px clamp(20px, 5vw, 72px) 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; color: #e9ddd3; background: #1c0e09; }
.wordmark-footer { color: white; }
footer p { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
footer a { color: white; font-weight: 700; text-decoration: none; }
.copyright { grid-column: 1/-1; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); color: #a99588; }

.mobile-cart { display: none; position: fixed; z-index: 25; left: 12px; right: 12px; bottom: 12px; }
.mobile-cart button { width: 100%; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; color: white; background: var(--brown); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; box-shadow: 0 14px 40px rgba(43,22,13,.3); text-align: left; }
.mobile-cart span:first-child { display: grid; }
.mobile-cart small { color: #d8c9bd; }
#mobile-action { color: var(--gold); font-weight: 700; }

.order-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; color: var(--brown); background: var(--paper); box-shadow: var(--shadow); }
.order-dialog::backdrop { background: rgba(27,13,8,.66); backdrop-filter: blur(5px); }
.dialog-card { position: relative; padding: clamp(24px, 5vw, 42px); }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cream); font-size: 1.5rem; cursor: pointer; }
.dialog-card h2 { font-size: 3.2rem; margin-bottom: 24px; }
.order-summary { display: grid; gap: 9px; padding-block: 20px; border-block: 1px solid var(--line); }
.summary-line, .order-total { display: flex; justify-content: space-between; gap: 20px; }
.order-total { padding-block: 18px; font-size: 1.1rem; }
.dialog-card label { display: grid; gap: 7px; margin-top: 15px; font-size: .82rem; font-weight: 700; }
.dialog-card label span { color: var(--muted); font-weight: 400; }
.dialog-card .field-help { color: var(--muted); font-size: .72rem; font-weight: 500; line-height: 1.4; }
.dialog-card input, .dialog-card textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--brown); outline: none; }
.dialog-card input:focus, .dialog-card textarea:focus { border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(194,122,49,.14); }
.place-order { width: 100%; margin-top: 22px; padding: 15px; color: white; background: #177e45; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; }
.confirmation-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .75rem; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; padding: 12px 18px; border-radius: 99px; color: white; background: var(--brown); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .site-header { height: 65px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { margin: 10px; border-radius: 20px; }
  .hero-cta { left: 6%; bottom: 18%; padding: 10px 14px; font-size: .72rem; white-space: nowrap; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .product-image-wrap { border-radius: 17px; }
  .product-meta { display: block; padding-top: 11px; }
  .product-meta h3 { font-size: .9rem; }
  .product-price { display: block; margin-top: 4px; font-size: .84rem; }
  .quantity-control { right: 8px; bottom: 8px; }
  .quantity-control button { width: 36px; height: 36px; }
  .builder-shell { grid-template-columns: 1fr; }
  .box-visual { grid-row: 1; }
  .contact-section { grid-template-columns: 140px 1fr; gap: 24px; }
  footer { grid-template-columns: 1fr; text-align: center; padding-bottom: 100px; }
  .wordmark-footer { margin-inline: auto; }
  .copyright { grid-column: auto; }
  .mobile-cart:not([hidden]) { display: block; }
}

@media (max-width: 480px) {
  .header-order { padding: 10px 14px; }
  .wordmark span { display: none; }
  .hero img { min-height: 55vw; object-fit: cover; }
  .size-option { padding: 15px 13px; display: grid; gap: 3px; }
  .section-shell { width: min(100% - 28px, 1180px); }
  .contact-section { grid-template-columns: 112px 1fr; align-items: start; }
  .contact-qr { padding: 10px; border-radius: 17px; }
  .contact-qr figcaption { font-size: .58rem; }
  .contact-section { padding-block: 42px; gap: 20px; }
  .contact-copy h2 { margin-bottom: 14px; font-size: .72rem; }
  .contact-actions { display: grid; }
  .contact-action { min-height: 43px; padding: 10px 14px; font-size: .78rem; }
  .contact-action-email { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
