/* 42U shop — light, readable, technical. No external requests, no frameworks.
   Rebrand = change the BRAND TOKENS block only (assets/brand/BRAND.md). */
:root {
  /* BRAND TOKENS */
  --brand-primary: #2563eb; --brand-primary-dark: #1d4ed8; --brand-primary-soft: #eff4ff;
  --brand-ink: #0f172a; --brand-text: #1e293b; --brand-muted: #5b6678;
  --brand-paper: #ffffff; --brand-canvas: #f6f8fb; --brand-sunken: #eef2f7; --brand-line: #dfe5ee;
  --brand-ok: #15803d; --brand-ok-soft: #e9f7ee; --brand-warn: #b45309; --brand-warn-soft: #fff5e6;
  --brand-bad: #b91c1c; --brand-bad-soft: #fdeeee; --brand-express: #b45309;
  --brand-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* type scale, 1.25 ratio */
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.2rem; --fs-lg: 1.5rem; --fs-xl: 1.9rem; --fs-2xl: 2.4rem;
  --logo-h: 32px;
  /* semantic tokens */
  --bg: var(--brand-canvas); --bg2: var(--brand-paper); --bg3: var(--brand-sunken); --line: var(--brand-line);
  --fg: var(--brand-text); --ink: var(--brand-ink); --muted: var(--brand-muted);
  --accent: var(--brand-primary); --accent-dark: var(--brand-primary-dark); --accent-soft: var(--brand-primary-soft); --accent2: var(--brand-primary);
  --ok: var(--brand-ok); --warn: var(--brand-warn); --bad: var(--brand-bad);
  --radius: 10px; --radius-sm: 6px; --gap: 1rem; --maxw: 1200px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 30px -12px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  --font: var(--brand-font-sans); --mono: var(--brand-font-mono);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.25rem var(--gap) 2.5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); }
p { margin: 0 0 .8em; }
code, .mono, .sku { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; }

/* ---- header ---- */
body > header { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  padding: .7rem max(var(--gap), calc((100vw - var(--maxw)) / 2 + var(--gap))); background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: saturate(1.4) blur(8px); }
.logo { display: inline-flex; align-items: center; color: var(--accent); line-height: 0; }
.logo:hover { color: var(--accent-dark); text-decoration: none; }
.logo .brand-logo { height: var(--logo-h); width: auto; }
.logo .brand-logo .word { fill: var(--ink); }
.logo .brand-mark { display: none; height: var(--logo-h); width: var(--logo-h); }
.hdr-contact { display: flex; align-items: center; gap: .3rem; font-size: var(--fs-sm); }
.hdr-contact a { color: var(--fg); padding: .35rem .6rem; border-radius: var(--radius-sm); font-weight: 500; }
.hdr-contact a:hover { background: var(--bg3); text-decoration: none; }
.hdr-contact .tel { font-variant-numeric: tabular-nums; }
.hdr-contact .wa { color: #fff; background: #1faa53; }
.hdr-contact .wa:hover { background: #178a43; color: #fff; }
body > header .flags { margin-left: auto; display: flex; gap: .15rem; }
body > header .flags a { display: grid; place-items: center; padding: .3rem; border-radius: var(--radius-sm); opacity: .55; }
body > header .flags a:hover { opacity: 1; background: var(--bg3); text-decoration: none; }
body > header .flags a[aria-current] { opacity: 1; background: var(--accent-soft); }
body > header .cats { order: 3; flex-basis: 100%; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-top: .15rem; }
body > header .cats::-webkit-scrollbar { display: none; }
body > header .cats a { flex: none; padding: .38rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg);
  background: var(--bg2); font-size: var(--fs-sm); font-weight: 500; }
body > header .cats a:hover, body > header .cats a[aria-current] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* ---- flags ---- */
.flag { display: inline-block; width: 1.4em; height: 1em; border-radius: 2px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(15,23,42,.15); font-size: 1rem; line-height: 1em; }
.flag-lt { background: linear-gradient(#fdb913 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6%); }
.flag-lv { background: linear-gradient(#9e3039 40%, #fff 40% 60%, #9e3039 60%); }
.flag-pl { background: linear-gradient(#fff 50%, #dc143c 50%); }
.flag-et, .flag-ee { background: linear-gradient(#0072ce 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-en, .flag-gb { background:
  linear-gradient(90deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
  linear-gradient(transparent 38%, #c8102e 38% 62%, transparent 62%),
  linear-gradient(90deg, transparent 36%, #fff 36% 64%, transparent 64%),
  linear-gradient(transparent 30%, #fff 30% 70%, transparent 70%), #012169; }
.lang-switch { position: relative; }
.lang-switch > button, .lang-switch summary { display: flex; align-items: center; gap: .4rem; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem .6rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { list-style: none; margin: .3rem 0 0; padding: .3rem; position: absolute; right: 0; top: 100%; min-width: 11rem; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 30; }
.lang-switch:not([open]):not(.open) ul { display: none; }
.lang-switch li a { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: var(--radius-sm); color: var(--fg); font-size: var(--fs-sm); }
.lang-switch li a:hover, .lang-switch li a[aria-current="true"] { background: var(--bg3); text-decoration: none; }

/* ---- breadcrumbs, page head ---- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: var(--gap); }
.page-head .count, h1 .count { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
h1 .icon.cat { display: inline-block; vertical-align: -.2em; margin-right: .35em; width: 1.1em; height: 1.1em; color: var(--accent); }

/* ---- home: hero ---- */
.hero { position: relative; overflow: hidden; margin: .25rem 0 2rem; padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 16px; background: linear-gradient(135deg, #ffffff 0%, #eef4ff 55%, #e3ecff 100%); border: 1px solid #d8e3fb; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: calc(100% + 80px); pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(37,99,235,.10) 18px 20px); border-radius: 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%); }
.hero > * { position: relative; z-index: 1; }
.tagline { display: inline-block; margin: 0 0 .9rem; padding: .25rem .7rem; border-radius: 999px; background: var(--bg2);
  border: 1px solid #d8e3fb; color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); max-width: 22ch; margin-bottom: .5rem; }
.hero p:not(.tagline) { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; }
.trust { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; }
.trust li { position: relative; padding: .7rem .9rem .7rem 2.3rem; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--fg); }
.trust li::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
main > section { margin-bottom: 2.25rem; }
main > section > h2 { font-size: var(--fs-md); }

/* ---- home: categories ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; background: var(--bg2);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.cat-card .icon.cat { width: 2rem; height: 2rem; padding: .35rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: .2rem; }
.cat-card strong { font-size: .95rem; }
.cat-card .count { font-size: var(--fs-xs); color: var(--muted); }
.cat-card .count::after { content: " vnt."; }
html:not([lang="lt"]) .cat-card .count::after { content: ""; }

/* ---- product grid + cards ---- */
.grid, .products, .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.card, .product-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover, .product-card:hover { border-color: #b9cbf5; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card > a { color: var(--ink); display: block; }
.card > a:hover { text-decoration: none; }
.card > a:hover h2, .card > a:hover h3 { color: var(--accent); }
.card h2, .card h3, .card .title { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: .7rem 0 .5rem; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.05em; }
.thumb, .photo { margin: 0; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg3); display: grid; place-items: center; }
.thumb img, .photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ph { color: #5b6a85; }
.ph-svg { width: 100%; height: 100%; display: block; }
.card .price { margin: auto 0 .35rem; }
.card .stock, .card .express, .card .mkt-card { margin: .25rem 0 0; }
.card .sku { color: var(--muted); }
.card .desc { color: var(--muted); font-size: .86rem; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small, .price .vat { font-weight: 500; font-size: .75rem; color: var(--muted); margin-left: .2em; letter-spacing: 0; }
.stock { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; font-size: var(--fs-xs); font-weight: 600;
  padding: .2rem .55rem; border-radius: 999px; color: var(--ok); background: var(--brand-ok-soft); }
.stock::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.stock.low, .stock-low { color: var(--warn); background: var(--brand-warn-soft); }
.stock.out, .stock-out { color: var(--muted); background: var(--bg3); }
.stock.out::before { background: #94a3b8; }
.stock.out a { color: var(--accent); }
.express { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; font-size: var(--fs-xs); font-weight: 600; color: var(--brand-express); }
.express::before { content: "⚡"; }
.mkt-card { font-size: var(--fs-xs); color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---- product page ---- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
.product > .photo { background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); position: sticky; top: 7.5rem; }
.product .info h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.product .info > .sku { display: none; }
.buybox { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.buybox:has(.add-to-cart) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.buybox > .price, .buybox > .stock, .buybox > .desc { grid-column: 1 / -1; }
.buybox .price { font-size: 2rem; display: block; margin: 0; }
.buybox .price small { font-size: .85rem; font-weight: 600; }
.buybox .add-to-cart { width: 100%; min-height: 2.9rem; font-size: 1rem; }
.buybox .add-to-cart .icon { width: 1.2em; height: 1.2em; }
.buybox .row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.buybox > .stock { margin: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .75rem 1.25rem; margin: 0 0 1rem; padding: 1.1rem 1.2rem;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: var(--fs-sm); }
.facts dt { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); line-height: 1.5; }
.facts .icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent); vertical-align: -.2em; margin-right: .45rem; }
.facts dt .icon { margin-right: 0; }
.facts dd > span { display: flex; align-items: flex-start; gap: .5rem; }
.facts dd > span > .icon { margin: .15em 0 0; }
.facts dd { display: grid; row-gap: .35rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: .2rem; } .facts dd { margin-bottom: .6rem; } }
.buybox > p:last-child { margin-bottom: 0; }
.buybox dl, .buybox ul { font-size: var(--fs-sm); color: var(--muted); }
.mkt { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.mkt h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .3rem; }
.mkt-val { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 0 0 .2rem; font-variant-numeric: tabular-nums; }
.mkt-meta, .mkt-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.mkt canvas, .mkt svg { max-width: 100%; margin-top: .6rem; }
.ask { margin: 1rem 0; }
.desc:empty { display: none; }
.spec-block { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.spec-block > .specs { grid-row: span 3; }
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.specs caption { text-align: left; font-weight: 700; color: var(--ink); font-size: var(--fs-md); padding-bottom: .6rem; }
.specs th, .specs td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:nth-child(even) th, .specs tr:nth-child(even) td { background: #f9fbfd; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.gen-desc, .fit { color: var(--fg); margin: 0; }
.related h2 { font-size: var(--fs-md); }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.related li a { display: block; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--fg); font-size: var(--fs-sm); }
.related li a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.description { color: var(--fg); white-space: pre-line; }

/* ---- buttons ---- */
.btn, button.btn, button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.2rem; min-height: 2.75rem; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent);
  color: #fff; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover, button[type=submit]:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; box-shadow: 0 4px 14px -6px rgba(37,99,235,.6); }
.btn:disabled, .btn[aria-disabled="true"], button[type=submit]:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost, .btn-ghost { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--bg2); }
.btn.wa { background: #1faa53; border-color: #1faa53; }
.btn.wa:hover { background: #178a43; border-color: #178a43; box-shadow: 0 4px 14px -6px rgba(31,170,83,.6); }
.btn.small, .btn-sm { padding: .35rem .7rem; min-height: 0; font-size: .82rem; }
.btn.block { width: 100%; }
.btn.added { background: var(--ok); border-color: var(--ok); }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- forms ---- */
label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--fg); margin: .75rem 0 .3rem; }
input, select, textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
  padding: .6rem .75rem; font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
label > input, label > select, label > textarea { margin-top: .3rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
textarea { min-height: 6rem; resize: vertical; }
label.consent { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
label.consent input { margin-top: .25rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 var(--gap); }
.hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
form.lead, form.wishlist { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
form.lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; max-width: 760px; margin: 0 0 2.25rem; }
form.lead > h2, form.lead > p, form.lead > label:first-of-type, form.lead > button { grid-column: 1 / -1; }
form.lead > h2 { font-size: var(--fs-md); margin-bottom: .2rem; }
form.lead > p { color: var(--muted); }
form.lead > button, form.wishlist > button { justify-self: start; margin-top: 1rem; }
form.wishlist { margin-bottom: 1rem; }
form.wishlist h2 { font-size: var(--fs-md); margin-bottom: .3rem; }
form.wishlist > p { color: var(--muted); font-size: var(--fs-sm); }

/* ---- quantity stepper ---- */
.qty, .qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button, .qty-stepper button { width: 2.75rem; min-height: 2.75rem; border: 0; background: #fff; color: var(--ink); font: 600 1.15rem var(--font); cursor: pointer; }
.qty button:hover:not(:disabled), .qty-stepper button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.qty button:disabled, .qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty input, .qty-stepper input { width: 3.2rem; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0;
  text-align: center; font-variant-numeric: tabular-nums; padding: .35rem 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- cart + summary ---- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1.5rem; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); box-shadow: var(--shadow); }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .8rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .name { font-weight: 600; color: var(--ink); }
.cart-line .sku { display: block; color: var(--muted); font-size: var(--fs-xs); }
.cart-line .line-total { font-weight: 700; min-width: 6em; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: .2rem .4rem; min-height: 0; }
.cart-line .remove:hover { color: var(--bad); box-shadow: none; }
.cart-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed #cbd5e1; border-radius: var(--radius); background: var(--bg2); }
.summary { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 7.5rem; box-shadow: var(--shadow); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; margin: 0 0 1rem; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total dt, .summary .total dd, .summary dt.total, .summary dd.total { color: var(--ink); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .6rem; }
[data-cart-count] { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .3em; border-radius: 1em; background: var(--accent); color: #fff; font: 700 .78rem/1.5 var(--font); text-align: center; }
[data-cart-count][data-empty] { background: var(--bg3); color: var(--muted); }

/* ---- VAT, notices, payments ---- */
.vat-field { position: relative; }
[data-vat-status] { display: block; min-height: 1.2em; font-size: .82rem; margin-top: .3rem; }
[data-vat-status].checking { color: var(--muted); }
[data-vat-status].valid { color: var(--ok); }
[data-vat-status].invalid { color: var(--bad); }
[data-vat-status].error { color: var(--warn); }
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: .7rem .9rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--fg); margin: .6rem 0; }
.notice.reverse { border-color: var(--ok); background: var(--brand-ok-soft); }
.pay-methods { display: grid; gap: .6rem; margin: .6rem 0 1rem; border: 0; padding: 0; }
.pay-methods legend { font-size: var(--fs-sm); font-weight: 600; color: var(--fg); margin-bottom: .4rem; padding: 0; }
.pay-option { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; margin: 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg2); color: var(--fg); cursor: pointer; font-size: .95rem; }
.pay-option:hover { border-color: #b9cbf5; }
.pay-option input { width: auto; accent-color: var(--accent); margin: 0; }
.pay-option.selected, .pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.pay-option .pay-title { font-weight: 600; display: block; color: var(--ink); }
.pay-option .pay-sub { font-size: .82rem; color: var(--muted); display: block; }
.pay-option .pay-tag { font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--brand-warn-soft); border-radius: 4px; padding: .1rem .4rem; }
.pay-option[hidden] { display: none; }
.pay-detail { display: none; font-size: .88rem; color: var(--muted); padding: .2rem 1rem .6rem; }
.pay-detail.active { display: block; }

/* ---- home: contact block ---- */
address.contact { font-style: normal; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); line-height: 1.8; color: var(--fg); max-width: 760px; }
address.contact h2 { font-size: var(--fs-md); }

/* ---- footer ---- */
body > footer { margin-top: 2rem; background: var(--ink); color: #cbd5e1; font-size: var(--fs-sm); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gap) 1.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
body > footer .logo { color: var(--accent); }
body > footer .logo .brand-logo .word { fill: #fff; }
body > footer a { color: #e2e8f0; }
.foot-company .legal { margin: 0 0 .6rem; color: #fff; }
.rekv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1.25rem; margin: 0 0 .8rem; }
.rekv dt { color: #94a3b8; }
.rekv dd { margin: 0; color: #e2e8f0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.inv { color: #94a3b8; margin: 0; }
body > footer .build { display: none; max-width: var(--maxw); margin: 0 auto; padding: .8rem var(--gap) 5.5rem; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: .7rem; font-family: var(--mono); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: .84rem; margin-top: 2rem; }

/* ---- toasts ---- */
.toast, .egg-toast { position: fixed; left: 50%; bottom: 1rem; z-index: 99; max-width: min(36rem, calc(100vw - 32px)); background: var(--ink); color: #fff;
  border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .92rem; box-shadow: var(--shadow-lg); }
.toast { transform: translate(-50%, 160%); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }
.egg-toast { transform: translateX(-50%); width: max-content; animation: eggin .3s ease-out; }
@keyframes eggin { from { opacity: 0; transform: translate(-50%, 12px); } }
html.improbable body { animation: improbable 2.4s ease-in-out; }
@keyframes improbable { 30% { filter: hue-rotate(120deg); } 60% { filter: hue-rotate(260deg); } 100% { filter: none; } }

/* ---- print ---- */
@media print { body > header, body > footer, .btn, .qty, .qty-stepper, .toast, form { display: none !important; } body { background: #fff; color: #000; } }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .product, .cart-layout, .spec-block { grid-template-columns: 1fr; }
  .product > .photo, .summary { position: static; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding-top: 1rem; }
  body > header { gap: .45rem .6rem; padding: .55rem var(--gap); }
  .logo .brand-logo { display: none; }
  .logo .brand-mark { display: block; }
  .hdr-contact a:not(.tel):not(.wa) { display: none; }
  .hdr-contact a { padding: .3rem .5rem; }
  body > header .flags a { padding: .2rem; }
  .grid, .products, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card, .product-card { padding: .55rem; }
  .card h2, .card h3 { font-size: .86rem; }
  .price { font-size: 1.05rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form.lead { grid-template-columns: 1fr; }
  form.lead > button, form.wishlist > button { width: 100%; }
  .hero::after { display: none; }
  .rekv { grid-template-columns: 1fr; gap: 0; }
  .rekv dd { margin-bottom: .45rem; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line .line-total { grid-column: 1; text-align: left; }
  .lang-switch .lang-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
