/* Memify reference storefront - mobile first, one file, no framework.
   Breakpoints: 600px (2 -> 3 columns), 900px (item / cart / checkout in two columns), 1200px (4 columns). */
:root {
  --brand: #b5532f; --brand-d: #96421f; --brand-l: #f8ebe2;
  --ink: #2b2420; --muted: #6f655d; --line: #e7ddd0; --bg: #fbf7f1; --card: #fff; --sand: #f3eadd;
  --ok: #137a4b; --ok-l: #e6f6ee; --warn: #9a5b00; --warn-l: #fff4df; --err: #b42318; --err-l: #fdecea;
  --r: 14px; --r-sm: 10px; --tap: 44px; --gap: 16px; --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 26px rgba(60, 40, 20, .07);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sticky-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; padding-bottom: calc(24px + var(--sticky-h)); }
img { max-width: 100%; height: auto; display: block; } /* height auto: the width / height attributes only reserve the ratio */
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; touch-action: manipulation; }
.btn:hover { border-color: #cdbba8; } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.ghost { background: transparent; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.busy::after { border-color: var(--brand); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; padding: 0; touch-action: manipulation; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.icon-btn svg { width: 22px; height: 22px; }
.linkish { background: none; border: 0; padding: 10px 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; min-height: var(--tap); }
input, select, textarea { font: inherit; font-size: 16px; /* >= 16px: iOS does not zoom */ color: var(--ink); }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select, .field textarea, .coupon input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; scroll-margin: 100px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181, 83, 47, .18); }
[aria-invalid=true] { border-color: var(--err) !important; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.surch { font-weight: 600; color: var(--brand); font-size: .85rem; margin-left: 4px; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.err { color: var(--err); font-size: .9rem; margin: 6px 0 0; }
.ok-msg { color: var(--ok); margin: 6px 0 0; }
.counter { display: block; text-align: right; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; cursor: pointer; font-size: .92rem; min-height: var(--tap); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); margin: 10px 0; font-size: .92rem; }
.notice.ok { background: var(--ok-l); color: var(--ok); }
.notice.warn { background: var(--warn-l); color: var(--warn); }

/* ---------- top bar / footer */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 241, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { display: flex; align-items: center; gap: 8px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; flex: none; min-height: var(--tap); }
.logo span { color: var(--ink); }
.search { flex: 1; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding-left: 14px; min-width: 0; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 42px; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181, 83, 47, .18); }
.search .icon-btn { width: 42px; height: 42px; }
.cart-btn { position: relative; color: var(--ink); flex: none; }
.badge[hidden] { display: none; }
.badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 420px) { .logo span { display: none; } }
.footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0 calc(24px + var(--sticky-h) + env(safe-area-inset-bottom)); }
.footer-in { display: grid; gap: 14px; }
.footer-ctl label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.footer-ctl select { width: 100%; max-width: 360px; min-height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.footer-links a { display: inline-flex; min-height: var(--tap); align-items: center; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 2fr 1.5fr 1.5fr; align-items: start; } .footer-in > p { grid-column: 1 / -1; } }

/* ---------- catalog */
.hero { background: radial-gradient(120% 140% at 0% 0%, #e9e3ff 0%, #fbeee6 55%, var(--bg) 100%); padding: 28px 0 20px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); max-width: 18ch; }
.hero p { color: var(--muted); max-width: 52ch; font-size: 1.02rem; }
.usp { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.usp li { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; }
.usp svg { color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.sub { padding-top: 2px; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.chips.sub .chip { min-height: 36px; font-size: .88rem; font-weight: 500; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 10px; }
.list-head h1, .list-head h2 { margin: 0; font-size: 1.25rem; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.card a:hover { transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 1; background: #f3eadd; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pill { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .92); color: var(--brand); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 75% 88%), hsl(calc(var(--h) + 40) 70% 80%)); }
.ph span { font: 700 clamp(2.4rem, 12vw, 4rem) Georgia, serif; color: hsl(var(--h) 45% 35% / .55); }
.ph.big { aspect-ratio: 1; border-radius: var(--r); }
.ph.sm span { font-size: 1.6rem; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: .98rem; margin: 0 0 4px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; margin-bottom: 8px; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; align-items: baseline; }
.card-foot .small { display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; }
.price { font-weight: 800; }
.price.big { font-size: 1.6rem; letter-spacing: -.02em; }
.more { text-align: center; margin: 22px 0 8px; }
.empty { text-align: center; padding: 48px 0; }
.skeleton-page { height: 60vh; margin: 20px 0; border-radius: var(--r); background: linear-gradient(90deg, #f3eadd 0, #faf4ea 40%, #f3eadd 80%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- item page */
.crumbs { font-size: .88rem; color: var(--muted); padding: 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); display: inline-block; padding: 6px 0; }
.item-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; } .gallery { position: sticky; top: 76px; } }
.stage-wrap { margin: 0 -16px; }
@media (min-width: 600px) { .stage-wrap { margin: 0; } }
.tabs { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; }
.tabs button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .9rem var(--font); cursor: pointer; color: var(--ink); white-space: nowrap; }
.tabs button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage { --bg: #f4f2ee; position: relative; background: linear-gradient(160deg, #f6efe5, #eadfd0); display: grid; place-items: center; padding: 28px 22px 14px; overflow: hidden; }
@media (min-width: 600px) { .stage { border-radius: var(--r); } }
.stage .pa { position: relative; overflow: hidden; display: grid; place-items: center; }
.stage .pa.sheet { width: min(100%, 520px); max-height: 62vh; aspect-ratio: var(--ratio, 1); background: var(--bg); border-radius: 8px; box-shadow: 0 10px 30px rgba(70, 45, 20, .18), inset 0 0 0 1px rgba(0, 0, 0, .06); }
@supports not (aspect-ratio: 1) { .stage .pa.sheet { height: 320px; } }
.stage.has-mock { padding: 0; display: block; }
/* before the customer adds anything: the product picture fills the preview */
.stage.demo { padding: 0; display: block; position: relative; overflow: hidden; }
.stage.demo .demo-pic { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pa-text[hidden] { display: none; }
.stage.has-mock .mock { width: 100%; height: auto; }
.stage.has-mock .pa { position: absolute; }
.pa-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pa-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .1em; padding: 6%; text-align: center; font-size: clamp(1rem, 5vw, 1.9rem); line-height: 1.15; color: #2b2420; word-break: break-word; max-width: 100%; }
.stage.dark .pa-text { color: #fff; }
.pa-text.over { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; padding-top: 18%; }
.pa-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; max-width: 24ch; }
.stage.dark .pa-empty { color: rgba(255, 255, 255, .75); }
.pa-empty svg { width: 34px; height: 34px; opacity: .6; }
.stage-label { margin-top: 10px; text-align: center; font-size: .78rem; color: var(--muted); }
.gallery > .muted.small { margin: 8px 16px 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-top: 10px; border-radius: var(--r); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.stage-wrap + .slides img { flex-basis: 40%; }
.buy h1 { font-size: 1.5rem; margin-bottom: 6px; }
.rating-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink); font-size: .92rem; min-height: var(--tap); }
.stars { position: relative; display: inline-block; color: #e2d6c8; letter-spacing: 1px; font-size: 1.05rem; line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--r) * 100%); overflow: hidden; color: #f2a10c; }
.stars.sm { font-size: .9rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0; }
.lead { color: var(--muted); }
.tiers { margin: -4px 0 8px; display: inline-block; padding: 4px 10px; border-radius: var(--r-sm); background: var(--ok-l); color: var(--ok); font-weight: 600; }
.tiers[hidden] { display: none; }
.axis legend strong { font-weight: 500; color: var(--muted); }
.swatches, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.swatch input, .pill-opt input, .nps input, .rate-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--brand); }
.swatch:has(input:focus-visible), .pill-opt:has(input:focus-visible) span, .nps label:has(input:focus-visible) span { outline: 3px solid var(--brand); outline-offset: 2px; }
.swatch.na::after { content: ""; position: absolute; width: 46px; height: 2px; background: var(--muted); transform: rotate(-45deg); }
.pill-opt { cursor: pointer; }
.pill-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); min-width: var(--tap); justify-content: center; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 600; font-size: .95rem; }
.pill-opt input:checked + span { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.pill-opt.na span { color: var(--muted); text-decoration: line-through; border-style: dashed; }
.pill-opt small { font-weight: 500; color: var(--muted); }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.stock { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; margin: 4px 0 10px; min-height: 1.5em; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.no { color: var(--err); }
.step { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 700; flex: none; }
.field > label.drop, .drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 112px; padding: 16px; border: 2px dashed #dcc9b6; border-radius: var(--r); background: #fffaf4; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--brand); background: var(--brand-l); }
.upload input:focus-visible + .drop { outline: 3px solid var(--brand); outline-offset: 2px; }
.drop svg { width: 30px; height: 30px; color: var(--brand); }
.drop-t { font-weight: 700; color: var(--brand); }
.up-state { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.up-state[hidden], .drop[hidden] { display: none; }
.up-state img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #eee; }
.up-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.bar { height: 6px; border-radius: 3px; background: #efe5d8; overflow: hidden; margin-top: 4px; }
.bar[hidden] { display: none; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.up-q.good { color: var(--ok); } .up-q.warn { color: var(--warn); }
.facts { list-style: none; padding: 14px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { color: var(--brand); margin-top: 2px; }
.buy-row { display: flex; gap: 10px; margin: 18px 0 8px; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; flex: none; }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.qty.sm .icon-btn { width: 40px; height: 40px; }
.desc { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
.desc summary, details > summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; list-style-position: inside; }
.rich { color: #4a403a; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(50, 35, 20, .08);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s; }
.sticky-buy.show { transform: none; }
.sticky-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-in .price { font-size: 1.15rem; }
.sticky-in .btn { flex: 0 1 60%; }
body.kb-open .sticky-buy, body.consent-open .sticky-buy { transform: translateY(110%); }
@media (min-width: 900px) { .sticky-buy { display: none; } }
body[data-view=cart], body[data-view=checkout] { --sticky-h: 72px; }
@media (min-width: 900px) { body[data-view=cart], body[data-view=checkout] { --sticky-h: 0px; } }
body[data-view=item] { --sticky-h: 72px; }

/* reviews */
.reviews { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; max-width: 820px; }
.rev-sum { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.rev-avg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rev-avg .big { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.dist { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 200px; display: grid; gap: 4px; }
.dist li { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; font-size: .85rem; }
.dbar { display: block; height: 8px; border-radius: 4px; background: #efe5d8; overflow: hidden; }
.dbar i { display: block; height: 100%; background: #f2a10c; }
.rev-list { list-style: none; padding: 0; margin: 0 0 12px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rev-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.verified { color: var(--ok); display: inline-flex; gap: 3px; align-items: center; }
.reply { background: #f6efe5; border-radius: var(--r-sm); padding: 10px 12px; margin-top: 6px; font-size: .92rem; }
.reply p { margin: 2px 0 0; }
.rev-form { margin-top: 12px; }
.rev-form > summary { display: inline-flex; list-style: none; }
.rev-form > summary::-webkit-details-marker { display: none; }
.rev-form form { margin-top: 14px; max-width: 520px; }
.rate-in { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-in label { font-size: 2rem; line-height: 1; color: #e2d6c8; cursor: pointer; width: var(--tap); height: var(--tap); display: grid; place-items: center; }
.rate-in input:checked ~ label, .rate-in label:hover, .rate-in label:hover ~ label { color: #f2a10c; }
.rate-in input:focus-visible + label { outline: 3px solid var(--brand); border-radius: 8px; }

/* added-to-cart sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(50, 35, 20, .35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: up .2s; }
.sheet h2 { display: flex; gap: 8px; align-items: center; color: var(--ok); }
.sheet-btns { display: grid; gap: 10px; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); } }

/* ---------- cart / checkout */
.cart-grid, .co-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .cart-grid, .co-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; } .summary { position: sticky; top: 76px; } }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); transition: opacity .15s; }
.line.busy { opacity: .55; }
.line-pic { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: #f3eadd; }
.line-pic img { width: 100%; height: 100%; object-fit: cover; }
.line-main { min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.line-top a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; min-height: 32px; }
.line-total { font-weight: 800; white-space: nowrap; }
.line p { margin: 2px 0; }
.pers { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.line-ctl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line-ctl .muted { white-space: nowrap; }
.line-ctl .rm { margin-left: auto; color: var(--muted); flex: none; }
.lines.compact .line { box-shadow: none; padding: 8px 0; border-bottom: 1px solid var(--line); border-radius: 0; grid-template-columns: 52px 1fr; background: transparent; }
.lines.compact .line-pic { width: 52px; height: 52px; }
.summary { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.summary .btn.block { margin-top: 10px; }
.totals { margin: 8px 0; display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 10px; }
.totals dt { color: var(--muted); } .totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 1.15rem; }
.totals .grand dt, .totals .grand dd { color: var(--ink); font-weight: 800; }
.totals .disc dd { color: var(--ok); }
.free { background: var(--brand-l); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; font-size: .9rem; }
.free p { margin: 0 0 6px; }
.free .dbar i { background: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); text-decoration: none; font-weight: 600; margin-top: 4px; }
.box { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.box h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .row2 { grid-template-columns: 1fr 1fr; } .row2.pc { grid-template-columns: 1fr 2fr; } }
.opts { display: grid; gap: 8px; }
.opt-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.opt-card input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; }
.opt-card.on, .opt-card:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.opt-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.opt-price { font-weight: 700; white-space: nowrap; }
.free-t { color: var(--ok); }
.hint-free { color: var(--brand); }
.coupon { display: flex; gap: 8px; margin-top: 8px; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-sum .check { margin-top: 12px; }
.sum-lines > summary { font-size: 1rem; }

/* ---------- thanks / feedback */
.thanks { max-width: 620px; text-align: center; padding: 32px 16px; }
.thanks .totals { text-align: left; margin: 18px 0; }
.done-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.done-ico svg { width: 36px; height: 36px; stroke-width: 2.5; }
.next { text-align: left; margin: 18px auto 24px; max-width: 420px; display: grid; gap: 6px; }
.feedback { padding-top: 18px; }
.nps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (min-width: 520px) { .nps { grid-template-columns: repeat(11, 1fr); } }
.nps label { cursor: pointer; }
.nps span { display: grid; place-items: center; height: var(--tap); border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 700; background: #fff; }
.nps input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.nps-legend { display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- cookie consent (bottom sheet, accept and reject equally prominent) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
.consent-in { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 -4px 40px rgba(50, 35, 20, .2); padding: 16px; max-height: 80vh; overflow: auto; }
.consent h2 { font-size: 1.05rem; margin-bottom: 4px; }
.consent p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-btns .ghost { grid-column: 1 / -1; min-height: 40px; border: 0; text-decoration: underline; }
@media (min-width: 600px) { .consent-btns { grid-template-columns: 1fr 1fr auto; } .consent-btns .ghost { grid-column: auto; } }
.consent-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.consent-opts[hidden] { display: none; }
.switch { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; }
.switch span { font-weight: 600; }
.switch small { grid-column: 2; color: var(--muted); }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + var(--sticky-h) + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); font-size: .92rem; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); }

/* =====================================================================================================================
   Theme layer (warm, editorial): ticker, centred logo, category navigation, home page sections, flat product cards,
   cart drawer. Loaded after the base rules above, so it only overrides what changes.
   ===================================================================================================================== */
h1, h2, .sec-head h2, .footer-logo, .logo span { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; }
.btn { font-weight: 600; letter-spacing: .01em; }
.btn.primary { box-shadow: 0 6px 16px rgba(181, 83, 47, .22); }
.btn.big { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ---------- announcement ticker */
.ticker { background: var(--ink); color: #f6ece0; font-size: .82rem; overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 8px 24px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track span::before { content: "✦"; margin-right: 48px; color: #e3a888; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { width: auto; justify-content: center; flex-wrap: wrap; gap: 4px 28px; } .ticker-track span[aria-hidden] { display: none; } .ticker-track span::before { margin-right: 28px; } }

/* ---------- header: search | logo | cart, categories below */
.topbar-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo cart" "search search"; height: auto; padding-top: 6px; padding-bottom: 8px; gap: 4px 8px; }
.logo { grid-area: logo; color: var(--brand); font-size: 1.55rem; gap: 6px; }
.logo span { color: var(--ink); display: inline !important; }
.cart-btn { grid-area: cart; justify-self: end; }
.search { grid-area: search; max-width: none; margin: 0; background: #fff; }
.mainnav { border-top: 1px solid var(--line); }
.mainnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-height: 44px; align-items: center; }
.mainnav-in::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--brand); }
.mainnav a.on { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }
body[data-view=checkout] .mainnav, body[data-view=checkout] .ticker { display: none; }
@media (min-width: 900px) {
  .topbar-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: "search logo cart"; padding: 12px 16px; align-items: center; }
  .search { max-width: 300px; }
  .logo { font-size: 1.9rem; }
  .mainnav-in { justify-content: center; gap: 14px; }
}

/* ---------- home: hero */
.hero { background: linear-gradient(180deg, var(--sand), var(--bg)); padding: 28px 0 8px; margin: 0; }
.hero-in { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; max-width: 16ch; margin-bottom: .35em; }
.hero-lead { color: var(--muted); max-width: 46ch; font-size: 1.06rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.hero-rating { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .92rem; color: var(--muted); margin: 0; min-height: 1.5em; }
.hero-rating strong { color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; margin: 0 auto; }
.hero-art img { position: absolute; border-radius: 22px; box-shadow: 0 18px 40px rgba(70, 45, 20, .16); object-fit: cover; aspect-ratio: 1; }
.hero-art .ha1 { width: 58%; left: 21%; top: 6%; z-index: 2; }
.hero-art .ha2 { width: 40%; left: 0; top: 34%; transform: rotate(-6deg); }
.hero-art .ha3 { width: 40%; right: 0; top: 30%; transform: rotate(6deg); }
@media (min-width: 900px) { .hero { padding: 48px 0 24px; } .hero-in { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

/* ---------- home: sections */
.sec { padding-top: 44px; padding-bottom: 8px; }
.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 6px; }
.sec .chips { justify-content: flex-start; padding-top: 0; }
@media (min-width: 900px) { .sec .chips { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.sec .list-head { display: none; }
.usp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; margin-top: 20px; }
.usp-strip .usp { margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.usp-strip .usp li { background: none; border-radius: 0; padding: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; }
.usp-strip .usp li svg { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.6; }
.usp-strip .usp strong { display: block; font-size: .92rem; }
.usp-strip .usp span { color: var(--muted); }
@media (min-width: 900px) { .usp-strip .usp { grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 22px; padding-bottom: 22px; } }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tiles a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); text-align: center; }
.tile-pic { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand); margin-bottom: 8px; transition: transform .2s; }
.tile-pic img, .tile-pic .ph { width: 100%; height: 100%; object-fit: cover; }
.tiles a:hover .tile-pic { transform: scale(1.04); }
.tile-name { font-weight: 600; }
.how { background: var(--sand); margin-top: 52px; padding: 44px 0 40px; }
.steps4 { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps4 li { background: #fff; border-radius: var(--r); padding: 20px; }
.steps4 h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.steps4 p { margin: 0; color: var(--muted); font-size: .93rem; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font: 600 1.15rem var(--display); }
@media (min-width: 600px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps4 { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.voices { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .voices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.voices li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.voices blockquote { margin: 0; font-size: 1rem; flex: 1; }
.voices blockquote strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 2px; }
.voice-by { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .88rem; font-weight: 600; align-items: center; }
.voice-by a { font-weight: 400; display: inline-flex; min-height: 40px; align-items: center; }
.narrow-sec { max-width: 780px; padding-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 6px 0; font-weight: 600; font-size: 1.02rem; list-style: none; justify-content: space-between; gap: 12px; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem var(--display); color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 14px; max-width: 64ch; }
.faq-mail { margin-top: 18px; color: var(--muted); }
.faq-mail a { display: inline-flex; min-height: 40px; align-items: center; }

/* ---------- product cards: flat, picture first */
.grid { gap: 20px 12px; }
@media (min-width: 600px) { .grid { gap: 28px 18px; } }
.card a { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.card a:hover { transform: none; }
.thumb { border-radius: var(--r); background: var(--sand); }
.thumb img { transition: transform .35s; }
.card a:hover .thumb img { transform: scale(1.05); }
.thumb .pill { left: 10px; top: 10px; background: #fff; color: var(--brand-d); letter-spacing: .04em; text-transform: uppercase; font-size: .66rem; padding: 4px 9px; }
.card-body { padding: 10px 2px 0; }
.card-body h3 { font-size: 1rem; font-weight: 600; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.price { font-weight: 700; }
.ph { background: linear-gradient(135deg, hsl(var(--h) 45% 90%), hsl(calc(var(--h) + 30) 40% 84%)); }

/* ---------- item page */
.buy h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.stage-wrap + .slides img { flex-basis: 30%; }
.num { background: var(--ink); }
.pill-opt span, .field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select, .field textarea, .coupon input { border-radius: 12px; }
.box, .summary, .line { box-shadow: none; border: 1px solid var(--line); }

/* ---------- cart drawer (after "add to cart") */
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.drawer-head h2 { margin: 0; font-size: 1.25rem; }
.drawer-lines { max-height: 38vh; overflow: auto; margin-bottom: 6px; }
.sheet.drawer .totals .grand { border-top: 0; margin: 0; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: stretch; justify-content: flex-end; }
  .sheet.drawer { max-width: 420px; border-radius: 0; height: 100%; display: flex; flex-direction: column; padding: 22px; animation: slide .22s; overflow: auto; }
  .sheet.drawer .drawer-lines { max-height: none; flex: 1; }
}
@keyframes slide { from { transform: translateX(60px); opacity: .6; } }

/* ---------- footer */
.footer { background: var(--ink); color: #e9ddcf; border-top: 0; margin-top: 28px; padding-top: 40px; }
.footer .muted { color: #b9aa9a; }
.footer a, .footer .linkish { color: #f6ece0; text-decoration: none; }
.footer a:hover, .footer .linkish:hover { text-decoration: underline; }
.footer-in { gap: 26px; }
.footer-logo { font-size: 1.7rem; color: #fff; display: block; margin-bottom: 6px; }
.footer-h { display: block; font: 700 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: #b9aa9a; margin: 0 0 8px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a, .footer-links a, .footer-links .linkish { display: flex; min-height: 40px; align-items: center; padding: 0; }
.footer-links { flex-direction: column; align-items: flex-start; gap: 0; }
.footer-ctl select { background: #3a312c; color: #f6ece0; border-color: #54483f; }
.pay { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pay li { border: 1px solid #54483f; border-radius: 6px; padding: 3px 9px; font-size: .76rem; color: #d9cbbb; }
.footer-note { border-top: 1px solid #453a33; padding-top: 16px; margin: 0; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .footer-in > .footer-note { grid-column: 1 / -1; } }

/* ---------- layout details of the theme */
html { scroll-padding-top: 130px; }
main > .wrap:first-child { padding-top: 18px; }
.stage-wrap ~ .slides { justify-content: center; }
.stage-wrap ~ .slides img { flex: 0 0 30%; max-width: 180px; }
@media (min-width: 900px) { .gallery, .summary { top: 128px; } }
.hero .eyebrow { color: var(--brand); }

/* =====================================================================================================================
   Brand theme: Milost (faith shop, milost/) - navy ink, antique gold, ivory. Only the tokens and the few fixed colours.
   ===================================================================================================================== */
body[data-brand=milost] {
  --brand: #8a6420; --brand-d: #6e4f17; --brand-l: #f6eeda; --ink: #1f2a44; --muted: #5b6377; --line: #e4decf; --bg: #fbf9f3; --sand: #f2ecdd;
  --shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 8px 26px rgba(31, 42, 68, .08);
}
body[data-brand=milost] .btn.primary { box-shadow: 0 6px 16px rgba(138, 100, 32, .24); }
body[data-brand=milost] .logo span, body[data-brand=milost] .footer-logo { letter-spacing: .04em; }
body[data-brand=milost] .ticker-track span::before { color: #e3b55a; }
body[data-brand=milost] .field input:focus, body[data-brand=milost] .field select:focus, body[data-brand=milost] .field textarea:focus, body[data-brand=milost] .coupon input:focus, body[data-brand=milost] .search:focus-within { box-shadow: 0 0 0 3px rgba(138, 100, 32, .2); }
body[data-brand=milost] .hero { background: linear-gradient(180deg, #f2ecdd, var(--bg)); }
body[data-brand=milost] .hero-art img, body[data-brand=milost] .thumb { box-shadow: 0 0 0 1px rgba(31, 42, 68, .06); }
body[data-brand=milost] .hero-art img { box-shadow: 0 18px 40px rgba(31, 42, 68, .16); }
body[data-brand=milost] .footer .muted, body[data-brand=milost] .footer-h { color: #aab2c5; }
body[data-brand=milost] .footer-ctl select { background: #2a3757; border-color: #44517a; }
body[data-brand=milost] .pay li { border-color: #44517a; color: #cdd3e1; }
body[data-brand=milost] .footer-note { border-top-color: #35426a; }

/* =====================================================================================================================
   Checkout: one page, two columns - the form (white) and the order summary (tinted, full height). On a phone the
   summary folds under a bar with the total. The shop header shrinks to the logo; no navigation, no footer.
   ===================================================================================================================== */
body[data-view=checkout] { background: #fff; }
body[data-view=checkout] .footer, body[data-view=checkout] .search { display: none; }
body[data-view=checkout] .topbar { position: static; background: #fff; }
body[data-view=checkout] .topbar-in { grid-template-columns: 1fr auto; grid-template-areas: "logo cart"; padding-top: 10px; padding-bottom: 10px; }
body[data-view=checkout] main { padding-bottom: var(--sticky-h); }
.co-page { display: grid; }
.co-in { width: 100%; max-width: 620px; margin: 0 auto; padding: 18px 16px 28px; }
.co-crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.co-crumbs a { display: inline-flex; min-height: 40px; align-items: center; color: var(--brand); }
.co-crumbs strong { color: var(--ink); font-weight: 600; }
.co-sec { margin-bottom: 28px; }
.co-sec h2 { font: 600 1.25rem var(--font); letter-spacing: 0; margin-bottom: 12px; }
.co-sec .check { margin-top: 6px; }
.co-secure { display: flex; gap: 6px; align-items: center; margin: -6px 0 10px; }
.co-foot { margin-top: 12px; }
/* floating labels */
.fl { position: relative; margin-bottom: 12px; }
.fl > input, .fl > select { width: 100%; height: 54px; min-height: 54px !important; padding: 22px 13px 6px !important; border: 1px solid #d7d0c4 !important; border-radius: 8px !important; background: #fff; }
.fl > select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23706a63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.fl > label { position: absolute; left: 14px; top: 17px; margin: 0 !important; font-size: .95rem !important; font-weight: 400 !important; color: var(--muted); pointer-events: none; transition: top .12s, font-size .12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px); }
.fl > input:focus + label, .fl > input:not(:placeholder-shown) + label, .fl.has-val > label { top: 7px; font-size: .72rem !important; }
.fl > input:focus, .fl > select:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 1px var(--brand) !important; outline: none; }
.fl > [aria-invalid=true] { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err) !important; }
.co-page .row2 { gap: 0 12px; }
/* shipping / payment: one joined list */
.co-page .opts { gap: 0; border: 1px solid #d7d0c4; border-radius: 8px; overflow: hidden; background: #fff; }
.co-page .opts:empty { display: none; }
.co-page .opts > p { margin: 0; padding: 14px; }
.co-page .opt-card { border: 0; border-radius: 0; border-bottom: 1px solid #d7d0c4; min-height: 58px; }
.co-page .opt-card:last-child { border-bottom: 0; }
.co-page .opt-card.on, .co-page .opt-card:has(input:checked) { background: var(--brand-l); box-shadow: inset 0 0 0 1px var(--brand); }
.co-note > summary { color: var(--brand); font-weight: 600; }
.co-page #placeBtn { min-height: 58px; border-radius: 10px; font-size: 1.08rem; margin-top: 14px; }
/* summary */
.co-right { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: none; }
.co-right.open { display: block; }
.co-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% + 32px); margin: 0 -16px 18px; padding: 14px 16px; min-height: 56px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--sand); color: var(--ink); font: inherit; cursor: pointer; }
.co-toggle-l { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); font-weight: 600; font-size: .95rem; }
.co-toggle[aria-expanded=true] .co-toggle-l svg:last-child { transform: rotate(180deg); }
.co-toggle strong { font-size: 1.1rem; }
.co-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.co-thumb { position: relative; width: 64px; height: 64px; }
.co-thumb img, .co-thumb .ph { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.co-thumb .ph span { font-size: 1.4rem; }
.co-qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(60, 50, 40, .78); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.co-line-main { min-width: 0; display: flex; flex-direction: column; }
.co-line-main strong { font-weight: 600; font-size: .95rem; }
.co-line-main .small { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.co-line-total { font-weight: 600; white-space: nowrap; }
.co-right .coupon { margin: 0 0 6px; }
.co-right .coupon input { height: 50px; border: 1px solid #d7d0c4; border-radius: 8px; background: #fff; padding: 0 13px; }
.co-right .coupon .btn { border-radius: 8px; min-height: 50px; border-color: #d7d0c4; background: #fff; }
.co-right .totals { margin-top: 16px; gap: 8px; }
.co-right .totals .grand { border-top: 1px solid rgba(0, 0, 0, .1); padding-top: 14px; margin-top: 6px; font-size: 1.3rem; align-items: baseline; }
.co-right #eta { color: var(--muted); display: flex; gap: 6px; align-items: center; }
@media (min-width: 900px) {
  body[data-view=checkout] .topbar { border-bottom: 1px solid var(--line); }
  .co-page { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: calc(100vh - 70px); }
  .co-left .co-in { margin: 0 0 0 auto; max-width: 640px; padding: 28px 44px 48px 24px; }
  .co-right { display: block; border: 0; border-left: 1px solid var(--line); }
  .co-right .co-in { margin: 0; max-width: 480px; padding: 36px 24px 48px 44px; position: sticky; top: 0; }
  .co-toggle { display: none; }
}
/* summary markup comes first (under the bar on a phone); on wide screens it is the right column */
.co-toggle { width: 100%; margin: 0; border-top: 0; }
@media (min-width: 900px) { .co-left { grid-column: 1; grid-row: 1; } .co-right { grid-column: 2; grid-row: 1; } }
.lines.compact .line { border: 0; border-bottom: 1px solid var(--line); }
.drawer-lines { align-content: start; }

/* ---------- AI artwork (photo -> watercolour poster...): the "make the preview" box under the style choice */
.ai-box { margin-top: 12px; padding: 14px; border: 1px dashed var(--brand); border-radius: var(--r); background: var(--brand-l); display: grid; gap: 6px; }
.ai-box p { margin: 0; }
.ai-box .btn { justify-self: start; }
.ai-box .btn:not(.primary) { background: #fff; }
.thumb .pill.ai { display: inline-flex; gap: 4px; align-items: center; background: var(--ink); color: #fff; }
.thumb .pill.ai svg { width: 12px; height: 12px; }
.ai-teaser { display: grid; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; background: linear-gradient(120deg, var(--brand-l), var(--sand)); color: var(--ink); text-decoration: none; }
.ai-teaser h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 8px; }
.ai-teaser p { color: var(--muted); max-width: 52ch; }
.ai-teaser .eyebrow { display: flex; gap: 6px; align-items: center; color: var(--brand); }
.ai-teaser img { width: 100%; max-width: 340px; border-radius: 18px; justify-self: center; box-shadow: 0 14px 34px rgba(60, 40, 20, .14); transform: rotate(2deg); }
@media (min-width: 800px) { .ai-teaser { grid-template-columns: 1.3fr 1fr; padding: 36px 44px; } }

/* ---------- "about the collection" block of a theme that has a story (texts story_*) */
.story { display: grid; gap: 22px; align-items: center; }
.story img { width: 100%; max-width: 440px; border-radius: var(--r); justify-self: center; }
.story h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.story p:last-child { color: var(--muted); font-size: 1.04rem; max-width: 56ch; }
@media (min-width: 800px) { .story { grid-template-columns: 1fr 1.15fr; gap: 48px; } }
/* paintings: the catalog picture is the canvas on a wall - no tinted box behind it */
body[data-brand=milost] .thumb { background: #e8e4dc; }
body[data-brand=milost] .slides img { cursor: zoom-in; }
/* ---------- picture gallery of an item without a configurator: large picture + thumbnails */
.gal { display: grid; gap: 10px; }
.gal > img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r); background: var(--sand); }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.gal-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sand); cursor: pointer; }
.gal-thumbs button[aria-selected=true] { border-color: var(--brand); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.done-ico.wait { background: var(--warn-l); color: var(--warn); }

/* The cookie notice is a card at the bottom: only the card itself takes clicks (its full-width container used to cover
   the buttons of the cart drawer), and the cart drawer opens above it. */
.consent { pointer-events: none; }
.consent-in { pointer-events: auto; }
.sheet-wrap { z-index: 75; }

/* listing toolbar: result count left, sort right */
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 14px; min-height: 44px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort select { min-height: 44px; padding: 8px 36px 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23706a63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; -webkit-appearance: none; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 60vw; }
.sort select:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 480px) { .sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* =====================================================================================================================
   Polish layer: loading states (skeletons, view fade, loading bar), header with menu + search suggestions, product
   cards and rows, listing tools, item page extras (zoom, share, trust, sticky bar), cart drawer, footer blocks.
   Colours come from the theme tokens only, so both shops (and a project's own accent) get the same treatment.
   ===================================================================================================================== */
:root { --ring: color-mix(in srgb, var(--brand) 24%, transparent); --wrap: 1240px; --ease: cubic-bezier(.2, .7, .2, 1); }
.wrap { max-width: var(--wrap); }
@media (min-width: 1700px) { :root { --wrap: 1400px; } }
html { scrollbar-gutter: stable; }
body.modal-open { overflow: hidden; }
::selection { background: var(--brand-l); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus, .search:focus-within,
body[data-brand=milost] .field input:focus, body[data-brand=milost] .field select:focus, body[data-brand=milost] .field textarea:focus, body[data-brand=milost] .coupon input:focus, body[data-brand=milost] .search:focus-within { box-shadow: 0 0 0 3px var(--ring); }
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn:active { transform: scale(.97); }
.btn.primary { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 26%, transparent); }
.btn.primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 86%, #fff); border-color: var(--ink); }
.btn.dark.busy::after { border-color: #fff; border-right-color: transparent; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { transition: background .15s, transform .08s; }
.icon-btn:active { transform: scale(.92); }
.linkish:hover { text-decoration-thickness: 2px; }
.toast.ok { background: var(--ok); }

/* ---------- typography rhythm */
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.sec { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 0; }
.sec-head { margin-bottom: clamp(20px, 2.4vw, 30px); }
.sec-head.left { text-align: left; }
.sec-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); }
.sec-head > .muted { margin: 6px 0 0; }
.row-sec .sec-head h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); }
.how { margin-top: clamp(44px, 5vw, 68px); padding: clamp(40px, 5vw, 60px) 0; }
.narrow-sec { padding-bottom: 12px; margin-left: auto; margin-right: auto; }
main { padding-bottom: calc(clamp(40px, 5vw, 64px) + var(--sticky-h)); }
.footer { margin-top: 0; }

/* ---------- views: the new page fades in; a slim bar under the header while its data loads */
.view-in { animation: view-in .22s var(--ease); }
@keyframes view-in { from { opacity: 0; } }
.load-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.load-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--brand); border-radius: 2px; transform: translateX(-100%); }
body.loading .load-bar { opacity: 1; transition: opacity .1s .12s; }
body.loading .load-bar::after { animation: load-bar 1s .12s ease-in-out infinite; }
@keyframes load-bar { to { transform: translateX(350%); } }
body[data-view=checkout] .load-bar { display: none; }

/* ---------- skeletons: the boxes of the coming content */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--sand) 0, color-mix(in srgb, var(--sand) 45%, #fff) 45%, var(--sand) 90%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-line { height: 16px; margin: 0 0 10px; width: 100%; }
.sk-line.thin { height: 12px; } .sk-line.h1 { height: 30px; margin-bottom: 14px; } .sk-line.h0 { height: 42px; margin-bottom: 12px; }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.sk-btn { display: block; height: 52px; border-radius: 999px; margin-top: 18px; }
.sk-field { display: block; height: 54px; margin-bottom: 12px; }
.sk-stage { aspect-ratio: 1; border-radius: var(--r); }
.sk-art { aspect-ratio: 5 / 4; border-radius: 22px; }
.sk-thumbs, .sk-pills { display: flex; gap: 8px; margin: 10px 0 16px; }
.sk-thumbs .sk { width: 76px; height: 76px; border-radius: 10px; }
.sk-pills .sk { width: 84px; height: 44px; border-radius: 12px; }
.sk-card .card-body { padding-top: 12px; }
.sk-card .thumb { box-shadow: none !important; }
.sk-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.drawer-body > .lines > .sk-row { border: 0; padding: 12px 0; background: none; grid-template-columns: 64px 1fr; }
.drawer-body > .lines > .sk-row .line-pic { width: 64px; height: 64px; }
.sk-text { padding-top: 48px; padding-bottom: 48px; }
.sk-rev { max-width: 520px; padding: 6px 0 4px; }
.sk-page .hero-text { min-height: 300px; }
.sk-page .co-line { display: grid; grid-template-columns: 64px 1fr 60px; gap: 14px; align-items: center; margin-bottom: 14px; }
.sk-page .co-thumb { border-radius: 10px; }
.sk-page .co-line .sk-line { margin: 0; }
.sk-page.co-page .co-right { display: none; }
@media (min-width: 900px) { .sk-page.co-page .co-right { display: block; } }
.tile-pic.sk { border-radius: 50%; }
/* pictures fade in inside their reserved box */
.thumb img, .tile-pic img, #galMain, .lightbox img, .sg-pic img { opacity: 0; transition: opacity .3s, transform .45s var(--ease); }
.thumb img.ld, .tile-pic img.ld, #galMain.ld, .lightbox img.ld, .sg-pic img.ld { opacity: 1; }

/* ---------- header */
.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); transition: box-shadow .2s; }
body.scrolled .topbar { box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 9%, transparent); }
.topbar-in { grid-template-columns: var(--tap) 1fr var(--tap); grid-template-areas: "menu logo cart" "search search search"; padding-top: 6px; padding-bottom: 10px; gap: 6px 8px; }
.menu-btn { grid-area: menu; color: var(--ink); margin-left: -8px; }
.logo { justify-self: center; }
.cart-btn { margin-right: -8px; }
.cart-btn:hover, .menu-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.badge { top: 3px; right: 1px; box-shadow: 0 0 0 2px var(--bg); }
.badge.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.search { position: relative; height: 46px; transition: border-color .15s, box-shadow .15s; }
.search input { height: 44px; font-size: 16px; }
.search .icon-btn { width: 44px; height: 44px; }
.mainnav { display: none; }
@media (min-width: 900px) {
  .topbar-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: "search logo cart"; padding: 12px 16px; }
  .menu-btn { display: none; }
  .mainnav { display: block; }
  .search { max-width: 320px; }
  .mainnav-in { gap: 6px; }
  .mainnav a { padding: 0 14px; position: relative; border-bottom: 0; }
  .mainnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease); }
  .mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
}
body[data-view=checkout] .topbar-in { grid-template-columns: 1fr auto; grid-template-areas: "logo cart"; }
body[data-view=checkout] .menu-btn { display: none; }
body[data-view=checkout] .logo { justify-self: start; }
/* search suggestions */
.suggest { position: absolute; left: 0; top: calc(100% + 8px); width: max(100%, 380px); max-width: calc(100vw - 32px); z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.suggest ul { list-style: none; margin: 0; padding: 6px; }
.suggest li a, .sg-sk { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; min-height: 64px; }
.suggest li a:hover, .suggest li[aria-selected=true] a { background: var(--brand-l); }
.sg-pic { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--sand); }
.sg-pic img { width: 100%; height: 100%; object-fit: cover; }
.sg-pic .ph span { font-size: 1.2rem; }
.sg-name { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sg-sk .sk-line { margin: 0; }
.sg-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--brand-d); font-weight: 600; font-size: .92rem; text-decoration: none; }
.sg-all:hover { background: var(--brand-l); }
.sg-none { margin: 0; padding: 16px; font-size: .92rem; }
/* menu panel (phone / tablet) */
.menu-panel { position: fixed; inset: 0; z-index: 65; background: color-mix(in srgb, var(--ink) 0%, transparent); transition: background .22s; overflow: hidden; }
.menu-panel.open { background: color-mix(in srgb, var(--ink) 42%, transparent); }
.menu-in { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateX(-100%); transition: transform .24s var(--ease); box-shadow: 12px 0 40px color-mix(in srgb, var(--ink) 20%, transparent); }
.menu-panel.open .menu-in { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0 -8px 6px 0; }
.menu-title { font: 600 1.5rem var(--display); color: var(--ink); }
.menu-sec { border-top: 1px solid var(--line); padding: 12px 0; }
.menu-h { display: block; font: 700 .76rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.menu-cats, .menu-cats ul { list-style: none; margin: 0; padding: 0; }
.menu-cats ul { padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 6px 2px; }
.menu-cats a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 600; }
.menu-cats ul a { min-height: 44px; font-size: .98rem; font-weight: 500; color: var(--muted); }
.menu-cats a.on { color: var(--brand); }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; }
.menu-links a, .menu-links .linkish { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; color: var(--ink); text-decoration: none; }
.menu-sec select { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }

/* ---------- product cards (grid .card, rows .pcard) */
.pcard a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card a, .pcard a { border-radius: var(--r); }
.card a:focus-visible, .pcard a:focus-visible { outline-offset: 4px; }
.card a:hover .thumb img.ld, .pcard a:hover .thumb img.ld { transform: scale(1.045); }
.card a:hover h3, .pcard a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.thumb { transition: box-shadow .25s; }
.card a:hover .thumb, .pcard a:hover .thumb { box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 12%, transparent); }
.card-body { padding: 12px 2px 0; }
.card-body h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 4px; font-weight: 600; }
.clamp { margin-bottom: 10px; line-height: 1.45; }
.card-foot { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 3px; }
.card-foot .price { font-size: 1.02rem; }
.card-days { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.card-days svg { width: 13px; height: 13px; }
.thumb .pill { box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.thumb .pill.out { background: var(--ink); color: #fff; }
.is-out .thumb img { filter: grayscale(.5) opacity(.75); }
.grid { gap: 26px 12px; }
@media (min-width: 600px) { .grid { gap: 34px 20px; } }
@media (min-width: 1200px) { .grid { gap: 40px 24px; } }
.grid.updating { opacity: .45; }
/* rows: a swipe row on phones, four in a line on wide screens */
.prow { list-style: none; margin: 0 -16px; padding: 4px 16px 10px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.prow::-webkit-scrollbar { display: none; }
.prow > li { flex: 0 0 44%; min-width: 150px; max-width: 240px; scroll-snap-align: start; }
@media (min-width: 600px) { .prow > li { flex-basis: 30%; } .prow { gap: 20px; } }
@media (min-width: 900px) {
  .prow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; }
  .prow > li { max-width: none; min-width: 0; }
  .prow > li:nth-child(n+5) { display: none; }
}

/* ---------- listing */
.listing { padding-top: 6px; }
main > .view > .wrap:first-child, main > .wrap:first-child { padding-top: 14px; }
main > .view > .co-page:first-child { padding-top: 0; }
.crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); padding: 4px 0 10px; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); padding: 8px 0; text-decoration: none; flex: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-hidden] { opacity: .5; flex: none; }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.list-head { display: block; margin: 4px 0 6px; }
.list-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); margin: 0; }
.list-desc { margin: 8px 0 0; max-width: 64ch; }
.listing .chips { padding-top: 12px; padding-bottom: 8px; }
.chip { min-height: 44px; padding: 8px 16px; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chips.sub .chip { min-height: 40px; }
.sec .chips { padding-bottom: 6px; }
.sec .list-bar { margin-top: 8px; }
.more { margin: 34px 0 0; }
.more p { margin: 0 0 12px; }
.more .btn { min-width: 200px; }
.empty { padding: clamp(48px, 9vw, 96px) 16px; max-width: 560px; margin: 0 auto; }
.empty.in-list { padding: 40px 0 8px; }
.empty.in-drawer { padding: 48px 8px; }
.empty h1 { margin-bottom: 8px; }
.empty-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; }
.empty-ico svg { width: 30px; height: 30px; stroke-width: 1.7; }
.empty-t { font: 600 1.25rem var(--display); margin: 0 0 6px; }
.empty-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 0; }
.nf-code { font: 600 clamp(4rem, 16vw, 7rem)/1 var(--display); color: var(--brand-l); margin: 0 0 4px; letter-spacing: .04em; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 45%, transparent); }
.nf-search { margin: 22px auto 0; max-width: 420px; text-align: left; }
.tiles a { border-radius: var(--r); padding-bottom: 4px; }
.tiles a:hover .tile-name { color: var(--brand); }
.tile-pic { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); }
.hero-rating { opacity: 0; transition: opacity .3s; }
.hero-rating.on { opacity: 1; }
.usp-strip .usp li { align-items: flex-start; }
.steps4 li { border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent); }
.faq summary { transition: color .15s; border-radius: 6px; }
.faq summary:hover { color: var(--brand); }
.faq summary::after { transition: transform .2s; }
.voices li { transition: box-shadow .2s, transform .2s; }
.voice-by a, .faq-mail a, .co-crumbs a { min-height: 44px; }
.ai-teaser { transition: box-shadow .25s; }
.ai-teaser:hover { box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent); }
.story img { aspect-ratio: 1; object-fit: cover; }

/* ---------- item page */
.item .crumbs { padding-bottom: 12px; }
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.buy-head h1 { margin: 0 0 6px; text-wrap: balance; }
.share-btn { flex: none; border: 1.5px solid var(--line); background: #fff; margin-top: 2px; }
.share-btn:hover { border-color: var(--ink); background: #fff; }
.share-btn svg { width: 19px; height: 19px; }
.price-row { min-height: 2.6rem; margin: 6px 0 10px; }
.price.big { font-size: 1.75rem; }
#compare { font-size: 1.05rem; }
.buy .lead { margin-bottom: 16px; }
.axis { margin-bottom: 10px; }
.pill-opt span { transition: border-color .15s, background .15s, color .15s; }
.pill-opt:hover span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.pill-opt input:checked + span { box-shadow: inset 0 0 0 1px var(--brand); }
.swatch { transition: box-shadow .15s; }
.swatch:hover { box-shadow: 0 0 0 2px var(--line); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.step { padding-top: 20px; margin-top: 14px; }
.step h2 { font-size: 1.15rem; margin-bottom: 14px; }
.facts { gap: 10px; padding-top: 16px; margin-top: 16px; }
.facts li { align-items: flex-start; line-height: 1.4; }
.facts svg { width: 18px; height: 18px; margin-top: 1px; }
.buy-row { margin: 20px 0 10px; }
.buy-row .btn { min-height: 52px; font-size: 1.04rem; }
.buy-row .qty { min-height: 52px; }
.qty .icon-btn:hover { background: var(--brand-l); }
.qty.sm .icon-btn { width: 44px; height: 44px; }
.trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--brand); }
.trust.col { flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.desc { margin-top: 20px; }
.desc summary { font-size: 1.05rem; }
.rich p:last-child { margin-bottom: 0; }
/* gallery of pictures: reserved square box, zoom on click */
.gal-main { touch-action: pan-y pinch-zoom; position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r); background: var(--sand); overflow: hidden; cursor: zoom-in; }
.gal-main img, .gal > img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; background: none; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, #fff 88%, transparent); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 16%, transparent); transition: transform .15s; }
.gal-main:hover .zoom-hint { transform: scale(1.08); }
.gal-thumbs { padding: 3px; margin: 0 -3px; scrollbar-width: none; }
.gal-thumbs button { transition: border-color .15s, opacity .15s; opacity: .8; }
.gal-thumbs button:hover, .gal-thumbs button[aria-selected=true] { opacity: 1; }
.slides img { cursor: zoom-in; background: var(--sand); }
.slides.one { border-radius: var(--r); }
.stage { transition: background .2s; }
@media (min-width: 900px) { .item-grid { gap: 56px; } }
/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, #14100c 93%, transparent); display: grid; place-items: center; animation: fade .18s; touch-action: pan-y; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px 44px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); text-align: center; color: #fff; font-size: .9rem; opacity: .8; }
.lightbox .icon-btn { position: absolute; z-index: 2; width: 48px; height: 48px; background: rgba(255, 255, 255, .14); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox .icon-btn:focus-visible { outline-color: #fff; }
.lb-x { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }
@media (min-width: 900px) { .lightbox figure { padding: 40px 90px; } .lightbox img { max-height: calc(100vh - 80px); } .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-x { top: 20px; right: 24px; } }
/* sticky add-to-cart bar: phone (price + button) and desktop (picture, name, price, button) */
.sticky-buy { transition: transform .26s var(--ease); }
.sticky-item { display: none; }
.sticky-price { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
@media (min-width: 900px) {
  .sticky-buy { display: block; }
  .cart-sticky, .co-sticky { display: none; }
  .sticky-in { justify-content: flex-end; gap: 22px; }
  .sticky-item { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
  .sticky-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--sand); flex: none; }
  .sticky-item strong { font: 600 1.1rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-price { flex-direction: row; align-items: baseline; gap: 4px; }
  .sticky-in .btn { flex: 0 0 auto; min-width: 240px; }
}
/* reviews */
.reviews { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(24px, 3vw, 36px); min-height: 220px; }
.reviews > h2 { margin-bottom: 14px; }
.rev-form > summary { min-height: var(--tap); }

/* ---------- cart */
.cart h1 { margin-bottom: 18px; }
.cart h1 .small { font-family: var(--font); font-weight: 400; letter-spacing: 0; }
.cart-main { min-width: 0; }
a.line-pic { display: block; }
.line-pic img { transition: transform .3s; }
a.line-pic:hover img { transform: scale(1.05); }
.line { transition: opacity .2s, transform .2s; padding: 14px; }
.line.removing { opacity: .35; transform: scale(.985); }
.line-top a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.line-ctl .rm:hover { color: var(--err); background: var(--err-l); }
.note-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--brand-d); font-weight: 600; font-size: .95rem; text-decoration: none; }
.note-link:hover { text-decoration: underline; }
.summary { padding: 20px; }
.summary .small svg { margin-right: 6px; }
.cart-updating .summary .totals, .cart-updating .sticky-in .price, .cart-updating .drawer-foot .totals { opacity: .45; transition: opacity .15s; }
.free { border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); padding: 12px 14px; margin-bottom: 14px; }
.free p { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.free p svg { color: var(--brand); margin-top: 2px; }
.free .dbar { background: #fff; }
.free .dbar i { border-radius: 4px; transition: width .4s var(--ease); }
.free.done { background: var(--ok-l); border-color: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.free.done p svg { color: var(--ok); }
.free.done .dbar i { background: var(--ok); }
.checkout-btn { margin-top: 14px !important; }

/* ---------- cart drawer */
.sheet-wrap { background: color-mix(in srgb, var(--ink) 42%, transparent); animation: fade .2s; }
.sheet { animation: up .26s var(--ease); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; }
.sheet h2 { color: var(--ink); font-size: 1.3rem; }
.sheet h2.is-added { color: var(--ok); }
.sheet h2 svg { width: 22px; height: 22px; }
.drawer-head { margin: -6px -8px 10px 0; flex: none; }
.drawer-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.drawer-body > .lines.sk-lines, .drawer-body > ul[aria-hidden] .line { border: 0; padding: 10px 0; }
.drawer-lines { max-height: none; overflow: auto; flex: 1 1 auto; min-height: 90px; margin: 0 -4px 0 0; padding-right: 4px; overscroll-behavior: contain; }
.lines.compact .line { padding: 12px 0; grid-template-columns: 64px 1fr; }
.lines.compact .line-pic { width: 64px; height: 64px; }
.lines.compact .line-ctl { margin-top: 6px; }
.drawer-foot { flex: none; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.sheet.drawer .totals .grand { padding-top: 0; }
.sheet-btns { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.sheet-btns .btn { padding-left: 10px; padding-right: 10px; min-height: 50px; }
.drawer-continue { display: block; margin: 4px auto 0; color: var(--muted); font-size: .92rem; }
@media (min-width: 700px) {
  .sheet.drawer { max-height: none; animation: slide .28s var(--ease); padding: 22px 24px; }
}
@keyframes slide { from { transform: translateX(100%); } }

/* ---------- checkout / thank-you */
.co-sum.updating #totals, .co-sum.updating #eta { opacity: .45; transition: opacity .15s; }
.opt-card { transition: border-color .15s, background .15s, box-shadow .15s; }
.opt-card:hover { background: color-mix(in srgb, var(--brand-l) 45%, #fff); }
.co-note > summary { min-height: var(--tap); }
.thanks { padding-top: clamp(36px, 6vw, 72px); margin: 0 auto; }
.thanks .box { border-radius: var(--r); padding: 18px 20px; }
.thanks .totals > div { padding: 4px 0; }
.next { counter-reset: n; list-style: none; padding: 0; gap: 12px; margin-top: 24px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.next li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font: 600 .95rem var(--display); }
.done-ico { animation: pop-in .4s var(--ease); }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }

/* ---------- footer */
.footer-in { gap: 30px 26px; }
.footer-info { display: grid; gap: 22px; border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); padding-top: 26px; }
.footer-info p { margin: 0 0 6px; font-size: .92rem; line-height: 1.55; color: color-mix(in srgb, #fff 72%, var(--ink)); max-width: 44ch; }
.footer-mail a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.footer-list a, .footer-links a, .footer-links .linkish { min-height: 44px; }
.footer-note { border-top-color: color-mix(in srgb, #fff 12%, transparent) !important; }
.footer-ctl select { min-height: 48px; border-radius: 12px; }
@media (min-width: 700px) { .footer-info { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (min-width: 900px) {
  .footer { padding-top: 56px; }
  .footer-in { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; }
  .footer-in > .footer-info, .footer-in > .footer-note { grid-column: 1 / -1; }
  .footer-in:has(.footer-ctl[hidden]) { grid-template-columns: 1.7fr 1fr 1fr; }
}

/* ---------- phones: comfortable tap targets, tighter hero */
@media (max-width: 599px) {
  .hero { padding-top: 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-art { max-width: 420px; }
  .tabs button, .chips.sub .chip { min-height: 44px; }
  .sec-head.left h2 { font-size: 1.45rem; }
  .buy-row .btn { padding-left: 12px; padding-right: 12px; }
  .list-bar { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .view-in, .suggest, .sheet, .sheet-wrap, .lightbox, .done-ico { animation: none !important; } .menu-in, .menu-panel { transition: none !important; } }
/* customer voices: two or three cards share the row evenly */
@media (min-width: 700px) { .voices { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* centred pages (empty states, 404, thank-you) keep their air under the header */
main > .view > .wrap.empty:first-child, main > .view > .wrap.thanks:first-child { padding-top: clamp(44px, 8vw, 88px); }
.chips { scroll-padding-left: 16px; }
/* footer on phones: the two link lists side by side */
@media (max-width: 699px) {
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > .footer-brand, .footer-in > .footer-ctl, .footer-in > .footer-info, .footer-in > .footer-note { grid-column: 1 / -1; }
}
/* a small collection (5, 6 or 9 items) fills rows of three instead of leaving orphans in a row of four */
@media (min-width: 1200px) { .grid:has(> .card:nth-child(5):last-child), .grid:has(> .card:nth-child(6):last-child), .grid:has(> .card:nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-foot svg, .co-right #eta svg { margin-right: 2px; }
.co-foot { display: flex; justify-content: center; align-items: center; gap: 6px; }
#eta:empty { display: none; }
.usp-strip .usp { padding-left: 16px; padding-right: 16px; }
.qty input { width: 44px; height: 44px; }
.line-top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.line-top { align-items: center; }
.reviews { min-height: 0; }
.reviews[aria-busy] { min-height: 220px; }

/* =====================================================================================================================
   Colour schemes of a theme (test switch in the footer: "Boje"; ?scheme=<code> in the address sets it, ?scheme= clears)
   ===================================================================================================================== */
body[data-brand=milost][data-scheme=bordo] { --brand: #8e2a35; --brand-d: #71202a; --brand-l: #f7e8e9; --ink: #2e1c20; --muted: #6b5a5e; --line: #eadcdc; --bg: #fcf8f6; --sand: #f3e9e6; }
body[data-brand=milost][data-scheme=maslina] { --brand: #5d6b2f; --brand-d: #4a5625; --brand-l: #eef0e0; --ink: #262b1d; --muted: #5f6553; --line: #e2e2d3; --bg: #fafaf4; --sand: #eeeee0; }
body[data-brand=milost][data-scheme=plava] { --brand: #2c5aa0; --brand-d: #234880; --brand-l: #e6eef9; --ink: #17243d; --muted: #566179; --line: #dce3ee; --bg: #f7f9fc; --sand: #e8eef6; }
body[data-brand=milost][data-scheme=kamen] { --brand: #a07b35; --brand-d: #80622a; --brand-l: #f5eedf; --ink: #262626; --muted: #646464; --line: #e3e0da; --bg: #faf9f7; --sand: #eeebe5; }
body[data-brand=milost][data-scheme=bijela] { --brand: #1f2a44; --brand-d: #111827; --brand-l: #eceef3; --ink: #1f2a44; --muted: #5b6377; --line: #e6e8ee; --bg: #ffffff; --sand: #f3f4f7; }
body[data-brand=milost][data-scheme] { --ring: color-mix(in srgb, var(--brand) 24%, transparent); }
body[data-brand=milost][data-scheme] .btn.primary { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 24%, transparent); }
body[data-brand=milost][data-scheme] .hero { background: linear-gradient(180deg, var(--sand), var(--bg)); }
body[data-brand=milost][data-scheme] .footer-ctl select { background: color-mix(in srgb, var(--ink) 82%, #fff); border-color: color-mix(in srgb, var(--ink) 65%, #fff); }
body[data-brand=milost][data-scheme] .pay li { border-color: color-mix(in srgb, var(--ink) 65%, #fff); }
body[data-brand=milost][data-scheme] .footer-note { border-top-color: color-mix(in srgb, var(--ink) 75%, #fff); }
/* the logo mark next to the name in the menu panel and the footer, as in the header */
.menu-title, .footer-logo { display: inline-flex; align-items: center; gap: 6px; }
.menu-title svg { color: var(--brand); flex: none; }
.footer-logo svg { color: color-mix(in srgb, var(--brand) 55%, #fff); flex: none; }
body[data-brand=milost] .menu-title span { letter-spacing: .04em; }
/* selects of the footer and the menu: own arrow, a little in from the right edge (the native one sits on the edge) */
.footer-ctl select, .menu-sec 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 24 24' fill='none' stroke='%23706a63' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.footer-ctl select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9ddcf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.fl > select { padding-right: 44px !important; background-position: right 16px center; }
/* the themes set the footer select colour with the background shorthand: keep the arrow over it */
.footer-ctl select { background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 18px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9ddcf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; }
/* menu panel: country / language and colours together at the bottom, without a line between them */
.menu-in { display: flex; flex-direction: column; }
.menu-in > * { flex-shrink: 0; }
.menu-end { margin-top: auto; }
.menu-end + #schemeBox { border-top: 0; padding-top: 4px; }
.menu-end[hidden] + #schemeBox { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }

/* =====================================================================================================================
   Pictures while they load: the box shimmers like a skeleton, then the picture comes in from blurred to sharp
   ===================================================================================================================== */
.thumb:has(> img:not(.ld)), .tile-pic:has(> img:not(.ld)), .gal-main:has(> img:not(.ld)), .sg-pic:has(> img:not(.ld)), .line-pic:has(> img:not(.ld)), .gal-thumbs button:has(> img:not(.ld)), .co-thumb:has(> img:not(.ld)),
.slides img:not(.ld), .hero-art img:not(.ld), .sticky-item img:not(.ld) {
  background-image: linear-gradient(90deg, var(--sand) 0, color-mix(in srgb, var(--sand) 45%, #fff) 45%, var(--sand) 90%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite;
}
.thumb img, .tile-pic img, #galMain, .sg-pic img, .line-pic img, .gal-thumbs img, .co-thumb img, .slides img, .sticky-item img {
  transition: opacity .35s, filter .55s var(--ease), transform .45s var(--ease);
}
.thumb img:not(.ld), .tile-pic img:not(.ld), #galMain:not(.ld), .sg-pic img:not(.ld), .line-pic img:not(.ld), .gal-thumbs img:not(.ld), .co-thumb img:not(.ld) { opacity: 0; filter: blur(14px); transform: scale(1.04); }
.thumb img.ld, .tile-pic img.ld, #galMain.ld, .sg-pic img.ld, .line-pic img.ld, .gal-thumbs img.ld, .co-thumb img.ld { opacity: 1; filter: none; }
.hero-art img { transition: opacity .45s, filter .6s var(--ease); }
.hero-art img:not(.ld) { filter: blur(10px); }
@media (prefers-reduced-motion: reduce) {
  .thumb, .tile-pic, .gal-main, .sg-pic, .line-pic, .gal-thumbs button, .co-thumb, .slides img, .hero-art img, .sticky-item img { animation: none !important; }
  .thumb img, .tile-pic img, #galMain, .sg-pic img, .line-pic img, .gal-thumbs img, .co-thumb img, .hero-art img { filter: none !important; transform: none !important; }
}
/* review byline: name · date · verified purchase · variant, on one baseline; wraps between the parts, not inside them */
.rev-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.rev-meta > span { display: inline-flex; align-items: center; white-space: nowrap; }
.rev-meta > span + span::before { content: "·"; margin: 0 7px; color: var(--muted); }
.rev-meta .verified { gap: 4px; }
.rev-meta .verified svg { width: 14px; height: 14px; flex: none; }
/* checkout options: the chosen row's frame follows the rounded corners of the list (no clipped, square corners) */
.co-page .opt-card:first-child { border-radius: 7px 7px 0 0; }
.co-page .opt-card:last-child { border-radius: 0 0 7px 7px; }
.co-page .opt-card:only-child { border-radius: 7px; }
.co-page .opt-card.on, .co-page .opt-card:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--brand); border-bottom-color: transparent; }
.co-page .opt-card:has(+ .opt-card.on), .co-page .opt-card:has(+ .opt-card input:checked) { border-bottom-color: transparent; }
/* shop reply under a review: closed until the visitor opens it */
details.reply { background: none; padding: 0; margin-top: 6px; }
details.reply > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; color: var(--brand); min-height: 32px; }
details.reply > summary::-webkit-details-marker { display: none; }
details.reply > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
details.reply[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
details.reply > p { background: var(--sand); border-radius: var(--r-sm); padding: 10px 12px; margin: 4px 0 0; font-size: .92rem; }
