:root {
  --paper: #f9f4e9;
  --ink: #2f241b;
  --muted: #6c5948;
  --brick: #8e3824;
  --line: #dccdbb;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
:focus-visible { outline: 3px solid #317777; outline-offset: 4px; }
.shipping-bar { padding: .45rem 1rem; text-align: center; background: #2f241b; color: #ffe29b; font-size: .875rem; font-weight: 600; }
.header { padding: .8rem clamp(1rem, 4.8vw, 5rem); min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.header nav { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
.header a, footer a { text-decoration: none; }
.header nav a, .checkout-header > a:first-child, footer > a:last-child { font-size: .92rem; }
.header a:hover, footer a:hover { color: var(--brick); }
.logo { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; color: var(--brick); font: 700 clamp(1.2rem, 2.25vw, 1.9rem)/1 var(--serif); white-space: nowrap; letter-spacing: -.045em; }
.logo em { margin-left: .19em; }
.brand-sun { width: 1.55em; height: 1.55em; border-radius: 100%; mix-blend-mode: multiply; }
.bag { justify-self: end; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink); padding: .5rem .62rem .5rem .85rem; white-space: nowrap; font-size: .9rem; }
.bag span { display: inline-grid; min-width: 1.6rem; height: 1.6rem; padding: 0 .2rem; margin-left: .2rem; place-items: center; border-radius: 100%; background: var(--brick); color: white; }
.hero { margin: 0 clamp(.65rem, 2.4vw, 2.3rem); min-height: clamp(460px, 49vw, 670px); position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; display: flex; align-items: center; background: #73331e; color: #fff9eb; }
.hero img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; inset: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #321306bc, #361a1450 50%, transparent 76%); z-index: -1; }
.hero-inner { padding: 2.2rem clamp(1.5rem, 6.9vw, 7rem); }
.eyebrow { letter-spacing: .15em; font-weight: 700; font-size: .875rem; }
.hero h1, .checkout h1 { font: 600 clamp(3.55rem, 8.5vw, 8.7rem)/.93 var(--serif); letter-spacing: -.065em; margin: .29em 0 .28em; }
.hero h1 em { color: #ffdcaa; }
.hero p:not(.eyebrow) { font-size: clamp(1rem, 1.45vw, 1.2rem); margin: 0 0 1.5rem; }
.button { display: inline-flex; justify-content: center; text-align: center; align-items: center; border: 1px solid transparent; border-radius: 3px; padding: .73rem 1.2rem; min-height: 44px; background: var(--brick); color: white; font-weight: 700; text-decoration: none; }
.button:not(:disabled):hover { background: #672c1e; }
.button.light { background: #fff2dc; color: #50271e; }
.button.light:hover { background: #ffdfb5; }
.collection { padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5.5rem) 3.75rem; max-width: 1640px; margin: auto; scroll-margin: 1rem; }
.collection-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.35rem; }
h2, legend { font: 600 clamp(1.55rem, 3vw, 2.6rem)/1.13 var(--serif); letter-spacing: -.035em; margin: 0; }
.collection h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { border: 1px solid var(--line); border-radius: 100px; background: transparent; padding: .45rem .8rem; color: var(--ink); font-size: .875rem; }
.filters button[aria-pressed='true'] { background: #2f241b; border-color: #2f241b; color: #ffe29b; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(.65rem, 1.65vw, 1.65rem); }
.product img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 3px; background: #e2c9ae; }
.product h3 { font-size: clamp(.98rem, 1.5vw, 1.15rem); line-height: 1.25; margin: .8rem 0 .25rem; }
.product p { margin: 0 0 .55rem; color: var(--muted); }
.product p.price { font-weight: 700; color: var(--brick); }
.product form { display: flex; gap: .35rem; flex-wrap: wrap; }
.product select { min-width: 5.9rem; }
.product button { min-width: 5rem; flex: 1; padding-inline: .38rem; }
.photo-note { color: var(--muted); font-size: .875rem; }
footer { min-height: 100px; background: #eee4d2; border-top: 1px solid var(--line); padding: 1.4rem clamp(1rem, 5vw, 5rem); display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bag-dialog { position: fixed; background: var(--paper); color: var(--ink); border: 0; padding: 1.4rem; inset: 0 0 0 auto; margin: 0; width: min(100%, 460px); max-width: 100%; height: 100%; max-height: 100%; }
.bag-dialog::backdrop { background: #26181187; }
.bag-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.close { border: 1px solid var(--line); border-radius: 100%; background: transparent; color: var(--ink); width: 44px; height: 44px; font-size: 1.5rem; }
.item-list { display: grid; }
.line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; border-radius: 3px; }
.line p, .line strong { margin: 0; }
.line p { font-size: .875rem; color: var(--muted); }
.line .quantity { display: flex; align-items: center; gap: .28rem; margin-top: .4rem; }
.quantity button { border: 1px solid var(--line); background: transparent; border-radius: 3px; min-width: 2.05rem; min-height: 2.05rem; color: var(--ink); }
.summary { margin: 1.2rem 0; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; margin: .45rem 0; }
.summary div:last-child { border-top: 1px solid var(--line); padding-top: .65rem; margin-top: .65rem; font-weight: 700; }
.summary .free { color: #4b5235; font-weight: 700; }
.bag-dialog a.button { width: 100%; }
.checkout { padding: 2rem clamp(1rem, 5vw, 5rem) 4rem; min-height: 64vh; max-width: 1300px; margin: 0 auto; }
.checkout h1 { font-size: clamp(2.65rem, 6.4vw, 5.5rem); margin: .2em 0 .55em; }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: clamp(1rem, 4vw, 3.5rem); }
.order-summary, fieldset, .result { margin: 0 0 1rem; padding: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: 5px; }
fieldset { min-width: 0; padding-top: .85rem; }
legend { padding: 0 .35rem; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.fields .full { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]), select { min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: #fffbf4; color: var(--ink); padding: .48rem; }
select { appearance: none; padding-right: 1.35rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right .8rem center, right .55rem center; background-size: .25rem .25rem; background-repeat: no-repeat; }
label input:not([type=checkbox]), label select { width: 100%; margin-top: .25rem; }
.checkbox { display: flex; gap: .45rem; align-items: center; margin: .75rem 0; }
.muted { color: var(--muted); margin: 0 0 .75rem; }
.checkout-message:empty { display: none; }
.checkout-message { color: var(--brick); margin: .5rem 0; }
.pay { width: 100%; }
.checkout-steps, .footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; }
.checkout-steps { margin: 0 0 1.25rem; font-weight: 700; }
.checkout-steps [aria-current='step'] { color: var(--brick); border-bottom: 2px solid currentColor; }
.field-heading { margin: 1rem 0 .6rem; }
.review { border: 1px solid var(--line); border-radius: 4px; padding: 1rem; margin: 0 0 1rem; }
.review p { margin: .55rem 0; }
.text-button { background: none; color: var(--brick); border: 0; padding: 0; text-decoration: underline; }
.installments { margin: 0 0 1rem; }
.merchant-info { width: 100%; color: var(--muted); font-size: .875rem; }
.merchant-info p { margin: .2rem 0; overflow-wrap: anywhere; }
.policy { max-width: 900px; }
.policy > section, .policy article > section { margin: 2rem 0; scroll-margin: 1rem; }
.policy details { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.policy summary { cursor: pointer; font-weight: 700; }
.policy textarea { width: 100%; min-height: 95px; font: inherit; padding: .5rem; margin-top: .25rem; border: 1px solid var(--line); background: #fffbf4; border-radius: 3px; }
.policy form .button { margin-top: .75rem; }
.receipt { white-space: pre-line; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header nav { gap: .35rem .7rem; }
}
@media (max-width: 640px) {
  .header { min-height: 68px; grid-template-columns: 1fr auto; gap: .55rem; }
  .header nav { display: none; }
  .header .logo { justify-self: start; }
  .checkout-header .logo { justify-self: end; }
  .hero { min-height: 500px; align-items: end; }
  .hero img { object-position: 68% 40%; }
  .hero::after { background: linear-gradient(0deg, #2d160bea 0%, #34180d8f 49%, transparent 84%); }
  .hero h1 { font-size: clamp(3.15rem, 13vw, 5.25rem); }
  .desktop { display: none; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { grid-row: 1; }
  .product select, .product button { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
