:root {
  --sand-50: #FDFCF7; --sand-100: #FAF7F0; --sand-200: #F4EFE6; --sand-300: #E6DFD3; --sand-400: #DCCEBA;
  --sand-600: #8C7A62; --sand-800: #554836; --sand-900: #24221E;
  --sage-100: #E6EBE6; --sage-200: #CCD8CD; --sage-700: #3D5442; --sage-800: #2A3C2F; --sage-900: #1E2820;
  --ochre-100: #FBF5E8; --ochre-400: #D8B878; --ochre-600: #AA823A;
  --danger: #9B2C2C; --danger-bg: #FBEAEA;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand-100); color: var(--sand-900); font-family: var(--sans); line-height: 1.55; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
main.wrap { padding-top: 22px; padding-bottom: 48px; min-height: 70vh; outline: none; }
.muted { color: var(--sand-600); }
.small { font-size: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sage-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 2px; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,247,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-300); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { text-decoration: none; font-family: var(--serif); font-size: 26px; letter-spacing: .16em; font-weight: 600; display: flex; flex-direction: column; line-height: 1; }
.logo span { font-family: var(--sans); font-size: 8px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--sand-600); margin-top: 4px; }
.bag-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; }
.bag-link:hover { background: var(--sand-200); }
.bag-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--sage-800); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--sage-800); background: var(--sage-800); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s; min-height: 44px; }
.btn:hover:not(:disabled) { background: var(--sage-900); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--sage-800); }
.btn.ghost:hover:not(:disabled) { background: var(--sage-100); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 16px; min-height: 38px; font-size: 13px; }

/* hero */
.hero { padding: 26px 0 8px; max-width: 640px; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre-600); font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 8vw, 58px); }
.hero p.lead { margin-top: 14px; color: var(--sand-800); font-size: 16px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; padding: 0; list-style: none; }
.perks li { padding: 6px 14px; border: 1px solid var(--sand-300); border-radius: 999px; font-size: 12px; background: var(--sand-50); color: var(--sand-800); }

/* shop */
.section-title { font-size: 30px; margin: 34px 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--sand-400); background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--sage-800); border-color: var(--sage-800); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-link { text-decoration: none; display: block; }
.card-body { padding: 12px 14px 4px; }
.card h3 { font-size: 20px; }
.aspect { font-size: 11px; color: var(--sand-600); margin-top: 4px; letter-spacing: .04em; }
.card-foot { margin-top: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.price { font-weight: 600; font-size: 15px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--ochre-100); color: var(--ochre-600); border: 1px solid var(--ochre-400); }
.badge.out { background: var(--sand-200); color: var(--sand-600); border-color: var(--sand-300); }

/* tiles (placeholder artwork until real photos are added) */
.tile { aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .mark { font-family: var(--serif); font-size: 54px; color: rgba(36,34,30,.42); letter-spacing: .05em; }
.tile-0 { background: linear-gradient(160deg, #E6EBE6, #CCD8CD); }
.tile-1 { background: linear-gradient(160deg, #F4EFE6, #DCCEBA); }
.tile-2 { background: linear-gradient(160deg, #FBF5E8, #E9D6AB); }
.tile-3 { background: linear-gradient(160deg, #EDE8E0, #D3C9BA); }
.tile-4 { background: linear-gradient(160deg, #E3E9E4, #BBCBBE); }

/* product page */
.back { display: inline-block; margin-bottom: 14px; font-size: 13px; color: var(--sand-600); text-decoration: none; }
.back:hover { color: var(--sage-800); }
.product { display: grid; gap: 22px; }
.product .tile { border-radius: var(--radius); border: 1px solid var(--sand-300); }
.product h1 { font-size: 38px; }
.product .price { font-size: 20px; margin: 10px 0; display: block; }
.product .desc { color: var(--sand-800); margin: 12px 0 18px; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.details { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--sand-300); }
.details li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sand-300); font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--sand-400); border-radius: 999px; background: var(--sand-50); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; border-radius: 50%; }
.stepper button:hover:not(:disabled) { background: var(--sand-200); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }

/* cart + checkout */
.page-title { font-size: 38px; margin-bottom: 18px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand-300); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--sand-300); }
.line .tile { aspect-ratio: 1; border-radius: 10px; }
.line .tile .mark { font-size: 24px; }
.line h3 { font-size: 19px; }
.line .controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--sand-600); text-decoration: underline; cursor: pointer; font-size: 12px; min-height: 32px; }
.totals { margin: 20px 0; display: grid; gap: 8px; max-width: 420px; margin-left: auto; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; }
.totals .grand { font-size: 18px; font-weight: 600; border-top: 1px solid var(--sand-300); padding-top: 10px; margin-top: 4px; }
.cta-row { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 0; display: grid; gap: 16px; justify-items: center; }

.checkout { display: grid; gap: 26px; }
form .field { display: grid; gap: 6px; margin-bottom: 14px; }
label, legend { font-size: 13px; font-weight: 600; }
input[type="text"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sand-400); background: var(--sand-50); min-height: 46px; }
textarea { min-height: 84px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.err { color: var(--danger); font-size: 12px; min-height: 0; }
.form-error { background: var(--danger-bg); border: 1px solid #E5B8B8; color: var(--danger); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--sand-400); border-radius: 12px; background: var(--sand-50); cursor: pointer; font-weight: 400; }
.pay-opt input { margin-top: 4px; accent-color: var(--sage-800); }
.pay-opt strong { display: block; font-size: 14px; }
.pay-opt span { font-size: 12px; color: var(--sand-600); }
.pay-opt.selected { border-color: var(--sage-800); background: var(--sage-100); }
.pay-opt.disabled { opacity: .55; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 18px; align-self: start; }
.summary h2 { font-size: 24px; margin-bottom: 10px; }
.summary ul { list-style: none; margin: 0 0 10px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }

/* confirmation */
.confirm { max-width: 560px; display: grid; gap: 18px; }
.confirm .ok { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-100); color: var(--sage-800); display: grid; place-items: center; }
.panel { background: var(--sand-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 16px 18px; }
.panel h2 { font-size: 22px; margin-bottom: 8px; }
.panel pre { margin: 8px 0 0; white-space: pre-wrap; font-family: var(--sans); font-size: 14px; background: var(--sand-200); border-radius: 10px; padding: 12px; }
.panel-action { margin-top: 12px; }
.page-title.tight { margin-bottom: 6px; }
.line.plain { grid-template-columns: 1fr auto; }
.order-id { font-family: var(--serif); font-size: 30px; letter-spacing: .04em; }

/* footer + toast */
.site-footer { border-top: 1px solid var(--sand-300); padding: 28px 0 36px; background: var(--sand-200); }
.site-footer .logo-small { font-family: var(--serif); font-size: 20px; letter-spacing: .14em; margin-bottom: 6px; }
.site-footer .logo-small span { font-family: var(--sans); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--sand-600); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--sage-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 60px 0; text-align: center; color: var(--sand-600); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card h3 { font-size: 22px; }
  .card-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .product { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .checkout { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .summary { position: sticky; top: 84px; }
  .line { grid-template-columns: 84px 1fr auto; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
