/* Rextil – návrh B2B e-shopu */
:root {
  --paper: #f5f3ef;
  --surface: #ffffff;
  --ink: #16181b;
  --ink-2: #3a3e44;
  --muted: #6c7078;
  --line: #e3dfd8;
  --line-2: #d4cfc6;
  --accent: #e0532a;
  --accent-ink: #ffffff;
  --accent-soft: #fde9e1;
  --ok: #1d7f47;
  --ok-soft: #e3f3e9;
  --warn: #a8660f;
  --warn-soft: #fbefdc;
  --bad: #c0352b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 24, 27, .06), 0 6px 24px rgba(22, 24, 27, .07);
  --head: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* demo pruh */
.demo-bar {
  background: var(--ink);
  color: #d9d6d0;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
}
.demo-bar strong { color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 5px; margin-right: 4px; font-weight: 600; }

/* hlavička */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-row { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }

.search { position: relative; flex: 1; display: flex; align-items: center; max-width: 680px; }
.search-i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 136px 0 44px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--ink); background: #fff; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 96px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); display: grid; place-items: center;
}
.search-clear:hover { background: var(--line); color: var(--ink); }
.search-clear .i { width: 17px; height: 17px; }
.search-btn {
  position: absolute; right: 5px; height: 36px; padding: 0 16px;
  border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600;
}
.search-btn:hover { background: #000; }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; z-index: 40;
}
.suggest { max-height: min(72vh, 600px); overflow: auto; padding-bottom: 6px; }
.sg-sec { padding: 12px 16px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14.5px; }
.sg-row:hover, .sg-row.on { background: var(--paper); }
.sg-row .grow { flex: 1; min-width: 0; }
.sg-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.sg-row:hover .sg-ico, .sg-row.on .sg-ico { background: #fff; }
.sg-ico .i { width: 17px; height: 17px; }
.sg-cnt { font-size: 12.5px; color: var(--muted); }
.sg-prod img { width: 46px; height: 46px; object-fit: cover; object-position: center 20%; border-radius: 8px; background: var(--paper); flex: none; }
.sg-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sg-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sg-meta .dot-c { width: 11px; height: 11px; }
.sg-price { font-family: var(--head); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sg-all { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; font-weight: 600; color: var(--accent); }
.sg-all .i { width: 18px; height: 18px; }
.sg-note { padding: 10px 16px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }
.sg-empty { padding: 16px 16px 6px; color: var(--muted); font-size: 14px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; }
.sg-chips .chip.sg-row { padding: 6px 12px; font-size: 13.5px; }
.sg-chips .chip.on { border-color: var(--ink); }
.sg-recent { display: flex; align-items: center; }
.sg-recent .sg-row { flex: 1; }
.sg-x { border: 0; background: none; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; margin-right: 10px; display: grid; place-items: center; }
.sg-x:hover { background: var(--paper); color: var(--ink); }
.sg-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.search-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-note.warn { color: var(--warn); }
.search-note .tag { background: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 10px; font-size: 13px; color: var(--ink); }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

.top-actions { display: flex; gap: 6px; flex: none; margin-left: auto; }
.act {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 11px; background: none; font-weight: 600; font-size: 14px; position: relative;
}
.act:hover { background: var(--paper); }
.act.on { background: var(--accent-soft); color: var(--accent); }
.act.logged .act-label { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-cart { background: var(--ink); color: #fff; }
.act-cart:hover { background: #000; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}

.cats { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 29; }
.cats-row { display: flex; gap: 2px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row a {
  display: inline-flex; align-items: center; gap: 3px;
  white-space: nowrap; padding: 7px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.cats-row a:hover, .cats-row a.open { background: var(--paper); color: var(--ink); }
.chev-d { width: 15px; height: 15px; margin-right: -3px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .18s; }
.cats-row a.open .chev-d { transform: rotate(180deg); opacity: .9; }
.cats-row .nav-sep { flex: none; width: 1px; height: 20px; background: var(--line); margin: 0 6px; }

/* rozbalovací menu kategorií */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(22, 24, 27, .22); animation: mega-in .16s ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 26px; padding-bottom: 30px; }
.mega-in.cols-2 { grid-template-columns: 1.15fr 1fr 2.3fr; }
.mega-col h4 { font-family: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; padding-bottom: 7px; border-bottom: 2px solid var(--accent-soft); }
.mega-col h4:not(:first-child) { margin-top: 20px; }
.mega-col a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background .12s, color .12s; }
.mega-col a:hover, .mega-col a:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
.mega-col .cnt { font-size: 12.5px; color: var(--muted); }
.mega-col a:hover .cnt { color: var(--accent); }
.mega-card { position: relative; display: block; min-height: 230px; border-radius: 14px; overflow: hidden; background: var(--paper); }
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .4s; }
.mega-card:hover img { transform: scale(1.04); }
.mega-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 17, 19, .78) 0%, rgba(16, 17, 19, 0) 58%); }
.mega-card-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 3px; color: #fff; }
.mega-card-body b { font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.mega-card-body span { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: #ffd6c8; }
.mega-card-body .i { width: 15px; height: 15px; }
.cats-row a.on { background: var(--accent-soft); color: var(--accent); }
.cats-row a.hot { color: var(--accent); }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 11px; border: 1.5px solid var(--ink);
  background: #fff; font-weight: 600; font-size: 15px; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c9461f; border-color: #c9461f; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; }
.icon-btn:hover { background: var(--paper); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* úvod */
.hero { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; background: #2b2a29; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 32%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 17, 19, .72) 0%, rgba(16, 17, 19, .38) 42%, rgba(16, 17, 19, 0) 68%); }
/* spodek fotky se plynule rozplyne do světlého pozadí stránky */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 243, 239, 0) 0%, rgba(245, 243, 239, .18) 25%, rgba(245, 243, 239, .5) 50%, rgba(245, 243, 239, .85) 75%, var(--paper) 100%);
}
.hero-in { position: relative; z-index: 2; margin-bottom: 6vh; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 86px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pop span { font-size: 13.5px; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 500;
}
.chip:hover { border-color: var(--ink); }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }

/* přehlídka kategorií */
.cat-show { position: relative; z-index: 3; background: var(--ink); color: #fff; padding: 64px 0 72px; margin: -40px 0 10px; border-radius: 40px 40px 0 0; }
.wrap-wide { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.cs-head { text-align: center; margin-bottom: 36px; }
.cs-kicker { display: inline-flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #a9a59e; }
.cs-kicker::before, .cs-kicker::after { content: ""; width: 44px; height: 1px; background: #4b4e54; }
.cs-head h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.035em; margin-top: 12px; color: #fff; }
.cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cs-card { background: #202327; border: 1px solid #2f3237; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.cs-card:hover { transform: translateY(-4px); border-color: #565a61; }
.cs-img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: #2a2d31; }
.cs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .4s; }
.cs-card:hover .cs-img img { transform: scale(1.05); }
.cs-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cs-body h3 { font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.cs-body p { margin: 0; font-size: 12.5px; line-height: 1.6; text-transform: uppercase; letter-spacing: .02em; color: #b9b5ae; }
.cs-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 16px; border: 1.5px solid #e9e6e0; border-radius: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, color .15s; }
.cs-btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.cs-card:hover .cs-btn { background: #fff; color: var(--ink); }
.cs-count { font-size: 12px; color: #8f8b84; }

.brands { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.brands a { font-family: var(--head); font-weight: 800; font-size: 20px; color: #9b968d; letter-spacing: -.02em; }
.brands a:hover { color: var(--ink); }

/* karty produktů */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: #fbfaf8; position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.badge-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; border-radius: 6px; padding: 3px 8px; line-height: 1.4; }
.b-novinka { background: var(--ink); }
.b-akce { background: var(--accent); }
.b-vyprodej { background: var(--bad); }
.card-tag { z-index: 1; position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.pd-badge { margin-right: 10px; vertical-align: 1px; letter-spacing: .06em; }
.card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-brand { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.dots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dot-c { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); }
.dots .more { font-size: 12px; color: var(--muted); margin-left: 3px; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 16px; font-family: var(--head); }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); font-family: var(--body); }
.price .price-from { display: block; color: var(--accent); font-weight: 600; font-size: 11.5px; }
.price-lock { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.price-lock .i { width: 14px; height: 14px; }
.stock { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); }
.stock.slow { color: var(--warn); }
.stock.none { color: var(--muted); }

/* katalog */
.page-head { padding: 26px 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; }

/* právní stránky */
.legal { max-width: 820px; margin: 10px 0 50px; line-height: 1.6; }
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal a { text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.legal-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table .num { text-align: right; white-space: nowrap; padding-left: 16px; }
.check a { text-decoration: underline; }
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 18px 0 50px; align-items: start; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 156px); overflow: auto; padding: 2px 12px 2px 2px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.filters:hover { scrollbar-color: var(--line-2) transparent; }
.f-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.f-group:first-child { padding-top: 0; }
.f-group h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.f-opt { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14.5px; cursor: pointer; }
.f-opt input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.f-opt .cnt { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.f-opt.dis { opacity: .4; }
.f-cat { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin: 1px 0; border-radius: 10px; font-size: 14.5px; transition: background .15s, color .15s; }
.f-cat:hover { background: #fff; }
.f-cat.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.f-cat .cnt { color: var(--muted); font-size: 12.5px; }
.f-cat.on .cnt { color: var(--accent); }
.f-cat.parent { font-weight: 600; color: var(--ink); }
.f-subs { margin: 2px 0 8px 14px; padding-left: 8px; border-left: 2px solid var(--line); }
.f-sub { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; margin: 1px 0; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.f-sub:hover { background: #fff; color: var(--ink); }
.f-sub.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.f-sub .cnt { color: var(--muted); font-size: 12px; }
.f-sub.on .cnt { color: var(--accent); }
.sub-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color .15s; }
.pill span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.pill:hover { border-color: var(--ink-2); }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.on span { color: #bdb9b2; }
.f-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.f-sw { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 0; font-size: 10.5px; color: var(--muted); }
.f-sw span.c { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); position: relative; }
.f-sw[aria-pressed="true"] span.c { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.f-sw[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.f-sw:disabled { opacity: .3; cursor: default; }
.f-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.f-size { min-width: 44px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; }
.f-size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-size:disabled { opacity: .35; cursor: default; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; cursor: pointer; }
.toggle input { appearance: none; width: 40px; height: 23px; border-radius: 12px; background: var(--line-2); position: relative; margin: 0; cursor: pointer; transition: background .15s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(17px); }
.f-clear { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; }

.res-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.res-count { font-size: 14px; color: var(--muted); }
.res-count b { color: var(--ink); }
.res-bar .grow { flex: 1; }
.sort { height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; padding: 0 10px; font-size: 14px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 500; }
.achip svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.achip.clear { background: none; color: var(--accent); font-weight: 600; }
.filter-toggle { display: none; }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 12px 0 30px; }
.pd-gallery { position: sticky; top: 140px; align-self: start; display: grid; gap: 10px; min-width: 0; }
.pd-media { display: block; width: 100%; padding: 0; font: inherit; color: inherit; cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 1; overflow: hidden; position: relative; }
.pd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.pd-media:hover img { transform: scale(1.02); }
.pd-media:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pd-zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(22, 24, 27, .78); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.pd-zoom-hint .i { width: 16px; height: 16px; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pd-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* lupa na kartě v katalogu */
.card-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .16); display: grid; place-items: center; cursor: zoom-in; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.card-zoom .i { width: 19px; height: 19px; }
.card:hover .card-zoom, .card-zoom:focus-visible { opacity: 1; transform: none; }
.card-zoom:hover { background: var(--accent); color: #fff; }
@media (hover: none) { .card-zoom { opacity: 1; transform: none; width: 34px; height: 34px; } }

/* fotka přes celou obrazovku s přiblížením */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(14, 15, 17, .96); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.lb-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lb-btn, .lb-nav { border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lb-btn { width: 42px; height: 42px; }
.lb-btn:hover, .lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:focus-visible, .lb-nav:focus-visible, .lb-th:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-zoomed [data-lb="zoom"] { background: var(--accent); }
.lb-stage { position: relative; overflow: hidden; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; height: 100%; padding: 8px 72px; }
.lb-img { max-width: none; max-height: none; object-fit: contain; background: #fff; border-radius: 6px; cursor: zoom-in; transform-origin: center; will-change: transform; transition: opacity .22s ease, border-radius .3s; user-select: none; touch-action: none; }
.lb-img.lb-fading { opacity: 0; transition: none; }
.lb-zoomed .lb-img { cursor: zoom-out; border-radius: 0; }
.lb:not([hidden]) { animation: lb-in .22s ease-out; }
.lb:not([hidden]) .lb-stage { animation: lb-stage-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-stage-in { from { opacity: 0; transform: scale(.96); } }
.lb-load { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); }
.lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lb-nav .i { width: 26px; height: 26px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-single .lb-nav, .lb-zoomed .lb-nav { display: none; }
.lb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; justify-content: safe center; scrollbar-width: thin; }
.lb-th { flex: 0 0 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; opacity: .6; }
.lb-th img { width: 100%; height: 100%; object-fit: contain; }
.lb-th[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.lb-th:hover { opacity: 1; }
.lb-help { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); padding: 0 16px 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 700px) {
  .lb-stage { padding: 4px 8px; }
  .lb-nav { width: 42px; height: 42px; margin-top: -21px; background: rgba(0, 0, 0, .45); }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-help { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-img, .pd-media img, .card-zoom { transition: none; } .lb:not([hidden]), .lb:not([hidden]) .lb-stage { animation: none; } }
.pd-brand { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pd h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; font-size: 13.5px; }
.spec b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.price-big { font-family: var(--head); font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.price-big small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.avail { display: grid; gap: 10px; margin-bottom: 18px; }
.avail .a-none { background: var(--paper); color: var(--ink-2); font-size: 13.5px; }
#view { min-height: 100vh; } /* zápatí zůstane pod okrajem, i když se detail produktu teprve načítá */
/* „Načítám…“ až po chvilce, aby při rychlém načtení neproblikl */
.pd-loading { margin: 60px 0; text-align: center; color: var(--muted); animation: lb-in .2s .35s both; }
.feat-note { margin: 8px 0 0; }
.comp { margin-top: 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.comp h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.comp dl { display: grid; grid-template-columns: fit-content(50%) 1fr; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.comp dt { font-weight: 600; }
.comp dd { margin: 0; color: var(--ink-2); }
.avail div { border-radius: 11px; padding: 11px 14px; font-size: 13px; }
.avail b { display: block; font-family: var(--head); font-size: 20px; }
.avail .a3 { background: var(--ok-soft); color: var(--ok); }
.avail .a10 { background: var(--warn-soft); color: var(--warn); }
.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.feat li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.feat li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7f47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.order { scroll-margin-top: 136px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-bottom: 34px; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.order-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.order-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.color-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.color-find { height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; width: 220px; background: var(--paper); }
.color-picked { font-size: 13.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; max-height: 172px; overflow: auto; padding: 4px; }
.sw {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.16); padding: 0; position: relative;
}
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.7)); }
.sw:hover { transform: scale(1.08); }
/* barva ve výprodeji nebo v akci: značka % v rohu */
.sw.sale::before { content: "%"; position: absolute; top: -5px; right: -5px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 10px/16px var(--body); text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.c-n { display: flex; flex-direction: column; min-width: 0; }
.c-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.c-sale { color: var(--accent); font-weight: 700; }
.c-price { color: var(--ink); font-weight: 600; }
.spec-wrap.has-pic { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; align-items: start; }
.spec-pic { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.spec-pic img { margin: 0 auto; max-height: 300px; width: auto; }
.spec-pic figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; }
.matrix th, .matrix td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { background: var(--paper); font-size: 13px; font-weight: 700; position: sticky; top: 0; }
.matrix .c-name { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; }
.size-spec .matrix { min-width: 0; }
.size-spec .matrix td { font-variant-numeric: tabular-nums; }
.size-spec .matrix .c-name { min-width: 90px; }
.matrix thead .c-name { background: var(--paper); z-index: 2; }
.c-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.c-cell .dot-c { width: 20px; height: 20px; }
.c-cell button { margin-left: auto; border: 0; background: none; color: var(--muted); width: 26px; height: 26px; border-radius: 6px; }
.c-cell button:hover { background: var(--paper); color: var(--bad); }
.q { width: 62px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 8px; text-align: center; font-weight: 600; background: #fff; -moz-appearance: textfield; }
.q::-webkit-inner-spin-button, .q::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.q:focus { border-color: var(--ink); outline: none; }
.q.filled { border-color: var(--accent); background: var(--accent-soft); }
.q.over { border-color: var(--bad); background: #fbe4e2; }
.st { display: block; font-size: 11px; line-height: 1.35; margin-top: 4px; white-space: nowrap; }
.st.s3 { color: var(--ok); font-weight: 600; }
.st.s10 { color: var(--muted); }
.st.cp { color: var(--ink); font-weight: 600; }
.matrix thead .m-price th { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.na { color: var(--line-2); font-size: 20px; }
.row-total { font-weight: 700; white-space: nowrap; font-size: 14px; padding-top: 18px !important; }
.matrix-empty { padding: 28px; text-align: center; color: var(--muted); }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.order-sum { font-size: 15px; }
.order-sum b { font-family: var(--head); font-size: 24px; }
.order-sum .warn { color: var(--warn); font-size: 13px; display: block; }
.order-sum .bad { color: var(--bad); font-size: 13px; display: block; }

/* košík */
.scrim { position: fixed; inset: 0; background: rgba(22, 24, 27, .45); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 51;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; font-weight: 800; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 64px; height: 64px; object-fit: contain; background: var(--paper); border-radius: 10px; }
.ci-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ci-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.ci-meta .dot-c { width: 13px; height: 13px; }
.ci-sizes { font-size: 12.5px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.ci-sizes span { background: var(--paper); border-radius: 5px; padding: 1px 6px; }
.ci-right { text-align: right; font-size: 14px; display: flex; flex-direction: column; align-items: end; gap: 6px; }
.ci-right b { font-family: var(--head); }
.ci-right button { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 0; text-decoration: underline; }
.ci-right button:hover { color: var(--bad); }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; }
.sum-row.big { font-size: 17px; font-weight: 700; }
.sum-row.big b { font-family: var(--head); font-size: 22px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty .i { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--line-2); display: block; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(22, 24, 27, .5); }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 20px; padding: 30px; max-width: 430px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-card p { color: var(--ink-2); margin: 0 0 18px; }
.modal-card p.small { margin: 14px 0 0; }
.modal-x { position: absolute; top: 12px; right: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px);
}
.toast button { background: none; border: 0; color: #ffb59c; font-weight: 600; padding: 0; }

/* objednávka */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 16px 0 50px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.panel + .panel { margin-top: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-weight: 400; font-size: 15px; background: #fff; }
.field textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 12px 14px; cursor: pointer; font-size: 14.5px; }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.radio .r-price { margin-left: auto; font-weight: 600; font-size: 14px; }
.radio small { display: block; color: var(--muted); font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 4px; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.check > span { flex: 1; line-height: 1.45; }
.summary-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-item img { width: 46px; height: 46px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.summary-item .grow { flex: 1; min-width: 0; }
.summary-item .muted { font-size: 12.5px; }
.co-side { position: sticky; top: 140px; }
.mail-preview { margin: 26px 0 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mail-head { padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; }
.mail-head span { color: var(--muted); }
.mail-body { padding: 16px 18px; font-size: 14px; }
.mail-body > p { margin: 0 0 12px; }
.rx-items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rx-items th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 8px; }
.rx-items td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rx-items .num { text-align: right; white-space: nowrap; }
.rx-items tfoot td { border-bottom: 0; padding: 4px 8px; }
.rx-items tfoot .total td { font-weight: 700; font-size: 15px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.rx-items .muted { font-size: 12.5px; }
.rx-items .dot-c { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
.foot-note a { color: inherit; text-decoration: underline; }

.done { max-width: 720px; margin: 40px auto 60px; text-align: center; }
.done .ok-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.done .ok-mark .i { width: 36px; height: 36px; stroke-width: 2.6; }
.done h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.done > p { color: var(--ink-2); font-size: 17px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; margin: 28px 0; }
.flow div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14px; }
.flow b { display: block; margin-bottom: 4px; font-size: 15px; }

/* patička */
.foot { background: var(--ink); color: #c9c5be; margin-top: 30px; padding: 46px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { color: #fff; font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot p { font-size: 14px; max-width: 300px; margin: 14px 0 0; }
.logo-foot { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 14px; }
.logo-foot img { width: 92px; height: auto; }
.foot-note { border-top: 1px solid #2d3036; margin-top: 32px; padding-top: 16px; font-size: 12.5px; color: #8a8780; }

/* responzivita */
@media (max-width: 1300px) {
  .cats-row a { padding: 7px 8px; font-size: 13.5px; }
  .chev-d { display: none; }
}
@media (max-width: 1100px) {
  .cats-row { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cs-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 36%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #4b4e54 transparent; }
  .cs-card { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .top-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; padding-right: 44px; }
  .search-clear { right: 6px; }
  .search-btn { display: none; }
  .act-label { display: none; }
  .act { padding: 0 11px; }
  .cats { position: relative; top: 0; }
  .mega { max-height: 72vh; overflow-y: auto; }
  .mega-in, .mega-in.cols-2 { grid-template-columns: 1fr 1fr; gap: 6px 24px; padding-top: 16px; padding-bottom: 20px; }
  .mega-card { grid-column: 1 / -1; min-height: 130px; margin-top: 10px; }
  .pd-gallery { position: relative !important; top: 0; }
  .co-side { position: static; }
  .spec-wrap.has-pic { grid-template-columns: 1fr; }
  .spec-pic img { max-height: 220px; }
  .pd, .checkout { grid-template-columns: 1fr; }
  .hero { height: min(72vh, 600px); min-height: 420px; }
  .hero-img { object-position: 72% 30%; }
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(16, 17, 19, 0) 6%, rgba(16, 17, 19, .78) 24%, rgba(16, 17, 19, .3) 52%, rgba(16, 17, 19, 0) 72%); }
  .hero::before { height: 22%; }
  .hero-in { margin-bottom: 96px; }
  .pd-gallery { max-width: 520px; width: 100%; margin: 0 auto; }
  .catalog { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; height: 38px; padding: 0 14px; font-size: 14px; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; top: 0; background: var(--paper);
    z-index: 55; padding: 20px; transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0,0,0,.15);
  }
  .filters.open { transform: none; }
  .filters .f-close { display: flex; }
  .flow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
.f-close { display: none; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.f-close h3 { font-size: 20px; }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wrap-wide { padding: 0 16px; }
  .cat-show { padding: 44px 0 50px; margin-top: -28px; border-radius: 28px 28px 0 0; }
  .cs-head { margin-bottom: 24px; }
  .cs-kicker::before, .cs-kicker::after { width: 22px; }
  .cs-grid { grid-auto-columns: 74%; gap: 12px; }
  .sub-pills { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .sub-pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .cs-body { padding: 16px; }
  .card-body { padding: 10px 11px 12px; gap: 5px; }
  .card h3 { font-size: 13.5px; }
  .card-foot { flex-direction: column; align-items: start; gap: 4px; }
  .price { font-size: 15px; }
  .dot-c { width: 13px; height: 13px; }
  .section-head h2 { font-size: 23px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .fields { grid-template-columns: 1fr; }
  .order { padding: 18px 14px; border-radius: 16px; }
  .order-foot .btn { width: 100%; }
  .price-box .btn { width: 100%; }
  .avail b { font-size: 17px; }
  .matrix .c-name { min-width: 112px; max-width: 132px; }
  .c-cell { font-size: 12.5px; gap: 6px; line-height: 1.25; }
  .c-cell .dot-c { width: 16px; height: 16px; flex: none; }
  .res-bar .grow { display: none; }
  .res-bar .sort { margin-left: auto; }
  .demo-bar { font-size: 11.5px; }
  .logo img { height: 42px; }
}

/* štítkové filtry (tkanina, gramáž, typ krku…): sbalitelné skupiny s „+“ jako na tshirteurope */
.f-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary h4 { margin: 0; }
.f-more summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
.f-more[open] summary::after { content: "−"; }
.f-more[open] summary { margin-bottom: 8px; }
.f-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; text-align: center; letter-spacing: 0; }
.f-more-in { max-height: 260px; overflow-y: auto; }
.params { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 18px; font-size: 14px; }
.params dt { color: var(--muted); }
.params dd { margin: 0; }
.params a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); }
.params a:hover { color: var(--accent); }

/* stránkování katalogu */
.pager { display: grid; justify-items: center; gap: 14px; margin: 34px 0 10px; }
.pager-info { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pager-info b { color: var(--ink); }
.pager-bar { position: relative; width: min(280px, 100%); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pager-bar span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.btn-more { min-width: 240px; justify-content: center; background: #fff; border: 1.5px solid var(--ink); font-weight: 600; }
.btn-more:hover { background: var(--ink); color: #fff; }
.pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.pg { min-width: 38px; height: 38px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pg:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.pg.on { background: var(--ink); color: #fff; }
.pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-arrow .i { width: 18px; height: 18px; }
.pg.dis { opacity: .3; pointer-events: none; }
.pg-gap { color: var(--muted); padding: 0 2px; }
.pager-prev { margin: 0 0 12px; font-size: 14px; }
.pager-prev a { color: var(--ink-2); font-weight: 600; }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* kontakt */
.contact-lede { color: var(--ink-2); font-size: 16px; max-width: 62ch; margin: 8px 0 0; }
.contact { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; padding: 14px 0 40px; align-items: start; }
.contact .panel + .panel { margin-top: 0; }
.contact address { font-style: normal; font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.contact-main address { font-size: 20px; font-weight: 600; font-family: var(--head); letter-spacing: -.01em; }
.hours { display: grid; gap: 10px; margin-bottom: 18px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.open-state { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-state.is-open { background: var(--ok-soft); color: var(--ok); }
.open-state.is-closed { background: var(--warn-soft); color: var(--warn); }
.contact-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 16px; align-items: baseline; }
.contact-list span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* přihlášení a registrace */
.auth { display: grid; gap: 12px; }
.auth h2 { margin-bottom: 0; }
.auth > p { margin: 0 0 4px; }
.modal-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.auth-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.auth-switch { text-align: center; font-size: 14px; color: var(--ink-2); margin: 4px 0 0 !important; }
.auth-demo { font-size: 12.5px; color: var(--muted) !important; text-align: center; margin: 0 !important; }
.auth-err { margin: 0 !important; padding: 9px 12px; border-radius: 10px; background: #fdecea; color: var(--bad) !important; font-size: 14px; }
.auth-ok { margin: 0 !important; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok) !important; font-size: 14px; }
.ico-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ico-row input { min-width: 0; width: 100%; }
.ico-row .btn { height: 44px; white-space: nowrap; padding-inline: 16px; }
.ares-card { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--ok); border-radius: 12px; background: var(--ok-soft); font-size: 14px; }
.ares-card b { font-size: 16px; }
.ares-src { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.reg-more { display: grid; gap: 12px; }
