:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1b1916;
  --ink-2: #4a4540;
  --muted: #7a726a;
  --line: #d9d0c0;
  --accent: #ff5a1f;
  --accent-ink: #fff;
  --accent-soft: #ffe1d3;
  --teal: #0f6b62;
  --card: #fbf8f2;
  --radius: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --layers: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 4px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141210; --paper-2: #1c1916; --ink: #f2ece2; --ink-2: #cfc6b8;
    --muted: #958b7f; --line: #2f2a25; --card: #1b1815; --accent-soft: #3a1f13;
    --layers: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px);
  }
}
:root[data-theme="dark"] {
  --paper: #141210; --paper-2: #1c1916; --ink: #f2ece2; --ink-2: #cfc6b8;
  --muted: #958b7f; --line: #2f2a25; --card: #1b1815; --accent-soft: #3a1f13;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }
.eyebrow { color: var(--accent); text-transform: lowercase; margin: 0 0 .9rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; font-size: .98rem; font-family: var(--body);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 -2px #b83a0c; }
.btn-accent:hover { box-shadow: 0 8px 0 -2px #b83a0c; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* announce + nav */
.announce {
  background: var(--ink); color: var(--paper); font: 500 .78rem var(--mono);
  display: flex; gap: .8rem; justify-content: center; padding: .55rem 1rem; flex-wrap: wrap; text-align: center;
}
.announce .dot { color: var(--accent); }
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.brand-text b { color: var(--accent); font-weight: 800; padding: 0 .1rem; }
.brand-mark { width: 30px; height: 30px; display: block; flex: none; color: var(--ink); }
.brand-light .brand-mark { color: var(--paper); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(16px, 4vw, 48px) 3rem; max-width: 1320px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 72%, var(--accent-soft) 72% 94%, transparent 94%);
}
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin: 1.5rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stack {
  position: relative; aspect-ratio: 1 / 1.05; cursor: pointer; outline: none;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
}
.hero-stack:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 20px; }
.snap {
  position: absolute; left: 50%; top: 50%; width: min(64%, 360px); margin: 0;
  background: #fffdf8; color: #1b1916; padding: 14px 14px 0; border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 24px 50px -20px rgba(0,0,0,.45);
  transform: translate(-50%, -50%) translateY(calc(var(--i, 0) * 10px)) rotate(var(--r)) scale(calc(1 - var(--i, 0) * .04));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s;
}
.snap.out { transform: translate(40%, -60%) rotate(18deg) scale(.95); opacity: 0; }
.snap-media { aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; overflow: hidden; background: var(--tint); }
.snap-media img { width: 100%; height: 100%; object-fit: cover; }
.snap-media .glyph { font-size: clamp(4rem, 9vw, 7rem); filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.snap figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .85rem .2rem 1rem; }
.snap figcaption b { font: 600 1.05rem var(--display); }
.snap figcaption span { font: .78rem var(--mono); color: #7a726a; white-space: nowrap; }
.snap:not(.top) figcaption { visibility: hidden; }
.stack-sticker {
  position: absolute; top: 6%; right: 6%; z-index: 20; width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.2;
  transform: rotate(12deg); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); pointer-events: none;
}
.stack-sticker b { font: 800 1.15rem var(--display); }
.stack-hint { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); color: var(--muted); pointer-events: none; }

/* ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--accent); color: #fff; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font: 800 1.25rem var(--display); padding: .9rem 1.4rem; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 2.8rem; opacity: .7; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(16px, 4vw, 48px) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p.muted { margin: .9rem 0 0; font-size: 1.05rem; }

/* gallery */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); padding: .5rem 1rem;
  border-radius: 999px; cursor: pointer; font: 500 .88rem var(--body); transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, opacity .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.3); }
.card.hide { display: none; }
.card-media {
  aspect-ratio: 4 / 3.4; position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--layers), var(--tint, var(--paper-2));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .glyph { font-size: 4.2rem; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transition: transform .3s; }
.card:hover .glyph { transform: scale(1.1) rotate(-4deg); }
.card-tag { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); padding: .2rem .55rem; border-radius: 6px; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .7rem; }
.price { font-weight: 600; }
.price small { color: var(--muted); font-weight: 400; }
.card-foot a { font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; }

/* option buttons (product view) */
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; flex-direction: column; padding: .65rem .9rem; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; font-size: .92rem; line-height: 1.25; background: var(--paper); transition: all .15s;
}
.opt span small { color: var(--muted); font-family: var(--mono); font-size: .72rem; margin-top: .15rem; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.qty button { width: 44px; border: 0; background: var(--paper); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 70px; text-align: center; border: 0; font: 600 1.05rem var(--body); background: var(--card); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.check { display: flex; gap: .5rem; align-items: center; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.receipt-note { color: #7a726a; min-height: 1.2em; margin: .4rem 0 1.1rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::after {
  content: "→"; position: absolute; right: -1rem; top: 1.6rem; z-index: 2; width: 1.6rem; height: 1.6rem;
  background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
}
.steps li:last-child::after { display: none; }
.step-time { float: right; font-size: .72rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: .15rem .55rem; }
.step-n { display: inline-block; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: .1rem .45rem; margin-bottom: 1rem; }
.steps p { color: var(--ink-2); font-size: .94rem; margin: .6rem 0 0; }

/* occasions */
.occ-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.occ {
  text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: .25rem; transition: all .2s;
}
.occ:hover { border-color: var(--accent); transform: translateY(-3px); }
.occ-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; }
.occ small { color: var(--muted); font-size: .82rem; }

/* bulk */
.bulk { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.bulk.bulk-solo { grid-template-columns: 1fr; max-width: 46rem; }
.bulk-copy > p { color: var(--ink-2); font-size: 1.05rem; margin: 1.2rem 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.tier b { font: 800 2.6rem/1 var(--display); color: var(--accent); }
.tier b small { font-size: .45em; margin-left: .15rem; }
.tier span { color: var(--muted); font-size: .92rem; }
.tier-ask { background: var(--ink); border-color: var(--ink); }
.tier-ask b { color: var(--paper); }

/* promise */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.promise-card { padding: 1.8rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.promise-card p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin: .7rem 0 0; font-size: .95rem; }
.promise-icon { color: var(--accent); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--paper) 12%, transparent); font-size: 1.5rem; margin-bottom: 1.2rem; }

/* order form */
.order-form {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2.2rem);
}
.order-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.order-form .full { grid-column: 1 / -1; }
.order-form input, .order-form select, .order-form textarea {
  font: 1rem var(--body); padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--accent); }
.form-alt { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }
.form-alt a { color: var(--accent); cursor: pointer; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font: 600 1.15rem var(--display); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.1rem; font: 400 1.6rem var(--body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.3rem; color: var(--ink-2); max-width: 44rem; }

/* footer */
.footer { margin-top: clamp(4rem, 8vw, 7rem); background: #1b1916; color: #f4efe6; padding: 3.5rem clamp(16px, 4vw, 48px) 1.5rem; }
.footer-top { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--accent); text-transform: uppercase; margin-bottom: .7rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.muted-light { color: #a9a094; }
.credits { max-width: 1320px; margin: 2rem auto 0; font-size: .75rem; line-height: 1.6; color: #8a8278; }
.credits a { text-decoration: underline; }
.footer-bottom { max-width: 1320px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid #333; display: flex; justify-content: space-between; color: #8a8278; flex-wrap: wrap; gap: .5rem; }

/* WA float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .occ-row { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .3s, visibility .3s; margin: 0;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; }
  .hero-stack { aspect-ratio: 1 / 1; max-height: 520px; }
  .snap { width: min(68%, 300px); }
  .stack-sticker { width: 76px; height: 76px; }
  .bulk, .promise { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .occ-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr; }
  .announce span:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- clickable product cards ---------- */
button.card-media { border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.card-link { all: unset; cursor: pointer; }
.card-link:hover { color: var(--accent); }
.card-link:focus-visible, .card-cta:focus-visible, button.card-media:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-cta { background: none; border: 0; padding: 0; cursor: pointer; font: 600 .85rem var(--body); color: var(--accent); }
.chip-n { font: 500 .72rem var(--mono); opacity: .6; margin-left: .2rem; }
.hero-solo { grid-template-columns: 1fr; }

/* ---------- gallery pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-top: 2rem; }
.pg {
  min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer;
}
.pg:hover:not(:disabled) { border-color: var(--ink); }
.pg.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pg:disabled { opacity: .35; cursor: not-allowed; }
.pg-gap { padding: 0 .3rem; color: var(--muted); }
.pg-info { width: 100%; text-align: center; color: var(--muted); margin-top: .4rem; }

/* ---------- product view modal ---------- */
.pmodal {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.pmodal::backdrop { background: rgba(20, 18, 16, .6); backdrop-filter: blur(4px); }
.pm-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pm-gallery { padding: 18px; background: var(--paper-2); }
.pm-main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); }
.pm-main img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.pm-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.pm-thumb.on { border-color: var(--accent); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: .9rem; }
.pm-tag { position: static; align-self: flex-start; background: var(--paper-2); }
.pm-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.pm-from { margin: -.4rem 0 0; color: var(--muted); }
.pm-from b { color: var(--ink); font-size: 1.2rem; }
.pm-desc { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.pm-details p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .95rem; }
.pm-info fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pm-info fieldset[hidden], .pm-info [hidden] { display: none !important; }
.pm-info legend { color: var(--muted); text-transform: uppercase; margin-bottom: .45rem; padding: 0; }
.pm-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.pm-row > * { flex: 1 1 180px; }
.pm-row .qty { margin-bottom: 0; }
.pm-row .check { flex: 1 1 100%; }
.pm-field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.pm-field input, .pm-field textarea {
  font: 1rem var(--body); padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%;
}
.pm-field input:focus, .pm-field textarea:focus { outline: none; border-color: var(--accent); }
.pm-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--line); padding-top: .9rem; margin-top: .2rem; }
.pm-total b { font: 800 2.2rem var(--display); }
.pm-info .receipt-note { margin: -.6rem 0 0; color: var(--muted); }
.pm-note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .pmodal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-info { padding: 20px 16px 28px; }
}

/* estimate note in the product view (was shared with the old estimator) */
.receipt-note { min-height: 1.2em; }

/* ---------- checkout steps (product view) ---------- */
.pm-step { display: flex; flex-direction: column; gap: .9rem; margin: 0; }
.pm-step[hidden] { display: none !important; }
.pm-back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font: 600 .88rem var(--body); cursor: pointer; }
.pm-summary { margin: -.3rem 0 0; color: var(--ink-2); font-size: .95rem; }
.pm-row3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: .8rem; }
.pm-hint { font-size: .78rem; color: var(--muted); font-weight: 400; margin: 0; }
.pm-error { margin: 0; color: #c2410c; font-size: .88rem; min-height: 0; }
.pm-error:empty { display: none; }

.pm-photos { display: flex; gap: .5rem; flex-wrap: wrap; }
.pm-photos:empty { display: none; }
.pm-ph { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); }
.pm-ph img { width: 100%; height: 100%; object-fit: cover; }
.pm-ph button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.pm-photo-add { align-self: flex-start; border: 1.5px dashed var(--line); border-radius: 10px; padding: .55rem .9rem; font-size: .88rem; cursor: pointer; color: var(--ink-2); }
.pm-photo-add:hover { border-color: var(--accent); color: var(--accent); }

.pm-bill { border-top: 1.5px dashed var(--line); padding-top: .8rem; display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; }
.pm-bill div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.pm-bill .disc { color: var(--teal); }
.pm-bill .total { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: .45rem; margin-top: .2rem; }
.pm-bill .now { color: var(--ink); font: 800 1.35rem var(--display); }

.pm-orderno { align-self: flex-start; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: .25rem .7rem; font-size: .8rem; }
.pm-amount { display: flex; flex-direction: column; }
.pm-amount span { font-size: .85rem; color: var(--muted); }
.pm-amount b { font: 800 2.4rem var(--display); line-height: 1.1; }
.pm-amount small { color: var(--muted); font-size: .82rem; }
.pm-pay { display: flex; gap: 1.1rem; align-items: center; margin-top: .4rem; }
.pm-qr { flex: none; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.pm-qr img, .pm-qr canvas { display: block; }
.pm-howto { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-2); display: grid; gap: .35rem; }
.pm-upi-app, .pm-upi-or { display: none; }
.pm-upi-or { margin: .3rem 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.pm-upi-id { margin: 0; font-size: .88rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pm-copy { background: none; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .55rem; font-size: .78rem; cursor: pointer; color: var(--ink); }
.pm-done { align-items: flex-start; }
.pm-done h3 { font-size: 1.6rem; margin: 0; }
.pm-done p { margin: 0; color: var(--ink-2); }
.pm-tick { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* phones: the QR can't be scanned from the same screen, so lead with the UPI app button */
@media (hover: none) and (pointer: coarse) {
  .pm-upi-app { display: flex; justify-content: center; margin-top: .4rem; }
  .pm-upi-or { display: block; }
  .pm-pay { flex-direction: column; align-items: stretch; }
  .pm-qr { align-self: center; }
}
@media (max-width: 760px) {
  .pmodal:is([data-step="checkout"], [data-step="pay"], [data-step="done"]) .pm-gallery { display: none; }
  .pm-row3 { grid-template-columns: 1fr 1fr; }
  .pm-row3 label:first-child { grid-column: 1 / -1; }
  .pm-pay { flex-direction: column; align-items: stretch; }
  .pm-qr { align-self: center; }
}

/* unfinished payment reminder */
.pay-reminder { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.pay-reminder[hidden] { display: none; }
.pay-reminder button { background: none; border: 0; color: inherit; font: 500 .9rem var(--body); cursor: pointer; padding: .75rem .4rem .75rem 1.1rem; text-align: left; }
.pay-reminder b { color: var(--accent); }
.pay-reminder #payReminderX { padding: .75rem 1rem .75rem .5rem; opacity: .7; font-size: 1.1rem; }

/* phones: two products per row */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .card-media { aspect-ratio: 1 / 1; }
  .card-tag { top: 8px; left: 8px; font-size: .62rem; padding: .15rem .4rem; max-width: calc(100% - 16px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card-body { padding: .65rem .7rem .8rem; gap: .2rem; }
  .card-body h3 { font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
  .card-body p { display: none; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: .15rem; padding-top: .45rem; }
  .price { font-size: .95rem; }
  .card-cta { font-size: .8rem; }
}

/* ============ vendor feedback: header, hero, bestsellers, stats, contact ============ */

/* two-line wordmark */
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.0; letter-spacing: -.01em; }
.brand-line2 { font-weight: 600; letter-spacing: .14em; font-size: .62em; text-transform: uppercase; color: var(--ink-2); }
.brand-light .brand-line2 { color: #a9a094; }

/* header tools: search + cart */
.nav { flex-wrap: wrap; row-gap: .6rem; }
.nav-links { gap: 1.25rem; }
.nav-tools { display: flex; align-items: center; gap: .25rem; margin-left: 1rem; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); background: var(--card); color: var(--accent); }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: #fff; font: 600 .66rem/17px var(--mono); text-align: center;
}
.nav-search[hidden] { display: none; }
.nav-search { flex: 1 0 100%; display: flex; gap: .5rem; align-items: center; padding-bottom: .2rem; }
.nav-search input {
  flex: 1; padding: .7rem .95rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font: 400 .95rem var(--body);
}
.nav-search input:focus { outline: none; border-color: var(--accent); }
.nav-search button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; }

/* hero: smaller headline, optional photo beside the text */
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.05; }
.lede { font-size: 1.05rem; margin: 1.2rem 0 1.8rem; }
.hero-visual { position: relative; }
.hero-photo {
  margin: 0; border-radius: 22px; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-visual.has-photo .hero-stack { position: absolute; right: -2%; bottom: -14%; width: 42%; aspect-ratio: 1 / 1.05; background: none; }
.hero-visual.has-photo .snap { width: 100%; }
.hero-visual.has-photo .stack-sticker { top: -10%; left: -16%; right: auto; width: 74px; height: 74px; font-size: .68rem; }
.hero-visual.has-photo .stack-hint { display: none; }

/* stats strip */
.stats { max-width: 1320px; margin: 0 auto; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(16px, 4vw, 48px) 0; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--card); padding: 1.3rem 1.1rem; text-align: center; }
.stat b { display: block; font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 var(--display); color: var(--accent); }
.stat span { display: block; margin-top: .35rem; color: var(--ink-2); font-size: .88rem; }

/* bestsellers: one row, scrolls sideways */
.best-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; max-width: none; }
.best-all { white-space: nowrap; }
.best-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.best-row::-webkit-scrollbar { height: 7px; }
.best-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.best-card { scroll-snap-align: start; }
.best-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
}
.best-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.best-media:hover img { transform: scale(1.05); }
.best-flag {
  position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff;
  border-radius: 99px; padding: .1rem .5rem; font-size: .68rem;
}
.best-card h3 { margin: .7rem 0 .1rem; font-size: 1rem; }
.best-cat { color: var(--muted); margin: 0 0 .3rem; font-size: .72rem; text-transform: uppercase; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-k { color: var(--accent); text-transform: uppercase; font-size: .68rem; }
.contact-card b { font: 600 1.02rem var(--display); word-break: break-word; }
.contact-card small { color: var(--muted); font-size: .82rem; }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { inset: 60px 0 auto 0; }
  .nav-tools { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0; }
  .hero-visual.has-photo .hero-stack { position: static; width: min(62%, 280px); margin: 1.2rem auto 0; }
  .hero-visual.has-photo .stack-sticker { top: 0; left: auto; right: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .best-row { grid-auto-columns: minmax(150px, 60%); gap: .7rem; }
  .best-card h3 { font-size: .9rem; }
}

/* ============ cart ============ */
.pm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pm-actions .btn { width: 100%; }
.pmodal.cartmode .pm-gallery { display: none; }
.pmodal.cartmode .pm-grid { grid-template-columns: 1fr; }

.cartmodal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink); overflow: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.cartmodal::backdrop { background: rgba(20, 18, 16, .6); backdrop-filter: blur(4px); }
.cart-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 18px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.4rem; }
.cart-head .pm-close { position: static; float: none; margin: 0; width: 38px; height: 38px; font-size: 1.4rem; }
.cart-body { padding: 8px 20px; }
.cart-empty { padding: 2rem 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-info b { font: 600 1rem var(--display); }
.cart-info small { color: var(--muted); font-size: .76rem; }
.cart-notes { font-style: italic; }
.cart-qty { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; }
.cart-qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-qty span { min-width: 26px; text-align: center; font-weight: 600; }
.cart-qty .cart-rm { width: auto; padding: 0 .55rem; margin-left: .4rem; font-size: .78rem; color: var(--muted); }
.cart-qty .cart-rm:hover { color: var(--accent); border-color: var(--accent); }
.cart-price { font-weight: 600; white-space: nowrap; }
.cart-foot { position: sticky; bottom: 0; padding: 16px 20px 20px; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.cart-sum { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-2); }
.cart-total { font-size: 1.1rem; color: var(--ink); padding-top: .4rem; border-top: 1px solid var(--line); }
.cart-total b { font-family: var(--display); }
@media (max-width: 480px) {
  .pm-actions { grid-template-columns: 1fr; }
  .cartmodal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
}
.pm-qr img { display: block; width: 188px; height: auto; border-radius: 10px; background: #fff; }

/* 3D preview */
.pm-3d-btn { margin-top: .7rem; width: 100%; }
.pm-3d { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.stl-msg { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* a cut-out hero photo: no frame, it sits straight on the cream */
.hero-photo.cutout { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.hero-photo.cutout img {
  aspect-ratio: auto; height: auto; max-height: 460px; object-fit: contain;
  /* no drop-shadow: it redraws a hard silhouette and undoes the feathered edge */
}
.hero-visual.has-photo:has(.cutout) .hero-stack { right: 0; bottom: -8%; width: 36%; }

/* the hero photo stands alone: no polaroid stack behind it */
.hero-stack[hidden] { display: none; }
.hero-visual.has-photo .hero-photo { position: relative; width: 100%; }
.hero-visual.has-photo .hero-photo.cutout img { max-height: 520px; width: 100%; }
.hero-visual.has-photo .hero-photo > .stack-sticker {
  position: absolute; top: 4%; right: 2%; left: auto;
  width: 84px; height: 84px; font-size: .7rem;
}
@media (max-width: 760px) {
  .hero-visual.has-photo .hero-photo.cutout img { max-height: 360px; }
  .hero-visual.has-photo .hero-photo > .stack-sticker { width: 68px; height: 68px; font-size: .6rem; }
}
