:root {
  color-scheme: light;
  --bg: #eeede9;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --ink: #1b1b19;
  --ink-2: #55534e;
  --ink-3: #85827b;
  --line: #e0ded8;
  --line-2: #cfccc4;
  --best: #3b7a25;
  --new: #245f8a;
  --ok: #2c7a43;
  --low: #9c5a07;
  --date: #35609b;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 18, .06), 0 4px 16px rgba(20, 20, 18, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------------ hlavička */

.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1480px; margin: 0 auto; height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.brand b { font-size: 20px; letter-spacing: -.02em; }
.brand span { font-size: 12px; color: var(--ink-2); }
.search {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; height: 42px;
}
.search:focus-within { border-color: var(--ink-3); background: #fff; }
.search svg { flex: none; color: var(--ink-3); }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; height: 100%; }
.cart-btn {
  flex: none; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 0; background: var(--ink); color: #fff; font-weight: 600;
}
.cart-btn .n {
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: #fff; color: var(--ink); font-size: 13px; display: grid; place-items: center;
}
.cart-btn .sum { font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.pdf-btn {
  flex: none; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 15px 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.pdf-btn:hover { border-color: var(--ink); }
.pdf-btn svg { flex: none; color: var(--ink-2); }

/* ------------------------------------------------------------------ úvod */

.intro {
  max-width: 1480px; margin: 0 auto; padding: 26px 20px 8px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px;
}
.intro-text { flex: 1 1 520px; min-width: 0; }
.intro-pdf { flex: none; }
.intro-pdf a {
  display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 16px 8px 8px; transition: border-color .15s, box-shadow .15s;
}
.intro-pdf a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.intro-pdf img { width: 48px; height: 65px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); flex: none; }
.intro-pdf svg { flex: none; margin: 0 4px 0 8px; color: var(--ink-2); }
.intro-pdf span { display: flex; flex-direction: column; line-height: 1.25; }
.intro-pdf b { font-size: 14.5px; }
.intro-pdf b::after { content: " ↗"; color: var(--ink-3); font-weight: 500; }
.intro-pdf small { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.intro h1 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.intro p { margin: 0; color: var(--ink-2); max-width: 760px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.facts li.stale { color: var(--low); font-weight: 600; }
.facts li.stale::before { background: var(--low); }

/* ------------------------------------------------------------------ rozvržení */

.layout {
  max-width: 1480px; margin: 0 auto; padding: 14px 20px 60px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start;
}
.filters { position: sticky; top: calc(var(--top-h) + 14px); max-height: calc(100vh - var(--top-h) - 28px); overflow: auto; padding-right: 4px; }
.filters-head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:first-child { padding-top: 4px; }
.fgroup h3 { margin: 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 650; }
.opt { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 14px; user-select: none; }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); flex: none; }
.opt .c { margin-left: auto; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.opt.zero { color: var(--ink-3); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; line-height: 1.2;
}
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.more-btn { border: 0; background: none; padding: 4px 0; color: var(--ink-2); text-decoration: underline; font-size: 13px; }
.pill.zero { color: var(--ink-3); border-color: var(--line); }
.fgroup h3 .u { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.fgroup.on h3 { color: var(--ink); }
.rin { display: flex; align-items: center; gap: 8px; }
.rin label { flex: 1; min-width: 0; }
.rin input {
  width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  padding: 0 10px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.rin input::placeholder { color: var(--ink-3); }
.rin input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rin .dash { flex: none; color: var(--ink-3); font-size: 13px; }
.rs { position: relative; height: 32px; margin: 4px 0 -4px; cursor: pointer; }
.rs-track { position: absolute; left: 11px; right: 11px; top: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.rs-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--ink); }
.rs input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; padding: 0;
  background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 3;
}
.rs input[type=range]:focus-visible { outline: none; }
.rs input[type=range]::-webkit-slider-runnable-track { height: 32px; background: transparent; border: 0; }
.rs input[type=range]::-moz-range-track { height: 32px; background: transparent; border: 0; }
.rs input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; box-sizing: border-box;
  width: 22px; height: 22px; margin-top: 5px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); cursor: grab;
}
.rs input[type=range]::-moz-range-thumb {
  pointer-events: auto; box-sizing: border-box;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); cursor: grab;
}
.rs input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.rs input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(27, 27, 25, .2); }
.rs input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(27, 27, 25, .2); }
.rhint { margin: 8px 0 0; font-size: 12px; line-height: 1.35; color: var(--ink-3); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button span { font-weight: 500; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.filters-btn { display: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.result-count { color: var(--ink-2); font-size: 14px; }
.sort { margin-left: auto; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 7px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #e2e0da; border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.chip::after { content: "×"; font-size: 15px; line-height: 1; color: var(--ink-2); }
.chip.clear { background: transparent; text-decoration: underline; }
.chip.clear::after { content: none; }

/* ------------------------------------------------------------------ dlaždice */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card:active { transform: scale(.995); }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: #fff; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 34px 18px 12px; transition: opacity .25s; }
.card .ph img.cover { object-fit: cover; padding: 0; }
.card .ph img.alt { object-fit: cover; padding: 0; opacity: 0; }
.card:hover .ph img.alt { opacity: 1; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; z-index: 1; flex-wrap: wrap; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: #fff; background: var(--best); border-radius: 4px; padding: 3px 7px; line-height: 1.2; }
.badge.new { background: var(--new); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.card h3 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; line-height: 1.2; }
.card .sub { color: var(--ink-2); font-size: 13px; }
.card .meta { color: var(--ink-3); font-size: 12.5px; }
.card .boxmeta { color: var(--ink-2); font-weight: 600; }
.nw { white-space: nowrap; }
.swatches { display: flex; gap: 4px; align-items: center; margin-top: 2px; min-height: 16px; }
.swatches .dot { width: 13px; height: 13px; }
.swatches small { color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.price.na { font-weight: 600; font-size: 14px; color: var(--ink-2); }

.av { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.av::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.av.ok { color: var(--ok); }
.av.low { color: var(--low); }
.av.date { color: var(--date); }
.av.no { color: var(--ink-3); }

.empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--ink-2); }
.empty button { margin-top: 12px; }
.sentinel { height: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 8px; padding: 11px 18px; font-weight: 650; min-height: 44px;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ patička */

.foot-site { border-top: 1px solid var(--line); background: var(--surface); }
.foot-site .in { max-width: 1480px; margin: 0 auto; padding: 22px 20px 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: 13.5px; }
.foot-site .in > :first-child { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------------ detail modelu */

.overlay { position: fixed; inset: 0; background: rgba(20, 20, 18, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: min(1180px, 100%); position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.gallery { padding: 18px; border-right: 1px solid var(--line); }
.gmain { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gmain img { width: 100%; height: 100%; object-fit: contain; }
.gmain img.cover { object-fit: cover; }
.gmain .ilu { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-size: 12.5px; color: var(--ink-2); }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); font-size: 20px; }
.gnav.prev { left: 8px; }
.gnav.next { right: 8px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 72px; height: 72px; border-radius: 8px; border: 2px solid transparent; padding: 0; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs img.contain { object-fit: contain; padding: 4px; }
.credit { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.info { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.info .badges { position: static; }
.info h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.info .sub { color: var(--ink-2); margin-top: 3px; }
.props { display: flex; flex-wrap: wrap; gap: 6px; }
.prop { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); background: var(--surface-2); }
.prop.link { color: var(--ink); background: var(--surface); border-color: var(--line-2); text-decoration: none; font-weight: 600; }
.prop.link:hover { border-color: var(--ink); }
.about { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: -4px; }
.about p { margin: 0 0 6px; }
.about b { color: var(--ink); font-weight: 650; }
.boxinfo { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 650; margin-bottom: 7px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 10px; padding: 4px 12px 4px 4px; font-size: 13.5px; min-height: 44px;
}
.color img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; }
.color .dot { width: 22px; height: 22px; margin: 0 2px 0 6px; }
.color[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }

.vt { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; padding: 0 8px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vt td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vt tr.sel td { background: var(--surface-2); }
.vt tr { cursor: pointer; }
.vt .size { font-weight: 700; white-space: nowrap; }
.vt .dim { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vt .sku { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.vt .pr { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.vt .avw { margin-top: 3px; font-weight: 400; }
.vt .qn { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; text-align: right; font-weight: 500; }
.vt .qn:empty { display: none; }
.vt .qn.warn { color: var(--date); }
.vt td.q { width: 1%; }
.vt .boxtag {
  display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 4px;
  background: #ece6da; color: #5c4a2e; font-size: 11px; font-weight: 650; white-space: nowrap;
}
.vt .bxp { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.vt .moc { font-size: 11.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; margin-top: 1px; }
.vt .stephint { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 3px; white-space: nowrap; }

.step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.step button { width: 36px; height: 38px; border: 0; background: transparent; font-size: 19px; line-height: 1; color: var(--ink-2); }
.step button:active { background: var(--surface-2); }
.step input { width: 44px; height: 38px; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; font-weight: 600; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.addbar { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0)); padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.addbar .btn { flex: 1; }
.addbar .tot { font-size: 13.5px; color: var(--ink-2); min-width: 120px; text-align: right; }
.note { font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ košík */

.drawer-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 18, .45); display: flex; justify-content: flex-end; }
.drawer { width: min(520px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.dhead { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dhead h2 { margin: 0; font-size: 20px; flex: 1; }
.dhead .x { position: static; box-shadow: none; background: var(--surface-2); }
.dbody { flex: 1; overflow-y: auto; padding: 6px 18px 18px; }
.dfoot { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img, .line .noimg { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.line h3 { margin: 0; font-size: 14.5px; line-height: 1.25; }
.line .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.line .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.line .rm { border: 0; background: none; color: var(--ink-3); text-decoration: underline; font-size: 12.5px; padding: 4px 0; }
.line .lt { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line .lt small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.line.gone { opacity: .6; }
.sums { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sums .big { font-size: 18px; font-weight: 750; }
.sums span:nth-child(even) { text-align: right; }
.ship { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ship.ok span { color: var(--ok); font-weight: 650; }
.ship.ok span::before { content: "✓ "; }
.ship-bar { position: relative; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ship-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.ship-bar b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); }
.ship.low span { color: var(--low); font-weight: 600; }
.ship.low .ship-bar i { background: var(--low); }
.sums .muted { color: var(--ink-3); }
.promo { margin: 14px 0 4px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.promo summary { cursor: pointer; color: var(--ink-2); font-weight: 600; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary::before { content: "+ "; color: var(--ink-3); }
.promo[open] summary::before { content: "− "; }
.promo-form { display: flex; gap: 8px; margin-top: 10px; }
.promo-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; min-height: 42px; background: #fff; text-transform: uppercase; letter-spacing: .03em; }
.promo-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.promo .hint { font-size: 12.5px; margin-top: 6px; color: var(--ink-3); }
.promo .hint.err { color: var(--danger); }
.promo.on { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-style: solid; border-color: #bfd8c4; background: #eef6f0; }
.promo.on strong { display: block; color: var(--ok); }
.promo.on span { color: var(--ink-2); }
.vt .disc { font-size: 12px; color: var(--ok); font-weight: 650; margin-top: 2px; }
.field label .opt-l { font-weight: 400; color: var(--ink-3); }
.sums .ok { color: var(--ok); font-weight: 650; }
.fine { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.dactions { display: flex; gap: 8px; }
.dactions .btn { flex: 1; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 11px; background: #fff; min-height: 44px; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.err input { border-color: var(--danger); }
.field .msg { color: var(--danger); font-size: 12px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 2px; accent-color: var(--ink); }
.done { text-align: center; padding: 40px 10px 10px; }
.done .ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-size: 30px; }
.done h3 { margin: 0 0 6px; font-size: 21px; }
.done p { color: var(--ink-2); margin: 6px 0; }
.alert { background: #fbf0e6; border: 1px solid #efd3b8; color: #6e3d09; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.alert .dactions { margin-top: 10px; }
.alert.tip { background: #eef3f8; border-color: #cfdceb; color: #22405e; margin: 12px 0 2px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.35; }
.field .hint.ok { color: var(--ok); }
.field .hint.warn { color: var(--low); }
.field .hint.err { color: var(--danger); }
.field .flabel { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field .flabel i { color: var(--danger); font-style: normal; }
.shipopts { display: flex; flex-direction: column; gap: 6px; }
.shipopts .flabel { margin-bottom: 0; }
.field .opt { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; min-height: 44px; background: #fff; cursor: pointer; }
.field .opt input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; flex: none; accent-color: var(--ink); }
.field .opt input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt span { flex: 1; min-width: 0; }
.opt small { color: var(--ink-3); font-size: 12.5px; }
.opt em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field .opt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.err .opt { border-color: var(--danger); }
.field .ship.ok { font-size: 14px; }
.linkbtn { border: 0; background: none; color: var(--ink-2); text-decoration: underline; font-size: 13px; padding: 2px 0; align-self: center; }
.implist { list-style: none; margin: 12px 0; padding: 0; border-top: 1px solid var(--line); }
.implist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.implist b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.share .lead { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; }
.share .form { padding-top: 8px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); background: var(--surface-2) !important; }
.linkbox .btn { min-height: 44px; padding: 0 14px; }
.fine.warn { color: var(--low); }
.share .fine { margin-top: 10px; }
.upsell { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface-2); }
.upsell img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.upsell p { margin: 3px 0 8px; font-size: 13px; color: var(--ink-2); }
.upsell .btn { min-height: 38px; padding: 7px 12px; font-size: 13.5px; text-align: left; }

/* ------------------------------------------------------------------ lightbox, toast */

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12, 12, 11, .94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox .x { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.lightbox .gnav { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.lightbox .cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ menší obrazovky */

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; inset: 0 auto 0 0; top: 0; z-index: 70; max-height: none; height: 100%;
    width: min(360px, 88vw); background: var(--surface); padding: 0 18px 90px; overflow-y: auto;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .18);
  }
  .filters.open { transform: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 14px 0 10px; z-index: 1; border-bottom: 1px solid var(--line); }
  .filters-head h2 { margin: 0; font-size: 19px; }
  .filters-apply { position: fixed; bottom: 0; left: 0; width: min(360px, 88vw); padding: 12px 18px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .filters-btn { display: inline-flex; gap: 6px; }
  .pdf-btn { width: 42px; padding: 0; justify-content: center; }
  .pdf-btn span { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(20, 20, 18, .4); z-index: 65; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .gmain { aspect-ratio: 4 / 3; }
}
@media (min-width: 1081px) {
  .filters-apply, .scrim { display: none !important; }
}
@media (max-width: 720px) {
  :root { --top-h: 108px; }
  .top-in { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px 10px; }
  .brand { order: 1; }
  .cart-btn { order: 2; margin-left: auto; padding: 0 12px; }
  .cart-btn .sum { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .pdf-btn { order: 2; margin-left: auto; }
  .pdf-btn:not([hidden]) + .cart-btn { margin-left: 0; }
  .intro { flex-direction: column; align-items: stretch; }
  .intro-pdf a { padding: 6px 12px 6px 6px; gap: 11px; }
  .intro-pdf img { width: 34px; height: 46px; }
  .intro { padding: 18px 16px 4px; }
  .intro p { font-size: 14px; }
  .layout { padding: 10px 16px 50px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .body { padding: 10px 11px 12px; }
  .card h3 { font-size: 15px; }
  .card .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .price { font-size: 15px; }
  .sort { margin-left: 0; }
  .result-count { flex-basis: 100%; order: 5; font-size: 13px; }
  .overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
  .info { padding: 16px 16px 20px; }
  .info h2 { font-size: 24px; }
  .vt thead { display: none; }
  .vt, .vt tbody, .vt tr, .vt td { display: block; width: 100%; }
  .vt tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .vt td { border: 0; padding: 0; }
  .vt tr.sel { background: var(--surface-2); }
  .vt tr.sel td { background: transparent; }
  .vt td.size { grid-column: 1; grid-row: 1; }
  .vt td.pr { grid-column: 2; grid-row: 1 / span 2; }
  .vt td.dim { grid-column: 1; grid-row: 2 / span 2; }
  .vt td.q { grid-column: 2; grid-row: 3; width: auto; align-self: end; justify-self: end; margin-top: 6px; }
  .intro h1 { font-size: 22px; }
  .facts { gap: 4px 12px; font-size: 12.5px; margin-top: 10px; }
  .dactions { flex-direction: column-reverse; }
  .dactions.row { flex-direction: row; }
  .toast { bottom: auto; top: 118px; }
  .form { grid-template-columns: 1fr; }
  .toast { white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }
}
@media (max-width: 480px) {
  .pdf-btn { display: none; }
  .pdf-btn:not([hidden]) + .cart-btn { margin-left: auto; }
}

/* ------------------------------------------------------------------ tisk objednávky */

@media print {
  body.print-order > *:not(.drawer-wrap) { display: none !important; }
  body.print-order .drawer-wrap { position: static; background: none; display: block; }
  body.print-order .drawer { width: 100%; height: auto; box-shadow: none; }
  body.print-order .dhead .x, body.print-order .dactions, body.print-order .step button, body.print-order .rm, body.print-order .dfoot .btn { display: none !important; }
  body.print-order .dbody { overflow: visible; }
  body.print-order .upsell, body.print-order .alert.tip, body.print-order details.promo { display: none !important; }
  body.print-order .step { border: 0; }
}
