/* Dronepython storefront
   Palette is limited to the brand colours: #D1955C, #000000, #252525.
   Text uses a light tint of the brand orange so it stays readable on dark backgrounds. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #D1955C;
  --black: #000000;
  --gray: #252525;
  /* Tints & shades of the brand colours */
  /* Fixed values (same shades as the color-mix tints) so older Safari/iOS never loses the text colour. */
  --text: #FAF4EF;                   /* 10% brand orange, 90% white */
  --text-muted: rgb(249 241 233 / .75);
  --line: rgb(209 149 92 / 0.18);
  --line-strong: rgb(209 149 92 / 0.4);
  --orange-soft: rgb(209 149 92 / 0.12);
  --gray-raise: #3A322C;             /* 88% gray, 12% orange */
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--black); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--black); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small technical labels, e.g. "01 — Kategooriad" */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }

/* ---------- Demo / preview strips ---------- */
.strip { background: var(--orange); color: var(--black); font-size: .85rem; font-weight: 600; text-align: center; padding: 6px var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(0 0 0 / 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; text-transform: uppercase; }
.logo:hover { color: var(--text); }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo img { max-height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; color: var(--text-muted); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; font-size: .85rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { color: var(--text-muted); text-decoration: none; padding: 6px 6px; }
.lang-switch a[aria-current="true"] { color: var(--orange); }
.lang-switch span { color: var(--line-strong); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-link:hover { border-color: var(--orange); color: var(--orange); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--black); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; order: 3; }
  .header-tools { margin-left: auto; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; background: var(--black); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--orange); }
  .no-js .main-nav { position: static; display: block; width: 100%; order: 10; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 1px solid var(--orange);
  background: var(--orange); color: var(--black); font: inherit; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--black); }
.btn-ghost { background: transparent; color: var(--orange); }
.btn-ghost:hover { background: var(--orange-soft); color: var(--text); border-color: var(--orange); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--text-muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 6px 0; }
.link-btn:hover { color: var(--orange); }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--orange); }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--black); color: var(--text); font: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .7; }
.field { margin-bottom: 18px; }
.hint { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--orange); font-size: .88rem; font-weight: 600; margin-top: 6px; }
.field-error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: var(--black); font-size: .75rem; display: grid; place-items: center; margin-top: 1px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--orange); border-width: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Messages ---------- */
.alerts { margin: 20px 0 0; display: grid; gap: 8px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--gray); }
.alert::before { flex: none; font-weight: 800; color: var(--orange); }
.alert-success::before { content: "✓"; }
.alert-error { border-color: var(--orange); border-width: 2px; }
.alert-error::before { content: "!"; }
.alert-notice::before { content: "i"; font-style: italic; }
.alert p:last-child { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-gray { background: var(--gray); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.muted { color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(78vh, 680px); padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero-text { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; margin-bottom: 32px; }
.hero-media { position: relative; aspect-ratio: 4 / 3.4; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.hero-grid svg { position: absolute; inset: 0; margin: auto; width: 46%; height: auto; color: var(--orange); opacity: .85; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 48px; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.section-gray .card { background: var(--black); }
.card:hover { border-color: var(--line-strong); }
.card-media { aspect-ratio: 1; background: var(--black); overflow: hidden; }
.section-gray .card-media { background: var(--gray); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.card-title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.price { color: var(--orange); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-muted); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.stock-low::before { background: transparent; border: 2px solid var(--orange); }
.stock-out::before { background: transparent; border: 1px solid var(--text-muted); width: 10px; height: 2px; border-radius: 0; }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-strong); }
.placeholder-img svg { width: 38%; height: auto; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cat-card { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--black); height: 100%; }
.cat-card:hover { border-color: var(--orange); color: var(--text); }
.cat-card img, .cat-card .cat-icon { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; flex: none; background: var(--gray); }
.cat-card .cat-icon { display: grid; place-items: center; color: var(--orange); font-weight: 800; }
.cat-card strong { display: block; }
.cat-card small { color: var(--text-muted); }

.about-band { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .about-band { grid-template-columns: 1fr; } }

/* ---------- Shop filters ---------- */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 20px 0 28px; }
.filters .field { margin: 0; }
@media (max-width: 820px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } .filters .f-btn { grid-column: 1 / -1; } }
.result-count { color: var(--text-muted); font-size: .9rem; margin: 0 0 16px; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; }
.cat-pills a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.cat-pills a:hover { color: var(--text); border-color: var(--orange); }
.cat-pills a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 600; }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty h2 { font-size: 1.3rem; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding: 20px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 24px 0 64px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1; background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); cursor: pointer; overflow: hidden; flex: none; }
.thumbs button[aria-current="true"] { border: 2px solid var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.product-price { font-size: 1.8rem; font-weight: 700; color: var(--orange); margin: 4px 0 4px; }
.vat-note { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--text-muted); }
.specs dd { margin: 0; }
.buy { display: grid; gap: 16px; margin: 24px 0; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); width: max-content; }
.qty button { width: 44px; background: none; border: 0; color: var(--orange); font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: var(--orange-soft); }
.qty input { width: 64px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; min-height: 46px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-status { min-height: 1.5em; font-weight: 600; }
.ship-note { font-size: .88rem; color: var(--text-muted); display: flex; gap: 10px; }
.ship-note svg { flex: none; width: 20px; height: 20px; color: var(--orange); }
.description { margin-top: 32px; }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 32px 0 72px; align-items: start; }
@media (max-width: 920px) { .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); } }
/* Long content (e.g. the country list's longest name) must not stretch the columns past the screen. */
.cart-layout > *, .checkout-layout > *, .contact-layout > * { min-width: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img, .cart-line .ph { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); background: var(--gray); }
.cart-line h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-line h3 a { color: var(--text); text-decoration: none; }
.cart-line .meta { font-size: .85rem; color: var(--text-muted); }
.cart-line-controls { display: flex; gap: 16px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cart-line .line-total { font-weight: 700; text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img, .cart-line .ph { width: 72px; height: 72px; }
  .cart-line .line-total { grid-column: 2; text-align: left; }
}
.summary { background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.summary h2 { font-size: 1.2rem; }
.sum-rows { display: grid; gap: 8px; margin: 16px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum-row.sub { color: var(--text-muted); font-size: .85rem; }
.sum-row.total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line-strong); padding-top: 12px; margin-top: 4px; }
.sum-row.total span:last-child { color: var(--orange); }
.sum-items { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; font-size: .9rem; }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; }
.fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.fieldset legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--orange); color: var(--orange); display: inline-grid; place-items: center; font-size: .85rem; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 400; margin: 0; }
.option:has(input:checked) { border-color: var(--orange); border-width: 2px; padding: 15px; background: var(--orange-soft); }
.option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.option-body { flex: 1; }
.option-title { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.option-desc { font-size: .87rem; color: var(--text-muted); }
.review-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 8px; }
.review-block address { font-style: normal; }
.demo-box { border: 2px dashed var(--orange); padding: 24px; border-radius: var(--radius); background: var(--gray); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange); font-size: .82rem; font-weight: 600; }
.status-tag.ok { background: var(--orange); color: var(--black); }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 16px 0 0; }
.bank-details dt { color: var(--text-muted); }
.bank-details dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 40px 0 72px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.details-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.details-list dt { color: var(--text-muted); }
.details-list dd { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray); border-top: 2px solid var(--orange); padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.lang-switch abbr { text-decoration: none; border: 0; cursor: pointer; }
.spacer { height: 72px; }
.label-like { margin: 0 0 8px; font-size: .92rem; }
.js .js-hide { display: none; }
.spacer-sm { height: 24px; }
.section-sm { padding: 32px 0; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.h3 { font-size: 1.15rem; margin-top: 28px; }
.center { justify-content: center; }
@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .header-tools { gap: 6px; }
  .logo { font-size: .88rem; letter-spacing: .08em; gap: 7px; }
  .logo-mark { width: 22px; height: 22px; }
  .lang-switch a { padding: 6px 4px; }
  .cart-link, .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 340px) { .logo span { display: none; } }
/* Radios & checkboxes in brand colours */
.option input, .check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--orange); background: var(--black); display: inline-grid; place-items: center; cursor: pointer; }
.option input { border-radius: 50%; }
.check input { border-radius: 3px; }
.option input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.check input:checked { background: var(--orange); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--black); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.option input:disabled { border-color: var(--line-strong); cursor: not-allowed; }
.option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
[hidden] { display: none !important; }
#form-errors { margin-bottom: 24px; }

/* =====================================================================
   Motion & polish
   Brand colours only. All motion is switched off by the
   prefers-reduced-motion rule above.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --glow: 0 18px 40px -18px rgb(209 149 92 / .45);
}

/* Page enters softly */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main { animation: page-in .45s var(--ease-out) both; }

/* Header gains depth once the page scrolls */
.site-header { transition: background .25s, box-shadow .25s, border-color .25s; }
.site-header.scrolled { background: rgb(0 0 0 / .97); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .9); border-bottom-color: var(--line-strong); }

/* Nav underline grows from the centre */
@media (min-width: 821px) {
  .main-nav a { position: relative; transition: color .2s; }
  .main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease-out); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Logo mark turns on hover */
.logo-mark { transition: color .2s, transform .5s var(--ease-spring); }
.logo:hover .logo-mark { color: var(--orange); transform: rotate(90deg); }

/* Mobile menu slides down */
@media (max-width: 820px) {
  .js .main-nav { display: block; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .9); }
  .js .main-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .main-nav.open li { animation: rise .35s var(--ease-out) both; }
  .js .main-nav.open li:nth-child(2) { animation-delay: .04s; }
  .js .main-nav.open li:nth-child(3) { animation-delay: .08s; }
  .js .main-nav.open li:nth-child(4) { animation-delay: .12s; }
  .menu-toggle { transition: border-color .2s, color .2s; }
  .menu-toggle path { transition: transform .3s var(--ease-out), opacity .2s; transform-origin: center; transform-box: fill-box; }
  .menu-toggle[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
}

/* Buttons: light sweep, press feedback, arrow nudge */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .25s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::before { transform: translateX(120%); transition: transform .7s var(--ease-out); }
.btn-ghost::before { background: linear-gradient(110deg, transparent 30%, rgb(209 149 92 / .25) 50%, transparent 70%); }
.btn:not(.btn-ghost):hover { box-shadow: var(--glow); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn > [aria-hidden="true"] { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover > [aria-hidden="true"] { transform: translateX(4px); }
.btn.is-done { background: var(--text); border-color: var(--text); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inputs */
input, select, textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: rgb(209 149 92 / .6); }

/* ---------- Hero ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .8s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -12vw; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgb(209 149 92 / .16), transparent); pointer-events: none; }
.hero-media { animation: rise 1s .15s var(--ease-out) both; box-shadow: 0 40px 80px -40px rgb(209 149 92 / .35); }
/* Scan line sweeping over the viewfinder */
.hero-media .scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-media .scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: 0; transform: translateY(-100%); will-change: transform; background: linear-gradient(to bottom, transparent, rgb(209 149 92 / .12) 85%, rgb(209 149 92 / .5)); animation: scan 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(340%); } }
.hero-grid { overflow: hidden; }
.hero-v2 .hero-grid { background: none; }
.hero-v2 .hero-grid::before { content: ""; position: absolute; inset: -48px 0 0 -48px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; animation: grid-drift 24s linear infinite; will-change: transform; }
@keyframes grid-drift { to { transform: translate(48px, 48px); } }
/* Drone illustration: hovers and spins its propellers */
.hero-grid .drone { position: absolute; inset: 0; margin: auto; width: 46%; height: auto; color: var(--orange); opacity: 1; overflow: visible; animation: hover 4s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(-4%); } 50% { transform: translateY(4%); } }
.drone .prop { transform-box: fill-box; transform-origin: center; animation: prop .35s linear infinite; }
.drone .prop:nth-of-type(2n) { animation-direction: reverse; }
@keyframes prop { to { transform: rotate(360deg); } }
.drone-shadow { position: absolute; left: 50%; bottom: 13%; width: 30%; height: 5%; margin-left: -15%; border-radius: 50%; background: radial-gradient(closest-side, rgb(209 149 92 / .35), transparent); animation: shadow 4s ease-in-out infinite; }
@keyframes shadow { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
.hud { position: absolute; z-index: 2; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); opacity: .8; font-variant-numeric: tabular-nums; }
.hud-tl { top: 16px; left: 44px; }
.hud-br { bottom: 16px; right: 44px; }
.hud .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Scroll reveal (only with JS, so nothing is hidden without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .8s .2s var(--ease-out); }
.js .reveal.in .eyebrow::before { transform: none; }

/* ---------- Cards ---------- */
.card { transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--glow); }
.card-media { position: relative; }
.card-media img { transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .35), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .card-media::after { opacity: 1; }
.card-title a { transition: color .2s; }
.card:hover .card-title a { color: var(--orange); }
.card-title a:focus-visible { outline: none; }
.card-go { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--black); font-weight: 700; opacity: 0; transform: translate(-6px, 6px) scale(.8); transition: opacity .25s, transform .35s var(--ease-spring); pointer-events: none; }
.card:hover .card-go, .card:focus-within .card-go { opacity: 1; transform: none; }
.stock-low::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgb(209 149 92 / .2); } }

/* Category cards */
.cat-card { transition: border-color .25s, transform .35s var(--ease-out), background .25s; }
.cat-card:hover { transform: translateY(-3px); background: var(--gray-raise); }
.cat-card .cat-icon, .cat-card img { transition: transform .4s var(--ease-spring), background .25s, color .25s; }
.cat-card:hover .cat-icon { background: var(--orange); color: var(--black); transform: rotate(-6deg) scale(1.05); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card > span:last-child { flex: 1; }
.cat-card::after { content: "→"; color: var(--orange); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease-out); }
.cat-card:hover::after { opacity: 1; transform: none; }
.cat-pills a { transition: color .2s, border-color .2s, background .2s, transform .2s; }
.cat-pills a:hover { transform: translateY(-1px); }

/* ---------- Product page ---------- */
.gallery-main { position: relative; transition: border-color .25s; }
.gallery-main:hover { border-color: var(--line-strong); }
.gallery-main img { transition: opacity .2s, transform .5s var(--ease-out); }
.gallery-main img.swap { opacity: 0; transform: scale(.98); }
.thumbs button { transition: border-color .2s, transform .2s, opacity .2s; opacity: .7; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button[aria-current="true"] { opacity: 1; }
.product-price { width: fit-content; transform-origin: left; }
.product-price.flash { display: block; }
.flash { display: inline-block; animation: value-flash .6s var(--ease-out); }
@keyframes value-flash { 30% { color: var(--text); transform: scale(1.06); } }
.qty { transition: border-color .2s; }
.qty:focus-within { border-color: var(--orange); }
.qty button { transition: background .2s, transform .1s; }
.qty button:active { transform: scale(.9); }
.option { transition: border-color .2s, background .2s; }
.option:hover:not(:has(input:disabled)) { border-color: var(--orange); }
.option input:checked::after { animation: pop .3s var(--ease-spring); }
@keyframes pop { from { transform: scale(0); } }
.check input:checked::after { animation: pop-check .3s var(--ease-spring); }
@keyframes pop-check { from { transform: rotate(45deg) translate(-1px, -1px) scale(0); } }
.buy-status:not(:empty) { animation: rise .35s var(--ease-out); }

/* ---------- Cart & checkout ---------- */
.cart-line { animation: rise .5s var(--ease-out) both; }
.cart-line:nth-child(2) { animation-delay: .05s; }
.cart-line:nth-child(3) { animation-delay: .1s; }
.cart-line:nth-child(n+4) { animation-delay: .15s; }
.cart-line img { transition: transform .3s var(--ease-out); }
.cart-line:hover img { transform: scale(1.04); }
.summary { transition: border-color .25s; animation: rise .6s .1s var(--ease-out) both; }
.summary:hover { border-color: var(--line-strong); }
.step-num { transition: background .25s, color .25s; }
.fieldset:focus-within .step-num { background: var(--orange); color: var(--black); }

/* Alerts slide in */
.alert { animation: alert-in .45s var(--ease-out) both; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-8px); } }

/* Cart badge bump */
.cart-link { transition: border-color .2s, color .2s; }
.cart-count.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.cart-link.bump { animation: wiggle .5s var(--ease-out); }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }

/* Toast after adding to the cart */
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--gray); border: 1px solid var(--orange); border-radius: var(--radius); box-shadow: 0 20px 40px -12px rgb(0 0 0 / .9), var(--glow); animation: toast-in .45s var(--ease-spring) both; }
.toast.out { animation: toast-out .3s var(--ease-out) both; }
.toast::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--black); font-weight: 800; font-size: .85rem; }
.toast.error::before { content: "!"; }
.toast p { margin: 0; flex: 1; font-size: .92rem; }
.toast a { white-space: nowrap; font-weight: 700; text-decoration: none; }
.toast a:hover { text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* Footer links slide slightly */
.site-footer a { transition: color .2s, padding .2s; }
.site-footer ul a:hover { padding-left: 4px; }

/* Back to top */
.to-top { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgb(0 0 0 / .85); color: var(--orange); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out), border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--orange); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Parcel-locker picker ---------- */
.locker { display: grid; gap: 10px; }
.locker-search { position: relative; }
.locker-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--orange); pointer-events: none; }
.locker-search input { padding-left: 42px; }
.has-error .locker-search input { border-color: var(--orange); border-width: 2px; }
.locker-list { list-style: none; margin: 8px 0 0; padding: 4px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--black); scrollbar-color: var(--line-strong) transparent; }
.locker-list:empty { display: none; }
.locker-city { position: sticky; top: -4px; z-index: 1; padding: 8px 10px 4px; background: var(--black); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.locker-opt { display: grid; gap: 1px; padding: 9px 10px; border-radius: 3px; cursor: pointer; border-left: 2px solid transparent; transition: background .15s, border-color .15s; }
.locker-opt strong { font-weight: 600; font-size: .95rem; }
.locker-opt span { font-size: .82rem; color: var(--text-muted); }
.locker-opt:hover, .locker-opt.active { background: var(--orange-soft); border-left-color: var(--orange); }
.locker-opt[aria-selected="true"] strong { color: var(--orange); }
.locker-count { margin: 6px 0 0; font-size: .82rem; color: var(--text-muted); }
.locker-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--orange); border-radius: var(--radius); background: var(--orange-soft); }
.locker-chosen.pop-in { animation: rise .35s var(--ease-out); }
.locker-pin { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); position: relative; }
.locker-pin::after { content: ""; position: absolute; left: 12px; top: 8px; width: 7px; height: 13px; border: solid var(--black); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.locker-chosen-text { flex: 1; display: grid; min-width: 0; }
.locker-chosen-text span { font-size: .85rem; color: var(--text-muted); }
.locker-change { flex: none; }
.locker-bar { display: flex; gap: 10px; align-items: stretch; }
.locker-bar .locker-search { flex: 1; min-width: 0; }
.locker-search input { padding-right: 40px; }
.locker-clear { position: absolute; right: 6px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%; background: none; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.locker-clear:hover { background: var(--orange-soft); color: var(--orange); }
.locker-near { flex: none; min-height: 48px; padding: 10px 16px; font-size: .92rem; }
.locker-near svg { width: 18px; height: 18px; flex: none; }
.locker-near.is-on { background: var(--orange-soft); border-color: var(--orange); color: var(--text); }
.locker-near.is-on svg { color: var(--orange); }
.locker-near.is-busy svg { animation: spin 1s linear infinite; }
.locker-near.is-busy::after { display: none; }
.locker-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.locker-chip { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text-muted); font: inherit; font-size: .85rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; animation: rise .35s var(--ease-out) both; }
.locker-chip:hover { color: var(--text); border-color: var(--orange); transform: translateY(-1px); }
.locker-chip.is-last { border-color: var(--orange); color: var(--orange); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locker-chip.is-last::before { content: "↺ "; }
.locker-opt { grid-template-columns: 1fr auto; column-gap: 12px; }
.locker-opt strong, .locker-opt > span { grid-column: 1; }
.locker-km { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--orange); white-space: nowrap; font-variant-numeric: tabular-nums; }
.locker-opt mark { background: none; color: var(--orange); font-weight: 700; }
@media (max-width: 480px) {
  .locker-bar { flex-direction: column; }
  .locker-near { justify-content: center; }
  .locker-list { max-height: 55vh; }
}

/* Empty states */
.empty { animation: rise .6s var(--ease-out) both; }

/* =====================================================================
   Modern UX layer: page transitions, mini cart, quick add, steps,
   inline validation, instant search, sticky buy bar
   ===================================================================== */

/* ---------- Page transitions (browsers with cross-page View Transitions) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
#gallery-main { view-transition-name: product-photo; } /* only the first photo: names must be unique */
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
::view-transition-group(product-photo) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
/* The page-in animation would run twice with view transitions. */
@supports (view-transition-name: none) { main { animation: none; } }

/* ---------- Images fade in when loaded ---------- */
.js .fade-img { opacity: 0; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .fade-img.loaded { opacity: 1; }

/* ---------- Quick add on product cards ---------- */
.card-add { position: relative; z-index: 2; margin-top: 10px; }
.card-add-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--orange); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.card-add-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-spring); }
.card-add-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.card-add-btn:hover svg { transform: rotate(90deg); }
.card-add-btn:active { transform: scale(.97); }
.card-add-btn.is-busy { pointer-events: none; opacity: .7; }
.card-add-btn.is-busy svg { display: none; }
.card-add-btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.card-add-btn.is-done { background: var(--orange); border-color: var(--orange); color: var(--black); }
@media (max-width: 520px) { .card-add-btn span { font-size: .8rem; } }

/* ---------- Slide-in mini cart ---------- */
html.drawer-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 95; background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease-out); }
.drawer-backdrop.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--gray); border-left: 1px solid var(--line-strong); box-shadow: -30px 0 60px -20px rgb(0 0 0 / .9); transform: translateX(100%); transition: transform .38s var(--ease-out); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.15rem; margin: 0; }
.drawer-count { color: var(--orange); font-weight: 600; }
.drawer-x { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, transform .3s var(--ease-spring); }
.drawer-x:hover { border-color: var(--orange); color: var(--orange); transform: rotate(90deg); }
.drawer-x svg { width: 18px; height: 18px; }
.drawer-notice:not(:empty) { margin: 12px 20px 0; padding: 10px 12px; border: 1px solid var(--orange); border-radius: var(--radius); font-size: .88rem; }
.drawer-lines { list-style: none; margin: 0; padding: 8px 20px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); animation: drawer-line-in .4s var(--ease-out) both; transition: opacity .25s, transform .25s; }
.drawer-line:nth-child(2) { animation-delay: .04s; }
.drawer-line:nth-child(3) { animation-delay: .08s; }
.drawer-line:nth-child(n+4) { animation-delay: .12s; }
@keyframes drawer-line-in { from { opacity: 0; transform: translateX(16px); } }
.drawer-line.is-new { animation: drawer-line-new 1.2s var(--ease-out) both; }
@keyframes drawer-line-new { 0% { opacity: 0; transform: translateX(16px); background: transparent; } 30% { opacity: 1; transform: none; background: var(--orange-soft); } 100% { background: transparent; } }
.drawer-line.is-busy { opacity: .55; }
.drawer-line.is-leaving { opacity: 0; transform: translateX(40px); }
.drawer-img { width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; background: var(--black); display: block; }
.drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-info { display: grid; gap: 2px; min-width: 0; }
.drawer-name { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.3; }
.drawer-name:hover { color: var(--orange); }
.drawer-meta { font-size: .8rem; color: var(--text-muted); }
.drawer-qty { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.drawer-qty button[data-step] { width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--orange); font-size: 1.05rem; line-height: 1; cursor: pointer; transition: background .2s, transform .1s; }
.drawer-qty button[data-step]:hover:not(:disabled) { background: var(--orange-soft); }
.drawer-qty button[data-step]:active:not(:disabled) { transform: scale(.88); }
.drawer-qty button:disabled { opacity: .35; cursor: not-allowed; }
.drawer-qty span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-remove { margin-left: 8px; font-size: .82rem; }
.drawer-total { white-space: nowrap; font-size: .95rem; }
.drawer-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 12px; text-align: center; color: var(--text-muted); animation: rise .5s var(--ease-out) both; }
.drawer-empty svg { width: 56px; height: 56px; color: var(--orange); opacity: .7; animation: hover 4s ease-in-out infinite; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line-strong); background: var(--gray); display: grid; gap: 10px; }
.drawer-foot .sum-row.total { margin: 0; padding: 0; border: 0; }
.drawer-foot .hint { margin: 0; }
.drawer-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }

/* ---------- Checkout progress steps ---------- */
.steps { margin: 0 0 24px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; counter-reset: s; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; color: var(--text-muted); font-size: .88rem; font-weight: 600; }
.step:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; background: var(--line); border-radius: 2px; }
.step.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--orange), var(--orange)) no-repeat left / 100% 100%, var(--line); animation: step-line .8s var(--ease-out) both; }
@keyframes step-line { from { background-size: 0 100%, auto; } }
.step a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.step a:hover .step-label { color: var(--orange); }
.step-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); font-size: .82rem; transition: background .3s, border-color .3s, color .3s; }
.step.is-done .step-dot { background: var(--orange); border-color: var(--orange); color: var(--black); }
.step.is-current { color: var(--text); }
.step.is-current .step-dot { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft); animation: step-pulse 2.4s ease-in-out infinite; }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 9px rgb(209 149 92 / .06); } }
.step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .step-label { display: none; }
  .step.is-current .step-label { display: inline; }
  .step:not(:last-child)::after { margin: 0 8px; }
}

/* ---------- Inline validation ---------- */
.field { position: relative; }
.field.is-valid input:not([type="checkbox"]):not([type="radio"]) { border-color: rgb(209 149 92 / .7); padding-right: 44px; }
/* label (≈30px incl. margin) + half the 48px input − half the icon */
.field.is-valid::after { content: "✓"; position: absolute; right: 14px; top: 44px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--black); font-size: .72rem; font-weight: 800; pointer-events: none; animation: pop .3s var(--ease-spring); }
.field.is-valid:has(textarea)::after, .field.is-valid:has(select)::after, .field.is-valid:has(.check)::after { display: none; }
.field-error { animation: rise .25s var(--ease-out); }
.shake { animation: shake .45s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- Instant shop search ---------- */
.filters.is-instant { grid-template-columns: 2fr 1fr 1fr; }
.filters.is-instant .f-btn { display: none; }
@media (max-width: 820px) { .filters.is-instant { grid-template-columns: 1fr 1fr; } }
.results { transition: opacity .2s; min-height: 200px; }
.results.is-loading { opacity: .45; pointer-events: none; }
.results .pop { animation: rise .45s var(--ease-out) both; animation-delay: var(--d, 0s); }

/* ---------- Sticky "add to cart" bar on phones ---------- */
.sticky-buy { display: none; }
@media (max-width: 820px) {
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(37 37 37 / .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line-strong); box-shadow: 0 -16px 32px -16px rgb(0 0 0 / .9); transform: translateY(110%); transition: transform .35s var(--ease-out); }
  .sticky-buy.show { transform: none; }
  .sticky-buy-text { flex: 1; min-width: 0; display: grid; }
  .sticky-buy-text strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy-text span { color: var(--orange); font-weight: 700; }
  .sticky-buy .btn { flex: none; min-height: 44px; padding: 10px 18px; }
  .sticky-buy.show ~ .to-top, body:has(.sticky-buy.show) .to-top, body:has(.sticky-buy.show) .toast-region { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js .fade-img { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn::before { display: none; }
}

/* =====================================================================
   Devices & compatibility
   ===================================================================== */
html { color-scheme: dark; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, input, select, textarea, label { touch-action: manipulation; } /* no double-tap zoom delay */
img { -webkit-user-drag: none; }

/* Notched phones (viewport-fit=cover): keep content clear of the notch and home bar. */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.drawer { height: 100%; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
.to-top { left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); }
.toast-region { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }

/* Comfortable tap targets (at least 44px) */
.logo { min-height: 44px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 8px; }
.step a { min-height: 44px; }
@media (pointer: coarse) {
  .link-btn { min-height: 44px; }
  .drawer-qty button[data-step] { width: 40px; height: 40px; }
  .qty button { width: 48px; }
  .thumbs button { width: 64px; height: 64px; }
}

/* Touch screens have no hover: keep hover effects from "sticking" after a tap and use press feedback instead. */
@media (hover: none) {
  .card:hover, .card:focus-within { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover .card-media img { transform: none; }
  .card:hover .card-media::after, .card:hover .card-go { opacity: 0; }
  .card:hover .card-title a { color: var(--text); }
  .card:active { transform: scale(.98); transition-duration: .1s; }
  .cat-card:hover { transform: none; background: var(--black); }
  .cat-card:active { transform: scale(.98); }
  .btn:hover::before { transform: translateX(-120%); transition: none; }
  .btn:not(.btn-ghost):hover { box-shadow: none; }
  .thumbs button:hover, .cat-pills a:hover, .locker-chip:hover { transform: none; }
}

/* Tablets: three product columns fit from about 700px */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 521px) and (max-width: 820px) {
  .hero-media { aspect-ratio: 16 / 8; }
  .hero-inner { gap: 24px; }
}
/* Large screens: use a bit more of the width */
@media (min-width: 1600px) {
  :root { --wrap: 1400px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
}

/* Phones held sideways and other short screens: compact header, photo and info side by side */
@media (max-height: 520px) and (orientation: landscape) {
  .strip { padding-block: 3px; font-size: .78rem; }
  .header-inner { height: 52px; }
  .main-nav { inset: 52px 0 auto 0; max-height: calc(100dvh - 52px); overflow-y: auto; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr 1fr; padding-top: 24px; padding-bottom: 24px; }
  .hero-media { order: 0; aspect-ratio: 4 / 3; max-height: 70dvh; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .product { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery-main { aspect-ratio: auto; height: min(78dvh, 420px); }
  .summary { position: static; }
  .drawer { width: min(460px, 100vw); }
  .tabbar { display: none !important; }
}

/* Print (e.g. an order confirmation): plain black on white, no navigation */
@media print {
  :root { --text: #000; --text-muted: #444; --line: #ccc; --line-strong: #999; --orange: #8a5a2b; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .strip, .tabbar, .drawer, .drawer-backdrop, .to-top, .toast-region, .sticky-buy, .steps, .btn, form button, .skip, .menu-toggle { display: none !important; }
  main { animation: none; }
  .summary, .review-block, .card { background: none; border-color: #ccc; box-shadow: none; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  a { color: #000; }
}

/* Windows high-contrast mode: keep borders and focus visible */
@media (forced-colors: active) {
  .btn, .card, .option, .locker-chosen, .step-dot, .cart-count { border: 1px solid CanvasText; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   Phone tab bar
   ===================================================================== */
.tabbar { display: none; }
@media (max-width: 820px) and (min-height: 521px), (max-width: 820px) and (orientation: portrait) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: rgb(0 0 0 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong);
    transition: transform .3s var(--ease-out);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; min-height: 52px; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-size: .7rem; font-weight: 600; letter-spacing: .02em; transition: color .2s; }
  .tabbar a::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange); transform: scaleX(0); transition: transform .35s var(--ease-spring); }
  .tabbar a[aria-current="page"] { color: var(--orange); }
  .tabbar a[aria-current="page"]::before { transform: scaleX(1); }
  .tabbar a:active svg { transform: scale(.85); }
  .tabbar svg { width: 24px; height: 24px; transition: transform .2s var(--ease-spring); }
  .tabbar-icon { position: relative; display: block; }
  .tabbar .cart-count { top: -6px; right: -10px; min-width: 18px; height: 18px; font-size: .66rem; }
  /* Room for the bar at the bottom of every page */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sticky-buy { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body:has(.sticky-buy.show) .to-top, body:has(.sticky-buy.show) .toast-region { bottom: calc(148px + env(safe-area-inset-bottom)); }
  /* Checkout stays focused on the order; the bar would only distract. */
  body:has(.steps) { padding-bottom: 0; }
  body:has(.steps) .tabbar { display: none; }
  /* Slide away while typing so the on-screen keyboard has room. */
  body:has(input:focus, textarea:focus, select:focus) .tabbar { transform: translateY(110%); }
  /* The header cart icon is duplicated in the bar; keep the header compact. */
  .header-tools .cart-link { display: none; }
}

/* =====================================================================
   Swipeable product gallery
   ===================================================================== */
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-main { position: relative; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgb(0 0 0 / .35); box-shadow: 0 0 0 1px rgb(255 255 255 / .5); transition: width .3s var(--ease-out), background .3s; }
.gallery-dots span.on { width: 20px; background: var(--orange); }
.gallery-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(0 0 0 / .6); color: var(--text); font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, transform .2s; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover { background: var(--orange); color: var(--black); }
.gallery-nav:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .gallery-nav { display: none; } }

/* =====================================================================
   More motion
   ===================================================================== */
/* Product flying into the cart */
.fly-img { position: fixed; z-index: 120; pointer-events: none; border-radius: 12px; object-fit: cover; box-shadow: 0 12px 30px rgb(0 0 0 / .6), 0 0 0 2px var(--orange); will-change: transform, opacity; }

/* Soft spotlight that follows the mouse over cards */
@media (hover: hover) and (pointer: fine) {
  .card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(209 149 92 / .16), transparent 65%); opacity: 0; transition: opacity .3s; }
  .card:hover::before { opacity: 1; }
}

/* Ripple where a button is pressed */
.ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgb(255 255 255 / .45); pointer-events: none; animation: ripple .6s var(--ease-out) forwards; }
.btn-ghost .ripple, .card-add-btn .ripple { background: rgb(209 149 92 / .35); }
.card-add-btn { position: relative; overflow: hidden; isolation: isolate; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* Shimmer placeholders while the instant search loads */
.results.is-loading { opacity: 1; }
.results.is-loading .card { opacity: .55; }
.results.is-loading .card-media::before, .results.is-loading .card-body::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, transparent 30%, rgb(209 149 92 / .14) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 1.1s linear infinite; }
.results.is-loading .card-body { position: relative; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* Removed cart lines collapse smoothly instead of jumping */
.drawer-line { overflow: hidden; }
.drawer-line.is-leaving { height: 0 !important; padding-block: 0; border-bottom-color: transparent; transition: opacity .2s, transform .25s, height .3s var(--ease-out) .1s, padding .3s var(--ease-out) .1s; }

/* Undo button inside a toast */
.toast button { flex: none; padding: 8px 12px; min-height: 40px; border: 1px solid var(--orange); border-radius: var(--radius); background: none; color: var(--orange); font: inherit; font-weight: 700; cursor: pointer; }
.toast button:hover { background: var(--orange); color: var(--black); }

/* Drawer can be swiped closed on touch screens */
.drawer.dragging { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .fly-img, .ripple { display: none; }
  .gallery-track { scroll-behavior: auto; }
  .hero .drone { translate: none; }
}

/* =====================================================================
   Home hero v2
   ===================================================================== */
.hero-v2 { min-height: min(92svh, 900px); display: grid; align-items: center; isolation: isolate; }
.hero-v2::before { display: none; }
.hero-v2 .hero-inner { grid-template-columns: 1.08fr 1fr; min-height: 0; padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(64px, 10vh, 112px); }

/* Background: a flight grid rushing towards you, a warm glow and drifting specks */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-floor { position: absolute; left: -50%; right: -50%; bottom: -12%; height: 62%; overflow: hidden; transform: perspective(520px) rotateX(64deg); transform-origin: center top; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 70%, transparent); }
.hero-floor::before { content: ""; position: absolute; left: 0; right: 0; top: -64px; bottom: 0; background-image: linear-gradient(rgb(209 149 92 / .26) 1px, transparent 1px), linear-gradient(90deg, rgb(209 149 92 / .26) 1px, transparent 1px); background-size: 64px 64px; animation: floor-run 2.4s linear infinite; will-change: transform; }
@keyframes floor-run { to { transform: translateY(64px); } }
.hero-orb { position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -14vw; top: 46%; transform: translate(0, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(209 149 92 / .22), rgb(209 149 92 / .06) 55%, transparent); animation: orb-breathe 9s ease-in-out infinite; }
@keyframes orb-breathe { 50% { transform: translate(-3%, -52%) scale(1.08); opacity: .8; } }
.hero-stars { position: absolute; top: -420px; left: 0; right: 0; bottom: 0; will-change: transform; background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgb(209 149 92 / .7), transparent), radial-gradient(1px 1px at 70% 20%, rgb(250 244 239 / .6), transparent), radial-gradient(1.5px 1.5px at 40% 70%, rgb(209 149 92 / .5), transparent), radial-gradient(1px 1px at 85% 55%, rgb(250 244 239 / .5), transparent), radial-gradient(1px 1px at 10% 85%, rgb(209 149 92 / .6), transparent); background-size: 520px 420px; animation: stars-drift 40s linear infinite; opacity: .7; }
@keyframes stars-drift { to { transform: translateY(420px); } }

/* Copy */
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(209 149 92 / .07); font-size: .85rem; font-weight: 600; color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
.hero-v2 .hero-copy > .hero-title { animation: none; }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; animation: word-up .9s var(--ease-out) both; }
.hero-title .w:nth-child(2) > span { animation-delay: .07s; }
.hero-title .w:nth-child(3) > span { animation-delay: .14s; }
.hero-title .w:nth-child(4) > span { animation-delay: .21s; }
.hero-title .w:nth-child(5) > span { animation-delay: .28s; }
.hero-title .w:nth-child(6) > span { animation-delay: .35s; }
.hero-title .w:nth-child(n+7) > span { animation-delay: .42s; }
@keyframes word-up { from { transform: translateY(105%) rotate(4deg); opacity: 0; } }
.hero-title .accent > span { background: linear-gradient(100deg, var(--orange) 10%, #F3D2B0 45%, var(--orange) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: word-up .9s var(--ease-out) both, shine 5s 1.2s linear infinite; }
.hero-title .w.accent:nth-child(2) > span { animation-delay: .07s, 1.2s; }
.hero-title .w.accent:nth-child(3) > span { animation-delay: .14s, 1.2s; }
.hero-title .w.accent:nth-child(4) > span { animation-delay: .21s, 1.2s; }
.hero-title .w.accent:nth-child(n+5) > span { animation-delay: .3s, 1.2s; }
@keyframes shine { to { background-position: -220% 0; } }
.hero-v2 .hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-muted); animation: rise .7s var(--ease-out) both; }
.hero-facts li:nth-child(1) { animation-delay: .5s; }
.hero-facts li:nth-child(2) { animation-delay: .6s; }
.hero-facts li:nth-child(3) { animation-delay: .7s; }
.hero-facts svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }

/* Visual */
.hero-visual { position: relative; }
.hero-v2 .hero-media { border-radius: 18px; border-color: var(--line-strong); background: #1A1A1A; }
.orbit { position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border: 1px dashed rgb(209 149 92 / .35); border-radius: 50%; animation: spin 28s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.orbit-2 { width: 54%; border-style: solid; border-color: rgb(209 149 92 / .14); animation-duration: 18s; animation-direction: reverse; }
.orbit-2::after { width: 6px; height: 6px; margin-left: -3px; top: -3px; opacity: .7; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; translate: -50% -50%; pointer-events: none; background: linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 14% no-repeat, linear-gradient(90deg, var(--line-strong), var(--line-strong)) center / 14% 1px no-repeat; opacity: .5; }
.hud-tr { top: 16px; right: 44px; }
.hud-bl { bottom: 16px; left: 44px; display: inline-flex; align-items: center; gap: 6px; }
.bat { display: inline-block; width: 26px; height: 11px; padding: 1px; border: 1px solid var(--orange); border-radius: 2px; position: relative; }
.bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 3px; background: var(--orange); }
.bat i { display: block; height: 100%; width: var(--bat, 86%); background: var(--orange); transition: width 1s; }

/* Real featured products floating beside the viewfinder */
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(30 30 30 / .96); box-shadow: 0 24px 48px -20px rgb(0 0 0 / .9); color: var(--text); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.float-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--black); flex: none; }
.float-card span { display: grid; min-width: 0; }
.float-card strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card em { font-style: normal; font-weight: 700; color: var(--orange); font-size: .9rem; }
.float-card:hover { color: var(--text); border-color: var(--orange); box-shadow: 0 24px 48px -20px rgb(0 0 0 / .9), var(--glow); }
.float-a { left: -56px; top: auto; bottom: 14%; animation: rise .8s .7s var(--ease-out) both, bob 6s 1.5s ease-in-out infinite; }
.float-b { right: -32px; bottom: auto; top: 13%; animation: rise .8s .9s var(--ease-out) both, bob 6s 3.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Scroll cue */
.hero-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; transition: border-color .2s; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: scroll-cue 1.8s var(--ease-out) infinite; }
.hero-scroll:hover { border-color: var(--orange); }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 1180px) {
  .float-a { left: -12px; }
  .float-b { right: -8px; }
}
@media (max-width: 820px) {
  .hero-v2 { min-height: 0; }
  .hero-v2 .hero-inner { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 40px; gap: 36px; }
  .hero-v2 .hero-media { order: 0; aspect-ratio: 16 / 11; }
  .hero-scroll { display: none; }
  .float-a { left: 8px; top: auto; bottom: -22px; }
  .float-b { right: 8px; top: -18px; bottom: auto; }
  .hero-floor { height: 40%; }
}
@media (max-width: 520px) {
  .float-b { display: none; }
  .float-card { max-width: calc(100% - 16px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hud-tr { display: none; }
}
@media (max-height: 640px) { .hero-scroll { display: none; } }

/* ---------- Product page: summary, key features, detail tabs ---------- */
.product-summary { font-size: 1.05rem; color: var(--text); margin: 16px 0 0; max-width: 36em; }
.highlights { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; animation: rise .5s var(--ease-out) both; }
.highlights li:nth-child(2) { animation-delay: .05s; } .highlights li:nth-child(3) { animation-delay: .1s; }
.highlights li:nth-child(4) { animation-delay: .15s; } .highlights li:nth-child(n+5) { animation-delay: .2s; }
.highlights svg { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--orange); color: var(--black); }

.ptabs { border-top: 1px solid var(--line); padding-top: 8px; }
.ptab-list { display: none; }
.ptabs.is-tabs .ptab-list { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.ptab-list::-webkit-scrollbar { display: none; }
.ptab-list button { flex: none; padding: 16px 18px; min-height: 52px; background: none; border: 0; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; transition: color .2s; white-space: nowrap; }
.ptab-list button:hover, .ptab-list button[aria-selected="true"] { color: var(--text); }
.ptab-ink { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--orange); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.ptab-panel { padding: 8px 0 24px; max-width: 860px; }
.ptab-title { font-size: 1.3rem; margin-top: 24px; }
.ptabs.is-tabs .ptab-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-in { animation: rise .35s var(--ease-out); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table tr { border-bottom: 1px solid var(--line); transition: background .2s; }
.spec-table tr:hover { background: var(--orange-soft); }
.spec-table th { width: 40%; padding: 12px 16px 12px 0; text-align: left; font-weight: 500; color: var(--text-muted); vertical-align: top; }
.spec-table td { padding: 12px 0; font-weight: 600; }
.box-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.box-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray); }
.box-list svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
@media (max-width: 520px) { .spec-table th { width: 46%; } }

/* ---------- Mini whoop drone ---------- */
/* Layers so effects never fight: wrap = tilt towards the pointer, roll = flip on click,
   body = idle hover/bank. Everything that moves is a transform or opacity on its own
   element, so the GPU animates it and the drone never has to be redrawn per frame. */
.whoop-wrap { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; perspective: 700px; cursor: grab; touch-action: manipulation; }
.whoop-wrap:active { cursor: grabbing; }
.whoop-roll { position: relative; width: 60%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); will-change: transform; }
.whoop-wrap.is-tracking .whoop-roll { transition-duration: .18s; }
.whoop-body { position: absolute; inset: 0; animation: hover 4s ease-in-out infinite, bank 7s ease-in-out infinite; }
@keyframes bank { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.whoop-roll .whoop-layer { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 1; overflow: visible; }
/* Soft orange under-glow: a plain gradient instead of an SVG blur filter (much cheaper) */
.whoop-glow { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(209 149 92 / .32), rgb(209 149 92 / .1) 60%, transparent); opacity: .55; animation: glow 3s ease-in-out infinite; transition: opacity .4s; pointer-events: none; }
@keyframes glow { 50% { opacity: .8; } }

/* Props: each is its own small SVG, spun with a transform. Diagonals turn the same way. */
.whoop-roll .whoop-prop { position: absolute; inset: auto; margin: 0; opacity: 1; width: 37%; height: 37%; overflow: visible; animation: prop .14s linear infinite; will-change: transform; }
.whoop-roll .whoop-prop.ccw { animation-direction: reverse; }
.whoop-roll .p-fl { left: 9.5%; top: 9.5%; } .whoop-roll .p-fr { left: 53.5%; top: 9.5%; }
.whoop-roll .p-br { left: 53.5%; top: 53.5%; } .whoop-roll .p-bl { left: 9.5%; top: 53.5%; }
.whoop-prop .disc { opacity: .8; transition: opacity .4s; }
.whoop-top .led { animation: led 1.2s steps(2, jump-none) infinite; }
.whoop-top .led-2 { animation-delay: .6s; }
@keyframes led { 0% { opacity: 1; } 100% { opacity: .15; } }
.whoop-top .lens-glint { transition: transform .3s var(--ease-out); transform: translate(var(--gx, 0px), var(--gy, 0px)); }

/* Pointer over the drone: it "arms" — props spin faster, the glow brightens */
.whoop-wrap.is-armed .whoop-roll .whoop-prop { animation-duration: .07s; }
.whoop-wrap.is-armed .whoop-prop .disc { opacity: 1; }
.whoop-wrap.is-armed .whoop-glow { opacity: 1; animation: none; }
.hero-grid:has(.is-armed) .drone-shadow { opacity: 1; transform: scale(1.25); animation: none; }

/* Click / tap: a quick flip, like freestyle pilots do */
.whoop-wrap.is-flipping .whoop-roll { animation: whoop-flip .9s cubic-bezier(.5, 0, .2, 1); }
@keyframes whoop-flip {
  0% { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0); }
  30% { transform: rotateX(0deg) rotateY(0deg) translateY(-14%) scale(1.04); }
  80% { transform: rotateX(360deg) rotateY(0deg) translateY(-4%) scale(1.02); }
  100% { transform: rotateX(360deg) rotateY(0deg) translateY(0); }
}
/* Prop wash ripple where the drone was touched */
.whoop-ripple { position: absolute; z-index: 1; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--orange); border-radius: 50%; pointer-events: none; animation: whoop-ripple .8s var(--ease-out) forwards; }
@keyframes whoop-ripple { to { transform: scale(6); opacity: 0; } }

/* Signal-strength bars in the viewfinder */
[data-hud-rssi] { text-transform: none; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; margin-right: 8px; vertical-align: -1px; }
.sig i { display: block; width: 3px; border-radius: 1px; background: var(--orange); transition: opacity .4s; }
.sig i:nth-child(1) { height: 30%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 80%; } .sig i:nth-child(4) { height: 100%; }
.sig i.off { opacity: .25; }

@media (prefers-reduced-motion: reduce) {
  .whoop-roll { transform: none !important; }
  .whoop-prop { animation-duration: .5s !important; }
  .whoop-wrap.is-flipping .whoop-roll { animation: none; }
  .whoop-ripple { display: none; }
}

/* ---------- Moving strip under the hero ---------- */
.marquee { display: flex; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--black); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { flex: none; display: flex; gap: 44px; margin: 0; padding: 0 44px 0 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.marquee .logo-mark { width: 18px; height: 18px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Social links ---------- */
.site-footer .social, .social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.site-footer .social a, .social a { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-muted); text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .3s var(--ease-spring); }
.site-footer .social a:hover, .social a:hover { padding-left: 0; color: var(--black); background: var(--orange); border-color: var(--orange); text-decoration: none; transform: translateY(-3px) rotate(-6deg); }
.social svg { width: 19px; height: 19px; }
.social-named a { width: auto; height: 44px; display: inline-flex; gap: 8px; padding: 0 16px; border-radius: 999px; font-weight: 600; }
.social-named a:hover { transform: translateY(-2px); }

/* ---------- Header slides away when scrolling down, back when scrolling up ---------- */
.site-header { transition: background .25s, box-shadow .25s, border-color .25s, transform .35s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

/* ---------- Back-to-top with reading progress ring ---------- */
.to-top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--progress, 100); transition: stroke-dashoffset .1s linear; }
.to-top { overflow: visible; }

/* ---------- Featured products swipe sideways on phones ---------- */
@media (max-width: 600px) {
  .featured-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
  .featured-row::-webkit-scrollbar { display: none; }
  .featured-row > li { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .w > span, .hero-title .accent > span { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; }
  .marquee-track[aria-hidden] { display: none; }
}

/* =====================================================================
   HUD design language — the hero's look (flight grid, viewfinder corner
   brackets, telemetry labels, warm glow) carried through every page.
   Everything that moves animates transform/opacity only.
   ===================================================================== */
:root { --radius: 12px; --radius-lg: 18px; --panel: #1A1A1A;
}

/* The flight grid behind every page (fixed layer, so scrolling never repaints it) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgb(209 149 92 / .1), transparent 70%),
    linear-gradient(rgb(209 149 92 / .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(209 149 92 / .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / .35)); mask-image: linear-gradient(#000, rgb(0 0 0 / .35)); }
body { background: var(--black); }
.section-gray { background: rgb(37 37 37 / .55); border-block: 1px solid var(--line); }
.section-gray .card, .section-gray .cat-card { background: rgb(0 0 0 / .7); }

/* Header: a hairline of light along the bottom edge */
.site-header { background: rgb(0 0 0 / .86); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(209 149 92 / .7), transparent); opacity: .6; }

/* Telemetry labels */
.eyebrow { font-variant-numeric: tabular-nums; }
.eyebrow::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.card-cat, .hud-label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); opacity: .85; }
.price, .product-price, .sum-row, .drawer-total, .locker-km { font-variant-numeric: tabular-nums; }

/* Page heads become small viewfinders, like the hero */
.page-head { position: relative; isolation: isolate; overflow: hidden; margin-top: 24px; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgb(26 26 26 / .8); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 260px at 100% 0%, rgb(209 149 92 / .16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(100deg, rgb(0 0 0 / .25), #000); mask-image: linear-gradient(100deg, rgb(0 0 0 / .25), #000); }
.page-head h1 { position: relative; }

.summary, .gallery-main, .empty, .demo-box { position: relative; border-radius: var(--radius-lg); }
.summary { background: rgb(26 26 26 / .92); }

/* Product cards lock on to the pointer: brackets close in, the card leans towards it */
.card { border-radius: var(--radius-lg); background: rgb(26 26 26 / .9); }
@media (hover: hover) and (pointer: fine) {
  .card { transform-style: flat; }
  .card:hover { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px); transition: border-color .25s, transform .25s var(--ease-out), box-shadow .35s var(--ease-out); }
}

/* Softer, rounder controls to match the hero's glass panels */
.btn { border-radius: 10px; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea { border-radius: 10px; background: rgb(0 0 0 / .75); }
.option, .locker-list, .locker-chosen, .alert, .cat-card, .box-list li, .toast, .cart-link, .menu-toggle { border-radius: var(--radius); }
.option { background: rgb(26 26 26 / .7); }
.cat-card { background: rgb(26 26 26 / .85); }
.thumbs button, .cart-line img, .cart-line .ph { border-radius: 10px; }

/* Footer: a telemetry strip along the top */
.site-footer { position: relative; background: rgb(26 26 26 / .92); border-top: 1px solid var(--line-strong); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.footer-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: blink-soft 2.4s ease-in-out infinite; }
@keyframes blink-soft { 50% { opacity: .35; } }
.footer-copy { cursor: default; user-select: none; -webkit-user-select: none; }

/* Hero paused while it is off screen: saves battery and keeps scrolling smooth */
.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after { animation-play-state: paused !important; }

/* Secret pilot access (5 taps on © in the footer): a short "link" sweep before the jump */
.access-flash { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; place-items: center; background: rgb(0 0 0 / .78); color: var(--orange); font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; animation: access-in .5s var(--ease-out) both; }
@keyframes access-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

/* =====================================================================
   Minigame: gate run (three quick clicks on the hero drone)
   ===================================================================== */
.hero-media.is-game { touch-action: none; cursor: crosshair; box-shadow: 0 0 0 1px var(--orange), 0 40px 80px -30px rgb(209 149 92 / .6); }
.hero-media.is-game .whoop-wrap { cursor: crosshair; transition: none; z-index: 4; }
.hero-media.is-game .orbit, .hero-media.is-game .crosshair, .hero-media.is-game .drone-shadow, .hero-media.is-game .scan { opacity: 0; transition: opacity .3s; }
.hero-visual:has(.is-game) .float-card { visibility: hidden; pointer-events: none; }
.game-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.game-bar { position: absolute; left: 50%; top: 40px; translate: -50% 0; display: flex; align-items: center; gap: 18px; padding: 6px 8px 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(0 0 0 / .7); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); pointer-events: auto; animation: rise .4s var(--ease-out) both; }
.game-bar b { display: inline-block; min-width: 2ch; font-size: 1.05rem; color: var(--orange); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.game-x { width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.game-x:hover { border-color: var(--orange); color: var(--orange); }
.game-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px 20px 40px; }
.game-msg:empty { display: none; }
.game-card { max-width: 300px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(10 10 10 / .88); text-align: center; pointer-events: auto; animation: rise .4s var(--ease-out) both; }
.game-card strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.game-card p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.game-over { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.game-card .game-score { font-size: 3rem; line-height: 1.1; color: var(--orange); font-variant-numeric: tabular-nums; margin: 4px 0; }
.game-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.game-actions .btn { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.game-count { font-size: clamp(3rem, 9vw, 5rem); font-weight: 800; color: var(--orange); text-shadow: 0 0 30px rgb(209 149 92 / .6); }
.pulse-in { animation: count-pop .6s var(--ease-out) both; }
@keyframes count-pop { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } }
/* Gates: glowing rings, gold ones are worth three */
.gate { position: absolute; z-index: 3; border-radius: 50%; border: 3px solid var(--orange); box-shadow: 0 0 18px rgb(209 149 92 / .55), inset 0 0 14px rgb(209 149 92 / .35); pointer-events: none; animation: gate-in .35s var(--ease-spring) both; }
.gate::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgb(209 149 92 / .6); animation: spin 6s linear infinite; }
.gate.gold { border-color: #F3D2B0; border-width: 4px; box-shadow: 0 0 26px rgb(243 210 176 / .8), inset 0 0 18px rgb(243 210 176 / .5); }
@keyframes gate-in { from { transform: scale(.2); opacity: 0; } }
.gate-burst { position: absolute; z-index: 6; translate: -50% -50%; font-weight: 800; font-size: 1.3rem; color: var(--orange); pointer-events: none; animation: burst .7s var(--ease-out) forwards; }
.gate-burst.gold { color: #F3D2B0; font-size: 1.6rem; }
@keyframes burst { to { transform: translateY(-40px) scale(1.3); opacity: 0; } }
@media (max-width: 520px) { .game-bar { top: 36px; gap: 12px; } }

/* ---------- Recently viewed ---------- */
.recent .section-head { margin-bottom: 18px; }
.recent-row { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.recent-row li { scroll-snap-align: start; animation: rise .5s var(--ease-out) both; animation-delay: var(--d, 0s); }
.recent-card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(26 26 26 / .85); color: var(--text); text-decoration: none; transition: border-color .2s, transform .25s var(--ease-out); }
.recent-card:hover { color: var(--text); border-color: var(--orange); transform: translateY(-2px); }
.recent-card img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--black); }
.recent-card span { display: grid; min-width: 0; }
.recent-card strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card em { font-style: normal; font-weight: 700; color: var(--orange); font-size: .88rem; }

/* ---------- Shop paused (maintenance) page ---------- */
.paused { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.paused-card { position: relative; max-width: 520px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgb(26 26 26 / .9); text-align: left; animation: rise .7s var(--ease-out) both; }
.paused-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.paused-card h2 { font-size: 1.3rem; }
/* Draft preview strip on the product page */
.strip-draft { background: var(--text); }

/* Buying is switched off in the admin draft preview */
.buy[inert] { opacity: .45; filter: grayscale(.4); }

/* =====================================================================
   Quick search overlay (header search icon, "/" or Ctrl+K)
   ===================================================================== */
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, color .2s, transform .2s var(--ease-out); }
.search-link:hover { border-color: var(--orange); color: var(--orange); }
.search-link:active { transform: scale(.94); }
.search-link svg { width: 21px; height: 21px; }
@media (max-width: 440px) { .search-link { width: 40px; height: 40px; } }
html.qs-open { overflow: hidden; }
.qs { position: fixed; inset: 0; z-index: 150; display: grid; justify-items: center; align-items: start; padding: max(8vh, 64px) 16px 16px; }
.qs-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .72); opacity: 0; transition: opacity .22s var(--ease-out); }
.qs-panel { position: relative; width: min(640px, 100%); max-height: min(78vh, 640px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #141414; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .95), 0 0 0 1px rgb(209 149 92 / .06); opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .22s var(--ease-out), transform .3s var(--ease-out); }
.qs.show .qs-backdrop { opacity: 1; }
.qs.show .qs-panel { opacity: 1; transform: none; }
.qs-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.qs-bar > svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
.qs.is-loading .qs-bar > svg { animation: spin-pulse 1s ease-in-out infinite; }
@keyframes spin-pulse { 50% { opacity: .35; transform: scale(.85); } }
.qs-bar input { flex: 1; min-height: 44px; border: 0; background: none; padding: 0; font-size: 1.15rem; box-shadow: none !important; }
.qs-bar input::-webkit-search-cancel-button { display: none; }
.qs-x { flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.qs-x kbd, .qs-hint kbd { display: inline-block; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-muted); font: 600 .72rem/1 var(--font); }
.qs-x:hover kbd { border-color: var(--orange); color: var(--orange); }
.qs-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.qs-list:empty { display: none; }
.qs-list li { animation: rise .3s var(--ease-out) both; animation-delay: var(--d, 0s); }
.qs-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.qs-item.active { background: var(--orange-soft); border-color: var(--line-strong); color: var(--text); }
.qs-pic { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--black); display: grid; place-items: center; }
.qs-pic img { width: 100%; height: 100%; object-fit: cover; }
.qs-text { display: grid; min-width: 0; }
.qs-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-text mark { background: none; color: var(--orange); }
.qs-text small { color: var(--text-muted); font-size: .78rem; }
.qs-item em { font-style: normal; font-weight: 700; color: var(--orange); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-none { padding: 22px 12px; text-align: center; color: var(--text-muted); }
.qs-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-muted); }
.qs-all { font-weight: 700; text-decoration: none; }
@media (max-width: 560px) { .qs { padding-top: 12px; } .qs-hint { display: none; } .qs-foot { justify-content: flex-end; } }

/* =====================================================================
   Product photo viewer (zoom)
   ===================================================================== */
.gallery-main img, .gallery-track img { cursor: zoom-in; }
.zoom-hint { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgb(0 0 0 / .65); color: var(--text); font-size: .75rem; font-weight: 600; pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s var(--ease-out); }
.zoom-hint svg { width: 14px; height: 14px; color: var(--orange); }
.gallery-main:hover .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: .9; transform: none; } }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 160; background: rgb(0 0 0 / .97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .25s var(--ease-out); touch-action: none; }
.lb.show { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); color: var(--text-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; min-height: 0; padding: 0 clamp(8px, 6vw, 80px); overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.lb.is-zoomed .lb-stage { cursor: grab; }
.lb.is-dragging .lb-stage { cursor: grabbing; }
.lb-stage img { width: 100%; height: 100%; max-width: 1400px; object-fit: contain; transform: translate(var(--px, 0px), var(--py, 0px)) scale(var(--z, 1)); transition: transform .3s var(--ease-out), opacity .2s; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb.is-dragging .lb-stage img { transition: none; }
.lb-stage img.swap { opacity: 0; }
.lb-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(20 20 20 / .8); color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-spring); }
.lb-btn:hover { background: var(--orange); color: var(--black); border-color: var(--orange); }
.lb-btn:active { transform: scale(.92); }
.lb-btn:disabled { opacity: .3; pointer-events: none; }
.lb-nav { position: absolute; top: 50%; margin-top: -23px; z-index: 2; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; }
.lb-dots button { flex: none; width: 54px; height: 54px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #111; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.lb-dots button[aria-current="true"] { opacity: 1; border: 2px solid var(--orange); }
.lb-dots button:hover { opacity: 1; transform: translateY(-2px); }
.lb-dots img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .lb-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .qs-panel, .lb, .lb-stage img { transition: none; } }

/* =====================================================================
   Reading progress line under the header
   ===================================================================== */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--orange), #F3D2B0); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none; z-index: 1; }

/* =====================================================================
   Custom orders page
   ===================================================================== */
.custom-lead { max-width: 44em; margin: 10px 0 0; color: var(--text-muted); font-size: 1.05rem; }
.custom-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); padding: 36px 0 80px; align-items: start; }
@media (max-width: 900px) { .custom-layout { grid-template-columns: minmax(0, 1fr); } }
.custom-how { position: sticky; top: 96px; }
@media (max-width: 900px) { .custom-how { position: static; } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.how-steps li { position: relative; display: flex; gap: 16px; padding: 0 0 26px; animation: rise .6s var(--ease-out) both; }
.how-steps li:nth-child(2) { animation-delay: .1s; } .how-steps li:nth-child(3) { animation-delay: .2s; }
.how-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: linear-gradient(var(--orange), var(--line)); transform-origin: top; animation: grow-line 1s .4s var(--ease-out) both; }
@keyframes grow-line { from { transform: scaleY(0); } }
.how-n { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgb(26 26 26 / .9); color: var(--orange); font-weight: 800; font-variant-numeric: tabular-nums; }
.how-steps li:first-child .how-n { background: var(--orange); color: var(--black); border-color: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }
.how-steps strong { display: block; margin-top: 2px; }
.how-steps p { margin: 4px 0 0; color: var(--text-muted); font-size: .92rem; }
.custom-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgb(26 26 26 / .92); box-shadow: 0 40px 80px -50px rgb(209 149 92 / .5); animation: rise .7s .1s var(--ease-out) both; }
.custom-card .fieldset { margin-bottom: 22px; }
.custom-card .fieldset legend { font-size: .92rem; font-weight: 600; margin-bottom: 10px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.kind-card { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgb(0 0 0 / .5); cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s, transform .25s var(--ease-out), box-shadow .25s; }
.kind-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.kind-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-soft); color: var(--orange); transition: background .25s, color .25s, transform .4s var(--ease-spring); }
.kind-icon svg { width: 21px; height: 21px; }
.kind-text { display: grid; gap: 2px; }
.kind-text strong { font-size: .95rem; line-height: 1.3; }
.kind-text small { color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
.kind-card:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 1px var(--orange) inset, var(--glow); }
.kind-card:has(input:checked) .kind-icon { background: var(--orange); color: var(--black); transform: rotate(-8deg) scale(1.06); }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.has-error .kind-card { border-color: var(--orange); }
.custom-sent { display: grid; justify-items: center; gap: 6px; padding: 28px 8px; text-align: center; }
.custom-sent h2 { font-size: 1.5rem; margin: 10px 0 4px; }
.custom-sent p { max-width: 32em; color: var(--text-muted); }
.sent-check { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--black); box-shadow: 0 0 0 10px var(--orange-soft), 0 0 50px rgb(209 149 92 / .5); animation: pop .6s var(--ease-spring) both; }
.sent-check svg { width: 36px; height: 36px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check .5s .35s var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@media (hover: none) { .kind-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sent-check svg { stroke-dashoffset: 0; } }

/* Brand logo: drone mark + wordmark images (public/brand) */
.logo { gap: 12px; }
.logo img.logo-mark { width: auto; height: 30px; max-height: none; transform-origin: 50% 60%; }
.logo img.logo-word { width: auto; height: 15px; max-height: none; }
.logo:hover img.logo-mark { transform: translateY(-2px) rotate(-4deg); }
.site-footer .logo img.logo-mark { height: 36px; }
.site-footer .logo img.logo-word { height: 17px; }
@media (max-width: 440px) {
  .logo { gap: 8px; }
  .logo img.logo-mark { height: 24px; }
  .logo img.logo-word { height: 11px; }
}
@media (max-width: 360px) { .site-header .logo img.logo-word { display: none; } }
@media (prefers-reduced-motion: reduce) { .logo:hover img.logo-mark { transform: none; } }
/* Full nav visible but tight: smaller wordmark so it never touches the links */
@media (min-width: 821px) and (max-width: 1100px) {
  .site-header .logo { gap: 8px; }
  .site-header .logo img.logo-mark { height: 26px; }
  .site-header .logo img.logo-word { height: 11px; }
}
.site-header .logo { flex: none; }
@media (min-width: 821px) and (max-width: 980px) { .site-header .logo img.logo-word { display: none; } }
/* Phones: drone mark only in the header (the full logo is in the footer) */
@media (max-width: 560px) {
  .site-header .logo img.logo-word { display: none; }
  .site-header .logo img.logo-mark { height: 28px; }
}
/* Footer: stacked lockup like the original logo, never wider than its column */
.site-footer .logo { flex-direction: column; align-items: flex-start; gap: 10px; max-width: 100%; }
.site-footer .logo img.logo-mark { height: 44px; }
.site-footer .logo img.logo-word { width: 200px; max-width: 100%; height: auto; }
.site-footer .logo { margin-bottom: 12px; }

/* Product cards: every card ends with one action, so prices line up across a row */
.card-add-link { text-decoration: none; }
.card-add-link svg { order: 2; }
.card-add-link:hover svg { transform: translateX(3px); }
.card-add-link.is-muted { color: var(--text-muted); border-color: var(--line); }
.card-add-link.is-muted:hover { background: var(--gray-raise); color: var(--text); border-color: var(--line-strong); }

/* Category cards: wider, a drone icon instead of a letter, names on one line where they fit */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cat-card { padding: 16px 18px; }
.cat-card .cat-icon svg { width: 30px; height: 30px; }
.cat-card .cat-icon, .cat-card img { border-radius: 10px; }
.cat-card strong { overflow-wrap: break-word; hyphens: auto; }
.cat-card img, .cat-card .cat-icon { width: 52px; height: 52px; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* Safety net: when the browser is not drawing frames (throttled tabs, screenshot and
   link-preview tools), show everything in its final state instead of waiting forever. */
.anim-off .reveal { opacity: 1 !important; transform: none !important; }
.anim-off *, .anim-off *::before, .anim-off *::after { animation: none !important; transition: none !important; }

/* ===================== Phone layout (v2) =====================
   One deliberate set of phone rules, kept last so earlier tweaks cannot fight it. */
@media (max-width: 600px) {
  /* Products: two per row, compact cards */
  .product-grid:not(.featured-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .featured-row { grid-auto-columns: 58%; gap: 10px; }
  .card-body { padding: 10px 10px 12px; gap: 4px; }
  .card-cat { font-size: .6rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-title { font-size: .9rem; line-height: 1.25; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 4px; }
  .price { font-size: .98rem; }
  .card-foot .stock { font-size: .7rem; }
  .card-add { margin-top: 8px; }
  .card-add-btn { min-height: 38px; padding: 6px 8px; font-size: .8rem; gap: 6px; }
  .card-add-btn svg { width: 14px; height: 14px; }
  .card-add-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card:hover, .card:focus-within { transform: none; }

  /* Page heads take less room */
  .page-head { padding: 22px 18px 18px; }
  .page-head h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }

  /* Category chips: one swipeable row instead of a tall stack */
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 16px -18px 0; padding: 2px 18px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .cat-pills::-webkit-scrollbar { display: none; }
  .cat-pills li { flex: none; scroll-snap-align: start; }
  .cat-pills a { padding: 8px 14px; white-space: nowrap; }

  /* Filters: search + sort side by side; the category list is already the chips above */
  .filters, .filters.is-instant { grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; padding: 14px 0 16px; }
  .filters .f-search { grid-column: auto; }
  .page-head:has(.cat-pills) ~ .filters .f-cat { display: none; }
  .filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filters select { padding-right: 28px; text-overflow: ellipsis; }

  /* Product page: quantity and button on one line, no dead space */
  .product { padding: 12px 0 32px; gap: 20px; }
  .buy { margin: 16px 0 8px; gap: 12px; }
  .buy-row { flex-wrap: nowrap; }
  .buy-row .btn { min-width: 0; }
  .buy-status:empty { display: none; }
  .ptab-list button { padding: 14px 12px; }
  .ptabs.is-tabs .ptab-list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

  /* Cart page */
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .cart-line img, .cart-line .ph { width: 64px; height: 64px; }
  .cart-line .line-total { grid-column: 2; justify-self: start; }
  .btn-row { flex-wrap: wrap; }
  .btn-row .btn { flex: 1 1 140px; }

  /* Demo strip: one short line */
  .strip { font-size: .72rem; padding: 4px 12px; line-height: 1.3; }

  /* Long words (Estonian!) never push the page wider */
  h1, h2, h3, .card-title { overflow-wrap: break-word; hyphens: auto; }
}
@media (max-width: 360px) {
  .product-grid:not(.featured-row) { gap: 8px; }
  .card-add-btn span { font-size: .74rem; }
}

/* Cart lines leaving / cart updating in place */
.cart-line { transition: opacity .2s, transform .25s var(--ease-out); }
.cart-line.is-leaving { opacity: 0; transform: translateX(-24px); }
#cart-form.is-updating .line-total, #cart-form.is-updating .qty input { opacity: .5; transition: opacity .15s; }

/* Scroll-in: a short, gentle fade. Cards barely move, so a quick tap never lands beside a button. */
.js .reveal { transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { transform: none; }

/* ===================== Search: one look everywhere ===================== */
/* Header: an icon on phones and narrow screens, a real-looking search bar on wide screens */
.search-pill-text, .search-pill-key { display: none; }
@media (min-width: 1240px) {
  .search-link { text-decoration: none; width: auto; gap: 10px; padding: 0 10px 0 14px; min-width: 210px; justify-content: flex-start; border-radius: 999px; border-color: var(--line-strong); background: rgb(0 0 0 / .45); color: var(--text-muted); }
  .search-link svg { color: var(--orange); }
  .search-pill-text { display: inline; flex: 1; font-size: .9rem; }
  .search-pill-key { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: 600 .72rem/1.3 var(--font); color: var(--text-muted); }
  .search-link:hover { color: var(--text); }
}
/* Shop page search field: same shape and icon as the header bar */
.search-field { position: relative; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--orange); pointer-events: none; }
.search-field input { padding-left: 42px; border-radius: 999px; }
.filters select { border-radius: 999px; }

/* Search panel: suggestions, recent searches, category chips */
.qs-suggest, .qs-cats { padding: 6px 16px 4px; overflow-y: auto; }
.qs-suggest[hidden], .qs-cats[hidden] { display: none; }
.qs-h { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.qs-clear { padding: 4px 8px; border: 0; background: none; color: var(--orange); font: inherit; font-size: .78rem; letter-spacing: 0; text-transform: none; cursor: pointer; border-radius: 6px; }
.qs-clear:hover { background: var(--orange-soft); }
.qs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-chips a, .qs-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease-out); animation: rise .3s var(--ease-out) both; }
.qs-chips a:hover, .qs-chips button:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.qs-chips small { color: var(--text-muted); font-size: .72rem; }
.qs-recent button::before { content: "↺"; color: var(--text-muted); font-size: .8rem; }
.qs-cats { padding-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* Phones: the search panel fills the screen, like a search app */
@media (max-width: 600px) {
  .qs { padding: 0; }
  .qs-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .qs-bar { padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .qs-bar input { font-size: 1.05rem; }
  .qs-hint { display: none; }
  .qs-list { flex: 1; }
  .qs-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ===================== Offline page ===================== */
.paused-page { min-height: 100vh; }
.paused { padding: 24px 16px; }
.paused-card { max-width: 560px; width: 100%; box-shadow: 0 40px 90px -40px rgb(209 149 92 / .35); }
.paused-logo { display: block; width: 104px; height: auto; margin-bottom: 18px; animation: hover-y 3.2s ease-in-out infinite; }
@keyframes hover-y { 50% { transform: translateY(-5px); } }
.paused-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--orange); color: var(--black); box-shadow: 0 0 0 0 rgb(209 149 92 / .5); animation: paused-beat 2.4s var(--ease-out) infinite; }
.paused-icon svg { width: 28px; height: 28px; }
@keyframes paused-beat { 0% { box-shadow: 0 0 0 0 rgb(209 149 92 / .45); } 70%, 100% { box-shadow: 0 0 0 14px rgb(209 149 92 / 0); } }
.paused-lang h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); margin: 0 0 8px; }
.paused-lang h2 { margin: 0 0 6px; }
.paused-own { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: var(--orange-soft); border-radius: 0 10px 10px 0; white-space: pre-line; }
.paused-when { margin: 22px 0 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgb(0 0 0 / .4); }
.paused-when-label { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.paused-when-date { margin: 4px 0 0; font-weight: 700; }
.paused-when-date span:first-letter { text-transform: uppercase; }
.paused-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.paused-count[hidden] { display: none; }
.paused-count span { display: grid; justify-items: center; padding: 10px 4px; border-radius: 10px; background: var(--gray); border: 1px solid var(--line); }
.paused-count b { font-size: clamp(1.3rem, 6vw, 1.8rem); font-variant-numeric: tabular-nums; color: var(--text); }
.paused-count small { font-size: .62rem; color: var(--text-muted); text-align: center; }
.paused-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.paused-links .btn { flex: 1 1 200px; }
.paused-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.paused-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); }
.paused-social a:hover { border-color: var(--orange); color: var(--orange); }
.paused-social svg { width: 18px; height: 18px; }
.paused-note { margin: 18px 0 0; font-size: .78rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .paused-logo, .paused-icon { animation: none; } }

/* ===================== Package tracking ===================== */
.track-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding: 24px 0 64px; }
@media (max-width: 820px) { .track-layout { grid-template-columns: 1fr; padding-top: 16px; } }
.track-forms { padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--gray); }
.track-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: rgb(0 0 0 / .45); border: 1px solid var(--line); }
.track-tabs button { min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--text-muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .25s var(--ease-out), color .2s; }
.track-tabs button[aria-selected="true"] { background: var(--orange); color: var(--black); }
.no-js .track-tabs { display: none; }
.js .track-panel[data-hidden-tab] { display: none; }
.no-js .track-panel + .track-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.track-panel { animation: rise .3s var(--ease-out) both; }
.track-card { padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--gray); }
.track-result .review-block + .review-block { margin-top: 12px; }
.courier-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 6px; }
.courier-links .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.track-help { margin-top: 18px; font-size: .9rem; }
.track-illustration { color: var(--orange); opacity: .8; max-width: 320px; }
.track-illustration svg { width: 100%; height: auto; }
.track-route { stroke-dasharray: 6 8; animation: route-run 1.6s linear infinite; }
@keyframes route-run { to { stroke-dashoffset: -28; } }

/* Delivery timeline (tracking page and order page) */
.timeline { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-step.done::before { background: var(--orange); }
.tl-step:last-child::before { display: none; }
.tl-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--black); color: var(--black); font-weight: 900; z-index: 1; }
.tl-dot svg { width: 14px; height: 14px; }
.tl-step.done .tl-dot { background: var(--orange); border-color: var(--orange); }
.tl-step.current .tl-dot { border-color: var(--orange); box-shadow: 0 0 0 0 rgb(209 149 92 / .5); animation: tl-pulse 1.8s var(--ease-out) infinite; }
.tl-step.bad .tl-dot { background: var(--gray); border-color: var(--text-muted); color: var(--text); }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 rgb(209 149 92 / .5); } 100% { box-shadow: 0 0 0 10px rgb(209 149 92 / 0); } }
.tl-text { display: grid; gap: 2px; padding-top: 3px; }
.tl-text strong { font-size: .98rem; }
.tl-step:not(.done) .tl-text strong { color: var(--text-muted); font-weight: 600; }
.tl-text small { color: var(--text-muted); font-size: .8rem; }
.tl-step.done { animation: rise .4s var(--ease-out) both; }
.tl-step.done:nth-child(2) { animation-delay: .08s; } .tl-step.done:nth-child(3) { animation-delay: .16s; } .tl-step.done:nth-child(4) { animation-delay: .24s; } .tl-step.done:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .track-route, .tl-step.current .tl-dot, .tl-step.done { animation: none; } }

/* ---------- Favourites: heart buttons (store.js, saved in this browser) ---------- */
.fav-btn { position: absolute; top: 10px; left: 10px; z-index: 3; width: 36px; height: 36px; padding: 0; border: 1px solid rgb(255 255 255 / .14); border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .62); color: var(--text); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: color .2s, border-color .2s, background-color .2s; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; transition: fill .2s; }
.fav-btn:hover, .fav-btn:focus-visible { color: var(--orange); border-color: var(--orange); }
.fav-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fav-btn[aria-pressed="true"] { color: var(--orange); border-color: rgb(209 149 92 / .55); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn.fav-pop svg { animation: fav-pop .4s var(--ease-spring); }
@keyframes fav-pop { 40% { transform: scale(1.3); } }
.no-js .fav-btn { display: none; }
/* Product page: next to the name instead of over a photo */
.product-title { display: flex; align-items: flex-start; gap: 12px; }
.product-title h1 { flex: 1; min-width: 0; }
.fav-btn-lg { position: static; flex: none; width: 46px; height: 46px; margin-top: 4px; background: var(--gray); border-color: var(--line-strong); }
.fav-btn-lg svg { width: 22px; height: 22px; }
.fav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: var(--black); font-size: .72rem; font-weight: 700; vertical-align: 1px; }
.fav-count[data-count="0"] { display: none; }
.favs .pop { animation: rise .45s var(--ease-out) both; animation-delay: var(--d, 0s); }
@media (max-width: 600px) {
  /* Two cards per row: keep the heart small and in the photo's corner. */
  .card .fav-btn { top: 6px; left: 6px; width: 30px; height: 30px; }
  .card .fav-btn svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .fav-btn.fav-pop svg { animation: none; } }

/* ---------- "Email me when it's back in stock" (product page) ---------- */
.notify { margin-top: 20px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgb(26 26 26 / .85); }
.notify-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 4px; }
.notify-title svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.notify > .hint:first-of-type { margin: 0 0 14px; }
.notify select { margin-bottom: 12px; }
.notify-row { display: flex; gap: 10px; }
.notify-row input { flex: 1; min-width: 0; }
.notify-row .btn { flex: none; }
.notify-status { min-height: 0; margin: 10px 0 0; font-weight: 600; }
.notify-status:empty { display: none; }
.notify-status.is-error { color: var(--orange); }
@media (max-width: 600px) { .notify-row { flex-direction: column; } }

/* ===================== Bottom bars (phones) =====================
   One fixed tab bar height; the page padding, the buy bar and the floating buttons all
   use it, so nothing ever hides under the bar or overlaps it. */
:root { --tabbar-h: 64px; }
@media (max-width: 820px) and (min-height: 521px), (max-width: 820px) and (orientation: portrait) {
  .tabbar { height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); box-sizing: border-box; align-items: stretch; }
  .tabbar a { min-height: 0; height: 100%; padding: 4px 2px; align-content: center; gap: 3px; line-height: 1.1; white-space: nowrap; font-size: .72rem; }
  .tabbar a > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body { padding-bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .sticky-buy { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  .to-top, .toast-region { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  body:has(.sticky-buy.show) .to-top, body:has(.sticky-buy.show) .toast-region { bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
  body:has(.steps) { padding-bottom: 16px; }
  /* While the keyboard is open the bar slides away; the buy bar then sits at the very bottom. */
  body:has(input:focus, textarea:focus, select:focus) .sticky-buy { bottom: 0; }
}

/* ===================== Touch targets and small text (phones) ===================== */
@media (max-width: 600px) {
  .card-cat { font-size: .68rem; letter-spacing: .06em; }
  .card-foot .stock { font-size: .74rem; }
  /* Hearts stay small on the photo but take a finger-sized tap */
  .card .fav-btn { width: 34px; height: 34px; }
  .card .fav-btn svg { width: 16px; height: 16px; }
  .fav-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  /* Breadcrumbs: taller tap area without changing the look */
  .breadcrumb a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
  .lang-switch a { min-width: 40px; justify-content: center; }
  .footer-status { font-size: .72rem; letter-spacing: .1em; }
}

/* Checkout steps on phones: the current step gets the room for its full name */
@media (max-width: 640px) {
  .step { flex: 1 1 0; gap: 8px; }
  .step.is-current { flex: 0 0 auto; }
  .step.is-current .step-label { overflow: visible; font-size: .9rem; }
  .step:last-child { flex: 0 0 auto; }
  .step:not(:last-child)::after { min-width: 10px; margin: 0 6px; }
  .step-dot { width: 28px; height: 28px; }
}
/* The cart updates itself as you change quantities, so the "Update" button is only for no-JavaScript */
#cart-form[data-bound] .btn-row button[type="submit"] { display: none; }
/* The buy bar, when not shown, is fully out of the way (it used to sit on top of the tab bar). */
@media (max-width: 820px) {
  .sticky-buy:not(.show) { transform: translateY(calc(100% + var(--tabbar-h) + 24px)); visibility: hidden; pointer-events: none; transition: transform .35s var(--ease-out), visibility 0s .35s; }
  .sticky-buy.show { visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
}

/* Payment choices: an icon per method and a "secure payment" note */
.option:has(.pay-icon) { align-items: center; }
.pay-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); }
.pay-icon svg { width: 22px; height: 22px; }
.pay-secure { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .85rem; color: var(--text-muted); }
.pay-secure svg { flex: none; width: 18px; height: 18px; color: var(--orange); margin-top: 1px; }

/* ===================== Arrow icon (one look across the site) ===================== */
.arw { display: inline-block; flex: none; width: 1.05em; height: 1.05em; vertical-align: -0.16em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4.5 12h14.5M13 5.5 19.5 12 13 18.5%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4.5 12h14.5M13 5.5 19.5 12 13 18.5%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.arw-left { transform: scaleX(-1); }
a:hover > .arw, button:hover > .arw, a:focus-visible > .arw, button:focus-visible > .arw { transform: translateX(4px); }
a:hover > .arw-left, button:hover > .arw-left { transform: scaleX(-1) translateX(4px); }
@media (prefers-reduced-motion: reduce) { .arw { transition: none; } }

/* Buttons: the arrow sits in a small round badge in large and primary buttons */
.btn > .arw { margin-left: 2px; }
.btn-lg > .arw, .btn-block > .arw { width: 1.6em; height: 1.6em; margin-left: 6px; padding: .3em; border-radius: 50%; background: currentColor; -webkit-mask: none; mask: none; position: relative; }
.btn-lg > .arw::before, .btn-block > .arw::before { content: ""; position: absolute; inset: .32em; background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4.5 12h14.5M13 5.5 19.5 12 13 18.5%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4.5 12h14.5M13 5.5 19.5 12 13 18.5%27/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-ghost.btn-lg > .arw::before, .btn-ghost.btn-block > .arw::before { background: var(--black); }
.btn-lg:hover > .arw, .btn-block:hover > .arw { transform: translateX(3px) rotate(-12deg); }
/* Product cards: a round arrow that slides in from the corner */
.card-go { width: 38px; height: 38px; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .7); }
.card-go .arw { width: 18px; height: 18px; vertical-align: 0; }
.card:hover .card-go .arw { animation: arw-nudge .9s cubic-bezier(.34, 1.56, .64, 1) .1s; }
@keyframes arw-nudge { 30% { transform: translateX(3px); } 60% { transform: translateX(-1px); } }
/* Gallery and photo viewer buttons */
.gallery-nav .arw, .lb-nav .arw { width: 20px; height: 20px; vertical-align: 0; }

/* ===================== Delivery ===================== */
.delivery-box { list-style: none; margin: 18px 0 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / .02); }
.delivery-box li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.delivery-box li + li { border-top: 1px solid var(--line); }
.delivery-box svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.delivery-box span { display: grid; gap: 2px; }
.delivery-box strong { font-size: .94rem; }
.delivery-box small { color: var(--text-muted); font-size: .82rem; }
.free-bar { margin: 14px 0 6px; padding: 12px; border-radius: 12px; background: var(--orange-soft); border: 1px solid var(--line); }
.free-bar p { margin: 0 0 8px; font-size: .88rem; font-weight: 600; }
.free-track { display: block; height: 6px; border-radius: 6px; background: rgb(0 0 0 / .45); overflow: hidden; }
.free-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: linear-gradient(90deg, #8a5d33, var(--orange)); transition: width .8s var(--ease-out); }
.free-bar.done { border-color: var(--orange); }
.free-bar.done p::before { content: "✓ "; color: var(--orange); }
/* Arrow badge: a light tint of the button's text colour, arrow in the text colour (works on every button style and on hover) */
.btn-lg > .arw, .btn-block > .arw { background: color-mix(in srgb, currentColor 16%, transparent); }
.btn-lg > .arw::before, .btn-block > .arw::before, .btn-ghost.btn-lg > .arw::before, .btn-ghost.btn-block > .arw::before { background: currentColor; }

/* ===================== Delivery choice: how, then which company ===================== */
.ship-choice { display: grid; gap: 12px; }
.parcel-note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .86rem; color: var(--text-muted); }
.parcel-size { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--orange); color: var(--orange); font-weight: 800; font-size: .8rem; }
.ship-group { margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg, 16px); background: var(--gray); overflow: hidden; transition: border-color .25s; }
.ship-group.is-open { border-color: var(--orange); }
.ship-legend { padding: 0; width: 100%; float: left; }
.ship-legend + * { clear: both; }
.ship-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ship-head:hover { background: rgb(255 255 255 / .02); }
.ship-head:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.ship-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); transition: background .25s, color .25s; }
.ship-icon svg { width: 24px; height: 24px; }
.ship-group.is-open .ship-icon { background: var(--orange); color: var(--black); }
.ship-head-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ship-head-text strong { font-size: 1rem; }
.ship-head-text small { color: var(--text-muted); font-size: .82rem; }
.ship-from { flex: none; font-weight: 700; color: var(--orange); font-size: .92rem; }
.ship-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out); display: none; }
.is-enhanced .ship-chev { display: block; }
.ship-group.is-open .ship-chev { transform: rotate(225deg) translateY(-3px); }
.carrier-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.is-enhanced .ship-group:not(.is-open) .carrier-list { display: none; }
.ship-group.is-open .carrier-list { animation: rise .3s var(--ease-out) both; }
.carrier-opt { align-items: center; }
.carrier-opt .option-body { display: grid; gap: 2px; }
.option-body .option-desc { display: block; }
.carrier-price { font-weight: 800; color: var(--text); white-space: nowrap; }
.co-badge { flex: none; display: grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--black); color: var(--text); font-size: .76rem; font-weight: 900; letter-spacing: .04em; }
.carrier-opt:has(input:checked) .co-badge { border-color: var(--orange); color: var(--orange); }
@media (max-width: 600px) {
  .ship-head { padding: 12px; gap: 10px; }
  .ship-icon { width: 38px; height: 38px; }
  .ship-head-text small { display: none; }
  .carrier-list { padding: 0 8px 8px; }
  .co-badge { min-width: 38px; height: 30px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .ship-group.is-open .carrier-list { animation: none; } }
