:root {
  --navy: #14203F;
  --navy-2: #1B2A4F;
  --red: #D2202B;
  --red-dark: #A3141C;
  --red-light: #FF6B70;
  --blue: #2B4B8C;
  --bg: #EEF1F5;
  --bg-2: #F4F6F9;
  --bg-3: #F7F9FB;
  --line: #E2E6EC;
  --text: #14203F;
  --text-2: #3A4552;
  --muted: #6B7686;
  --muted-2: #8C97A6;
  --green: #2E9E5B;
  --radius: 8px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-c: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* skrytí přes atribut hidden má přednost i před display u tříd (.field apod.) */
h1, h2, h3, h4 { font-family: var(--font-c); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 40px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
p { margin: 0 0 12px; }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.green { color: var(--green); }
.hide-mobile { }
.show-mobile { display: none !important; }
.js .no-js-only { display: none; }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; padding: 11px 20px; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0e1730; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { border-color: #37414F; color: #E7EBF1; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-more { font-weight: 600; color: var(--blue); }
.badge { display: inline-block; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 3px; }
.badge-blue { background: #E9EEF7; color: var(--blue); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 3px; letter-spacing: .03em; }
.pill-sale { background: #FDEAEB; color: var(--red-dark); }
.pill-blue { background: #E9EEF7; color: var(--blue); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-green { background: #3FBF6A; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.box-title { font-family: var(--font-c); font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.flash-success { background: #E9F7EE; color: #1f7a44; border: 1px solid #c9ecd6; }
.flash-error { background: #FDEAEB; color: var(--red-dark); border: 1px solid #f5c6c9; }
.flash-info { background: #EAF1FB; color: #1d4f91; border: 1px solid #c9dbf3; }
.note { background: var(--bg-2); border-radius: 6px; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 12px; }
.note.warn { background: #FFF4E5; color: #7A4B00; }
.note.pickup-pay-note { margin: 0 0 12px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* Topbar */
.topbar { background: var(--navy); color: #9AA6B6; font-size: 13px; }
.topbar-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a { color: #9AA6B6; }
.topbar a:hover, .topbar .topbar-phone { color: #E7EBF1; }
.dot-item { display: inline-flex; align-items: center; }

/* Hlavička */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-main { height: 82px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; }
.logo img { height: 42px; width: auto; max-width: none; object-fit: contain; }
.logo-tagline { font-size: 9px; letter-spacing: .14em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.search { flex: 1; display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; height: 46px; padding: 0 6px 0 14px; max-width: 560px; position: relative; }
.search:focus-within { border-color: var(--navy); }
.search-icon { color: var(--muted-2); font-size: 17px; margin-right: 8px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; min-width: 0; }
.search button[type="submit"] { height: 34px; padding: 0 18px; background: var(--navy); color: #fff; border: 0; border-radius: 4px; font-weight: 600; font-size: 14px; }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 36px rgba(20,32,63,.14); z-index: 50; overflow: hidden; max-height: min(70vh, 420px); overflow-y: auto; }
.search-suggest[hidden] { display: none !important; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--text); border-bottom: 1px solid var(--bg); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.active { background: var(--bg-2); color: var(--text); }
.suggest-thumb { width: 44px; height: 44px; flex-shrink: 0; background: var(--bg-3); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.suggest-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.suggest-body { flex: 1; min-width: 0; }
.suggest-name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.suggest-price { font-family: var(--font-c); font-weight: 700; font-size: 16px; white-space: nowrap; color: var(--navy); }
.suggest-empty, .suggest-more { padding: 14px 16px; font-size: 14px; color: var(--muted); }
.suggest-more { display: block; font-weight: 600; color: var(--blue); border-top: 1px solid var(--bg); }
.suggest-more:hover { background: var(--bg-2); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 6px; color: var(--text); }
.header-contact strong { font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 18px; color: var(--text-2); display: none; align-items: center; justify-content: center; }
.header-account { height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; color: var(--text); background: #fff; }
.header-account:hover { border-color: var(--navy); color: var(--text); }
.header-account-icon { font-size: 18px; }
.header-account-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-account-text strong { font-size: 13.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.auth-form h1 { font-size: 32px; margin-bottom: 8px; }
.auth-form .box-title { margin-top: 18px; }
.auth-form-narrow { max-width: 480px; }
.auth-aside h2 { font-size: 24px; margin-bottom: 8px; }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.account-main h1 { font-size: 34px; margin-bottom: 16px; }
.account-main .box { margin-bottom: 16px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-card { text-align: center; margin-bottom: 16px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 10px; }
.account-name { font-weight: 700; font-size: 17px; }
.account-discount { margin-top: 10px; }
.account-nav { padding: 8px; display: flex; flex-direction: column; }
.account-nav a, .account-nav button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 6px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; font-size: 15px; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg-2); color: var(--navy); }
.account-nav a.active { background: var(--navy); color: #fff; }
.account-nav form { border-top: 1px solid var(--bg); margin-top: 6px; padding-top: 6px; }
.account-nav button { color: var(--red); }
.cart-btn { height: 44px; display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border-radius: 6px; padding: 0 16px; transition: transform .2s; }
.cart-btn:hover { color: #fff; background: var(--red-dark); }
.cart-btn.bump { transform: scale(1.06); }
.cart-icon { font-size: 16px; }
.cart-text { display: flex; flex-direction: column; line-height: 1.15; }
.cart-count { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); }
.cart-total { font-size: 14px; font-weight: 700; }
.nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: stretch; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; height: 50px; padding: 0 18px; font-size: 14.5px; font-weight: 600; color: var(--text-2); border-bottom: 3px solid transparent; letter-spacing: .01em; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--navy); border-bottom-color: var(--red); }
.nav-dropdown { display: none; position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 12px 30px rgba(20,32,63,.12); padding: 18px 22px; min-width: 280px; z-index: 40; border-radius: 0 0 8px 8px; }
.nav-item:hover .nav-dropdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; width: max-content; max-width: min(900px, calc(100vw - 32px)); }
.nav-dd-title { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.nav-dd-group ul { list-style: none; margin: 0; padding: 0; }
.nav-dd-group li a { display: block; padding: 3px 0; color: var(--text-2); font-size: 14px; }
.nav-dd-group li a:hover { color: var(--red); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.nav-right a { font-weight: 600; color: var(--text-2); }

/* Hero */
/* fotka kabelů pod banerem – ztmavená, aby text a přehled sortimentu zůstaly čitelné */
.hero { background: linear-gradient(90deg, rgba(20,32,63,.95) 0%, rgba(20,32,63,.86) 45%, rgba(20,32,63,.72) 100%), url('/img/hero-rozvadec.jpg') center / cover no-repeat, var(--navy); color: #fff; overflow: hidden; }
.hero-inner { padding: 60px 32px 66px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; background: rgba(210,32,43,.22); color: #FF7B7F; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 3px; letter-spacing: .04em; }
.hero-title { font-family: var(--font-c); font-size: 62px; line-height: 1.02; margin: 22px 0 18px; letter-spacing: -0.01em; }
.hero-text { font-size: 18px; line-height: 1.55; color: #A9B4C2; margin: 0 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat-n { font-family: var(--font-c); font-size: 32px; font-weight: 700; color: var(--red-light); line-height: 1; }
.stat-l { font-size: 13.5px; color: #8E9AAA; margin-top: 4px; }
.hero-visual img { border-radius: 8px; width: 100%; height: 430px; object-fit: cover; }
.hero-panel { background: var(--navy-2); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; overflow: hidden; }
.hero-panel-title { padding: 18px 24px 12px; font-size: 12px; letter-spacing: .18em; color: #8E9AAA; font-weight: 700; }
.hero-panel-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.07); color: #E7EBF1; font-weight: 600; }
.hero-panel-row strong { color: var(--red-light); font-family: var(--font-c); font-size: 17px; }
.hero-panel-row:hover { background: rgba(255,255,255,.04); color: #fff; }
.hero-panel-foot { display: flex; justify-content: space-between; align-items: center; background: var(--red); color: #fff; padding: 16px 24px; font-size: 12px; letter-spacing: .16em; font-weight: 700; }
.hero-panel-foot strong { font-family: var(--font-c); font-size: 20px; letter-spacing: 0; }

/* USP */
.usp-strip { background: #fff; border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { padding: 24px 24px 24px 0; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); margin-right: 24px; }
.usp:last-child { border-right: 0; margin-right: 0; }
.usp-icon { width: 38px; height: 38px; flex-shrink: 0; background: #FDEAEB; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.usp-title { font-weight: 700; font-size: 15.5px; }
.usp-text { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Sekce */
.section { padding-top: 52px; }
.section-last { padding-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--blue); }
.eyebrow.muted { color: var(--muted-2); margin-bottom: 14px; }
.section-head h2 { font-size: 36px; margin-top: 4px; }
/* hlavní kategorie: na desktopu všechny v jedné řadě (4–5 karet), obrázek + název + počet, pod tím podkategorie */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: border-color .15s; }
.cat-card:hover { border-color: var(--red); }
.cat-card-head { display: flex; align-items: center; gap: 14px; color: var(--text); }
.cat-card-head:hover { color: var(--text); }
.cat-card-head:hover .cat-card-title { color: var(--red); }
.cat-card-media { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cat-card-body { display: flex; flex-direction: column; min-width: 0; }
.cat-card-title { font-family: var(--font-c); font-size: 19px; font-weight: 700; line-height: 1.15; transition: color .15s; }
.cat-card-count { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cat-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg-2); border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.cat-chip:hover { background: var(--navy); color: #fff; }

/* Produktové karty */
.product-grid { display: grid; gap: 16px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.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; }
.card:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(20,32,63,.06); }
.card-media { height: 190px; background: var(--bg-3); position: relative; border-bottom: 1px solid var(--bg); display: flex; align-items: center; justify-content: center; }
.card-media img { max-height: 100%; max-width: 100%; width: auto; height: 100%; object-fit: contain; padding: 14px; }
.no-image { color: var(--muted-2); font-size: 13px; }
.tag { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 3px; letter-spacing: .04em; }
.tag-sale { background: #FFE9E6; color: #C33A22; }
.tag-new { background: #E9EEF7; color: var(--blue); }
.tag-top { background: #FDEAEB; color: var(--red-dark); }
.card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 12px; color: var(--muted-2); font-weight: 600; letter-spacing: .04em; }
.card-title { font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 6px; min-height: 42px; letter-spacing: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--red); }
.stock { display: flex; align-items: center; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.card-bottom { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-old { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.price { font-family: var(--font-c); font-size: 26px; font-weight: 700; line-height: 1.05; }
.price-quote { font-size: 20px; color: var(--blue); }
.price-sub { font-size: 11.5px; color: var(--muted); }
.btn-cart { width: 42px; height: 42px; background: var(--red); border: 0; border-radius: 5px; color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-cart:hover { background: var(--red-dark); }
.btn-cart:disabled { background: #B4BDC9; cursor: not-allowed; }

/* CTA + značky */
/* fotka skladu (kabely, rozvaděče) pod banerem pro firmy – ztmavená, aby text a výhody zůstaly čitelné */
.cta-banner { background: linear-gradient(90deg, rgba(20,32,63,.92) 0%, rgba(20,32,63,.72) 50%, rgba(20,32,63,.45) 100%), url('/img/firmy-sklad.jpg') center / cover no-repeat, var(--navy); border-radius: 10px; padding: 40px 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; color: #fff; }
.cta-banner h3 { font-size: 36px; margin-bottom: 10px; }
.cta-banner p { color: #A9B4C2; font-size: 16px; line-height: 1.6; max-width: 560px; margin-bottom: 20px; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; background: rgba(20,32,63,.72); border: 1px solid rgba(255,255,255,.09); border-radius: 6px; padding: 12px 16px; font-size: 15px; }
.perks li::before { content: '✓'; color: var(--red-light); font-weight: 700; }
.brand-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; height: 72px; padding: 0 12px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; font-family: var(--font-c); font-size: 19px; font-weight: 600; letter-spacing: .08em; color: #59657A; }
.brand-tile-long { font-size: 15px; letter-spacing: .04em; }
.brand-tile:hover { border-color: var(--red); color: var(--navy); }

/* Patička */
.footer { background: var(--navy); color: #8E9AAA; margin-top: 64px; }
.footer-grid { padding: 48px 32px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-c); font-weight: 700; font-size: 25px; letter-spacing: .06em; color: #fff; }
.footer p { font-size: 14px; line-height: 1.65; margin: 12px 0 0; max-width: 340px; }
.footer-contact a { color: #E7EBF1; }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid > div > a { display: block; color: #8E9AAA; font-size: 14.5px; padding: 4px 0; }
.footer-grid > div > a:hover { color: var(--red-light); }
/* loga platební brány a karet (podmínka Comgate a karetních společností) – oficiální soubory z balíčku Comgate pro tmavé pozadí */
.footer-pay { padding: 10px 32px; border-top: 1px solid #25325A; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.footer-pay span { margin-right: 6px; }
.footer-pay img { display: block; width: auto; }
.footer-pay .pay-cg { height: 26px; }
.footer-pay .pay-visa { height: 52px; margin: 0 -10px; } /* SVG VISA má kolem značky ochrannou zónu */
.footer-pay .pay-mc { height: 40px; }
.footer-bottom { padding: 18px 32px 34px; border-top: 1px solid #25325A; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }
.footer-bottom a { color: #8E9AAA; }
.footer-bottom a:hover { color: #fff; }

/* Katalog */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span { color: var(--navy); font-weight: 600; }
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; }
.sidebar .box { margin-bottom: 16px; }
.subcat-list { list-style: none; margin: 0; padding: 0; }
.subcat-list li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--bg); font-size: 14px; }
.subcat-list li:first-child { border-top: 0; }
.subcat-list a { color: var(--text-2); font-weight: 500; }
.subcat-list a:hover { color: var(--red); }
.filter-group { border-top: 1px solid var(--bg); padding: 12px 0; }
.filter-title { font-size: 13.5px; font-weight: 700; letter-spacing: .03em; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); margin: 0; }
.check .count { margin-left: auto; font-size: 12.5px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.catalog-head h1 { font-size: 36px; }
.sort-form { display: flex; align-items: center; gap: 14px; }
.sort-form label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sort-form select { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.cat-desc { color: var(--muted); max-width: 800px; }
.chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.chip:hover { border-color: var(--navy); }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-on .muted { color: #B9C2D0; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.page { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--text-2); border: 1px solid var(--line); border-radius: 5px; font-weight: 600; font-size: 14.5px; padding: 0 8px; }
.page.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.page.disabled { opacity: .4; pointer-events: none; }
.page.ellipsis { border: 0; background: transparent; }
.catalog-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.catalog-root-head { display: flex; gap: 16px; align-items: center; color: var(--text); margin-bottom: 8px; }
.catalog-root-media { width: 72px; height: 72px; background: var(--bg-2); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.catalog-root-media img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.catalog-root-title { font-family: var(--font-c); font-size: 24px; font-weight: 700; }
.catalog-children { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.catalog-children > li { break-inside: avoid; padding: 4px 0; font-weight: 600; }
.catalog-children ul { list-style: none; margin: 2px 0 6px; padding-left: 14px; font-weight: 400; }
.catalog-children ul li { padding: 2px 0; font-size: 14px; }
.catalog-children a { color: var(--text-2); }
.catalog-children a:hover { color: var(--red); }

/* Detail produktu */
/* popis pod fotkami vlevo – vedle dlouhých parametrů nezůstane pod galerií prázdné místo */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery head" "gallery info" "desc info"; grid-template-rows: auto auto 1fr; column-gap: 32px; align-items: start; }
.product-layout > .gallery { grid-area: gallery; }
.product-layout > .product-head { grid-area: head; }
.product-layout > .product-info { grid-area: info; }
.product-layout > .product-desc { grid-area: desc; }
.gallery { padding: 16px; }
.gallery-main { height: 420px; background: var(--bg-3); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 20px; height: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumb { height: 80px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; padding: 4px; display: flex; align-items: center; justify-content: center; }
.thumb img { max-height: 100%; object-fit: contain; }
.thumb.active { border-color: var(--red); }
.tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-head h1 { font-size: 40px; margin-bottom: 8px; }
.product-codes { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.product-codes strong { color: var(--navy); }
.buy-box { margin-bottom: 16px; }
.price-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.price-big { font-family: var(--font-c); font-size: 44px; font-weight: 700; line-height: 1; }
.price-big.price-quote { font-size: 30px; }
.price-row .price-old { font-size: 15px; padding-bottom: 6px; }
.pack-price { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.pack-price strong { color: var(--navy); }
.unit-price { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.recycling-fee { margin-top: 6px; color: var(--text-2); }
.recycling-fee strong { color: var(--navy); }
.price-row .pill { margin-bottom: 8px; }
.buy-form { display: flex; gap: 12px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.pack-choice { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pack-label { font-weight: 700; font-size: 14.5px; margin-right: 2px; }
.pack-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.pack-btn strong { font-size: 15px; }
.pack-btn span { font-size: 13.5px; color: var(--text-2); }
.pack-btn:hover { border-color: var(--blue); }
.pack-btn.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F2F6FC; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; height: 52px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; color: var(--text-2); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 60px; height: 100%; border: 0; text-align: center; font-size: 17px; font-weight: 700; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-unit { padding-right: 8px; font-weight: 600; color: var(--muted); font-size: 14px; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; font-size: 16px; }
.qty-sm input { width: 44px; font-size: 15px; }
.btn-buy { flex: 1; min-width: 200px; }
/* omezení odběru (návin, celé balení, jen osobní odběr / paleta) – červeně a tučně, aby to zákazník nepřehlédl */
.order-alert { margin: 14px 0 2px; padding: 10px 14px; border-left: 4px solid var(--red); border-radius: 6px; background: #FDECEC; color: var(--red); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.order-alert p { margin: 0; }
.order-alert p + p { margin-top: 6px; }
.parcel-warn { flex-basis: 100%; padding: 8px 12px; border-radius: 6px; background: #FDECEC; color: var(--red); font-weight: 700; font-size: 14px; line-height: 1.4; }
.card-alert { margin: 4px 0 2px; color: var(--red); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.params td.param-alert { color: var(--red); font-weight: 700; }
.cart-alert { margin-top: 3px; color: var(--red); font-weight: 700; font-size: 12.5px; }
.cart-alert.parcel-alert { margin-top: 12px; font-size: 13px; line-height: 1.45; }
.buy-notes { display: flex; gap: 18px; margin-top: 16px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.product-short { font-size: 16px; color: var(--text-2); line-height: 1.6; }
.params { padding: 0; overflow: hidden; }
.params .box-title { padding: 14px 22px; border-bottom: 1px solid var(--bg); margin: 0; }
.params-table { width: 100%; }
.params-table th, .params-table td { padding: 10px 22px; border-bottom: 1px solid var(--bg-2); font-size: 14.5px; text-align: left; vertical-align: top; }
.params-table th { color: var(--muted); font-weight: 400; width: 45%; }
.params-table td { font-weight: 600; }
.product-desc { margin-top: 24px; }
.rich { line-height: 1.7; font-size: 15.5px; }
.rich p { margin: 0 0 12px; }
.rich h2, .rich h3 { margin: 24px 0 10px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich table { width: 100%; }
.rich table td, .rich table th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.h-related { font-size: 30px; margin-bottom: 16px; }

/* Košík */
.page-cart h1, .page-checkout h1 { font-size: 40px; margin: 26px 0 6px; }
.cart-sub { margin-bottom: 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-box { padding: 0; overflow: hidden; }
.cart-table { width: 100%; }
.cart-table th { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted-2); text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--bg); }
.cart-table td { padding: 16px 20px; border-bottom: 1px solid var(--bg-2); vertical-align: middle; }
.cart-table .c { text-align: center; }
.cart-table .r { text-align: right; }
.cart-prod { display: flex; gap: 14px; align-items: center; }
.cart-thumb { width: 64px; height: 64px; flex-shrink: 0; background: var(--bg-3); border: 1px solid var(--bg); border-radius: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { max-height: 100%; object-fit: contain; padding: 4px; }
.cart-name { color: var(--text); font-weight: 600; line-height: 1.3; display: block; }
.cart-line { font-family: var(--font-c); font-size: 21px; font-weight: 700; }
.remove { border: 0; background: transparent; color: #B4BDC9; font-size: 16px; }
.remove:hover { color: var(--red); }
.cart-foot { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.summary .sum-row, .sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; color: var(--text-2); gap: 12px; }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.sum-big { font-family: var(--font-c); font-size: 32px; font-weight: 700; line-height: 1; }
.empty-cart { text-align: center; padding: 48px; }
.empty-cart p { font-size: 18px; color: var(--muted); margin-bottom: 18px; }

/* Formuláře + pokladna */
.form .field, .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 14px; }
.field > span { font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; font-size: 15px; background: #fff; outline: none; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field em, .err { color: var(--red); font-style: normal; font-size: 13px; display: block; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row .field:nth-child(3) { grid-column: auto; }
.form-row:has(.field:nth-child(3)) { grid-template-columns: 2fr 1fr 1fr; }
.ares-row:has(.field:nth-child(3)) { grid-template-columns: 1.4fr 1.4fr 1fr; align-items: start; }
.ares-field { display: flex; gap: 8px; align-items: stretch; }
.ares-field input { flex: 1; min-width: 0; }
.ares-field .btn { flex-shrink: 0; padding: 0 12px; white-space: nowrap; height: auto; }
.ares-status { margin-top: 4px; display: block; }
.ares-status.is-error { color: var(--red); }
.ares-status.is-ok { color: var(--green); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; margin-top: 18px; }
.checkout-main .box { margin-bottom: 16px; }
.ship-fields { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; cursor: pointer; }
.option:hover { border-color: var(--navy); }
.option:has(input:checked) { border-color: var(--red); background: #FFF7F7; }
.option.disabled { opacity: .45; cursor: not-allowed; }
.option input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.option-body { flex: 1; display: flex; flex-direction: column; }
.option-name { font-weight: 700; }
.option-note { font-size: 13px; color: var(--muted); }
.option-unavailable { color: #A3141C; }
/* DPD Pickup – vybrané výdejní místo a mapa DPD v okně */
.dpd-pickup-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.dpd-pickup-row strong { flex: 1 1 220px; font-weight: 600; }
.dpd-pickup.has-error .dpd-pickup-row strong { color: #A3141C; }
.dpd-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dpd-modal[hidden] { display: none; }
.dpd-modal-box { position: relative; width: min(1100px, 100%); height: min(760px, 100%); background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dpd-modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.dpd-modal-close { position: absolute; top: 8px; left: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); font-size: 22px; line-height: 1; cursor: pointer; }
body.modal-open { overflow: hidden; }
.option-price { font-weight: 700; white-space: nowrap; }
.summary-items { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--bg); }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary-items li span { color: var(--text-2); }
.agree { align-items: flex-start; margin: 4px 0 10px; font-size: 13.5px; line-height: 1.4; }
.agree input { margin-top: 3px; flex-shrink: 0; }
.agree.has-error span { color: var(--red); }
.checkout-side .link-more { display: inline-block; margin-top: 12px; }

/* Statické stránky + kontakt */
.page-static .static-body { padding: 32px 40px; max-width: 900px; margin-bottom: 24px; }
.page-static h1 { font-size: 38px; margin-bottom: 18px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-list { margin: 16px 0 0; display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 15px; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; }
.contact-map { margin-top: 24px; }
.map-embed { margin-top: 12px; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.map-placeholder p { margin: 0; max-width: 560px; }
.map-address { font-size: 16px; }
.thanks { max-width: 760px; margin: 24px auto; padding: 40px; text-align: center; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: #E9F7EE; color: var(--green); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.thanks-icon.pay-wait { background: #FFF4E5; color: #C77A00; }
.thanks-icon.pay-fail { background: #FDEAEB; color: var(--red); }
.thanks h1 { font-size: 32px; margin-bottom: 12px; }
.pay-box { background: var(--bg-2); border-radius: 8px; padding: 16px 20px; text-align: left; margin: 16px 0; }
.pay-box.has-qr { display: flex; gap: 24px; align-items: center; }
.pay-box-data { flex: 1; min-width: 0; }
.pay-box-data p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.pay-qr { flex: 0 0 170px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.3; }
.pay-qr svg { display: block; width: 170px; height: 170px; background: #fff; border-radius: 6px; margin-bottom: 6px; }
@media (max-width: 560px) { .pay-box.has-qr { flex-direction: column; align-items: stretch; } .pay-qr { flex-basis: auto; } .pay-qr svg { margin: 0 auto 6px; } }
.order-table { width: 100%; text-align: left; margin: 16px 0 20px; }
.order-table th, .order-table td { padding: 9px 10px; border-bottom: 1px solid var(--bg-2); font-size: 14.5px; }
.order-table .c { text-align: center; }
.order-table .r { text-align: right; }
.order-table .total td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--line); }

/* Toast + chyba */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; z-index: 120; font-weight: 600; max-width: 360px; }
.toast a { color: var(--red-light); }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--red-dark); }
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; }
.error-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 40px; text-align: center; max-width: 520px; }
.error-logo { height: 40px; margin: 0 auto 20px; }
.error-box h1 { font-size: 32px; margin-bottom: 10px; }
.error-box p { color: var(--muted); }
.preview-box { margin: 16px; }
.preview-form { text-align: left; margin: 24px 0 18px; }
.preview-form .btn { width: 100%; }
/* Odpočet do spuštění na stránce s heslem pro náhled (views/preview.ejs, public/js/odpocet.js) */
.launch { margin: 18px 0 20px; }
.error-box .launch-when { color: var(--text); font-size: 17px; margin: 0; }
.launch-when strong { white-space: nowrap; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.countdown-cell { flex: 1 1 0; min-width: 0; max-width: 96px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 4px 10px; }
.countdown-cell b { display: block; font-family: var(--font-c); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-cell span { display: block; margin-top: 5px; font-size: 12.5px; color: #B4BECC; }
.error-box .launch-wait { margin: 12px 0 0; }
@media (max-width: 480px) {
  .preview-box { padding: 28px 20px; }
  .countdown-cell b { font-size: 34px; }
}

/* Responsivita */
@media (max-width: 1250px) {
  .nav-link { padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .nav-right { display: none; }
  .topbar-left .hide-mobile, .topbar-right .hide-mobile { display: none; }
  .header-main { gap: 16px; }
}
@media (max-width: 1100px) {
  .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 48px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp:nth-child(2) { border-right: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; background: linear-gradient(rgba(20,32,63,.8), rgba(20,32,63,.8)), url('/img/firmy-sklad-sm.jpg') center / cover no-repeat, var(--navy); }
  .header-contact { display: none; }
}
@media (max-width: 900px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 44px; }
  .section-last { padding-bottom: 48px; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .topbar-inner { justify-content: space-between; gap: 10px; }
  .topbar-left, .topbar-right { gap: 10px; min-width: 0; }
  .topbar-left .dot-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .topbar-phone { white-space: nowrap; }
  .header-main { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .logo { order: 1; }
  .logo img { height: 34px; }
  .header-actions { order: 2; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .icon-btn { display: flex; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-inner { flex-direction: column; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { height: auto; padding: 12px 4px; border-bottom: 1px solid var(--bg); }
  .nav-item.has-children > .nav-link::after { content: '+'; margin-left: auto; color: var(--muted); }
  .nav-item.has-children.expanded > .nav-link::after { content: '−'; }
  .nav-dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; }
  .nav-item.expanded .nav-dropdown { display: block; }
  .nav-item:hover .nav-dropdown { display: none; }
  .nav-item.expanded:hover .nav-dropdown { display: block; }
  .product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gallery" "info" "desc"; grid-template-rows: auto; }
  /* minmax(0, 1fr): široký obsah (tabulka objednávek, dlouhý e-mail) nesmí sloupec roztáhnout přes šířku obrazovky */
  .catalog-layout, .cart-layout, .checkout-layout, .contact-layout, .auth-layout, .account-layout, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-main .box { overflow-x: auto; }
  .header-account { padding: 0 12px; }
  .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .catalog-index { grid-template-columns: 1fr; }
  .gallery-main { height: 300px; }
  .product-head h1 { font-size: 30px; }
  .hero { background: linear-gradient(rgba(20,32,63,.9), rgba(20,32,63,.9)), url('/img/hero-rozvadec-sm.jpg') center / cover no-repeat, var(--navy); }
  .hero-inner { padding: 40px 16px 44px; }
  .hero-visual img { height: 260px; }
  .section-head h2 { font-size: 30px; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .form-row, .form-row:has(.field:nth-child(3)), .ares-row:has(.field:nth-child(3)) { grid-template-columns: 1fr; }
  .ares-field { flex-wrap: wrap; }
  .ares-field .btn { width: 100%; height: 42px; }
  .page-static .static-body { padding: 20px; }
  .contact-list { grid-template-columns: 1fr; gap: 2px 0; }
  .contact-list dd { margin-bottom: 10px; }
  .map-embed { height: 300px; }
}
@media (max-width: 560px) {
  .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-media { height: 140px; }
  .card-body { padding: 12px; }
  .price { font-size: 21px; }
  .card-title { font-size: 14px; min-height: 0; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp { border-right: 0; margin-right: 0; padding: 14px 0; border-bottom: 1px solid var(--bg); }
  .cat-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-pay { padding-top: 14px; padding-bottom: 10px; row-gap: 4px; }
  .footer-pay span { flex-basis: 100%; }
  .cart-table td { padding: 12px 10px; }
  .cart-prod { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-lg { padding: 13px 18px; }
  .catalog-head { flex-direction: column; align-items: flex-start; }
  .catalog-children { columns: 1; }
}

/* --- Úpravy 2026-09 (košík, filtry, mobil) --- */
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-box { position: relative; }
.cart-recalc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cart-recalc .btn.attention { border-color: var(--red); color: var(--red); }
.ship-prices { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bg); }
.ship-prices ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; }
.ship-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--text-2); }
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--bg); text-align: left; vertical-align: top; }
.price-table .r { text-align: right; white-space: nowrap; }
.form-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.form-table th, .form-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.form-table th { width: 38%; background: var(--bg-2); font-weight: 600; }
/* tečky k vyplnění („……………“) jsou jedno dlouhé slovo – musí se dát zalomit, jinak tabulka na mobilu přeteče */
.form-table td { overflow-wrap: anywhere; }
.filters-toggle { display: none; margin-bottom: 12px; }
.filter-many .filter-values { max-height: 240px; overflow-y: auto; padding-right: 14px; scrollbar-gutter: stable; }
.check-empty { opacity: .45; }
.search-cats { align-items: center; }
.cart-badge { display: none; }

@media (max-width: 900px) {
  .header { position: static; }
  .header-main { padding: 10px 0; gap: 10px; }
  .logo-tagline { display: none; }
  .logo img { height: 30px; }
  .header-actions { gap: 6px; }
  .header-account, .cart-btn, .icon-btn { height: 40px; }
  .header-account { padding: 0 10px; }
  .cart-btn { padding: 0 12px; gap: 6px; }
  .cart-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .cart-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--red); font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
  .search { height: 42px; }
  .nav-list > li:nth-last-child(-n+2) { order: -1; }
  .product-layout > .gallery { margin-bottom: 12px; }
  .gallery { padding: 10px; }
  .gallery-main { height: 240px; }
  .gallery-thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
  .product-head .tags { margin-bottom: 6px; }
  .product-codes { margin-bottom: 12px; }
  .subcat-box { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .subcat-box .box-title { display: none; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .catalog-main { min-width: 0; }
  .subcat-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .subcat-list li, .subcat-list li:first-child { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 6px 12px; gap: 6px; white-space: nowrap; }
  html.js .filters-toggle { display: block; }
  html.js .sidebar .filters { display: none; }
  html.js .sidebar.filters-open .filters { display: block; }
  .sidebar .box { margin-bottom: 12px; }
}

/* Košík na telefonu: řádek jako karta (produkt + odebrat / množství + cena), aby se nic neořezávalo */
@media (max-width: 560px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prod remove" "qty total"; gap: 12px 10px; padding: 14px; border-bottom: 1px solid var(--bg-2); }
  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table td:nth-child(1) { grid-area: prod; }
  .cart-table td:nth-child(2) { grid-area: qty; text-align: left; }
  .cart-table td:nth-child(3) { display: none; }
  .cart-table td:nth-child(4) { grid-area: total; align-self: center; font-size: 17px; }
  .cart-table td:nth-child(5) { grid-area: remove; align-self: start; }
  .cart-table .qty { display: inline-flex; }
  .cart-table td.cart-prod { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; }
  .cart-thumb { width: 52px; height: 52px; }
  .cart-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .cart-recalc { justify-content: space-between; }
}

@media (max-width: 600px) {
  .order-table th, .order-table td { padding: 8px 6px; font-size: 13.5px; }
  .order-table .hide-sm { display: none; }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: auto; }
  .form-table tr { border: 1px solid var(--line); border-bottom: 0; }
  .form-table tr:last-child { border-bottom: 1px solid var(--line); }
  .form-table th, .form-table td { border: 0; }
}

/* Poradce s nákupem (views/partials/advisor.ejs, public/js/poradce.js) */
.adv-launch { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 30px; padding: 13px 18px 13px 16px; font: 700 16px/1.2 var(--font); cursor: pointer; box-shadow: 0 10px 28px rgba(163,20,28,.35); transition: background .15s, transform .1s; }
.adv-launch:hover { background: var(--red-dark); }
.adv-launch-short { display: none; }
.adv-launch .adv-launch-ai { background: #fff; color: var(--red-dark); vertical-align: 0; }
/* jednou za návštěvu (s upoutávkou) tlačítko krátce „zapulzuje“, ať si ho zákazník všimne */
.adv-launch.adv-attention { animation: adv-pulse 1.6s ease-out 3; }
@keyframes adv-pulse { 0% { box-shadow: 0 10px 28px rgba(163,20,28,.35), 0 0 0 0 rgba(210,32,43,.55); } 70% { box-shadow: 0 10px 28px rgba(163,20,28,.35), 0 0 0 16px rgba(210,32,43,0); } 100% { box-shadow: 0 10px 28px rgba(163,20,28,.35), 0 0 0 0 rgba(210,32,43,0); } }
@media (prefers-reduced-motion: reduce) { .adv-launch.adv-attention { animation: none; } }
.adv-teaser { position: fixed; right: 24px; bottom: 90px; z-index: 89; width: 300px; display: flex; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(20,32,63,.22); }
.adv-teaser[hidden], .adv.is-open .adv-teaser { display: none; }
.adv-teaser::after { content: ''; position: absolute; right: 34px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.adv-teaser-body { flex: 1; text-align: left; background: transparent; border: 0; padding: 13px 4px 13px 15px; font: 14px/1.45 var(--font); color: var(--text-2); cursor: pointer; }
.adv-teaser-body strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.adv-teaser-close { flex-shrink: 0; width: 32px; height: 32px; margin: 6px 6px 0 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.adv-teaser-close:hover { background: var(--bg-2); color: var(--text); }
/* další vstupy do poradce: hlavička, úvodní stránka, detail produktu, prázdné hledání */
.nav-advisor { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f5c6c9; background: #FDEAEB; color: var(--red-dark); border-radius: 18px; padding: 6px 12px; font: 700 13.5px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.nav-advisor:hover { background: #fbd9db; border-color: var(--red); }
.nav-advisor[hidden], .nav-link-advisor[hidden], .buy-advisor[hidden] { display: none; }
/* na užších počítačích se tlačítko poradce a štítek „Doprava zdarma…“ do lišty nevejdou – štítek ustoupí (doprava zdarma je u produktů, v košíku i v pokladně) */
@media (max-width: 1360px) { .nav-right:has(.nav-advisor:not([hidden])) .badge { display: none; } }
.nav-link-advisor { width: 100%; gap: 8px; background: transparent; border-left: 0; border-right: 0; border-top: 0; font-family: var(--font); color: var(--red-dark); cursor: pointer; text-align: left; }
.hero-ask { margin-top: 30px; max-width: 580px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 16px 16px 14px; }
.hero-ask-label { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.hero-ask-row { display: flex; gap: 8px; }
.hero-ask-row input { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 6px; padding: 0 14px; font: 15.5px var(--font); color: var(--text); background: #fff; }
.hero-ask-row input:focus { outline: 3px solid rgba(210,32,43,.45); outline-offset: 0; }
.hero-ask-row .btn { height: 48px; }
.hero-ask-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: #B9C2D0; }
.hero-ask-chips[hidden] { display: none; }
.hero-ask-chips button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 16px; padding: 5px 11px; font: 600 13px/1.2 var(--font); cursor: pointer; }
.hero-ask-chips button:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.buy-advisor { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; background: #FFF6F6; border: 1px solid #f5c6c9; border-radius: 8px; text-align: left; font: 14px/1.45 var(--font); color: var(--text-2); cursor: pointer; }
.buy-advisor svg { flex-shrink: 0; color: var(--red); }
.buy-advisor > span:not(.adv-ai) { flex: 1; }
.buy-advisor strong { color: var(--red-dark); }
.buy-advisor:hover { border-color: var(--red); background: #FDEAEB; }
.empty-advisor { margin-top: 18px; }
.empty-advisor[hidden] { display: none; }
.empty-advisor .btn { white-space: normal; }
.empty-advisor .adv-ai { background: #fff; color: var(--red-dark); }
.adv-launch:active { transform: translateY(1px); }
.adv.is-open .adv-launch { display: none; }
.adv-panel { position: fixed; right: 24px; bottom: 24px; z-index: 95; width: 400px; height: min(640px, calc(100vh - 48px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(20,32,63,.28); display: flex; flex-direction: column; overflow: hidden; }
.adv-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; background: var(--navy); color: #fff; }
.adv-title { flex: 1; min-width: 0; font-size: 16px; line-height: 1.25; }
.adv-ai { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; vertical-align: 2px; }
.adv-sub { font-size: 12.5px; color: #B9C2D0; }
.adv-sub a { color: #fff; }
.adv-icon-btn { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.adv-icon-btn:hover { background: rgba(255,255,255,.12); }
.adv-messages { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg-2); overscroll-behavior: contain; }
.adv-msg { margin-bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; }
.adv-msg-user { align-items: flex-end; }
.adv-bubble { max-width: 92%; background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 9px 12px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.adv-msg-user .adv-bubble { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 12px 12px 4px 12px; }
.adv-msg-error .adv-bubble { background: #FDEAEB; border-color: #f5c6c9; color: var(--red-dark); }
.adv-bubble p { margin: 0 0 6px; }
.adv-bubble p:last-child, .adv-bubble ul:last-child, .adv-bubble ol:last-child { margin-bottom: 0; }
.adv-bubble ul, .adv-bubble ol { margin: 0 0 6px; padding-left: 20px; }
.adv-bubble li { margin: 2px 0; }
.adv-bubble a { font-weight: 600; }
.adv-note { font-size: 12.5px; color: var(--muted); }
.adv-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adv-suggest button { border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 16px; padding: 6px 12px; font: 600 13px/1.2 var(--font); cursor: pointer; }
.adv-suggest button:hover { border-color: var(--blue); }
.adv-cards { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.adv-card { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.adv-card-img { flex-shrink: 0; width: 64px; height: 64px; background: var(--bg-3); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.adv-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.adv-card-body { flex: 1; min-width: 0; }
.adv-card-name { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.3; color: var(--text); }
.adv-card-price { font-size: 14px; margin-top: 2px; }
.adv-card-price .muted { font-size: 12.5px; }
.adv-card-actions { margin-top: 6px; }
.adv-card-btn { padding: 6px 12px; font-size: 13.5px; }
.adv-typing .adv-bubble { display: inline-flex; align-items: center; gap: 4px; }
.adv-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: adv-dot 1s infinite ease-in-out; }
.adv-typing span:nth-child(2) { animation-delay: .15s; }
.adv-typing span:nth-child(3) { animation-delay: .3s; }
.adv-typing em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 6px; }
@keyframes adv-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .adv-typing span { animation: none; } }
.adv-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.adv-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: 15px/1.4 var(--font); color: var(--text); max-height: 120px; }
.adv-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.adv-send { flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.adv-send:hover { background: var(--red-dark); }
.adv-send[disabled] { opacity: .5; cursor: wait; }
.adv-foot { padding: 0 12px 10px; background: #fff; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.adv-foot a { color: var(--muted); text-decoration: underline; }
/* oznámení o vložení do košíku nad tlačítkem a oknem poradce */
html:has(.adv-launch) .toast { bottom: 92px; }
html.adv-open .toast { top: 24px; bottom: auto; }
@media (max-width: 700px) {
  .adv-launch { right: 16px; bottom: 16px; padding: 11px 14px 11px 13px; font-size: 15px; }
  .adv-launch-long { display: none; }
  .adv-launch-short { display: inline; }
  .adv-teaser { right: 16px; bottom: 80px; width: min(300px, calc(100vw - 32px)); }
  /* na telefonu políčko pro dotaz v úvodním banneru nezobrazujeme – poradce je tam tlačítko vpravo dole a položka v menu */
  .hero-ask { display: none; }
  .adv-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .adv-open body { overflow: hidden; }
  .adv-bubble { max-width: 96%; }
  .adv-form textarea { font-size: 16px; } /* menší písmo by v Safari na iPhonu přiblížilo stránku */
}

/* Lišta se souhlasem s cookies (views/partials/cookie-bar.ejs, public/js/souhlas.js) – nad tlačítkem poradce, stránku neblokuje */
.souhlas-lista { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 -10px 30px rgba(20,32,63,.16); }
.souhlas-lista[hidden] { display: none; }
.souhlas-lista-in { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; max-height: 80vh; overflow-y: auto; }
.souhlas-text { flex: 1; min-width: 0; }
.souhlas-nadpis { font-family: var(--font-c); font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 2px; }
.souhlas-text p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.souhlas-volby { margin-top: 10px; }
.souhlas-volby .check { align-items: flex-start; line-height: 1.45; }
.souhlas-volby .check input { margin-top: 2px; flex-shrink: 0; }
.souhlas-tlacitka { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.souhlas-tlacitka [hidden] { display: none; }
.souhlas-stranka { margin-top: 18px; }
.souhlas-stranka .souhlas-tlacitka { justify-content: flex-start; margin-top: 14px; }
.check-optout { align-items: flex-start; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.check-optout input { margin-top: 2px; flex-shrink: 0; }
@media (max-width: 760px) {
  .souhlas-lista-in { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .souhlas-tlacitka { justify-content: stretch; }
  .souhlas-tlacitka .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
}
/* Potvrzení „vloženo do košíku“ musí být vidět i přes lištu cookies (z-index 110). Na telefonu ho ukazujeme nahoře –
   dole je lišta cookies a tlačítko poradce a hlavička s košíkem bývá po posunu stránky mimo obrazovku. */
@media (max-width: 760px) {
  html .toast, html:has(.adv-launch) .toast { top: 12px; bottom: auto; left: 12px; right: 12px; max-width: none; transform: translateY(-12px); }
  html .toast.show, html:has(.adv-launch) .toast.show { transform: none; }
}
/* Rychlý nákup pod názvem zboží (views/product.ejs) – jen na telefonu a tabletu, kde je fotka nad cenou */
.quick-buy { display: none; }
.buy-box { scroll-margin-top: 12px; }
@media (max-width: 900px) {
  .quick-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
  .quick-buy-price { min-width: 0; }
  .quick-buy-price strong { display: block; font-family: var(--font-c); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--navy); }
  .quick-buy-price span { display: block; font-size: 13px; color: var(--muted); }
  .quick-buy .btn { flex-shrink: 0; white-space: nowrap; }
}
/* Cena dopravy v souhrnu košíku: „od 90 Kč“ a pod tím osobní odběr zdarma */
.ship-from { text-align: right; }
.ship-from small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
/* Hledání: oprava překlepu („vago“ → „wago“) pod nadpisem výsledků */
.search-correction { margin-top: 6px; font-size: 14px; color: var(--text-2); }
