/* Blue Lotus Kosova – shop. Phone first. Square and flat: no radii, no shadows, 1px lines. */
:root {
  --bg: #F8EADC;
  --ink: #09251C;
  --ink-soft: #45584F;
  --line: rgba(9, 37, 28, .14);
  --lotus: #A35604;
  --night: #09251C;
  --roll: #A35604;
  --filter: #F3D2AF;
  --herb: #09251C;
  --err: #B4472B;          /* 4.6:1 on --bg */
  --focus: var(--ink);     /* focus ring; each dark or coloured surface sets its own (≥ 3:1 against the surface) */
  --display: Gloock, Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --gutter: 20px;
  --bar: 72px;
  color-scheme: light;
  /* Colours: Bleart's palette (6 Nov 2026), green #09251C, brown #A55704 (1% darker here so light text on it
     reaches 4.5:1), peach #F3D2AF, cream #F8EADC. Keep site/admin/admin.css in sync. */
}
@media (min-width: 960px) { :root { --gutter: 40px; --bar: 88px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.gate-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--bg); padding: 12px 16px; }
#products, #story, #order, #faq { scroll-margin-top: var(--bar); }

/* Gloock: lowercase, big, a little tight */
.display { font-family: var(--display); font-weight: 400; text-transform: lowercase; letter-spacing: -.02em; line-height: 1; }

/* small uppercase labels and buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border: 0; background: var(--lotus); color: var(--bg);
  font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-light { background: var(--bg); color: var(--night); }
.btn-lg { min-height: 56px; }
.btn-block { width: 100%; }
.fields-title, .success-label, .field label { font: 500 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- entry screen ---------- */
/* the card is centred by its auto margins, not by place-items: when it is taller than the window (a phone held sideways) it sits at the top and the screen scrolls, so the whole card stays reachable */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; padding: 20px; background: var(--night); overflow: auto; --focus: var(--bg); }
.gate-card { width: 100%; max-width: 400px; margin: auto; padding: 32px 24px 24px; background: var(--bg); text-align: center; --focus: var(--ink); }
#age-yes:focus { outline: 2px solid var(--focus); outline-offset: 2px; } /* focused by script on load, so always show its ring */
.gate-logo { height: 92px; width: auto; margin: 0 auto 24px; }
.gate h2 { font-size: 2.5rem; margin-bottom: 12px; }
.gate p { color: var(--ink-soft); margin-bottom: 24px; }
.gate-leave { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; padding: 0 16px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.gate-leave:hover { color: var(--ink); }

/* ---------- top bar (dark blue, so the gold logo sits on its own background) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--bar); padding: 0 var(--gutter); background: var(--night); color: var(--bg);
  border-bottom: 1px solid rgba(248, 234, 220, .14); --focus: var(--bg);
}
.topbar-logo { justify-self: center; display: flex; align-items: center; min-height: 44px; }
.topbar-logo img { height: 34px; width: auto; }
.lang, .topbar-cart {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  color: inherit; font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none;
}
.lang { justify-self: start; justify-content: flex-start; min-width: 44px; margin-left: -8px; }
.topbar-cart { justify-self: end; margin-right: -8px; }
.topbar-count::before { content: "\00a0\00b7\00a0"; }
@media (min-width: 960px) { .topbar-logo img { height: 42px; } }

/* ---------- media: a photo, or the lotus stand-in cropped by the block ---------- */
.media, .standin { position: absolute; inset: 0; width: 100%; height: 100%; }
.media { object-fit: cover; }
.standin { overflow: hidden; background: var(--standin-bg, transparent); color: var(--standin-ink, var(--bg)); }
.standin svg { position: absolute; left: 50%; bottom: -22%; width: 150%; height: auto; transform: translateX(-50%); opacity: .18; }
.standin-thumb svg { width: 135%; bottom: -14%; }

/* ---------- opening ---------- */
.opening { display: grid; background: var(--night); color: var(--bg); --focus: var(--bg); }
.opening-copy { padding: 48px var(--gutter) 44px; }
.opening h1 { font-size: clamp(2.75rem, 1rem + 7.4vw, 6rem); max-width: 11ch; margin-bottom: 20px; }
.opening-text { font-size: 1.125rem; max-width: 34ch; margin-bottom: 28px; }
.opening-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.opening-copy { animation: rise .6s ease-out both; }
.opening-media { animation: rise .6s ease-out .1s both; }
@media (min-width: 960px) {
  .opening { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .opening-media { order: -1; aspect-ratio: auto; }
  .opening-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px; }
}

/* ---------- colour panels ---------- */
.panel-list { display: grid; }
.panel { display: flex; flex-direction: column; color: var(--bg); --focus: var(--bg); }
.panel-roll { background: var(--roll); }
.panel-filter { background: var(--filter); color: var(--ink); --standin-ink: var(--ink); --focus: var(--ink); }
.panel-herb { background: var(--herb); }
.panel-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.panel-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px var(--gutter) 40px; }
.panel h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); }
/* the photo and the name link to the product's page */
.panel h2 a { text-decoration: none; }
.panel h2 a:hover { text-decoration: underline; text-underline-offset: .08em; text-decoration-thickness: .04em; }
a.panel-media:focus-visible { outline-offset: -4px; } /* the ring inside the photo block, on the panel colour */
.panel-desc { font-size: 1.0625rem; max-width: 36ch; }
.panel-unit { font-size: .9375rem; }
.panel-price { font-family: var(--display); font-size: 1.75rem; line-height: 1; margin-top: 8px; }
.panel-actions { margin-top: 16px; }
.panel .btn { min-width: 168px; background: var(--bg); color: var(--roll); }
.panel-filter .btn { background: var(--ink); color: var(--bg); }
.panel-herb .btn { color: var(--herb); }
/* the stepper's ring is drawn inside its box (see .qty :focus-visible), so it takes the box's text colour */
.panel .qty { background: var(--bg); color: var(--roll); border-color: var(--bg); --focus: var(--roll); }
.panel-filter .qty { background: var(--ink); color: var(--bg); border-color: var(--ink); --focus: var(--bg); }
.panel-herb .qty { color: var(--herb); --focus: var(--herb); }
@media (min-width: 960px) {
  .panel-list { grid-template-columns: repeat(3, 1fr); }
  .panel-media { aspect-ratio: 4 / 5; }
  .panel-body { padding: 32px 32px 48px; }
}

/* square − qty + stepper */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); }
.qty button { width: 48px; height: 48px; border: 0; background: transparent; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty input { width: 3em; padding: 0; border: 0; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: transparent; color: inherit; text-align: center; font-weight: 500; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty :focus-visible { outline-offset: -3px; }

/* ---------- story ---------- */
.story { display: grid; }
.story-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lotus); }
.story-copy { padding: 48px var(--gutter) 64px; }
.story h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); margin-bottom: 20px; }
.story p { font-size: 1.0625rem; line-height: 1.55; max-width: 52ch; }
.story p + p { margin-top: 1em; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .story-media { order: 1; aspect-ratio: auto; }
  .story-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 64px; }
}

/* ---------- checkout ---------- */
.checkout { border-top: 1px solid var(--line); padding: 48px var(--gutter) 72px; }
.checkout-inner { max-width: 640px; margin: 0 auto; }
.checkout h2.display { font-size: clamp(2.5rem, 1.5rem + 4vw, 3.5rem); margin-bottom: 24px; }
.cart-empty { display: grid; gap: 16px; justify-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.cart-empty p { color: var(--ink-soft); }

.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { position: relative; width: 56px; height: 56px; overflow: hidden; }
.line-roll { --standin-bg: var(--roll); }
.line-filter { --standin-bg: var(--filter); --standin-ink: var(--ink); }
.line-herb { --standin-bg: var(--herb); }
.ln-name { font-family: var(--display); text-transform: lowercase; font-size: 1.375rem; line-height: 1.1; }
.ln-meta { font-size: .875rem; color: var(--ink-soft); margin: 2px 0 10px; }
.ln-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ln-total { font-weight: 500; }
.link-btn { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; padding: 0 4px; margin-right: -4px; border: 0; background: none; color: var(--ink-soft); font-size: .875rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--err); }
.free-hint { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--lotus); }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { font-family: var(--display); text-transform: lowercase; font-size: 1.5rem; line-height: 1; color: var(--ink); padding-top: 8px; }

.fields-title { color: var(--ink-soft); margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 16px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2314171D' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lotus); outline-offset: 0; border-color: var(--lotus); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .875rem; margin-top: 6px; }
.field-error:empty { display: none; }
.country-info { margin-top: 8px; font-size: .9375rem; color: var(--ink-soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pay-one { margin-top: 12px; }
.pay-option { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-left: -10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pay-option strong { display: block; font-weight: 500; }
.pay-option span span { display: block; font-size: .9375rem; color: var(--ink-soft); }

/* square checkbox and radio: a 44px target around a 24px box */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; cursor: pointer;
  background: linear-gradient(var(--bg), var(--bg)) center / 22px 22px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 24px 24px no-repeat;
}
input[type="checkbox"]:checked {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F8EADC' stroke-width='2.4'/%3E%3C/svg%3E") center / 24px 24px no-repeat, linear-gradient(var(--lotus), var(--lotus)) center / 24px 24px no-repeat;
}
input[type="radio"]:checked {
  background: linear-gradient(var(--lotus), var(--lotus)) center / 12px 12px no-repeat, linear-gradient(var(--bg), var(--bg)) center / 22px 22px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 24px 24px no-repeat;
}
/* Windows high contrast (forced colours) drops gradient backgrounds, which would make the boxes invisible: hand them back to the browser there */
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { appearance: auto; -webkit-appearance: auto; background: none; }
}
.check { display: flex; align-items: flex-start; gap: 8px; margin: 28px 0 0 -10px; cursor: pointer; }
.check span { padding-top: 10px; }

.form-alert { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--err); color: var(--err); }
#submit-btn { margin-top: 24px; }
.privacy { margin-top: 12px; font-size: .8125rem; color: var(--ink-soft); text-align: center; }

.success { padding-top: 8px; }
.success:focus { outline: none; } /* focused by script after an order; not interactive */
.success h2 { font-size: clamp(3rem, 2rem + 5vw, 5rem); margin-bottom: 24px; }
.success-label { color: var(--ink-soft); }
.success-code { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 3vw, 2.75rem); line-height: 1.1; color: var(--lotus); margin: 6px 0 20px; }
.success-text { max-width: 44ch; }
.success-total { font-weight: 500; margin: 8px 0 24px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); padding: 48px var(--gutter) 72px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 3.5rem); margin-bottom: 24px; }
/* rows that open on tap: the FAQ and the product page's details */
.faq details, .prod-rows details { border-top: 1px solid var(--line); }
.faq details:last-child, .prod-rows details:last-child { border-bottom: 1px solid var(--line); }
.faq summary, .prod-rows summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker, .prod-rows summary::-webkit-details-marker { display: none; }
.faq summary::after, .prod-rows summary::after { content: "+"; flex: 0 0 24px; font-size: 1.5rem; font-weight: 400; line-height: 1; text-align: center; }
.faq details[open] summary::after, .prod-rows details[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 40px 20px 0; color: var(--ink-soft); }
.dl { margin-top: 12px; }
.dl-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.dl-row strong { font-weight: 500; color: var(--ink); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--bg); padding: 56px var(--gutter) calc(104px + env(safe-area-inset-bottom)); --focus: var(--bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 14px; }
.footer-logo { height: 104px; width: auto; }
.contact { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.footer-small { font-size: .875rem; color: var(--bg); max-width: 60ch; }
@media (min-width: 960px) { .footer { padding-bottom: 56px; } }

/* ---------- phone cart bar ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--bg); text-decoration: none; --focus: var(--bg);
}
.cart-bar:focus-visible { outline-offset: -4px; } /* ring inside the bar, on --night */
.cart-bar-info { font-family: var(--display); font-size: 1.25rem; }
.cart-bar-info strong { font-weight: 400; } /* Gloock has one weight; bold would be synthesised */
.cart-bar-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--bg); color: var(--night); font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 1.5px; }
@media (min-width: 960px) { .cart-bar { display: none !important; } }
/* while the bar shows, Tab and focus() scroll a control clear of it instead of leaving it underneath */
@media (max-width: 959px) { html:has(#cart-bar:not([hidden])) { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* ---------- product page (/roll, /caj, /bime) ---------- */
/* photos: a scroll-snap strip on the product's colour; one photo at a time, swipe (or the dots) for the next */
.gallery { color: var(--bg); --focus: var(--bg); }
.gallery-roll { background: var(--roll); }
.gallery-filter { background: var(--filter); color: var(--ink); --standin-ink: var(--ink); --focus: var(--ink); }
.gallery-herb { background: var(--herb); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; overflow: hidden; scroll-snap-align: start; }
.gallery-nav { display: flex; justify-content: center; gap: 4px; padding: 4px var(--gutter) 8px; }
/* each dot is a 44px target with a 10px square inside; on desktop the same buttons are thumbnails */
.gallery-dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
/* .6 is the lowest opacity where the inactive dot reads at 3:1 on all three colours (3.24:1 on --roll, 3.75:1 on --filter, 3.40:1 on --herb) */
.gallery-dot::before { content: ""; position: absolute; left: 17px; top: 17px; width: 10px; height: 10px; background: currentColor; opacity: .6; }
.gallery-dot.is-current::before { opacity: 1; }
.gallery-roll .gallery-dot:not(.is-current)::before { opacity: .7; } /* 3:1 on the brown */
.gallery-dot .media, .gallery-dot .standin { display: none; }

.prod-main { padding: 28px var(--gutter) 48px; }
.prod-head h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 3.5rem); margin-bottom: 12px; }
.prod-price { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.prod-unit { margin-top: 6px; font-size: .9375rem; color: var(--ink-soft); }
.prod-desc { margin-top: 20px; font-size: 1.0625rem; max-width: 40ch; }
.prod-rows { margin-top: 28px; }
.prod-rows .faq-body { padding-right: 0; }
.dl-pay { margin-top: 12px; }
.prod-about { margin-top: 48px; }
.prod-about h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); margin-bottom: 16px; }
.prod-about p { font-size: 1.0625rem; line-height: 1.55; max-width: 52ch; }
.prod-about p + p { margin-top: 1em; }

/* the other two products as small colour cards */
.also { margin-top: 48px; }
.also h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); margin-bottom: 16px; }
.also-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.also-card { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 140px; padding: 20px 16px; color: var(--bg); text-decoration: none; --focus: var(--bg); }
.also-card:focus-visible { outline-offset: -4px; }
.also-card:hover .also-name { text-decoration: underline; text-underline-offset: .08em; text-decoration-thickness: .04em; }
.also-roll { background: var(--roll); }
.also-filter { background: var(--filter); color: var(--ink); --focus: var(--ink); }
.also-herb { background: var(--herb); }
.also-name { font-size: 1.5rem; }
.also-price { font-size: .9375rem; }

/* add to cart: on phones a bar fixed to the bottom of the screen (price, − qty +, add; plus "order" once the cart has items) */
.buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--bg); --focus: var(--bg);
}
.buy-cart { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 4px; color: inherit; text-decoration: none; font-size: .9375rem; }
.buy-cart:focus-visible { outline-offset: -2px; }
.buy-cart-cta { font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 1.5px; text-decoration: underline; text-underline-offset: 3px; }
.buy-row { display: flex; align-items: center; gap: 12px; }
.buy-price { font-family: var(--display); font-size: 1.25rem; line-height: 1; min-width: 3.5ch; }
.buy .qty { border-color: currentColor; --focus: var(--bg); }
.buy .qty input { width: 2.75em; } /* 44px: the number box is a tap target too */
.buy-add { flex: 1; min-width: 88px; padding: 0 16px; background: var(--bg); color: var(--night); }
.buy-add-full { display: none; }
/* the fixed bar must not cover the footer's last line: the footer reserves the bar's measured height */
.product-page .footer { padding-bottom: calc(var(--addbar, 64px) + 40px + env(safe-area-inset-bottom)); }
/* nor a focused control: under the bar still counts as "in view", so Tab would leave focus hidden there;
   the root's scroll padding (the bar's height, 0 on the home page) makes the browser scroll it clear */
@media (max-width: 959px) { html { scroll-padding-bottom: var(--addbar, 0px); } }
@media (min-width: 960px) {
  .product { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .gallery { position: sticky; top: var(--bar); }
  .gallery-item { max-height: calc(100vh - var(--bar) - 96px); }
  .gallery-nav { justify-content: flex-start; gap: 8px; padding: 12px 16px 16px; }
  .gallery-dot { width: 64px; height: 64px; border: 2px solid transparent; overflow: hidden; }
  .gallery-dot::before { content: none; }
  .gallery-dot.is-current { border-color: currentColor; }
  .gallery-dot .media, .gallery-dot .standin { display: block; }
  .prod-main { max-width: 640px; padding: 56px 64px 80px; }
  .prod-head h1 { margin-bottom: 16px; }
  .buy { position: static; margin-top: 24px; padding: 0; background: none; color: inherit; --focus: var(--ink); }
  .buy-cart { font-size: 1rem; }
  .buy .qty { border-color: var(--ink); --focus: var(--ink); }
  .buy-add { flex: 0 1 auto; min-width: 200px; padding: 0 28px; background: var(--lotus); color: var(--bg); }
  .buy-add-full { display: inline; }
  .buy-add-short { display: none; }
  .product-page .footer { padding-bottom: 56px; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html, .gallery-track { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
