:root {
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #2b1d14;
  --muted: #7a6656;
  --line: #eadfce;
  --saffron: #e07a1f;
  --saffron-dark: #b85d0d;
  --turmeric: #f3b63f;
  --leaf: #3f7d4e;
  --radius: 16px;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--body); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(243,182,63,.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(224,122,31,.18), transparent 45%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--saffron-dark); margin: 0 0 10px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); }
.lede { font-size: 18px; max-width: 560px; color: var(--muted); margin: 14px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }

.notice { margin-top: 20px; background: #fff3df; border: 1px solid var(--turmeric); border-radius: 12px; padding: 12px 16px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-top: 36px; padding-bottom: 60px; }
.section-h { font-size: 26px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Product card */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card.selected { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(224,122,31,.15); }
.photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f8d58c, #e9964a); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; color: rgba(255,255,255,.85); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; color: var(--leaf); background: #eaf3ec; border-radius: 999px; padding: 2px 9px; }
.desc { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.price { font-weight: 600; font-size: 18px; }
.price small { font-weight: 500; color: var(--muted); font-size: 14px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper button:hover:not(:disabled) { background: #fff3df; }
.stepper button:disabled { color: #ccc; cursor: default; }
.stepper output { min-width: 74px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-total { font-weight: 600; color: var(--saffron-dark); font-variant-numeric: tabular-nums; }
.min { font-size: 12.5px; color: var(--muted); }

/* Order panel */
.order { position: sticky; top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.order h2 { font-size: 22px; margin-bottom: 12px; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; font-size: 15px; }
.summary li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary li.muted { border: 0; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 18px; }
form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
form label .req { color: #c2410c; }
form label.check a { color: inherit; text-decoration: underline; }
.legal { text-align: left; line-height: 1.6; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal ul { padding-left: 20px; margin: 6px 0 10px; }
.legal li { margin-bottom: 4px; }
form label .opt { font-weight: 400; color: var(--muted); }
form input[aria-invalid="true"] { border-color: #c2410c; }
form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.45; cursor: pointer; }
form label.check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: #c2410c; }
form input, form select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fffdf9; color: var(--ink); }
form input:focus, form select:focus { outline: 2px solid var(--turmeric); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; }
.center { text-align: center; margin-top: 10px; }
.error { background: #fdecea; color: #a12a1a; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
#pay { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--saffron); color: #fff; font: 600 16px var(--body); cursor: pointer; }
#pay:hover:not(:disabled) { background: var(--saffron-dark); }
#pay:disabled { background: #e8cdb4; cursor: not-allowed; }

.foot { padding-bottom: 90px; color: var(--muted); font-size: 14px; }

.mobile-bar { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .order { position: static; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 16 / 9; }
  .hero { padding: 40px 0 28px; }
  .mobile-bar:not([hidden]) {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
    background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .mobile-bar a { color: var(--ink); background: var(--turmeric); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
}

/* Confirmation page */
.confirm { max-width: 620px; margin: 40px auto 60px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.confirm h1 { font-size: 32px; margin-bottom: 8px; }
.address { background: #fff3df; border: 1px solid var(--turmeric); border-radius: 12px; padding: 16px; margin: 18px 0; }
.address strong { display: block; font-size: 18px; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
