/* ---------- Brand colors & type (change these to re-theme the whole site) ---------- */
:root {
  --bg: #FAF6F0;          /* warm ivory */
  --surface: #FFFFFF;
  --ink: #231A17;
  --muted: #74675F;
  --line: #E9E0D5;
  --accent: #7A1F3D;      /* deep rani / wine */
  --accent-ink: #FFFFFF;
  --accent-soft: #F4E4E8;
  --gold: #C98A1B;        /* marigold */
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 6vw, 38px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
section { padding: 56px var(--gutter); max-width: 1180px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #64182F; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.announce { background: var(--accent); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 8px var(--gutter); letter-spacing: .02em; }
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--ink); margin-right: auto; }
.wordmark .mark { width: 24px; height: 24px; color: var(--accent); }
.wordmark.sm { font-size: 22px; justify-content: center; margin: 0 0 6px; }
.nav-link { text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover { color: var(--accent); }
.bag-btn { position: relative; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.bag-count { position: absolute; top: 3px; right: 1px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 759px) { .hide-sm { display: none; } }
@media (min-width: 760px) {
  .header-in { justify-content: center; }
  .wordmark { margin: 0 auto; order: 0; }
  .header-in > .nav-link:nth-child(1) { order: -2; } .header-in > .nav-link:nth-child(2) { order: -1; }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 32px; padding-top: 40px; }
.hero h1 { font-size: clamp(40px, 11vw, 72px); }
.hero h1 em { color: var(--accent); font-style: italic; }
.lede { font-size: 17px; color: var(--muted); max-width: 34ch; margin: 0 0 26px; }
.hero-imgs { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: center; }
.hero-imgs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: var(--radius); }
.hero-imgs img:nth-child(2) { aspect-ratio: 3/4.4; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; align-items: center; padding-top: 64px; } }

.perks { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; }
.perks strong { font-size: 13px; }
.perks span { font-size: 12px; color: var(--muted); }

/* ---------- Shop ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 4px calc(-1 * var(--gutter)) 20px; padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 13px var(--sans); cursor: pointer; }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.card-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #EFE7DC; aspect-ratio: 3/4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; }
.badge.festive { background: var(--gold); color: #fff; }
.card h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 10px 0 2px; line-height: 1.3; }
.card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.card .price { color: var(--ink); font-weight: 700; }

/* ---------- About / how / faq / contact ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; max-height: 520px; }
.about p { max-width: 52ch; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .how ol { grid-template-columns: repeat(3, 1fr); } }
.how li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.how p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.contact { text-align: center; max-width: 640px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.footer { text-align: center; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; font-size: 14px; }

/* ---------- Sheets (dialogs) ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--bg); color: var(--ink); width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0; border-radius: 22px 22px 0 0; overflow: auto; overscroll-behavior: contain; }
dialog.sheet[open] { animation: up .28s cubic-bezier(.2,.8,.2,1); }
dialog::backdrop { background: rgb(20 12 10 / .5); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  dialog.sheet { max-width: 920px; margin: auto; border-radius: 22px; max-height: 88vh; }
  dialog.small-sheet { max-width: 520px; }
  dialog.drawer { max-width: 440px; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0; }
  dialog.drawer[open] { animation: side .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes side { from { transform: translateX(40px); opacity: 0; } }
}
.close { position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--surface); box-shadow: 0 2px 10px rgb(0 0 0 / .12); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.close.static { position: static; float: none; margin: 0; box-shadow: none; background: transparent; }
.pad { padding: 28px var(--gutter) 32px; }

.product { display: grid; }
@media (min-width: 760px) { .product { grid-template-columns: 1.05fr 1fr; } }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #EFE7DC; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; scroll-snap-align: start; aspect-ratio: 3/4; object-fit: contain; }
.gallery img:first-child { object-fit: cover; object-position: top; }
.dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
.pinfo { padding: 22px var(--gutter) 28px; }
@media (min-width: 760px) { .pinfo { padding: 36px 32px; } }
.pinfo h2 { font-size: 28px; margin-bottom: 6px; }
.pinfo .price { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.opt-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.opt-label a { font-weight: 600; color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 52px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 600 14px var(--sans); cursor: pointer; color: var(--ink); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:disabled { color: #BBB; text-decoration: line-through; cursor: not-allowed; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li span:first-child { color: var(--muted); }
.add-row { margin-top: 22px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(6px + env(safe-area-inset-bottom)); }

/* Bag */
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.drawer-head h2 { margin: 0; font-size: 24px; }
.bag-items { list-style: none; margin: 0; padding: 0 var(--gutter); }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-item img { width: 72px; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 8px; }
.bag-item h3 { font: 600 14px var(--sans); margin: 0 0 2px; }
.bag-item .muted { font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; background: var(--surface); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }
.remove { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.bag-foot { padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.fulfil { display: grid; gap: 8px; margin: 4px 0 16px; }
.fulfil label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; }
.fulfil label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fulfil input { accent-color: var(--accent); margin-top: 3px; }
.fulfil strong { display: block; font-size: 14px; }
.fulfil small { color: var(--muted); }
.totals { font-size: 14px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.progress { font-size: 13px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.empty { text-align: center; padding: 56px var(--gutter); }

.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.size-table th, .size-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.size-table th { font-size: 12px; color: var(--muted); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 759px) { .hero-imgs img, .hero-imgs img:nth-child(2) { aspect-ratio: 3/3.6; } }
