/* virbante.lt – one light theme. Tokens sampled from the approved mockups (PLAN.md 4.1). */
:root {
  --navy-900: #0B1A26;  /* header, footer */
  --navy-800: #0D202E;  /* top bar */
  --navy-700: #1F2B39;  /* hero dark panel, top */
  --ink: #1B273A;       /* body text */
  --muted: #5B6B7B;
  --bg: #F6F9FB;        /* page */
  --surface: #FFFFFF;
  --line: #E3E9EF;
  --red: #E5262D;       /* ONLY: hero diagonal, search button, active nav pill, heading underline, About picture stripe */
  /* the hero picture's own red band (sampled): angle 39.8 deg from vertical, deep red fading to pink */
  --band-angle: -39.8deg;
  --band-red: linear-gradient(180deg, #E21123 0%, #E5172A 38%, #F03C50 66%, rgba(244, 112, 130, .55) 88%, rgba(244, 112, 130, 0) 100%);
  --teal: #07B5BD;      /* product action button */
  --teal-hover: #0597A0;
  --code: #1217C4;      /* product codes */

  --hero-pos: 100% 58%;   /* hero picture anchor: right edge, a bit below centre (headlight + front wheel) */
  --hero-pos-m: 100% 45%; /* phone strip anchor */
  /* text column stays on the light part: the red band starts at ~52% of the picture width */
  --hero-text: min(700px, calc(52vw - max(24px, 50vw - 676px) - 40px));
  --wrap: 1400px;
  --side: 330px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --font: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --font-h: "Inter Tight", "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(11, 26, 38, .05), 0 4px 14px rgba(11, 26, 38, .05);
  --shadow-pop: 0 2px 6px rgba(11, 26, 38, .08), 0 14px 34px rgba(11, 26, 38, .14);
  --shadow-search: 0 2px 4px rgba(11, 26, 38, .06), 0 10px 28px rgba(11, 26, 38, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; display: block; }
[hidden] { display: none !important; }
html.overlay-open { overflow: hidden; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
@media (min-width: 761px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* preview strip (Artifact shell only) */
.preview-strip { background: #FFF1C2; color: #5A4700; font: 600 12px/1.2 var(--font); letter-spacing: .03em; text-align: center; padding: 5px var(--gut-r) 5px var(--gut); }
.ps-sep { margin: 0 8px; opacity: .6; }
.ps-admin { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ps-admin:hover { color: #2E2400; }

.boot { min-height: 60vh; display: grid; place-items: center; }
.boot-dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy-700); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-error { padding: 40px var(--gut); color: var(--ink); }

/* ---------------- top bar ---------------- */
.topbar { background: var(--navy-800); color: #CFD9E3; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.tb-slogan { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tb-slogan .ico { width: 17px; height: 17px; color: #fff; }
.tb-right { display: flex; align-items: center; gap: 24px; }
.langs { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.langs a { color: #A9BACB; text-decoration: none; padding: 3px 6px; border-radius: 4px; }
.langs a:hover { color: #fff; }
.langs a.on { color: #fff; background: rgba(255, 255, 255, .12); }
.langs .dot { color: #5E7286; }
.tb-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tb-item .ico { width: 16px; height: 16px; color: #fff; }
.sel { user-select: text; -webkit-user-select: text; }

/* ---------------- header ---------------- */
.hdr { position: relative; z-index: 40; background: var(--navy-900); color: #fff; }
.hdr-in { display: flex; align-items: center; gap: 56px; min-height: 86px; }
.logo { display: block; flex: none; }
.logo img { display: block; width: 104px; height: auto; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-a { color: #E4EBF2; text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 18px; border-radius: 6px; white-space: nowrap; }
.nav-a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-a.on { background: var(--red); color: #fff; }
.cart-btn { position: relative; flex: none; margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.cart-btn:hover { background: rgba(255, 255, 255, .14); }
.cart-btn .ico { width: 22px; height: 22px; }
.cart-n { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: #fff; font: 800 11.5px/21px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--navy-900); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: inherit; padding: 0; }
.icon-btn:hover { background: rgba(127, 140, 155, .16); }
.icon-btn .ico { width: 22px; height: 22px; }
.only-m { display: none !important; }

/* ---------------- search ---------------- */
.sform { position: relative; display: flex; align-items: center; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-search); height: 56px; max-width: 690px; }
.sform:focus-within { box-shadow: var(--shadow-search), 0 0 0 3px rgba(31, 43, 57, .18); }
.sform-ico { padding-left: 22px; color: var(--muted); display: flex; }
.sform-ico .ico { width: 20px; height: 20px; }
.sform-q { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 15px; color: var(--ink); }
.sform-q::placeholder { color: #7D8B99; }
.sform-q::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sform-btn { flex: none; height: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 0 999px 999px 0; background: var(--red); color: #fff; font: 800 15px/1 var(--font-h); letter-spacing: .04em; padding: 0 30px 0 32px; cursor: pointer; }
.sform-btn:hover { background: #CC1F26; }
.sform-btn .ico { width: 18px; height: 18px; }
.sdrop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; max-height: 430px; overflow: auto; }
.sd-row { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); grid-template-areas: "code name" "code cat"; column-gap: 14px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sd-row:hover, .sd-row.on { background: #EDF2F6; }
.sd-code { grid-area: code; align-self: center; font: 800 15px/1.2 var(--font-h); color: var(--code); }
.sd-name { grid-area: name; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-cat { grid-area: cat; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-empty { margin: 0; padding: 14px; color: var(--muted); font-weight: 500; }
.sd-all { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; font-weight: 700; font-size: 14px; color: var(--navy-700); cursor: pointer; border-radius: 0 0 8px 8px; }
.sd-all:hover { background: #EDF2F6; }
.dlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 2px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.dlink span { text-decoration: underline; text-underline-offset: 3px; }
.dlink[aria-expanded="true"] span { text-decoration-thickness: 2px; }
.dlink .ico { width: 17px; height: 17px; }

/* ---------------- filters panel ---------------- */
.fpanel { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 16px; max-width: 1000px; }
.fp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ms { position: relative; }
.ms summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 14px; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary .ico { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.ms[open] summary { border-color: var(--navy-700); }
.ms[open] summary .ico { transform: rotate(180deg); }
.ms-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy-700); color: #fff; font-size: 12px; display: grid; place-items: center; }
.ms-list { position: absolute; z-index: 70; top: calc(100% + 4px); left: 0; right: 0; min-width: 230px; max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; }
.ms-o { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ms-o:hover { background: #F0F4F7; }
.ms-o input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy-700); flex: none; }
.ms-o span { flex: 1; min-width: 0; }
.ms-o small { color: var(--muted); font-size: 12px; }
.rng { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 14px; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); }
.rng-l { font-weight: 600; font-size: 14px; white-space: nowrap; }
.rng input { flex: 1; width: 0; min-width: 0; height: 32px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 4px; font-size: 14px; outline: 0; -moz-appearance: textfield; appearance: textfield; }
.rng input:focus { border-bottom-color: var(--navy-700); }
.rng input::-webkit-outer-spin-button, .rng input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rng-dash { color: var(--muted); }
.fp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.btn-ghost { height: 42px; padding: 0 18px; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy-700); }
.btn-navy { height: 42px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--navy-700); color: #fff; font: 800 14px/1 var(--font-h); letter-spacing: .05em; cursor: pointer; }
.btn-navy:hover { background: var(--navy-900); }

/* ---------------- hero ---------------- */
/* the user's banner picture (light streaks, red diagonal, car) is the whole background: no drawn band or panel */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(270px, 20vw, 380px);
  background-color: #EDF1F5; background-image: url("assets/hero-car.jpg");
  background-image: image-set(url("assets/hero-car.webp") type("image/webp"), url("assets/hero-car.jpg") type("image/jpeg"));
  background-size: cover; background-position: var(--hero-pos); background-repeat: no-repeat; border-bottom: 1px solid var(--line); }
.hero-home { min-height: clamp(320px, 24vw, 460px); }
.hero-strip { display: none; }
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: 28px; padding-bottom: 26px; }
.hero-text { max-width: var(--hero-text); }
.hero .sform { max-width: 100%; }
.hero-home .hero-in { padding-top: 36px; padding-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 700 13px/1 var(--font); letter-spacing: .07em; color: var(--ink); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--navy-700); }
.hero-title { margin: 0 0 22px; font: 800 30px/1.08 var(--font-h); letter-spacing: -.02em; text-transform: uppercase; color: var(--navy-900); max-width: 660px; }
.hero-home .hero-title { font-size: 40px; }

/* compact search row (product page) */
.srow { background: linear-gradient(112deg, #E9EEF3 0%, #F9FBFC 45%, #EEF2F6 100%); border-bottom: 1px solid var(--line); }
.srow-in { position: relative; z-index: 2; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); column-gap: 32px; align-items: start; padding-top: 22px; padding-bottom: 16px; }
.srow-title { margin: 12px 0 0; padding-bottom: 12px; position: relative; font: 800 22px/1.15 var(--font-h); text-transform: uppercase; letter-spacing: -.01em; color: var(--navy-900); }
.srow-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--red); }
.srow .sform { max-width: none; }
.srow .dlink { margin-top: 10px; }
.srow .fpanel-slot { grid-column: 2; }

/* ---------------- tiles ---------------- */
.home-tiles { padding-top: 28px; padding-bottom: 30px; }
.tiles-grid { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 12px; }
.tiles-grid .tile { grid-column: span 6; min-height: 106px; }
.tiles-grid .tile:nth-last-child(-n+3) { grid-column: span 10; }
.tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 8px; text-decoration: none; color: #fff;
  background: var(--c); background: linear-gradient(90deg, color-mix(in oklab, var(--c) 90%, #000) 0%, color-mix(in oklab, var(--c) 88%, #fff) 100%);
  box-shadow: 0 1px 2px rgba(11, 26, 38, .1); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 26, 38, .18); }
.tile-ico { flex: none; width: 76px; height: 64px; display: grid; place-items: center; }
.tile-ico img { display: block; width: auto; height: auto; max-width: 76px; max-height: 64px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); }
.tile-ico-photo { width: 76px; height: 57px; border-radius: 8px; overflow: hidden; }
.tile-ico-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: multiply; filter: none; }
.tile-t { flex: 1; min-width: 0; font: 800 13.5px/1.25 var(--font-h); letter-spacing: .015em; text-shadow: 0 1px 1px rgba(0, 0, 0, .14); }
.tile-arr { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.tile-arr .ico { width: 16px; height: 16px; }

/* ---------------- body with sidebar ---------------- */
.body-grid { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 44px; }
.side-tiles { display: flex; flex-direction: column; gap: 8px; }
.tile-side { min-height: 56px; padding: 6px 12px 6px 8px; gap: 12px; }
.tile-side .tile-ico { width: 66px; height: 46px; }
.tile-side .tile-ico img { max-width: 66px; max-height: 46px; }
.tile-side .tile-ico-photo { width: 58px; height: 43px; border-radius: 6px; }
.tile-side .tile-ico-photo img { max-width: none; max-height: none; }
.tile-side .tile-t { font-size: 13px; }
.tile-side .tile-arr { width: 28px; height: 28px; }
.tile-side.on { box-shadow: inset 5px 0 0 rgba(255, 255, 255, .85), 0 6px 16px rgba(11, 26, 38, .16); }
.subcats { list-style: none; margin: 6px 0 4px 10px; padding: 2px 0 2px 12px; border-left: 2px solid #D6DEE6; }
.subcats .subcats { margin: 2px 0 2px 6px; }
.subcats a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--ink); }
.subcats a:hover { background: #E8EEF3; }
.subcats a.on { background: #E3EAF0; font-weight: 700; }
.subn { color: var(--muted); font-size: 12px; font-weight: 500; }
.subchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.subchips::-webkit-scrollbar { display: none; }
.subchip { flex: none; padding: 7px 12px; border: 1px solid #D6DEE6; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.subchip.on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ---------------- breadcrumbs, headings ---------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-home { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.crumb-home .ico { width: 15px; height: 15px; }
.crumb-sep { width: 14px; height: 14px; color: #9AA8B5; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.h1u, .h2u { position: relative; margin: 0; padding-bottom: 12px; font-family: var(--font-h); font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; line-height: 1.15; overflow-wrap: break-word; }
.h1u { font-size: 28px; }
.h2u { font-size: 21px; }
.h1u::after, .h2u::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--red); }

/* ---------------- listing ---------------- */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 18px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sel-wrap { position: relative; display: block; }
.sel-wrap select { appearance: none; -webkit-appearance: none; height: 42px; min-width: 210px; padding: 0 40px 0 14px; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.sel-wrap .ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.count { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.count b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 1px solid #D6DEE6; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--navy-700); }
.chip .ico { width: 14px; height: 14px; color: var(--muted); }
.chip-clear { border-style: dashed; color: var(--muted); padding: 0 12px; }
.empty { margin: 0; padding: 44px 20px; text-align: center; background: var(--surface); border: 1px dashed #D0D9E2; border-radius: 10px; color: var(--muted); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: 0 12px 26px rgba(11, 26, 38, .12); transform: translateY(-1px); }
/* PLAN 16.1 (Inga 2026-11-27): the whole product photo, centred in its 4:3 frame on white (most photos have a white background) */
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.pimg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
.pimg:not([src]) { visibility: hidden; }
.card-img .pimg { position: absolute; inset: 0; }
.badge-new { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 9px; border: 1px solid #CFD8E1; border-radius: 999px; background: var(--surface); color: var(--navy-900); font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(11, 26, 38, .1); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; }
.card-link { flex: 1; display: flex; flex-direction: column; gap: 3px; text-decoration: none; min-width: 0; }
.card-code { font: 800 17px/1.2 var(--font-h); color: var(--code); letter-spacing: -.005em; overflow-wrap: anywhere; }
.card-link:hover .card-code { text-decoration: underline; }
.card-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.8em; font-size: 13.5px; line-height: 1.4; color: #3B495A; }
.btn-teal { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font: 800 14px/1 var(--font-h); letter-spacing: .05em; cursor: pointer; transition: background .15s ease; }
.btn-teal:hover { background: var(--teal-hover); }
.btn-teal:focus-visible { outline-color: var(--teal-hover); }
.btn-teal .ico { width: 17px; height: 17px; }
.btn-wide { width: 100%; height: 52px; font-size: 15px; border-radius: 8px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pg { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.pg:hover:not(:disabled) { border-color: var(--navy-700); }
.pg.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pg:disabled { opacity: .35; cursor: default; }
.pg .ico { width: 16px; height: 16px; }
.pg-gap { align-self: center; padding: 0 2px; color: var(--muted); }

.cat-text { margin-top: 34px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.clamp { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.more-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 0; border: 0; background: none; color: var(--navy-700); font-weight: 700; font-size: 14px; cursor: pointer; }
.more-btn .ico { width: 16px; height: 16px; transition: transform .15s; }
.more-btn.up .ico { transform: rotate(180deg); }

/* old-site rich text */
.rich { font-size: 15px; line-height: 1.65; color: #26344A; overflow-wrap: break-word; }
.rich > :first-child { margin-top: 0; }
.rich p { margin: 0 0 .8em; }
.rich h2, .rich h3, .rich h4 { margin: 1.2em 0 .5em; font-family: var(--font-h); font-weight: 800; color: var(--navy-900); line-height: 1.25; }
.rich h2 { font-size: 20px; } .rich h3 { font-size: 18px; } .rich h4 { font-size: 16px; }
.rich ul, .rich ol { margin: 0 0 .9em; padding-left: 1.3em; }
.rich li { margin: .2em 0; }
.rich img { max-width: 100%; height: auto; vertical-align: middle; border-radius: 4px; }
.rich a { color: var(--code); }
.rich a[href^="assets/"] { cursor: zoom-in; }
.rich table { display: block; width: 100%; margin: 0 0 1em; border-collapse: collapse; }
.rich tbody, .rich thead { display: block; }
.rich tr { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rich td, .rich th { display: block; flex: 1 1 150px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; vertical-align: top; text-align: left; }
.rich td p:last-child, .rich th p:last-child { margin-bottom: 0; }

/* ---------------- product page ---------------- */
.prod-top { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.prod-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-card); }
.prod-img .pimg { position: absolute; inset: 0; }
.badge-lg { top: 14px; left: 14px; padding: 7px 12px; font-size: 12px; }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 26, 38, .2); }
.prod-info { position: relative; padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); }
.prod-logo { position: absolute; top: 20px; right: 22px; width: 88px; height: auto; opacity: .8; }
.prod-kicker { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.prod-kicker b { color: var(--ink); font-weight: 600; }
.prod-h1 { margin: 0 0 18px; padding-right: 104px; }
.prod-code { position: relative; display: block; margin-bottom: 12px; padding-bottom: 12px; font: 800 38px/1.08 var(--font-h); letter-spacing: -.015em; color: var(--navy-900); overflow-wrap: anywhere; }
.prod-code::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--red); }
.prod-name { display: block; font: 600 18px/1.35 var(--font); color: var(--ink); }
.prod-name-only { font: 800 26px/1.2 var(--font-h); }
.specs { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14.5px; }
.specs th { width: 42%; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 500; color: var(--muted); }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line); }
.price { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.price b { font: 800 24px/1 var(--font-h); color: var(--ink); }
.prod-desc { margin-top: 26px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.desc-body { margin-top: 16px; }
.similar { margin-top: 34px; }
.similar .h2u { margin-bottom: 18px; }

/* ---------------- content pages ---------------- */
.page-card { padding: 26px 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); }
.page-main > .rich { margin-top: 20px; }
/* About, as the approved mockup (c-apie-mus.png): the card opens with a banner row - heading and lead
   text left, picture tile flush right. In the tile, back to front: pale diagonal streaks, a dark sliver
   and the red band at the hero's angle running from the top-right corner to the tile's bottom edge,
   then the cut-out tyres and bolts IN FRONT of the red. The rest of the text runs under the banner. */
.page-card.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 50%; grid-template-areas: "main photo" "rest rest"; padding: 0; overflow: hidden; }
.page-card.has-photo .page-main { padding: 26px 26px 22px 28px; }
.page-main { grid-area: main; min-width: 0; }
.page-rest { grid-area: rest; padding: 24px 28px 26px; border-top: 1px solid var(--line); }
.page-rest.cols { columns: 2; column-gap: 44px; }
.page-rest.cols > * { break-inside: avoid; }
.page-photo { --pp-base: 55%; grid-area: photo; position: relative; align-self: stretch; min-height: 250px; overflow: hidden; background: var(--surface); }
.page-photo picture { position: absolute; z-index: 2; right: 5%; bottom: 0; height: 94%; max-width: 92%; display: flex; align-items: flex-end; justify-content: flex-end; }
.page-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.pp-streaks { position: absolute; z-index: 0; inset: 0; background: linear-gradient(129.8deg, rgba(233, 238, 243, 0) 9%, rgba(233, 238, 243, .95) 9.2%, rgba(233, 238, 243, .95) 15%, rgba(233, 238, 243, 0) 15.2%, rgba(233, 238, 243, 0) 21%, rgba(236, 240, 245, .9) 21.2%, rgba(241, 244, 248, .7) 60%, rgba(241, 244, 248, 0) 86%); }
.pp-band, .pp-sliver { position: absolute; z-index: 1; top: 0; bottom: 0; transform: skewX(var(--band-angle)); transform-origin: 0 100%; }
/* --pp-base = how wide the red is at the tile's bottom edge; from there the band rises at the hero's angle,
   so it reaches the top-right corner on a normal tile and never floods a tall one */
.pp-band { left: calc(100% - var(--pp-base)); width: 220%; background: linear-gradient(180deg, #E21123 0%, #E5172A 45%, #EC2F45 100%); }
.pp-sliver { left: calc(100% - var(--pp-base) - 20px); width: 20px; background: linear-gradient(180deg, rgba(11, 26, 38, .78), rgba(11, 26, 38, .5) 55%, rgba(11, 26, 38, .12)); }
/* narrower desktop and tablets: the banner row is heading + picture only (240 px, as the mockup);
   all the text runs under it */
@media (min-width: 761px) and (max-width: 1240px) {
  .page-card.has-photo { grid-template-columns: minmax(0, 1fr) 58%; grid-template-areas: "main photo" "lead lead" "rest rest"; }
  .page-card.has-photo .page-main { display: contents; }
  .page-card.has-photo .page-main > h1 { grid-area: main; align-self: start; margin: 28px 0 0 28px; }
  .page-card.has-photo .page-main > .rich { grid-area: lead; margin: 0; padding: 22px 28px 0; border-top: 1px solid var(--line); }
  .page-card.has-photo .page-main > .rich:last-child { padding-bottom: 26px; }
  .page-card.has-photo .page-rest { border-top: 0; padding-top: 0; }
  .page-photo { --pp-base: 216px; min-height: 240px; height: 240px; }
}

/* contacts (11.5) */
.contacts-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.contacts-info .h1u { margin-bottom: 18px; }
.ci-company { margin: 0 0 14px; font: 800 18px/1.3 var(--font-h); color: var(--navy-900); }
.ci-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ci-row { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.ci-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-hover); }
.ci-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.ci-label { color: var(--muted); font-size: 14px; }
.ci-val { display: flex; flex-direction: column; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ci-div { margin: 18px 0 14px; border: 0; border-top: 1px solid var(--line); }
.ci-legal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14px; }
.ci-legal dt { color: var(--muted); }
.ci-legal dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ci-legal .ci-full { grid-column: 1 / -1; }
.dist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dist { display: flex; align-items: center; gap: 22px; }
.dist-map { flex: none; display: block; width: 150px; height: auto; }
.dist-h { margin: 0 0 8px; font: 800 15px/1.3 var(--font-h); letter-spacing: .02em; color: var(--navy-900); }
.dist-txt p { margin: 0 0 6px; }
.dist-link { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dist-link a { color: var(--code); }

/* product page: quantity stepper + add button (11.1) */
.buy-row { display: flex; align-items: stretch; gap: 12px; }
.buy-row .btn-wide { flex: 1; width: auto; }
.stepper { display: inline-flex; flex: none; align-items: stretch; height: 52px; border: 1px solid #C9D3DD; border-radius: 8px; overflow: hidden; background: var(--surface); }
.st-btn { width: 44px; display: grid; place-items: center; padding: 0; border: 0; background: #F2F5F8; color: var(--ink); cursor: pointer; }
.st-btn:hover { background: #E6ECF1; }
.st-btn .ico { width: 16px; height: 16px; }
.st-in { width: 64px; min-width: 0; border: 0; border-left: 1px solid #E1E7ED; border-right: 1px solid #E1E7ED; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.st-in::-webkit-outer-spin-button, .st-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-in:focus { outline: 0; box-shadow: inset 0 0 0 2px rgba(7, 181, 189, .35); }
.stepper-sm { height: 36px; border-radius: 7px; }
.stepper-sm .st-btn { width: 32px; }
.stepper-sm .st-in { width: 58px; font-size: 14px; }
.eu { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; align-items: center; margin-top: 20px; }
.eu img { display: block; width: 100%; height: auto; border-radius: 6px; }
.eu .rich p { margin: 0; text-align: left; }

/* ---------------- enquiry ---------------- */
.enq { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fld i { font-style: normal; color: var(--muted); }
.fld input, .fld textarea { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #C9D3DD; border-radius: 8px; background: var(--surface); font-size: 15px; font-weight: 400; color: var(--ink); }
.fld textarea { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--teal-hover); box-shadow: 0 0 0 3px rgba(7, 181, 189, .2); }
.fld [aria-invalid="true"] { border-color: #B26A00; box-shadow: 0 0 0 3px rgba(178, 106, 0, .15); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enq-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FFF3DC; color: #6E4300; font-size: 14px; font-weight: 600; }
.enq-result { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.enq-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FFF1C2; color: #5A4700; font-weight: 700; font-size: 14px; }
.enq-open { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.enq-alt { margin: 0; font-size: 14px; color: var(--muted); }
.enq-alt a { color: var(--ink); font-weight: 600; }
.enq-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.enq-mail { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.enq-mail dt { color: var(--muted); }
.enq-mail dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.enq-body { align-self: stretch; margin: 0; padding: 12px 14px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 var(--font); background: #F6F9FB; border: 1px solid var(--line); border-radius: 8px; }

/* ---------------- overlay ---------------- */
#overlay:empty { display: none; }
/* enquiry cart drawer (11.1): right side, about 440 px; phones: full screen */
.drawer-wrap { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; background: rgba(11, 26, 38, .45); animation: fade-in .15s ease; }
.drawer { display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--surface); box-shadow: -18px 0 48px rgba(0, 0, 0, .22); animation: slide-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(36px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 800 20px/1.2 var(--font-h); text-transform: uppercase; letter-spacing: -.01em; color: var(--navy-900); }
.drawer-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.drawer-sub b { color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 6px 22px 28px; }
.cart-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty del"; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-thumb { grid-area: thumb; position: relative; align-self: start; width: 76px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.cl-thumb .pimg { position: absolute; inset: 0; }
.cl-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-code { font: 800 16px/1.2 var(--font-h); color: var(--code); text-decoration: none; overflow-wrap: anywhere; }
.cl-code:hover { text-decoration: underline; }
.cl-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.4; color: #3B495A; }
.cl-qty { grid-area: qty; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-qlabel { font-size: 12.5px; color: var(--muted); }
.cl-del { grid-area: del; display: inline-flex; align-items: center; gap: 5px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.cl-del:hover { color: var(--ink); text-decoration: underline; }
.cl-del .ico { width: 16px; height: 16px; }
.cart-empty { padding: 48px 8px; text-align: center; }
.cart-empty p { margin: 0 0 18px; font-weight: 600; color: var(--muted); }
.cart-empty .btn-navy { display: inline-flex; align-items: center; text-decoration: none; }
.drawer-form { padding-top: 4px; }
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 250; }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); animation: slide-up .2s ease; }
@keyframes slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast button { padding: 9px 12px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font: 800 13px/1 var(--font-h); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.toast button:hover { background: var(--teal-hover); }
.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 56px 16px 24px; background: rgba(8, 14, 20, .9); cursor: zoom-out; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); width: auto; height: auto; border-radius: 6px; background: #fff; cursor: default; }
.lb-x { position: absolute; top: 10px; right: 10px; color: #fff; }

/* ---------------- benefits + footer ---------------- */
.benefits { background: var(--surface); border-top: 1px solid var(--line); }
.benefits-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.ben { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0; font: 700 16px/1.35 var(--font); color: var(--navy-900); }
.ben + .ben { border-left: 1px solid var(--line); }
.ben-ico { width: 40px; height: 40px; stroke-width: 1.6; color: var(--navy-700); }
.ftr { background: var(--navy-900); color: #C4D0DB; font-size: 14px; }
.ftr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav contact" "copy copy copy"; gap: 22px 48px; align-items: start; padding-top: 32px; padding-bottom: 24px; }
.ftr-brand { grid-area: brand; }
.ftr-brand img { display: block; width: 96px; height: auto; filter: brightness(0) invert(1); }
.ftr-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 6px; }
.ftr-a { color: #E4EBF2; text-decoration: none; }
.ftr-a:hover { text-decoration: underline; }
.ftr-a.on { color: #fff; font-weight: 600; }
.ftr-contact { grid-area: contact; font-style: normal; line-height: 1.65; }
.ftr-contact b { color: #fff; }
.ftr-bottom { grid-area: copy; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr-copy { margin: 0; font-size: 13px; color: #8EA0B2; }
.ftr-credit { margin: 0; font-size: 12.5px; color: #8EA0B2; }
.ftr-credit a { color: #B7C4D1; text-decoration: none; }
.ftr-credit a:hover { color: #fff; text-decoration: underline; }

/* ---------------- medium screens ---------------- */
@media (max-width: 1240px) {
  :root { --side: 280px; }
  .hdr-in { gap: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles-grid .tile, .tiles-grid .tile:nth-last-child(-n+3) { grid-column: span 10; }
  .tiles-grid .tile:last-child { grid-column: span 30; }
  .hero-home .hero-title { font-size: 34px; }
}
@media (max-width: 1060px) {
  .prod-top { grid-template-columns: minmax(0, 1fr); }
  .nav-a { padding: 8px 12px; font-size: 14px; }
  .tb-slogan span { display: none; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-home .hero-title { font-size: 28px; }
}
@media (min-width: 761px) and (max-width: 880px) {
  :root { --hero-text: calc(50vw - 110px); }
  .hero-home .hero-title, .hero-title { font-size: 25px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  :root { --side: 230px; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-side .tile-ico { width: 48px; }
  .tile-side .tile-ico img { max-width: 48px; }
}

/* ---------------- phone ---------------- */
@media (max-width: 760px) {
  .only-d { display: none !important; }
  .icon-btn.only-m { display: grid !important; }
  .msearch.only-m { display: block !important; }
  .subchips.only-m { display: flex !important; }

  .topbar { font-size: 12px; }
  .topbar-in { min-height: 36px; }
  .tb-slogan { display: none; }
  .tb-right { flex: 1; justify-content: space-between; gap: 10px; }
  .tb-item { gap: 5px; }
  .tb-item .ico { width: 13px; height: 13px; }

  .hdr-in { min-height: 62px; gap: 4px; }
  .logo { margin-right: auto; }
  .logo img { width: 70px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gut-r) 16px var(--gut); background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 28px rgba(0, 0, 0, .28); }
  .hdr.nav-open .nav { display: flex; }
  .nav-a { padding: 13px 14px; font-size: 16px; }

  .msearch { position: relative; z-index: 30; padding: 12px 0 8px; background: #EEF2F6; border-bottom: 1px solid var(--line); }
  .msearch .sform { height: 50px; max-width: none; box-shadow: 0 1px 2px rgba(11, 26, 38, .08), 0 0 0 1px #D6DEE6; }
  .msearch .sform-ico { padding-left: 14px; }
  .msearch .sform-q { padding: 0 10px; font-size: 16px; }
  .msearch .sform-btn { padding: 0 16px 0 18px; font-size: 13px; gap: 6px; }
  .msearch-row { display: flex; }
  .msearch .dlink { margin-top: 6px; }
  .fpanel { margin-top: 8px; padding: 12px; }
  .fp-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ms-list { position: static; margin-top: 6px; box-shadow: none; max-height: 240px; }
  .sdrop { max-height: 60vh; }

  .hero:not(.hero-home) { display: none; }
  /* phone: the picture becomes a strip above the text (red band + car), text sits on plain light ground */
  .hero-home { min-height: 0; background: linear-gradient(112deg, #E9EEF3 0%, #F9FBFC 45%, #EEF2F6 100%); }
  .hero-strip { display: block; height: 160px; background-color: #2A2F36; background-image: url("assets/hero-car-phone.jpg");
    background-image: image-set(url("assets/hero-car-phone.webp") type("image/webp"), url("assets/hero-car-phone.jpg") type("image/jpeg"));
    background-size: cover; background-position: var(--hero-pos-m); background-repeat: no-repeat; }
  .hero-home .hero-in { padding-top: 18px; padding-bottom: 20px; }
  .hero-text { max-width: none; }
  .hero-home .hero-title { margin: 0; font-size: 25px; }

  .home-tiles { padding-top: 16px; padding-bottom: 20px; }
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles-grid .tile, .tiles-grid .tile:nth-last-child(-n+3) { grid-column: auto; }
  .tiles-grid .tile:last-child { grid-column: 1 / -1; }
  .tiles-grid .tile { min-height: 118px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; }
  .tiles-grid .tile-ico { width: 70px; height: 52px; place-items: center start; }
  .tiles-grid .tile-ico img { max-width: 70px; max-height: 52px; }
  .tiles-grid .tile-ico-photo { width: 66px; height: 50px; }
  .tiles-grid .tile-t { flex: none; font-size: 12.5px; }
  .tiles-grid .tile-arr { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; }

  .body-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; padding-bottom: 30px; }
  .side { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-right: calc(-1 * var(--gut-r)); padding-right: var(--gut-r); }
  .side::-webkit-scrollbar { display: none; }
  .side-tiles { flex-direction: row; gap: 8px; width: max-content; }
  .side-item { flex: none; }
  .side .subcats { display: none; }
  .tile-side { width: 132px; height: 100px; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 8px 10px 10px; }
  .tile-side .tile-ico { width: 56px; height: 40px; place-items: center start; }
  .tile-side .tile-ico img { max-width: 56px; max-height: 40px; }
  .tile-side .tile-ico-photo { width: 52px; height: 39px; }
  .tile-side .tile-t { flex: none; font-size: 11px; line-height: 1.2; }
  .tile-side .tile-arr { display: none; }
  .tile-side.on { box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .85); }

  .crumbs { margin-bottom: 12px; font-size: 13px; }
  .h1u { font-size: 23px; }
  .h2u { font-size: 19px; }
  .list-head { flex-direction: column; align-items: stretch; margin-bottom: 14px; }
  .sort { justify-content: space-between; }
  .sel-wrap { flex: 1; }
  .sel-wrap select { width: 100%; min-width: 0; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { gap: 10px; padding: 10px 10px 10px; }
  .card-code { font-size: 15px; }
  .card-name { font-size: 12.5px; }
  .btn-teal { height: 38px; padding: 0 8px; font-size: 13px; gap: 6px; }
  .btn-teal .ico { width: 15px; height: 15px; }
  .btn-wide { height: 50px; font-size: 15px; }
  .badge-new { top: 7px; left: 7px; padding: 4px 7px; font-size: 10px; }
  .pg { min-width: 38px; height: 38px; }
  .cat-text { padding: 16px; }

  .prod-top { gap: 16px; }
  .prod-info { padding: 16px; }
  .prod-h1 { padding-right: 0; }
  .prod-code { font-size: 30px; }
  .prod-name { font-size: 16px; }
  .prod-desc { padding: 16px; }

  .page-card { padding: 18px 16px; }
  .page-card.has-photo { display: block; padding: 0; }
  .page-card.has-photo .page-main { padding: 14px 16px 16px; }
  .page-rest { padding: 16px 16px 18px; }
  .page-rest.cols { columns: 1; }
  .page-photo { --pp-base: 179px; height: 200px; min-height: 0; border-bottom: 1px solid var(--line); }
  .page-photo picture { right: 6%; height: 92%; }
  .pp-sliver { left: calc(100% - var(--pp-base) - 14px); width: 14px; }
  .contacts-row, .dist-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dist-row { margin-top: 16px; }
  .dist { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .dist-map { width: auto; height: 120px; }
  .dist-link { justify-content: center; }
  .cart-btn { margin-left: 0; width: 42px; height: 42px; border-color: transparent; background: transparent; }
  .buy-row { gap: 10px; }
  .stepper { height: 50px; }
  .st-btn { width: 40px; }
  .st-in { width: 56px; }
  .drawer { width: 100%; box-shadow: none; }
  .drawer-head { padding: 14px 8px 12px var(--gut); }
  .drawer-body { padding: 4px var(--gut-r) 28px var(--gut); }
  #toast-root { left: var(--gut); right: var(--gut-r); bottom: 12px; }
  .toast { justify-content: space-between; }
  .ftr-bottom { flex-direction: column; }
  .eu { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fld-row { grid-template-columns: minmax(0, 1fr); }


  .benefits-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; padding-bottom: 8px; }
  .ben { justify-content: flex-start; padding: 12px 0; font-size: 15px; }
  .ben + .ben { border-left: 0; border-top: 1px solid var(--line); }
  .ben-ico { width: 32px; height: 32px; }
  .ftr-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav" "contact" "copy"; gap: 18px; padding-top: 26px; }
}
@media (max-width: 370px) {
  .tb-item .ico { display: none; }
  .tiles-grid .tile-t { font-size: 11.5px; }
}

/* ================= Round 3 (PLAN.md 12) ================= */
/* 12.4 "Naujienos" entry: a plain tile in the neutral (navy) style, first in the category list */
.tile-news { --c: #2B3F55; }
.tile-ico-news { color: #fff; }
.tile-ico-news .ico { width: 40px; height: 40px; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); }
.tile-side .tile-ico-news .ico { width: 30px; height: 30px; }
/* 14 tiles on the home grid: 5 + 5 + 4 on desktop (as the approved mockup), 3 per row below 1240 px */
@media (min-width: 1241px) {
  .tiles-grid[data-n="14"] { grid-template-columns: repeat(60, minmax(0, 1fr)); }
  .tiles-grid[data-n="14"] .tile, .tiles-grid[data-n="14"] .tile:nth-last-child(-n+3) { grid-column: span 12; }
  .tiles-grid[data-n="14"] .tile:nth-last-child(-n+4) { grid-column: span 15; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .tiles-grid[data-n="14"] { grid-template-columns: repeat(60, minmax(0, 1fr)); }
  .tiles-grid[data-n="14"] .tile, .tiles-grid[data-n="14"] .tile:nth-last-child(-n+3), .tiles-grid[data-n="14"] .tile:last-child { grid-column: span 20; }
  .tiles-grid[data-n="14"] .tile:nth-last-child(-n+2) { grid-column: span 30; }
}
@media (max-width: 760px) {
  .tiles-grid[data-n="14"] .tile:last-child { grid-column: auto; }
}

/* 12.4 "Naujienos" tick in the "Detali paieška" panel, same box as the range fields */
.ftick { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 14px; border: 1px solid #D6DEE6; border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.ftick input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy-700); flex: none; }
.ftick span { flex: 1; min-width: 0; }
.ftick small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ftick:has(input:checked) { border-color: var(--navy-700); }

/* 12.1 order page + 12.2 extra-services card: the About card and heading style */
.page-sections .h1u { margin-bottom: 4px; }
.page-sec { padding-top: 20px; }
.page-sec + .page-sec { margin-top: 22px; border-top: 1px solid var(--line); }
.sec-h { margin: 0 0 12px; font: 800 19px/1.25 var(--font-h); color: var(--navy-900); }
.page-extra { margin-top: 20px; }
.page-extra .rich { margin-top: 18px; }

/* 12.3 privacy policy: a sheet of paper (the PDF uses the same rules) */
.doc-wrap { padding-top: 24px; padding-bottom: 48px; }
.doc-wrap .crumbs, .doc-note, .doc-sheet { max-width: 860px; margin-left: auto; margin-right: auto; }
.doc-note { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 auto 14px; padding: 6px 12px; border-radius: 999px; background: #FFF1C2; color: #5A4700; font-size: 13px; font-weight: 600; }
.doc-note .ico { width: 16px; height: 16px; }
.doc-sheet { padding: 60px 72px 68px; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 3px rgba(11, 26, 38, .08), 0 14px 34px rgba(11, 26, 38, .10); }
.doc-head { margin-bottom: 26px; padding-bottom: 16px; border-bottom: 2px solid var(--navy-900); }
.doc-co { margin: 0 0 6px; font: 700 12.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-title { margin: 0; font: 800 30px/1.15 var(--font-h); letter-spacing: -.01em; color: var(--navy-900); }
.doc-body { font-size: 14.5px; line-height: 1.6; text-align: left; }
.doc-body p { margin: 0 0 .6em; }

/* 12.3 privacy link under the "send" button (cart drawer + Contacts): just the document title */
.enq-doc { margin: -2px 0 0; text-align: center; font-size: 13px; }
.enq-doc-a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.enq-doc-a:hover { color: var(--ink); }
.nav-a.only-m-nav { display: none; }

/* ---------------- 12.5 admin area ---------------- */
.adm-hdr .hdr-in { min-height: 72px; gap: 24px; }
.adm-hdr .logo img { width: 84px; }
.adm-title { margin: 0; font: 800 18px/1 var(--font-h); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.adm-site { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; color: #E4EBF2; font-weight: 600; font-size: 14px; text-decoration: none; }
.adm-site:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.adm-site .ico { width: 17px; height: 17px; }
.adm { min-height: 70vh; padding: 20px 0 56px; }
.adm-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #BFE5E8; border-radius: 8px; background: #EAF6F7; color: #0C4A50; font-size: 14px; font-weight: 500; }
.adm-info .ico { margin-top: 1px; color: var(--teal-hover); }
.adm-warn { border-color: #F0D49A; background: #FFF3DC; color: #6E4300; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 18px 0 18px; }
.adm-head-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-head .btn-teal, .adm-head .btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; text-decoration: none; }
.adm-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.adm-q { position: relative; display: flex; align-items: center; height: 46px; border: 1px solid #C9D3DD; border-radius: 8px; background: var(--surface); }
.adm-q .ico { position: absolute; left: 13px; color: var(--muted); }
.adm-q input { width: 100%; height: 100%; padding: 0 12px 0 42px; border: 0; background: transparent; font-size: 15px; outline: 0; }
.adm-q:focus-within { border-color: var(--teal-hover); box-shadow: 0 0 0 3px rgba(7, 181, 189, .2); }
.adm-cat select, .adm-form .sel-wrap select { width: 100%; min-width: 0; height: 46px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-700); flex: none; }
.adm-count { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.adm-count b { color: var(--ink); }
.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 14px; }
.adm-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #F2F5F8; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; }
.adm-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.a-thumb { position: relative; display: block; width: 72px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.a-thumb .pimg { position: absolute; inset: 0; }
.a-code a { font: 800 15px/1.2 var(--font-h); color: var(--code); text-decoration: none; overflow-wrap: anywhere; }
.a-code a:hover { text-decoration: underline; }
.a-name { max-width: 420px; color: #3B495A; }
.a-cat { color: var(--muted); font-size: 13px; }
.a-new .a-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-price { font-weight: 600; white-space: nowrap; }
.a-act { text-align: right; white-space: nowrap; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; font-size: 13px; text-decoration: none; }
.btn-sm .ico { width: 15px; height: 15px; }
.a-act .btn-sm + .btn-sm { margin-left: 6px; }
.adm-confirm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 14px; padding: 14px 16px; border: 2px solid var(--navy-700); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop); }
.adm-confirm p { margin: 0; font-weight: 600; }
.adm-confirm-acts { display: flex; gap: 10px; }
.adm-notice { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #BFE3CB; border-radius: 8px; background: #E9F7EE; color: #1D5B33; font-size: 14px; font-weight: 600; }
.adm-notice a { margin-left: 6px; color: var(--code); }
.adm-form { padding: 6px 26px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); }
.adm-form .adm-err { margin: 0 0 14px; }
.adm-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
.adm-col, .adm-set { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adm-set + .adm-set { padding-top: 16px; border-top: 1px solid var(--line); }
.adm-hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.adm-hint-warn { color: #6E4300; }
.chk-lg { font-size: 15px; }
.chk-lg input { width: 20px; height: 20px; }
.adm-photo { position: relative; display: grid; place-items: center; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.adm-photo .pimg, .adm-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.adm-photo-none { width: 42px; height: 42px; color: #9AA8B5; }
.adm-file { position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; overflow: hidden; }
.fld .adm-file input, .adm-file input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.adm-file:focus-within { outline: 2px solid var(--navy-700); outline-offset: 2px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.adm-actions .btn-teal { height: 46px; padding: 0 28px; }
.adm-actions .btn-ghost { display: inline-flex; align-items: center; height: 46px; text-decoration: none; }

@media (max-width: 760px) {
  .nav .nav-a.only-m-nav { display: block; }
  .doc-wrap { padding-top: 14px; padding-bottom: 30px; }
  .doc-sheet { padding: 24px 18px 28px; }
  .doc-title { font-size: 24px; }
  .doc-body { font-size: 14px; }

  .adm-hdr .hdr-in { min-height: 58px; gap: 12px; }
  .adm-hdr .logo { margin-right: 0; }
  .adm-hdr .logo img { width: 64px; }
  .adm-title { font-size: 14px; }
  .adm-site { padding: 7px 10px; font-size: 13px; }
  .adm { padding-top: 14px; }
  .adm-tools { grid-template-columns: minmax(0, 1fr); }
  /* the list becomes cards */
  .adm-table, .adm-table tbody { display: block; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .adm-table thead { display: none; }
  .adm-table tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "ph code" "ph name" "ph cat" "ph price" "new new" "act act"; gap: 2px 12px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); }
  .adm-table td { padding: 0; border: 0; }
  .a-ph { grid-area: ph; }
  .a-code { grid-area: code; }
  .a-name { grid-area: name; font-size: 13px; }
  .a-cat { grid-area: cat; font-size: 12px; }
  .a-price { grid-area: price; }
  .a-thumb { width: 84px; }
  .adm-table .a-new { grid-area: new; padding-top: 10px; }
  .a-new .a-lab { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .adm-table .a-act { grid-area: act; display: flex; gap: 8px; padding-top: 10px; text-align: left; }
  .a-act .btn-sm { flex: 1; justify-content: center; height: 40px; }
  .a-act .btn-sm + .btn-sm { margin-left: 0; }
  .adm-confirm-acts { width: 100%; }
  .adm-confirm-acts button { flex: 1; }
  .adm-form { padding: 4px 16px 18px; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .adm-actions .btn-teal, .adm-actions .btn-ghost { flex: 1; justify-content: center; }
}
.adm-form input::placeholder, .adm-form textarea::placeholder { color: #98A4B0; opacity: 1; }

/* ---------------- 14.1 category text above the grid (folded; pictures only when unfolded) ---------------- */
.listing .cat-text { margin: 0 0 18px; padding: 14px 20px 10px; }
.cat-text .clamp { max-height: 6.7em; }
.cat-text .clamp img, .cat-text .clamp .txt-img { display: none; }
.rich .txt-img { margin: .4em 0 1em; }
.rich .txt-img img { display: block; max-height: 640px; width: auto; }
.ed-img-add.is-busy { opacity: .6; pointer-events: none; }
.cat-text .more-btn { margin-top: 4px; }

/* 14.3: a category added in the admin: the neutral tile of "Naujienos" */
.tile-plain { --c: #2B3F55; }

/* ---------------- 14 admin: tabs, product ticks, spec values, categories, page texts, contacts ---------------- */
.adm-tabs { display: flex; gap: 4px; margin: 2px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.adm-tab { flex: none; padding: 11px 16px 10px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.adm-tab:hover { color: var(--ink); }
.adm-tab.on { border-bottom-color: var(--navy-700); color: var(--navy-900); }
.adm-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.adm-ticks-col { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.a-vis .a-lab, .ed-bold .a-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.adm-table tr.is-hidden .a-ph, .adm-table tr.is-hidden .a-code, .adm-table tr.is-hidden .a-name, .adm-table tr.is-hidden .a-cat, .adm-table tr.is-hidden .c-name { opacity: .5; }
.adm-notice-warn { border-color: #F0D49A; background: #FFF3DC; color: #6E4300; }
.adm-err.adm-ok { background: #E9F7EE; color: #1D5B33; }
.adm-lead { margin: 0 0 4px; font-size: 14px; }

.adm-specs { margin: 24px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.adm-specs legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font: 800 16px/1.2 var(--font-h); color: var(--navy-900); }
.spec-opts { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.spec-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spec-l, .spec-num > span { font-size: 13.5px; font-weight: 600; }
.spec-dd { border: 1px solid #C9D3DD; border-radius: 8px; background: var(--surface); }
.spec-dd[open] { box-shadow: var(--shadow-card); }
.spec-dd summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; }
.spec-dd summary::-webkit-details-marker { display: none; }
.spec-dd summary .ico { flex: none; width: 16px; height: 16px; color: var(--muted); }
.spec-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.spec-list { display: grid; gap: 7px; max-height: 230px; overflow: auto; padding: 10px 12px; border-top: 1px solid var(--line); }
.spec-list .chk { font-weight: 500; }
.spec-add { display: grid; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #F6F8FA; border-radius: 0 0 8px 8px; }
.spec-add-h { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.spec-add input { height: 38px; padding: 0 10px; border: 1px solid #C9D3DD; border-radius: 6px; font-size: 14px; }
.spec-add .btn-sm { justify-self: start; }
.spec-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
.btn-ico { width: 34px; padding: 0; justify-content: center; }
.btn-ico:disabled { opacity: .35; cursor: default; }
.ico-up { transform: rotate(-90deg); }
.ico-down { transform: rotate(90deg); }

.adm-cats .c-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.adm-cats .c-name a:hover { text-decoration: underline; }
.adm-cats .c-depth-1 .c-name { padding-left: 34px; }
.adm-cats .c-depth-2 .c-name { padding-left: 56px; }
.adm-cats .c-depth-1 .c-name::before, .adm-cats .c-depth-2 .c-name::before { content: "– "; color: var(--muted); }
.adm-cats .c-depth-0 .c-name a { text-transform: uppercase; font-family: var(--font-h); font-weight: 800; letter-spacing: .01em; }
.c-n { white-space: nowrap; color: var(--muted); }
.c-n-l { display: none; }
.c-ord { white-space: nowrap; }
.c-ord .btn-sm + .btn-sm { margin-left: 4px; }
.adm-icon { display: grid; place-items: center; width: 132px; height: 96px; border: 1px solid var(--line); border-radius: 8px; background: #2B3F55; }
.adm-icon-img { max-width: 110px; max-height: 80px; }
.adm-icon-none { width: 36px; height: 36px; color: #fff; }

.adm-langs { display: flex; gap: 6px; margin: 12px 0 16px; }
.adm-lang { height: 38px; min-width: 54px; padding: 0 14px; border: 1px solid #C9D3DD; border-radius: 8px; background: var(--surface); font-weight: 700; cursor: pointer; color: var(--ink); }
.adm-lang.on { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.adm-part { margin: 0 0 18px; padding: 18px 22px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); }
.adm-part-h { margin: 0 0 12px; font: 800 17px/1.25 var(--font-h); color: var(--navy-900); }
.adm-part > .fld { margin-bottom: 12px; }
.ed { display: flex; flex-direction: column; gap: 10px; }
.ed-b { border: 1px solid #C9D3DD; border-radius: 8px; background: var(--surface); }
.ed-b:focus-within { border-color: var(--teal-hover); box-shadow: 0 0 0 3px rgba(7, 181, 189, .2); }
.ed-tools { display: flex; align-items: center; gap: 2px; padding: 3px 6px 3px 12px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #F6F8FA; font-size: 12.5px; }
.ed-type { margin-right: 8px; font-weight: 700; color: var(--muted); }
.ed-sp { flex: 1; }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.ed-btn:hover { border-color: #C9D3DD; background: var(--surface); }
.ed-btn .ico { width: 15px; height: 15px; }
.ed-text { min-height: 44px; margin: 0; padding: 10px 14px; outline: 0; font-size: 15px; line-height: 1.6; color: #26344A; overflow-wrap: break-word; }
ul.ed-text { padding-left: 34px; }
.ed-h { font: 800 18px/1.3 var(--font-h); color: var(--navy-900); }
.ed-text a { color: var(--code); text-decoration: underline; }
.ed-fixed { max-height: 260px; overflow: auto; padding: 10px 14px; background: repeating-linear-gradient(135deg, #FFFFFF 0 10px, #F7F9FB 10px 20px); border-radius: 0 0 8px 8px; }
.ed-fixed img { max-width: 220px; }
.ed-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ed-linkrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 12px 0 0; padding: 12px; border-radius: 8px; background: #F6F8FA; }
.ed-linkrow .fld { flex: 1 1 260px; }
.adm-part .enq-err, .adm-part .adm-notice { margin: 12px 0 0; }
.adm-part .adm-actions { margin-top: 14px; padding-top: 14px; }
.adm-contacts { padding-top: 18px; }
.adm-contacts > .fld { max-width: 520px; margin-bottom: 14px; }
.adm-contacts .enq-err, .adm-contacts .adm-notice { margin: 0 0 14px; }
.adm-crows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.adm-crow { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 8px; }
.adm-crow legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.adm-contacts .adm-part-h { margin: 22px 0 12px; }
.adm-contacts .adm-crows + .adm-crows { margin-top: 12px; }
.adm-crows-legal .adm-crow { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: end; padding-top: 12px; }

@media (max-width: 760px) {
  .listing .cat-text { padding: 12px 14px 8px; margin-bottom: 14px; }
  .adm-tab { padding: 10px 12px 9px; font-size: 14px; }
  .adm-table tr { grid-template-areas: "ph code" "ph name" "ph cat" "ph price" "new vis" "act act"; }
  .adm-table .a-vis { grid-area: vis; padding-top: 10px; }
  .a-vis .a-lab { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .spec-opts, .spec-nums, .adm-crows { grid-template-columns: minmax(0, 1fr); }
  .adm-crows-legal .adm-crow { grid-template-columns: minmax(0, 1fr); }
  .adm-table.adm-cats tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "n vis" "ord act"; }
  .adm-cats .c-name { grid-area: name; padding-left: 0; }
  .adm-cats .c-depth-1 .c-name { padding-left: 14px; }
  .adm-cats .c-depth-2 .c-name { padding-left: 26px; }
  .adm-cats .c-n { grid-area: n; align-self: center; padding-top: 8px; }
  .c-n-l { display: inline; }
  .adm-cats .a-vis { grid-area: vis; justify-self: end; }
  .adm-cats .c-ord { grid-area: ord; padding-top: 10px; }
  .adm-cats .a-act { grid-area: act; justify-content: flex-end; }
  .adm-cats .a-act .btn-sm { flex: none; }
  .adm-part { padding: 14px 14px 16px; }
  .ed-tools { flex-wrap: wrap; }
}

/* ---------------- user test 1 (review/user-test-1.md) ---------------- */
/* F6: categories named like the search word, above the results */
.cat-hits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.cat-hits-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.cat-hit { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid #C9D3DD; border-radius: 999px; background: var(--surface); color: var(--navy-900); font-size: 14px; font-weight: 700; text-decoration: none; }
.cat-hit:hover { border-color: var(--navy-700); }
.sd-cat-row .sd-code { display: flex; align-items: center; color: var(--muted); }
.sd-cat-row .sd-code .ico { width: 18px; height: 18px; }
/* F4: nothing found while filters are on */
/* user test 3, H4: the server's OEM look-up was refused (too many searches from one address) */
.s-busy { margin: 0 0 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; color: var(--ink); font-weight: 500; }
.sd-busy { color: var(--ink); border-top: 1px solid var(--line); }
.sd-busy:first-child { border-top: 0; }
.empty-f p { margin: 0 0 16px; }
.empty-f .btn-navy { display: inline-flex; align-items: center; }
/* F14: a line of the enquiry list that is no longer on the site */
.cart-line.is-gone { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info del"; }
.cart-line.is-gone .cl-code { color: var(--muted); }
.cl-gone { font-size: 13px; font-weight: 600; color: #6E4300; }
/* F1: saved elsewhere meanwhile; F3: leave a changed form; both in the page, no browser dialog */
.adm-ask { margin: 0 0 14px; padding: 14px 16px; border: 2px solid var(--navy-700); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop); }
.adm-ask p { margin: 0 0 12px; font-weight: 600; }
.adm-ask-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-ask-acts .btn-ghost, .adm-ask-acts .btn-navy { height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; text-align: left; }
.adm-leave, .adm-hide-ask { position: fixed; z-index: 95; left: 50%; top: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); margin: 0; }
/* F2: log in again over the form (what was typed stays under it) */
.adm-relogin-wrap { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(11, 26, 38, .45); }
.adm-relogin { width: min(420px, 100%); margin: 0; display: grid; gap: 12px; }
.adm-relogin .fld input { height: 46px; }
.adm-relogin .enq-err { margin: 0; }
/* F9: hidden only because a category above is hidden */
.a-hidden-with { display: inline-block; max-width: 220px; font-size: 12.5px; font-weight: 600; color: #6E4300; line-height: 1.3; }
.adm-hidden-with { margin: 0; font-size: 13px; font-weight: 600; color: #6E4300; }

/* ---------------- user test 2 (review/user-test-2.md) ---------------- */
/* G7: a product without a photo: a neutral sign, no broken picture */
.pimg.pimg-none { visibility: visible; display: grid; place-items: center; width: 100%; height: 100%; background: #E9EEF2; color: #9AA8B5; }
.pimg.pimg-none .ico { width: 34%; max-width: 64px; height: auto; aspect-ratio: 1; }
.a-thumb .pimg.pimg-none { position: absolute; inset: 0; }
.prod-img-none { cursor: default; }
/* G13: phone and e-mail can be tapped, they look as before */
a.sel { color: inherit; text-decoration: none; }
a.sel:hover { text-decoration: underline; text-underline-offset: 2px; }
/* G5: "Peržiūrėti" when the page is not on the site */
.adm-view-off { display: inline-flex; align-items: center; opacity: .45; cursor: not-allowed; }
/* G1: a dot on a language with unsaved changes */
.adm-lang { position: relative; }
.adm-lang-dot { display: none; position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #E09A00; }
.adm-lang.has-changes .adm-lang-dot { display: block; }
.adm-lang-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.adm-lang:not(.has-changes) .adm-lang-note { display: none; }
/* G2 / G3: the category text as blocks; a removed part until the save; previous / original version */
.adm-cdesc { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 10px; }
.adm-cdesc-l { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.adm-cdesc .adm-notice { margin: 10px 0 0; }
.ed-b.ed-removed { border-style: dashed; background: #F6F8FA; }
.ed-b.ed-removed > :not(.ed-undo) { display: none; }
.ed-undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ed-vers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* G6: phone and e-mail for all languages; the address enquiries go to */
.adm-cshared { margin: 0 0 6px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 10px; }
.adm-cshared legend { padding: 0 6px; font-size: 14px; font-weight: 700; }
.adm-mailto { margin: 10px 0 0; }
.adm-clang > .fld { max-width: 520px; margin-bottom: 14px; }

/* ---------------- round 5, 16.2: "Prekių eiliškumas" (a category's product order) ---------------- */
.c-direct { color: var(--muted); font-size: 12.5px; }
.c-own { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #EAF6F7; color: #0C4A50; font-size: 12px; font-weight: 600; white-space: nowrap; }
.adm-ord-cat { margin: 0 0 6px; font-size: 15px; }
.adm-ord-info { margin: 0 0 8px; max-width: 900px; }
.adm-ord-state { display: inline-block; margin: 4px 0 14px; padding: 6px 12px; border-radius: 999px; background: #F2F5F8; color: var(--muted); font-size: 13px; font-weight: 600; }
.adm-ord-state.is-own { background: #EAF6F7; color: #0C4A50; }
.adm-ord-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.adm-ord-find { flex: 1; max-width: 380px; }
.adm-ord-tools .adm-count { margin: 0; }
.adm-ord-note { margin: 0 0 10px; padding: 8px 12px; border: 1px solid #BFE3CB; border-radius: 8px; background: #E9F7EE; color: #1D5B33; font-size: 14px; font-weight: 600; }
.adm-ord-table .o-drag { width: 30px; padding-right: 0; }
.o-handle { display: grid; place-items: center; width: 24px; height: 36px; color: #9AA8B5; cursor: grab; }
.o-handle .ico { width: 18px; height: 18px; }
.o-pos-in { width: 66px; height: 36px; padding: 0 8px; border: 1px solid #C9D3DD; border-radius: 6px; background: var(--surface); font: 600 14px/1 var(--font); text-align: center; }
.o-pos-in:focus { outline: 0; border-color: var(--teal-hover); box-shadow: 0 0 0 3px rgba(7, 181, 189, .2); }
.o-pos-in[aria-invalid] { border-color: #C77700; }
.o-acts { text-align: right; white-space: nowrap; }
.o-acts .btn-ico + .btn-ico { margin-left: 4px; }
.o-mark { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #F2F5F8; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.o-mark.o-new { background: #FFF3DC; color: #6E4300; }
.ord-row.is-moved td { background: #EAF6F7; }
.ord-row.is-drag { opacity: .45; }
.ord-row.drop-before td { box-shadow: inset 0 3px 0 var(--teal); }
.ord-row.drop-after td { box-shadow: inset 0 -3px 0 var(--teal); }
.adm-ord .adm-actions { margin-top: 16px; }
/* user test Sonnet 1, S1: the bar with the state and "Išsaugoti tvarką" stays at the top of the screen while scrolling */
.adm-ord-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--bg, #fff); }
.adm-ord-bar .adm-ord-state { margin: 0; }
.adm-ord-bar .btn-teal { height: 44px; padding: 0 24px; }
.adm-ord-state.is-dirty { background: #FFF3DC; color: #6E4300; }
/* S4: a message under the row that caused it */
.adm-row-msg td { padding-top: 0; border-top: 0; }
.adm-row-msg .adm-notice { margin: 0; }
/* S2: the stored enquiries */
.adm-enq td { vertical-align: top; }
.adm-enq .e-msg { max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.adm-enq .e-at, .adm-enq .e-state { white-space: nowrap; }
.adm-enq tr.is-unsent .e-state { color: #6E4300; font-weight: 600; }
.adm-mail-warn a { color: inherit; font-weight: 700; }
.adm-fallback { display: block; margin-top: 4px; }
@media (max-width: 760px) {
  .adm-ord-tools { flex-direction: column; align-items: stretch; }
  .adm-ord-find { flex: none; max-width: none; }
  .adm-ord-table tr { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "ph code" "ph name" "pos acts"; }
  .adm-ord-table .o-drag { display: none; }
  .adm-ord-table .o-pos { grid-area: pos; padding-top: 10px; }
  .adm-ord-table .o-acts { grid-area: acts; padding-top: 10px; text-align: right; }
  .adm-ord-table .o-acts .btn-ico { width: 40px; height: 40px; }
}

/* ---------------- round 5, 16.3: ticks in the product list, "Perkelti į kategoriją" ---------------- */
.adm-table .a-sel { width: 34px; padding-right: 0; }
.a-sel input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-700); cursor: pointer; vertical-align: middle; }
.adm-selbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #F2F5F8; font-size: 14px; }
.adm-sel-n { font-weight: 700; }
.adm-lnk { padding: 0; border: 0; background: none; color: var(--code); font: 600 14px/1.3 var(--font); text-decoration: underline; cursor: pointer; }
.adm-selbar .adm-mv-open { margin-left: auto; }
.adm-mv-open:disabled { opacity: .45; cursor: default; }
.adm-undo { margin-left: 10px; vertical-align: middle; background: var(--surface); }
.adm-move-wrap { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(11, 26, 38, .45); }
.adm-move { display: flex; flex-direction: column; gap: 10px; width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: 0; }
.adm-mv-h { margin: 0; font: 800 20px/1.2 var(--font-h); }
.adm-move .adm-hint { margin: 0; }
.adm-mv-tree { flex: 1 1 auto; min-height: 120px; overflow: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.adm-mv-c { display: flex; padding: 6px 4px; font-weight: 600; }
.adm-mv-c.d1 { padding-left: 26px; font-weight: 500; }
.adm-mv-c.d2, .adm-mv-c.d3 { padding-left: 48px; font-weight: 500; }
.adm-mv-c.is-hidden span { color: var(--muted); }
.adm-mv-c:has(input:checked) { border-radius: 6px; background: #EAF6F7; }
.adm-mv-sum { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.adm-mv-sum div { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-mv-sum dt { color: var(--muted); }
.adm-mv-sum dd { margin: 0; overflow-wrap: anywhere; }
.adm-mv-q { margin: 0; }
.adm-move .adm-err { margin: 0; }
@media (max-width: 760px) {
  .adm-table tr { position: relative; }
  .adm-table .a-sel { position: absolute; top: 12px; right: 12px; width: auto; }
  .adm-table .a-sel ~ .a-code { padding-right: 34px; }
  .adm-table thead + tbody .a-sel input { width: 22px; height: 22px; }
  .adm-selbar .adm-mv-open { width: 100%; justify-content: center; height: 42px; margin-left: 0; }
}

/* PRODUCTION shell only (PLAN.md 13): served after app.css in the same file. The Artifact never loads it. */

/* the enquiry form's trap field: out of sight and out of the tab order (robots fill it, people never see it) */
.enq-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.enq { position: relative; }
.enq[aria-busy="true"] button[type=submit] { opacity: .6; pointer-events: none; }

/* admin: log-out button in the header, beside "Į pradžią" */
.adm-logout { margin: 0; }
.adm-logout .adm-site { margin-left: 0; background: transparent; cursor: pointer; font-family: inherit; }
.adm-hdr .adm-site + .adm-logout { margin-left: 0; }

/* admin log-in page */
.adm-login-main { display: grid; place-items: start center; padding-top: 48px; }
.adm-login { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 420px; margin: 0 auto; }
.adm-login .h1u { margin-bottom: 6px; }
.adm-login .adm-notice { margin: 0; }
.adm-login .btn-teal { height: 48px; }
.adm-login .adm-hint { margin: 0; }

/* "not found" page */
.page-nf p { margin: 18px 0 0; }
.page-nf .btn-navy { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 760px) {
  .adm-login-main { padding-top: 24px; }
  /* two header buttons on a phone: icons only (house = the site, door = log out); the words stay for screen readers */
  .adm-hdr .adm-site { padding: 8px 10px; }
  .adm-hdr .adm-site span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .adm-hdr .adm-site .ico { width: 19px; height: 19px; }
}
