/* The shop (/shop, /order): the launch page's look (site.css, preorder.css). Warm paper, Baloo Da 2,
   ink text, one orange accent, the same header, logo and footer. Light only, like the launch page.
   No inline styles (the CSP is style-src 'self'). */
:root {
  --paper: #e9e5de; --paper-2: #dfdad2; --card: #f3f0ea; --field: #fbfaf7;
  --ink: #131313; --ink-2: #3b3934; --mute: #6c685f; --rule: rgba(19, 19, 19, .14); --rule-2: rgba(19, 19, 19, .24);
  --dark: #121314; --on-dark: #ece8e1; --on-dark-mute: #9c988f;
  --accent: #e3612a; --ok: #1d7a43; --bad: #b3261e; --wait: #9a5a06;
  --font: "Baloo Da 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { line-height: 1.25; margin: 0; font-weight: 800; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
main.wrap { padding-top: 18px; padding-bottom: 40px; }

/* header + footer, as on the launch page */
.head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.head-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; margin: -8px -4px -8px -6px; flex: none; }
.brand-wm { height: 26px; width: auto; }
.foot { padding: 44px 0 32px; border-top: 1px solid var(--rule); margin-top: 32px; }
.foot-word { color: var(--ink); margin-bottom: 24px; opacity: .9; }
.foot-word svg { width: 100%; height: auto; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; color: var(--mute); font-size: .92rem; }
.foot-row p { margin: 0; }
.foot-motto { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.foot-row a { color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 4px 26px 0; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--ink); font: 600 1.05rem/1 var(--font); text-decoration: none; cursor: pointer; -webkit-appearance: none;
  transition: background .25s, color .25s, box-shadow .25s, transform .35s var(--ease-out); }
.btn:hover { background: #ef7038; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .1s; }
.btn.big { width: 100%; min-height: 60px; font-size: 1.15rem; margin-top: 10px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 40px; padding: 3px 18px 0; font-size: .95rem; }
.card > .btn.ghost, .card .btn.ghost { margin-top: 6px; }
main > .btn.ghost { width: 100%; margin-top: 4px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; margin: 14px 0; }
.card-in { background: var(--paper); border-radius: 14px; padding: 12px 16px; margin: 16px 0 6px; }
.page-h { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 6px; }
.back { display: inline-block; margin: 2px 0 4px; text-decoration: none; color: var(--mute); font-weight: 600; }
.notice { text-align: center; padding: 34px 22px; }
.notice h1 { font-size: 1.6rem; margin-bottom: 8px; }
.notice p { color: var(--ink-2); }

/* product grid */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.product { display: block; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.product img, .product .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--paper-2); }
.product .noimg { display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 1.4rem; }
.product .pbody { padding: 16px 20px 20px; }
.product h2 { font-size: 1.3rem; }
.product .btn { width: 100%; margin-top: 10px; }

/* product + order page: one column on phones, photos beside the form on desktop */
.buy { display: block; }
@media (min-width: 900px) {
  .buy { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  /* not sticky: with the 'what it does' block the column is taller than a screen */
  .buy .card { margin-top: 6px; }
}
.order-top { padding: 0; overflow: hidden; }
.gallery { margin: 0; }
.gallery .main { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--paper-2); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 0; scrollbar-width: none; }
.thumbs a { flex: 0 0 64px; border-radius: 12px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--rule); }
.thumbs a:hover img, .thumbs a:focus-visible img { border-color: var(--ink); }
.ptitle { padding: 16px 20px 20px; }
.ptitle h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.tag { color: var(--mute); margin: 0 0 8px; font-weight: 600; }
.price { font-size: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.price .now { font-weight: 800; }
.price .was { color: var(--mute); font-weight: 500; font-size: 1.05rem; }
.price .off { background: var(--accent); color: var(--ink); border-radius: 999px; padding: 3px 12px 1px; font-size: .85rem; font-weight: 700; }
.handmade { margin: 12px 0 0; color: var(--ink-2); font-size: .98rem; }
.desc { color: var(--ink-2); }

/* form */
.form { display: flex; flex-direction: column; }
.form > h2 { font-size: 1.5rem; margin-bottom: 4px; }
.field { display: block; margin: 12px 0; }
.field > span, legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--mute); }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--rule-2); border-radius: 14px; padding: 13px 14px; -webkit-appearance: none; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 70px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 14px 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; background: var(--field); border: 1.5px solid var(--rule-2); border-radius: 14px; padding: 14px; margin: 8px 0; cursor: pointer; }
.opt input[type=radio] { -webkit-appearance: radio; appearance: auto; accent-color: var(--accent); width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; padding: 0; border: 0; background: none; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--field)); }
.opt.colour { align-items: center; }
.opt.colour small { display: block; font-size: .88rem; font-weight: 600; }
.opt.colour small.in { color: var(--ok); }
.opt.colour small.mto { color: var(--wait); }
.sw { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rule-2); background: #999; }
.err { display: block; color: var(--bad); font-size: .92rem; margin-top: 4px; font-weight: 600; }
.hint { color: var(--mute); font-size: .92rem; margin: 10px 0 0; }
.hint.small { font-size: .88rem; }
.bad { background: #f6dcd6; color: var(--bad); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.bad[hidden] { display: none; }
[aria-invalid="true"] { border-color: var(--bad); }
button[disabled] { opacity: .7; cursor: progress; transform: none; }
#order { scroll-margin-top: 12px; }
.form.flash { animation: flash 1.2s var(--ease-out, ease-out); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .form.flash { animation: none; } }

/* totals + how it works */
.total div { display: flex; justify-content: space-between; padding: 4px 0; }
.total .grand { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; font-size: 1.25rem; font-weight: 800; }
.steps-pay { margin: 14px 0 4px; padding-left: 1.4em; display: grid; gap: 6px; font-size: .98rem; color: var(--ink-2); }
.steps-pay b { white-space: nowrap; color: var(--ink); }

/* order status */
.ok { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.ok h1 { font-size: 1.7rem; color: #8fd6a2; margin-bottom: 6px; }
.ok p { margin: 0; }
.status { text-align: center; }
.status .code { color: var(--mute); font-size: .95rem; }
.badge { display: inline-block; font-weight: 800; font-size: 1.35rem; margin: 6px 0; }
.status.s-new .badge { color: var(--wait); }
.status.s-confirmed .badge, .status.s-delivered .badge { color: var(--ok); }
.status.s-shipped .badge { color: #1f5f7a; }
.status.s-cancelled .badge { color: var(--bad); }
.status .mto { color: var(--wait); font-weight: 600; }
.track { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 16px 0 0; gap: 6px; font-size: .82rem; color: var(--mute); }
.track li { flex: 1; border-top: 4px solid var(--rule); padding-top: 6px; border-radius: 2px; }
.track li.on { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.recap .line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.recap .grand { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; }
.recap .meta { color: var(--mute); font-size: .92rem; margin-top: 10px; }
@media (min-width: 900px) { main.narrow { max-width: 720px; } }

.jump { width: 100%; margin-top: 14px; }
@media (min-width: 900px) { .jump { display: none; } }
html { scroll-padding-top: 76px; }

/* district + thana */
select { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--rule-2); border-radius: 14px; padding: 13px 40px 13px 14px; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
select:disabled { opacity: .55; }
@media (min-width: 560px) { .place { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } }
.ship-note { margin: 4px 0 8px; font-weight: 600; color: var(--ink-2); }

/* photos: tap the big one to open it full screen (public/assets/js/shop.js) */
.zoom { position: relative; display: block; cursor: zoom-in; }
.zoom-ico { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(19, 19, 19, .72); display: grid; place-items: center; pointer-events: none; }
.zoom-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--on-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumbs a.on img { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: #0d0d0d; color: var(--on-dark); }
.lb[hidden] { display: none; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; touch-action: pan-x pinch-zoom; }
.lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: var(--on-dark); font: 600 1.6rem/1 var(--font); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (hover: none) { .lb-prev, .lb-next { display: none !important; } }
.lb-n { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 600; color: var(--on-dark-mute); }

/* the launch price's end date, next to the crossed-out price */
.until { margin: 6px 0 0; font-weight: 700; color: var(--wait); font-size: .98rem; }

/* what it does */
.what h2, .faq h2 { font-size: 1.35rem; margin-bottom: 8px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.facts b { color: var(--ink); }

/* FAQ, below the form */
.faq { margin-top: 18px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 28px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.5rem; font-weight: 400; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

/* the order bar on phones, as on the home page: it jumps to the form and steps aside when the form is in view */
.order-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px;
  background: var(--ink); color: var(--on-dark); border-radius: 999px; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28); transform: translateY(160%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.order-bar.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
.ob-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ob-t b { font-size: 1.02rem; white-space: nowrap; }
.ob-t small { font-size: .78rem; color: var(--on-dark-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-bar .btn { flex: none; min-height: 44px; padding-top: 8px; padding-bottom: 6px; }
@media (max-width: 899px) { body.shop:has(.order-bar) { padding-bottom: 76px; } }
@media (min-width: 900px) { .order-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .order-bar, .order-bar.is-on { transition: none; } }
