/* OMI Tattoo — minimal tattoo-shop storefront.
   White page, black ink, one muted red; a single wide flash banner, photos carry the products. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(./fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(./fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --tile: #f3f1ed;
  --ink: #111111;
  --muted: #5b5b5b;
  --line: #e4e2de;
  --control: #8a8a8a;
  --red: #9e3a2e;
  --red-dark: #7e2c22;
  --red-on-ink: #e35b4e;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 96px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-size: 15px; line-height: 1.6; background: var(--bg); letter-spacing: 0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { display: block; outline: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.announce :focus-visible, .marquee :focus-visible, .drawer-head :focus-visible, .icon-circle:focus-visible { outline-color: var(--red); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--red); border-color: var(--red); }
.btn-primary:disabled { background: #d6d3ce; border-color: #d6d3ce; color: var(--ink); cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 54px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; margin: 3px; }
.icon-circle svg { width: 18px; height: 18px; }
.icon-circle:hover { background: var(--red); }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- announcement, header, marquee ---------- */
.announce { background: var(--ink); color: var(--red-on-ink); text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; }
.header-bar {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'logo . icons' 'nav nav nav'; align-items: center; row-gap: 6px;
}
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.emblem { border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: #f1e6cf; }
.logo img:first-child { width: 48px; height: 48px; }
.logo img + img { width: 40px; height: 40px; }
.header-icons { grid-area: icons; display: flex; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; }
.cart-count:empty, .cart-count[data-zero] { display: none; }
.main-nav { grid-area: nav; margin: 0 calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; gap: 6px; padding: 0 var(--gutter); white-space: nowrap; }
.main-nav a { display: block; padding: 8px 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current='page'] { border-bottom-color: var(--ink); }
.search { display: none; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 12px; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0; background: #fff; }
.site-header.search-open .search { display: flex; }
@media (min-width: 900px) {
  .header-bar { grid-template-areas: 'logo nav icons'; padding: 22px var(--gutter); column-gap: 32px; }
  .logo img:first-child { width: 76px; height: 76px; }
  .logo img + img { width: 62px; height: 62px; }
  .main-nav { margin: 0; }
  .main-nav ul { justify-content: center; flex-wrap: wrap; column-gap: 28px; padding: 0; }
}

.marquee { background: var(--ink); color: #fff; overflow: hidden; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li { padding: 10px 0 10px 36px; white-space: nowrap; }
.marquee-list li::before { content: '✦'; color: var(--red-on-ink); margin-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shop page ---------- */
.shop { padding-bottom: 72px; }
.page-title {
  text-align: center; padding: 36px var(--gutter) 28px; font-size: clamp(36px, 7vw, 64px); font-weight: 600;
  letter-spacing: 0.28em; text-indent: 0.28em; text-transform: uppercase;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--ink);
}
/* whole painting on phones; a slightly wider crop on desktop so products stay close */
.banner { background: #f1e6cf; }
.banner img { width: 100%; height: auto; aspect-ratio: 2688 / 1152; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 900px) { .banner img { aspect-ratio: 2.7 / 1; max-height: 600px; } }
.collection-head { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 20px; display: grid; gap: 6px; text-align: center; }
.collection-head h2 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.04em; }
.collection-desc { color: var(--muted); }
.toolbar { max-width: var(--max); margin: 0 auto 28px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar > * { padding: 12px 0; }
.toolbar { border-block: 1px solid var(--line); padding-block: 0; }
@media (min-width: 900px) { .toolbar { max-width: calc(var(--max) - 2 * var(--gutter)); padding: 0; } }
.toolbar-count { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.sort select { height: 38px; padding: 0 8px; border: 1px solid var(--control); border-radius: 0; background: #fff; font-size: 13px; letter-spacing: 0; text-transform: none; }
.search-summary { max-width: var(--max); margin: -12px auto 20px; padding: 0 var(--gutter); text-align: center; }
.search-summary button { margin-left: 8px; border: 0; background: none; text-decoration: underline; cursor: pointer; padding: 4px; }
.shop-note { max-width: var(--max); margin: 40px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--muted); }

.grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: center; }
.card-link { display: grid; gap: 14px; text-decoration: none; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--tile); overflow: hidden; }
/* Some official packshots ship on white: multiply lets them sit on the tile colour. */
.card-media > img, .slide-btn img.is-packshot, .thumb img, .line-media img, .summary-list img { mix-blend-mode: multiply; }
.card-media > img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transform: scale(var(--img-scale, 1)); transition: transform 0.4s ease; }
.card-media > img.is-padded { object-fit: cover; }
.card-link:hover .card-media > img { transform: scale(calc(var(--img-scale, 1) * 1.04)); }
/* ---------- product key visual: painted background + render, layered for depth ---------- */
.kv { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #f1e6cf; perspective: 900px; --tx: 0; --ty: 0; --s: 1; }
.kv-bg { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; transform: translate3d(calc(var(--tx) * -10px), calc(var(--ty) * -10px), 0); transition: transform 0.6s ease; }
.kv-product {
  position: absolute; left: var(--kv-x, 50%); top: var(--kv-y); width: var(--kv-w); height: auto;
  transform: translate(-50%, -50%) translate3d(calc(var(--tx) * 16px), calc(var(--ty) * 14px), 0) rotateY(calc(var(--tx) * 10deg)) rotateX(calc(var(--ty) * -8deg)) scale(var(--s));
  filter: drop-shadow(0 18px 16px rgba(45, 28, 12, 0.3)); transition: transform 0.6s ease;
}
.kv.is-active .kv-bg, .kv.is-active .kv-product { transition-duration: 0.15s; }
.card-link:hover .kv { --s: 1.05; }
.kv-note { position: absolute; z-index: 2; left: 8px; right: 8px; top: 8px; padding: 3px 6px; background: rgba(17, 17, 17, 0.72); color: #fff; font-size: 10px; letter-spacing: 0.04em; text-align: center; }
.card-media--kv { aspect-ratio: 4 / 5; background: none; }
.slide--kv { display: block; }
.badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 4px 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.card-name { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; hyphens: auto; overflow-wrap: break-word; }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 4px; }
.card-meta { margin-top: auto; display: grid; gap: 0; justify-items: center; }
.card-price { display: flex; gap: 8px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.card-size { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.price { font-size: 15px; font-weight: 600; }
.price--missing { font-size: 13px; font-weight: 500; color: var(--muted); }
.price-demo { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.btn-card { min-height: 42px; padding: 0 8px; font-size: 11px; letter-spacing: 0.16em; width: 100%; margin-top: 4px; }
@media (min-width: 900px) { .card-name { font-size: 13px; } .price { font-size: 16px; } }
.media-missing { display: grid; justify-items: center; gap: 10px; padding: 12px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.media-missing-label { width: 84px; height: 84px; }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 16px 56px; }
.empty-label { width: 88px; height: 88px; margin-bottom: 4px; }
.empty h1, .empty h2 { font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
.empty p { color: var(--muted); max-width: 40ch; }
.empty .btn { margin-top: 8px; }
.empty--page { padding: 72px 16px 96px; }

/* ---------- product page ---------- */
.breadcrumbs { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.pdp { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; display: grid; gap: 24px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .buy-box { position: sticky; top: calc(var(--header-h) + 24px); }
}
.gallery { position: relative; min-width: 0; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); }
.gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .gallery-track { margin: 0; } }
.slide { scroll-snap-align: start; }
.slide-btn { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--tile); cursor: zoom-in; overflow: hidden; }
.slide-btn img.is-packshot { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transform: scale(var(--img-scale, 1)); }
.slide-btn img.is-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide--missing { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--tile); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border: 1px solid var(--ink); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.zoom-hint svg { width: 14px; height: 14px; }
.thumbs { display: none; }
.gallery-count { text-align: center; font-size: 13px; color: var(--muted); padding-top: 8px; }
@media (min-width: 900px) { .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .gallery-count { display: none; } }
.thumb { width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: var(--tile); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current='true'] { border-color: var(--ink); }

.buy-box { display: grid; gap: 16px; align-content: start; }
.pdp-title { font-size: clamp(22px, 5.6vw, 32px); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25; hyphens: auto; overflow-wrap: break-word; }
.pdp-lede { color: var(--muted); font-size: 16px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 0; border-block: 1px solid var(--line); }
.pdp-meta .price { font-size: 24px; }
.pdp-meta .price--missing { font-size: 17px; color: var(--ink); }
.pdp-size { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; margin-left: auto; }
.add-form { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.add-btn { min-height: 54px; background: var(--red); border-color: var(--red); }
.add-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: #fff; }
.qty-btn { width: 44px; min-height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty-btn:hover { background: var(--tile); }
.qty-btn:disabled { color: #b5b5b5; cursor: default; }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unavailable { display: grid; gap: 10px; }
.unavailable p { font-size: 14px; color: var(--muted); }
.service { display: grid; gap: 12px; font-size: 14px; }
.service li { display: grid; gap: 2px; }
.service strong { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.service span { color: var(--muted); }

.pdp-info { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 48px; display: grid; }
.info-block { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.info-block h2 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.info-block h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.info-block p { max-width: 68ch; }
.warning { border-left: 2px solid var(--red); padding: 8px 14px; background: var(--tile); font-weight: 600; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--red); font-size: 11px; }
.ingredients { display: grid; gap: 10px; margin: 0; }
.ingredients dt { font-weight: 600; }
.ingredients dd { margin: 0; color: var(--muted); }
.inci { font-size: 13px; color: var(--muted); line-height: 1.7; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (min-width: 900px) { .pdp-info { grid-template-columns: 1fr 1fr; column-gap: 64px; } .info-block--wide { grid-row: span 2; } }
.related { max-width: var(--max); margin: 0 auto; padding: 24px 0 72px; }
.related .collection-head { padding-top: 12px; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.2s ease;
}
.sticky-buy.is-visible { transform: none; }
.sticky-info { display: grid; min-width: 0; }
.sticky-name { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price { font-size: 14px; }
.sticky-buy .btn { flex: none; min-height: 46px; padding: 0 16px; background: var(--red); border-color: var(--red); }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- zoom dialog ---------- */
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.zoom::backdrop { background: rgba(17, 17, 17, 0.6); }
.zoom[open] { display: grid; grid-template-rows: auto 1fr auto; }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); font-size: 13px; }
.zoom-stage { overflow: auto; display: grid; place-items: center; background: var(--tile); }
.zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.zoom-stage.is-zoomed { place-items: start; }
.zoom-stage.is-zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.zoom-help { padding: 8px var(--gutter); font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- cart drawer ---------- */
.drawer { margin: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: none; padding: 0; border: 0; background: #fff; }
.drawer::backdrop { background: rgba(17, 17, 17, 0.5); }
.drawer[open] { animation: drawer-in 0.24s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; background: var(--ink); color: #fff; }
.drawer-head h2 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.drawer-body { overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.drawer-total span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.drawer-note { font-size: 12px; color: var(--muted); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-media { width: 76px; height: 76px; background: var(--tile); display: grid; place-items: center; }
.line-media img { width: 86%; height: 86%; object-fit: contain; }
.line-info { display: grid; gap: 4px; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-name { font-size: 12px; font-weight: 600; line-height: 1.45; text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; }
.line-name:hover { text-decoration: underline; }
.line-total { font-weight: 600; white-space: nowrap; }
.line-meta { font-size: 12px; color: var(--muted); }
.line-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.line .qty-btn { width: 38px; min-height: 38px; font-size: 16px; }
.line .qty output { width: 32px; display: grid; place-items: center; font-weight: 600; }
.line-remove { border: 0; background: none; padding: 8px 0 8px 8px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; color: var(--muted); }
.line-remove:hover { color: var(--red); }
.drawer-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 8px; }
.drawer-empty img { width: 88px; height: 88px; }
.drawer-empty h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.drawer-empty p { color: var(--muted); }

/* ---------- checkout ---------- */
.checkout { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.checkout h1 { text-align: center; font-size: clamp(28px, 5vw, 48px); letter-spacing: 0.28em; text-indent: 0.28em; text-transform: uppercase; margin: 24px 0 28px; text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--ink); }
.demo-banner { padding: 12px 14px; border-left: 2px solid var(--red); background: var(--tile); font-size: 14px; }
.checkout-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.checkout-form { display: grid; gap: 24px; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.checkout-form legend { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 8px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field em { font-style: normal; color: var(--muted); }
.field input { height: 48px; padding: 0 12px; border: 1px solid var(--control); border-radius: 0; background: #fff; }
.field input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field input[aria-invalid='true'] { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.form-error { color: var(--red); font-weight: 600; }
.demo-result { border-left: 2px solid var(--ink); padding: 14px; background: var(--tile); display: grid; gap: 6px; }
.demo-result h2 { font-size: 15px; }
.summary { border: 1px solid var(--line); padding: 20px; display: grid; gap: 12px; }
.summary h2 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.summary-list { display: grid; gap: 12px; }
.summary-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.summary-list img { width: 56px; height: 56px; object-fit: contain; background: var(--tile); padding: 4px; }
.summary-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; flex: none; }
.footer-brand strong { letter-spacing: 0.24em; text-transform: uppercase; font-size: 12px; }
.footer-brand p { color: var(--muted); }
.site-footer h2 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer li a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--muted); }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-demo { max-width: var(--max); margin: 32px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.is-product .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { .is-product .site-footer { padding-bottom: 28px; } }

body.is-locked { overflow: hidden; }

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