/* Victoria Stores – company site + e-shop. Change brand colours here. */
:root {
  --brand: #1b3a5c;        /* main colour (header, buttons) */
  --brand-dark: #12283f;
  --page-bg: #ffffff;
  --alt-bg: #f4f6f8;
  --topbar-bg: #12283f;
  --topbar-text: #cfd8e3;
  --header-bg: #ffffff;
  --header-text: #1b3a5c;
  --nav-bg: #1b3a5c;
  --nav-text: #ffffff;
  --footer-bg: #12283f;
  --footer-text: #c6d1dd;
  --hero-bg: linear-gradient(120deg, #12283f, #1b3a5c 60%, #2c5d8f);
  --hero-text: #ffffff;
  --font-head: var(--font);
  --logo-h: 48px;
  --accent: #e0592a;       /* call-to-action colour */
  --accent-dark: #c1481d;
  --text: #1f2933;
  --muted: #66717d;
  --line: #e1e5ea;
  --bg-alt: var(--alt-bg);
  --ok: #1f7a3f;
  --warn: #a15c00;
  --error: #b42318;
  --radius: 8px;
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs, 16px); line-height: 1.55; color: var(--text); background: var(--page-paint, var(--page-bg)); background-attachment: fixed; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-family: var(--font-head); font-weight: var(--hw, 700); text-transform: var(--htt, none); }
h1 { font-size: calc(clamp(1.7rem, 3vw, 2.3rem) * var(--hs, 1)); }
h2 { font-size: calc(clamp(1.3rem, 2.2vw, 1.6rem) * var(--hs, 1)); }
h3 { font-size: calc(1.1rem * var(--hs, 1)); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--btn-paint, var(--accent)); color: var(--on-accent, #fff); border: 2px solid var(--btn-border, var(--accent)); padding: var(--btn-py, .6em) var(--btn-px, 1.2em); border-radius: var(--btn-radius, var(--radius)); font: inherit; font-weight: var(--btn-fw, 600); text-transform: var(--btn-tt, none); letter-spacing: .01em; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--btn-paint, var(--accent)); border-color: var(--btn-border, var(--accent)); filter: brightness(.9); color: var(--on-accent, #fff); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover, .btn-light:hover { filter: none; }
.btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-lg { padding: calc(var(--btn-py, .6em) * 1.3) calc(var(--btn-px, 1.2em) * 1.3); font-size: 1.05rem; }
.btn-sm { padding: .35em .8em; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }
.link-btn:hover { color: var(--error); }

/* ---------- header ---------- */
.topbar { background: var(--topbar-paint, var(--topbar-bg)); color: var(--topbar-text); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--topbar-text); text-decoration: none; margin-left: 16px; font-weight: 600; }
.topbar .tagline { font-style: italic; }
.site-header { background: var(--header-paint, var(--header-bg)); color: var(--header-text); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.no-sticky .site-header { position: static; }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: var(--header-pad, 14px); padding-bottom: var(--header-pad, 14px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-text); font-weight: 800; font-size: 1.35rem; flex-shrink: 0; font-family: var(--font-head); }
.logo img { height: var(--logo-h); max-height: none; width: auto; max-width: var(--logo-maxw, 320px); object-fit: contain; }
.logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1.4rem; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.logo + .cart-link { margin-left: auto; }
.search input { flex: 1; padding: .55em .8em; border: 1px solid #c5ccd4; border-right: 0; border-radius: var(--btn-radius, var(--radius)) 0 0 var(--btn-radius, var(--radius)); font: inherit; min-width: 0; }
.search button { background: var(--btn-paint, var(--accent)); color: var(--on-accent, #fff); border: 0; padding: 0 1em; border-radius: 0 var(--btn-radius, var(--radius)) var(--btn-radius, var(--radius)) 0; font-weight: var(--btn-fw, 600); text-transform: var(--btn-tt, none); font: inherit; cursor: pointer; }
.cart-link { color: var(--header-text); text-decoration: none; font-weight: 600; white-space: nowrap; padding: .5em .8em; border: 1px solid var(--line); border-radius: var(--radius); }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; background: var(--accent); color: var(--on-accent, #fff); border-radius: 1em; font-size: .8rem; text-align: center; }
.menu-toggle { display: none; background: var(--btn-paint, var(--accent)); color: var(--on-accent, #fff); border: 0; border-radius: var(--radius); padding: .5em .9em; font: inherit; cursor: pointer; }

.mainnav { background: var(--nav-paint, var(--nav-bg)); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: var(--nav-justify, flex-start); }
.mainnav > .wrap > ul > li { position: relative; }
.mainnav a { display: block; color: var(--nav-text); text-decoration: none; padding: var(--nav-py, 13px) 1.1em; font-weight: 600; font-size: var(--nav-fs, 16px); text-transform: var(--nav-tt, none); }
.mainnav li.active > a, .mainnav > .wrap > ul > li > a:hover { background: rgba(127,127,127,.18); color: var(--nav-text); }
.mainnav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 0 0 var(--radius) var(--radius); flex-direction: column; z-index: 60; }
.mainnav .sub a { color: var(--text); font-weight: 500; padding: .6em 1.1em; }
.mainnav .sub a:hover { background: var(--bg-alt); color: var(--brand); }
.mainnav .has-sub:hover .sub, .mainnav .has-sub:focus-within .sub { display: flex; }

/* ---------- flashes ---------- */
.flashes { margin-top: 16px; }
.flash { padding: .8em 1em; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid; }
.flash-success { background: #e8f5ec; border-color: #a6d5b5; color: #14532d; }
.flash-error { background: #fdecea; border-color: #f2b8b5; color: #7a1c14; }
.flash-info { background: #eaf2fb; border-color: #b6cfea; }

/* ---------- homepage ---------- */
.hero { background: var(--hero-bg); background-size: cover; background-position: center; color: var(--hero-text); }
.hero-center .hero-inner { text-align: center; }
.hero-center .hero-inner > * { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-large .hero-inner { padding-top: 140px; padding-bottom: 150px; }
.hero-small .hero-inner { padding-top: 48px; padding-bottom: 52px; }
.hero-inner { padding-top: 80px; padding-bottom: 90px; }
.hero-inner > * { max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; color: inherit; opacity: .88; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: inherit; opacity: .8; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.section { padding: calc(var(--sec-pad, 56px) + 8px) 0; }
.section-sm { padding: 32px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4em; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-products { grid-template-columns: var(--grid-products, repeat(auto-fill, minmax(220px, 1fr))); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--accent); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); font-size: .92rem; }
.cat-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; border-radius: var(--radius); padding: 18px; text-decoration: none; color: #fff; background: var(--brand); position: relative; overflow: hidden; font-weight: 700; font-size: 1.05rem; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cat-tile span { position: relative; }
.cat-tile:hover { background: var(--accent); color: #fff; }
.brands-band { background: var(--bg-alt); }
.brands { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.brand-tile { display: grid; place-items: center; min-width: 200px; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 800; font-size: 1.4rem; color: var(--brand); text-decoration: none; letter-spacing: .02em; }
.brand-tile:hover { border-color: var(--accent); color: var(--accent); }
.cta-band { background: var(--accent); color: #fff; }
.footer-about { white-space: pre-line; }
.social a { display: inline-block; margin: 0 12px 6px 0; font-weight: 600; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { margin: 0; }
.cta-band .btn-light { color: var(--accent); }
.cta-band .btn-light:hover { color: #fff; }
.cta-inline { margin: 40px 0 0; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-inline p { margin: 0 auto 0 0; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--card-border, var(--line)); box-shadow: var(--card-shadow, none); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.product-card .card-img { aspect-ratio: var(--card-ratio, 4/3); }
.card-img img { width: 100%; height: 100%; object-fit: var(--card-fit, contain); }
.project-card .card-img img { object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1rem; margin: 0; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body form, .card-body .btn { margin-top: auto; }
.brand-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.kind { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; background: var(--brand); color: #fff; align-self: flex-start; }
.kind-vizualizace { background: #6b4fa0; }
.price { display: flex; flex-direction: column; }
.price-main { font-weight: 800; font-size: 1.1rem; color: var(--brand); }
.price-main small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.price-sec { font-size: .85rem; color: var(--muted); }
.price-lg .price-main { font-size: 1.7rem; }
.stock { font-size: .85rem; font-weight: 600; }
.stock-ok { color: var(--ok); }
.stock-order { color: var(--warn); }
.stock-out { color: var(--error); }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.sidebar-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0 8px; }
.cat-list { list-style: none; padding: 0; margin: 0 0 24px; }
.cat-list a { display: block; padding: .45em .7em; border-radius: 6px; text-decoration: none; color: var(--text); }
.cat-list a:hover { background: var(--bg-alt); }
.cat-list li.active > a { background: var(--brand); color: var(--on-brand, #fff); }
.sidebar-box { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs a { color: var(--muted); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.lead-sm { color: var(--muted); font-size: 1.05rem; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .4em .8em; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { padding: 32px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }

.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-bottom: 32px; }
.gallery-main { position: relative; background: var(--bg-alt); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; padding: 2px; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { margin: 16px 0; }
.buy-form { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.buy-form input[type=number] { width: 90px; padding: .6em; font: inherit; border: 1px solid #c5ccd4; border-radius: var(--radius); }
.product-description { border-top: 1px solid var(--line); padding-top: 24px; max-width: 860px; }

/* ---------- content pages ---------- */
.page { padding-top: 24px; padding-bottom: 56px; }
.page-head { background: var(--bg-alt); padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.page-head .lead { color: var(--muted); font-size: 1.15rem; margin: 0; }
.narrow-page { max-width: 820px; }
.content { max-width: 820px; }
.content h2 { margin-top: 1.4em; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.content td, .content th { border: 1px solid var(--line); padding: .5em; text-align: left; }
.placeholder { background: #fff6d6; border: 1px dashed #d4a800; padding: 8px 12px; border-radius: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 200; cursor: zoom-out; padding: 20px; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }
.thanks { background: #e8f5ec; border: 1px solid #a6d5b5; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.pay-table th { text-align: left; padding: 4px 16px 4px 0; font-weight: 500; color: var(--muted); }
.status { display: inline-block; padding: 2px 10px; border-radius: 1em; background: var(--bg-alt); font-weight: 600; font-size: .9rem; }
.status-new { background: #eaf2fb; color: #1d4f8a; }
.status-confirmed { background: #fff4e0; color: #8a5300; }
.status-shipped { background: #efe8fb; color: #5a3a96; }
.status-done { background: #e8f5ec; color: #14532d; }
.status-cancelled { background: #fdecea; color: #7a1c14; }

/* ---------- forms ---------- */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 18px; margin: 0 0 20px; }
legend { font-weight: 700; padding: 0 6px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.field { flex: 1 1 220px; margin-bottom: 12px; display: flex; flex-direction: column; }
.field.wide { flex-basis: 100%; }
.field.narrow { flex: 0 1 130px; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], input[type=url], select, textarea {
  font: inherit; padding: .55em .7em; border: 1px solid #c5ccd4; border-radius: 6px; background: #fff; width: 100%; }
.search input, .buy-form input[type=number], .qty-input { width: auto; }
textarea { resize: vertical; }
[aria-invalid=true] { border-color: var(--error); background: #fff8f7; }
.field-error { color: var(--error); font-size: .85rem; margin-top: 3px; display: block; }
.radio, .checkbox { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.radio { display: inline-flex; margin-right: 20px; }
.option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand); background: #f1f5fa; }
.option-name { flex: 1; }
.option-price { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-summary { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-alt); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.summary-lines li, .summary-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-totals { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 16px; }
.summary-totals .grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.terms { font-size: .88rem; margin-bottom: 12px; }

.table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px; }
.cart-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: middle; }
.num { text-align: right; white-space: nowrap; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-alt); border-radius: 6px; }
.qty-input { width: 80px; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.totals { min-width: 280px; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 3px 0; }
.cart-next { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 16px; flex-wrap: wrap; }

.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; align-self: start; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-paint, var(--footer-bg)); color: var(--footer-text); margin-top: 0; font-size: .92rem; }
.site-footer a { color: var(--footer-text); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer strong { color: var(--footer-text); display: block; margin-bottom: 8px; font-size: 1.02rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.copyright { border-top: 1px solid rgba(127,127,127,.3); padding-top: 16px; padding-bottom: 20px; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shop-layout, .product-detail, .checkout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .checkout-summary { position: static; }
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-toggle { display: inline-block; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; }
  .mainnav .sub { position: static; display: flex; box-shadow: none; background: rgba(255,255,255,.06); border-radius: 0; }
  .mainnav .sub a { color: var(--nav-text); opacity: .85; padding-left: 2em; }
  .topbar .tagline { display: none; }
  .site-header { position: static; }
  .logo img { height: auto; max-height: min(calc(var(--logo-h) * .8), 56px); max-width: 200px; }
}
@media (max-width: 600px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td.num::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .cart-table td.cart-product { grid-column: 1 / -1; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .topbar a[href^="mailto"] { display: none; }
  .topbar .wrap { justify-content: center; }
  .header-row { gap: 10px; }
  .logo { font-size: 1.1rem; }
  .logo-mark { width: 34px; height: 34px; font-size: 1.15rem; }
  .cart-link { margin-left: auto; padding: .4em .6em; }
  .cart-link .cart-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print {
  .topbar, .site-header, .site-footer, .btn { display: none !important; }
}

/* ---------- page blocks ---------- */
.preview-bar { background: #fff4d6; border-bottom: 1px solid #e8c766; text-align: center; padding: 6px 12px; font-size: .9rem; font-weight: 600; }
.blk { padding: var(--sec-pad, 56px) 0; background: var(--blk-bg, transparent); }
.blk-sp-none { padding: 0; }
.blk-sp-small { padding: calc(var(--sec-pad, 56px) * .45) 0; }
.blk-sp-large { padding: calc(var(--sec-pad, 56px) * 1.7) 0; }
.blk-bg-alt { --blk-bg: var(--alt-bg); }
.blk-bg-brand { --blk-bg: var(--brand); color: var(--on-brand, #fff); }
.blk-bg-accent { --blk-bg: var(--accent); color: var(--on-accent, #fff); }
.blk-bg-dark { --blk-bg: #1a1d21; color: #f1f1f1; }
.blk-bg-gradient-light { color: #fff; }
.blk-bg-gradient-light a:not(.btn) { color: inherit; }
.blk-bg-gradient-light .muted, .blk-bg-gradient-light .lead-sm { color: inherit; opacity: .85; }
.blk-bg-gradient-light .feature { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.blk-bg-gradient-light .feature p { color: inherit; opacity: .85; }
.blk-bg-brand a:not(.btn), .blk-bg-accent a:not(.btn), .blk-bg-dark a:not(.btn) { color: inherit; }
.blk-bg-brand .muted, .blk-bg-accent .muted, .blk-bg-dark .muted, .blk-bg-brand .lead-sm, .blk-bg-accent .lead-sm, .blk-bg-dark .lead-sm { color: inherit; opacity: .85; }
.blk-bg-brand .btn-light, .blk-bg-accent .btn-light, .blk-bg-dark .btn-light { color: var(--brand); }
.blk-bg-accent .btn-light { color: var(--accent); }
.blk-bg-brand .btn-light:hover, .blk-bg-accent .btn-light:hover, .blk-bg-dark .btn-light:hover { color: #fff; }
.blk-bg-brand .btn:not(.btn-light):not(.btn-ghost), .blk-bg-accent .btn:not(.btn-light):not(.btn-ghost) { background: #fff; border-color: #fff; color: var(--brand); }
.blk-bg-brand .btn-ghost, .blk-bg-accent .btn-ghost, .blk-bg-dark .btn-ghost { color: #fff; border-color: #fff; }
.blk .section-title { margin-bottom: 1.2em; }
.blk-more { margin: 24px 0 0; }
.align-center { text-align: center; }
.align-center.content, .content.w-narrow.align-center { margin-left: auto; margin-right: auto; }
.content.w-narrow { max-width: 820px; }
.content.w-wide { max-width: none; }
.blk-heading h1, .blk-heading h2, .blk-heading h3 { margin-bottom: .3em; }
.blk-heading .lead-sm { max-width: 760px; margin: 0 auto; }
.blk-heading.align-left .lead-sm { margin: 0; }
.blk-heading h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.blk-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.blk-bg-alt .feature, .blk-bg-alt .steps li { background: #fff; }
.blk-bg-none .steps li { background: var(--alt-bg); }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-link { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.feature-link:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.feature-img { height: 56px; width: auto; margin-bottom: 10px; }
.blk-bg-brand .feature, .blk-bg-dark .feature, .blk-bg-accent .feature { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.blk-bg-brand .feature p, .blk-bg-dark .feature p, .blk-bg-accent .feature p { color: inherit; opacity: .85; }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.image-text.img-right .it-img { order: 2; }
.it-img img { width: 100%; border-radius: var(--radius); }
.it-body h2 { margin-top: 0; }
.blk-figure { margin: 0 auto; }
.blk-figure.w-narrow { max-width: 720px; }
.blk-figure img { width: 100%; border-radius: var(--radius); }
.blk-figure figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.blk-image .blk-figure.w-full { margin: 0 calc(50% - 50vw); }
.blk-image .blk-figure.w-full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo { position: relative; display: block; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .85rem; padding: 18px 10px 8px; border-radius: 0 0 6px 6px; }
.logos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.logo-tile { display: grid; place-items: center; min-width: 180px; min-height: 96px; padding: 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.3rem; }
.logo-tile img { max-height: 60px; max-width: 160px; width: auto; object-fit: contain; }
a.logo-tile:hover { border-color: var(--accent); color: var(--accent); }
.logos-gray .logo-tile img { filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos-gray .logo-tile:hover img { filter: none; opacity: 1; }
.logos-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 35s linear infinite; }
.marquee-track .marquee-copy { display: flex; gap: 20px; }
.logos-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee-copy { display: none !important; } }
.blk-cta .cta-inner { padding: 0; }
.blk-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.blk-buttons.align-center { justify-content: center; }
.blk-columns .content h3:first-child, .blk-columns .content h2:first-child { margin-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 auto; }
.video.w-narrow { max-width: 860px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.spacer-small { height: 8px; }
.spacer-medium { height: 32px; }
.spacer-large { height: 80px; }
.spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0; position: relative; top: 50%; }
.spacer { position: relative; }

/* slider */
.slider { position: relative; overflow: hidden; color: var(--hero-text); background: var(--hero-bg); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; display: flex; align-items: center; min-height: 420px; }
.slider-small .slide { min-height: 280px; }
.slider-large .slide { min-height: 600px; }
.slide.active { opacity: 1; visibility: visible; }
.slide .hero-inner { width: 100%; padding-top: 64px; padding-bottom: 80px; }
.slide-title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: .4em; }
.slider.hero-center .hero-inner { text-align: center; }
.slider.hero-center .hero-inner > * { margin-left: auto; margin-right: auto; }
.slider.hero-center .hero-actions { justify-content: center; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: #fff; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button.active { background: #fff; }
@media (max-width: 900px) {
  .image-text { grid-template-columns: 1fr; gap: 24px; }
  .image-text.img-right .it-img { order: 0; }
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid.cols-3, .photo-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .slider-prev, .slider-next { display: none; }
  .blk { padding: 40px 0; }
  .blk-sp-large { padding: 64px 0; }
}
@media (max-width: 600px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .slide { min-height: 340px; }
}

/* graphic dividers between blocks */
.blk, .hero, .slider { position: relative; }
.divider { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; z-index: 1; }
.divider svg { display: block; width: 100%; height: 100%; }
.divider-bottom { bottom: -1px; }
.divider-top { top: -1px; transform: rotate(180deg); }
.divider-bottom.flip { transform: scaleX(-1); }
.divider-top.flip { transform: rotate(180deg) scaleX(-1); }
.dh-small { height: 32px; }
.dh-medium { height: 64px; }
.dh-large { height: 120px; }
.blk.div-top-small { padding-top: calc(var(--blk-pad, var(--sec-pad, 56px)) + 24px); }
.blk.div-top-medium { padding-top: calc(var(--blk-pad, var(--sec-pad, 56px)) + 52px); }
.blk.div-top-large { padding-top: calc(var(--blk-pad, var(--sec-pad, 56px)) + 100px); }
.blk.div-bottom-small { padding-bottom: calc(var(--blk-pad, var(--sec-pad, 56px)) + 24px); }
.blk.div-bottom-medium { padding-bottom: calc(var(--blk-pad, var(--sec-pad, 56px)) + 52px); }
.blk.div-bottom-large { padding-bottom: calc(var(--blk-pad, var(--sec-pad, 56px)) + 100px); }
.blk-sp-none { --blk-pad: 0px; }
.blk-sp-small { --blk-pad: calc(var(--sec-pad, 56px) * .45); }
.blk-sp-large { --blk-pad: calc(var(--sec-pad, 56px) * 1.7); }
.hero.div-bottom-medium .hero-inner, .slider.div-bottom-medium .hero-inner { padding-bottom: 130px; }
.hero.div-bottom-large .hero-inner, .slider.div-bottom-large .hero-inner { padding-bottom: 180px; }
.hero.div-top-medium .hero-inner, .slider.div-top-medium .hero-inner { padding-top: 120px; }
.hero.div-top-large .hero-inner, .slider.div-top-large .hero-inner { padding-top: 170px; }
.slider .slider-dots { z-index: 3; }
.slider.has-div-bottom .slider-dots { bottom: 70px; }
@media (max-width: 600px) { .dh-medium { height: 40px; } .dh-large { height: 70px; } }

/* ---------- mega menu with category pictures ---------- */
.mainnav { position: relative; }
.mainnav > .wrap > ul > li.has-mega { position: static; }
.caret { font-size: .75em; opacity: .8; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nav-bg); color: var(--nav-text); box-shadow: 0 14px 28px rgba(0,0,0,.18); z-index: 60; border-top: 1px solid rgba(127,127,127,.25); }
.mainnav .has-mega:hover > .mega, .mainnav .has-mega:focus-within > .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; padding-top: 28px; padding-bottom: 28px; }
.mega-item { text-align: center; }
.mainnav .mega a.mega-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: none; font-weight: 700; }
.mainnav .mega a.mega-tile:hover { background: rgba(127,127,127,.15); }
.mega-img { width: 120px; height: 100px; display: grid; place-items: center; }
.mega-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.mega-tile:hover .mega-img img { transform: scale(1.06); }
.mega-ph { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,127,.2); font-size: 1.8rem; font-weight: 800; }
.mega-sub { list-style: none; padding: 0; margin: 2px 0 0; display: block !important; }
.mainnav .mega-sub a { padding: 3px 6px; font-weight: 500; opacity: .85; font-size: .92rem; }
.mainnav .mega-sub a:hover { opacity: 1; background: none; text-decoration: underline; }
.mega-nopics .mega-tile { padding: 8px; }
.mega-nopics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; }
.mega-nopics .mega-item { text-align: left; }
.mega-nopics a.mega-tile { align-items: flex-start !important; }

/* header with the logo in the centre */
.header-center .header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-center .header-row .search { grid-column: 1; grid-row: 1; justify-self: start; width: 100%; max-width: 380px; margin: 0; }
.header-center .header-row .logo { grid-column: 2; grid-row: 1; justify-self: center; flex-direction: column; }
.header-center .header-row .cart-link { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.header-center .header-row .menu-toggle { grid-column: 3; grid-row: 2; justify-self: end; }
.header-center .mainnav ul { justify-content: center; }

/* subcategory tiles on a category page */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.subcat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; text-align: center; background: #fff; }
.subcat:hover { border-color: var(--accent); color: var(--accent); }
.subcat img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.cat-list .cat-children { list-style: none; padding-left: 14px; margin: 2px 0 6px; }
.cat-list .cat-children a { font-size: .92rem; padding: .3em .7em; }
.cat-list li.open > a { font-weight: 700; }
.cat-tile .cat-icon { position: relative; height: 56px; width: auto; max-width: 80%; object-fit: contain; margin-bottom: 8px; }

@media (max-width: 900px) {
  .mega { display: block; position: static; box-shadow: none; border: 0; background: rgba(0,0,0,.08); }
  .mega-grid { grid-template-columns: 1fr; padding: 4px 0; gap: 0; }
  .mega-item { text-align: left; }
  .mainnav .mega a.mega-tile { flex-direction: row; gap: 10px; padding: 6px 12px 6px 28px; }
  .mega-img { width: 36px; height: 30px; }
  .mega-ph { width: 28px; height: 28px; font-size: .9rem; }
  .mega-sub { padding-left: 74px; }
  .header-center .header-row { display: flex; }
  .header-center .header-row .logo { flex-direction: row; }
  .header-center .header-row .cart-link { margin-left: auto; }
}
.cat-tile.has-icon { justify-content: center; align-items: center; text-align: center; min-height: 140px; }

/* sale, flags, variants, quantity discounts */
.card-img { position: relative; }
.flags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.flag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; color: #fff; background: var(--brand); }
.flag-sale { background: #d92d20; }
.flag-new { background: #1f7a3f; }
.flag-clearance { background: #8a5300; }
.flag-featured { background: var(--accent); color: var(--on-accent, #fff); }
.price-was { display: block; font-size: .85rem; }
.price-old { text-decoration: line-through; color: var(--muted); }
.price-save { color: #d92d20; font-weight: 800; }
.price-main.is-sale { color: #d92d20; }
.price-note { display: inline-block; margin-top: 2px; font-size: .75rem; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.stock-custom { color: var(--brand); }
.variants { border: 0; padding: 0; margin: 16px 0; }
.variants legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt { position: relative; }
.variant-opt input { position: absolute; opacity: 0; }
.variant-opt span { display: block; padding: .5em 1em; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.variant-opt input:checked + span { border-color: var(--brand); background: var(--alt-bg); }
.variant-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.variant-opt.out span { opacity: .55; text-decoration: line-through; }
.tiers { margin: 14px 0; border-collapse: collapse; font-size: .92rem; }
.tiers th, .tiers td { padding: 4px 14px 4px 0; text-align: left; }
.tiers caption { text-align: left; font-weight: 700; margin-bottom: 4px; white-space: nowrap; }
.wholesale-hint { font-size: .88rem; background: var(--alt-bg); padding: 8px 12px; border-radius: var(--radius); margin: 10px 0; }
.product-meta { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.product-meta span + span::before { content: " · "; }
.account-link { color: var(--header-text); text-decoration: none; font-weight: 600; white-space: nowrap; padding: .5em .4em; }
.logo + .account-link { margin-left: auto; }
.header-center .header-row .account-link { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 120px; }
.account-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account .box .field { margin-bottom: 12px; }
.narrow-box { max-width: 420px; }
.title-row-front { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 700px) { .account-cols { grid-template-columns: 1fr; } .account-link .account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .header-center .header-row .account-link { margin-right: 0; } }

@media (max-width: 900px) { .grid-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 600px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .product-card .card-body { padding: 10px; } }

/* inline header: menu on the same line as the logo */
.header-inline .header-row { gap: 16px; }
.header-inline .inline-nav { background: none; flex: 1; min-width: 0; position: static; }
.header-inline .inline-nav > ul > li > a { color: var(--header-text); }
.header-inline .inline-nav > ul > li.active > a, .header-inline .inline-nav > ul > li > a:hover { background: rgba(127,127,127,.15); color: var(--header-text); border-radius: var(--radius); }
.header-inline .inline-nav .mega { top: 100%; }
.header-inline .site-header { position: sticky; }
.header-inline .header-row { position: relative; }
.header-inline .search { flex: 0 1 240px; margin-left: 0; }

/* second line: category bar with icons */
.catbar { background: var(--catbar-paint, var(--catbar-bg)); position: relative; border-top: 1px solid rgba(127,127,127,.2); }
.catbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: var(--nav-justify, flex-start); }
.catbar > .wrap > ul > li { position: static; }
.catbar > .wrap > ul > li > a { display: flex; align-items: center; gap: 8px; padding: calc(var(--nav-py, 13px) * .7) .9em; color: var(--catbar-text); text-decoration: none; font-weight: 600; font-size: calc(var(--nav-fs, 16px) * .94); text-transform: var(--nav-tt, none); }
.catbar > .wrap > ul > li.active > a, .catbar > .wrap > ul > li > a:hover { background: rgba(127,127,127,.15); }
.catbar-icon { width: var(--catbar-icon, 28px); height: var(--catbar-icon, 28px); object-fit: contain; flex-shrink: 0; }
.catbar .has-mega:hover > .mega, .catbar .has-mega:focus-within > .mega { display: block; }
.catbar .mega a { color: var(--nav-text); text-decoration: none; }
.catbar .mega a.mega-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); font-weight: 700; }
.catbar .mega a.mega-tile:hover { background: rgba(127,127,127,.15); }
@media (max-width: 900px) {
  .header-inline .inline-nav { display: none; order: 10; flex-basis: 100%; }
  .header-inline .inline-nav.open { display: block; }
  .header-inline .inline-nav ul { flex-direction: column; }
  .catbar ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .catbar > .wrap > ul > li > a { flex-direction: column; gap: 4px; font-size: .8rem; white-space: nowrap; padding: 8px 10px; }
  .catbar .mega { display: none !important; }
}
.header-inline .inline-nav > ul > li > a { padding: .55em .75em; }
.header-inline .search { flex: 0 1 220px; }
@media (max-width: 900px) { .catbar .caret { display: none; } .header-inline .search { flex: 1 1 100%; } }

/* menus always stay on one line on computers (very long menus scroll sideways instead of wrapping) */
@media (min-width: 901px) {
  .mainnav > .wrap > ul, .inline-nav > ul, .catbar > .wrap > ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mainnav > .wrap > ul::-webkit-scrollbar, .inline-nav > ul::-webkit-scrollbar, .catbar > .wrap > ul::-webkit-scrollbar { display: none; }
  .mainnav > .wrap > ul > li > a, .inline-nav > ul > li > a, .catbar > .wrap > ul > li > a { white-space: nowrap; }
}

/* ===== Rozložení (layout variants, switched by body classes l-…) ===== */
.card-media { position: relative; }
.card-quick { display: none; }
.bc-home { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.bc-ico { width: 16px; height: 16px; fill: currentColor; display: none; }

/* shop side menu */
@media (min-width: 901px) {
  .l-sidebar-right .shop-layout { grid-template-columns: 1fr 250px; }
  .l-sidebar-right .sidebar { order: 2; }
}
.l-sidebar-none .shop-layout { grid-template-columns: minmax(0, 1fr); }
.l-sidebar-none .sidebar { display: none; }

/* subcategories */
.l-subcats-buttons .subcats { display: flex; flex-wrap: wrap; gap: 8px; }
.l-subcats-buttons .subcat { flex-direction: row; padding: 8px 16px; border-radius: 999px; font-size: .92rem; }
.l-subcats-buttons .subcat img { display: none; }
.l-subcats-none .subcats { display: none; }

/* product card */
.l-card-center .product-card .card-body { text-align: center; align-items: center; }
.l-card-center .product-card .price, .l-card-center .product-card .stock { justify-content: center; }
.l-card-minimal .product-card .stock, .l-card-minimal .product-card .card-body form, .l-card-minimal .product-card .card-body > .btn, .l-card-minimal .product-card .brand-tag { display: none; }
.l-card-minimal .product-card .card-body { text-align: center; }
.l-card-hover .product-card .card-body form, .l-card-hover .product-card .card-body > .btn { display: none; }
.l-card-hover .product-card .card-body { text-align: center; }
.l-card-hover .card-quick { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 10px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
.l-card-hover .product-card:hover .card-quick, .l-card-hover .product-card:focus-within .card-quick { opacity: 1; }
.l-card-hover .card-quick > * { pointer-events: auto; }
.l-card-hover .card-quick form { margin: 0; }
.card-quick .q { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--text); border: 0; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transform: translateY(6px); transition: transform .2s; }
.card-quick .q svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-quick .q-info svg { fill: currentColor; stroke: none; }
.card-quick .q-main { width: 56px; height: 56px; background: var(--btn-paint, var(--accent)); color: var(--on-accent, #fff); }
.card-quick .q-main svg { width: 26px; height: 26px; }
.l-card-hover .product-card:hover .card-quick .q { transform: none; }
.card-quick .q:hover { filter: brightness(.95); }
@media (hover: none) { /* phones: icons are always visible, smaller, at the bottom of the photo */
  .l-card-hover .card-quick { opacity: 1; inset: auto 0 6px 0; gap: 6px; }
  .card-quick .q { width: 34px; height: 34px; transform: none; }
  .card-quick .q-main { width: 40px; height: 40px; }
  .card-quick .q-eye { display: none; }
}

/* phones: 1 product per row */
@media (max-width: 600px) { .l-mobile-1 .grid-products { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* product detail: photos on the right */
@media (min-width: 901px) {
  .l-detail-right .product-detail { grid-template-columns: 1fr 1.1fr; }
  .l-detail-right .product-detail .gallery { order: 2; }
}

/* breadcrumbs */
.l-crumbs-home .bc-ico, .l-crumbs-pills .bc-ico { display: inline-block; }
.l-crumbs-home .bc-txt, .l-crumbs-pills .bc-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.l-crumbs-pills .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.l-crumbs-pills .breadcrumbs > a:not(.bc-home), .l-crumbs-pills .breadcrumbs > span:not([aria-hidden]) { background: var(--bg-alt); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.l-crumbs-pills .breadcrumbs > span:last-child { color: var(--text); font-weight: 600; }
.l-crumbs-none .breadcrumbs { display: none; }

/* flags on photos */
.l-flags-right .flags { left: auto; right: 8px; justify-content: flex-end; }
.l-flags-none .flags { display: none; }

/* footer centred */
.l-footer-center .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 20px; }
.l-footer-center .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; }
.l-footer-center .copyright { text-align: center; }

/* Top nabídka (product tabs block) */
.to-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 20px; }
.to-tab { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: .5em 1.1em; border-radius: 999px; cursor: pointer; }
.to-tab:hover { color: var(--text); }
.to-tab.active { background: var(--bg-alt); color: var(--brand); }

/* animated dividers */
.divider[class*=" da-"] { overflow: hidden; }
.dstrip { position: relative; width: 100%; height: 100%; }
.dstrip .dl { position: absolute; top: 0; left: 0; width: 400%; height: 100%; display: block; will-change: transform; }
.ds-slow { --dspd: 2; } .ds-normal { --dspd: 1; } .ds-fast { --dspd: .5; }
/* Vlnění: the strip glides sideways, back layers slower and the other way → depth */
.da-flow .dl-0 { animation: div-flow calc(28s * var(--dspd)) linear infinite; }
.da-flow .dl-1 { animation: div-flow calc(18s * var(--dspd)) linear infinite reverse; }
.da-flow .dl-2 { animation: div-flow calc(12s * var(--dspd)) linear infinite; }
@keyframes div-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Houpání: rises and falls from the edge */
.da-sway svg { transform-origin: 50% 100%; animation: div-sway calc(6s * var(--dspd)) ease-in-out infinite alternate; }
@keyframes div-sway { 0% { transform: scaleY(1); } 50% { transform: scaleY(.7) skewX(-2deg); } 100% { transform: scaleY(1.08) skewX(2deg); } }
/* Posun při rolování: app.js moves the strip as the page scrolls */
.da-scroll .dl { transition: transform .12s linear; }
/* Vyjede při zobrazení */
.da-appear svg { transform-origin: 50% 100%; transform: scaleY(0); transition: transform calc(.9s * var(--dspd)) cubic-bezier(.2, .8, .2, 1.2); }
.da-appear.in svg { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .divider .dl, .da-sway svg { animation: none !important; }
  .da-appear svg { transform: none; transition: none; }
}

/* category row (2nd menu line): its own alignment */
.catbar > .wrap > ul { justify-content: flex-start; }
.catbar > .wrap > ul > li:first-child { margin-left: var(--catbar-first-ml, 0); }
.catbar > .wrap > ul > li:last-child { margin-right: var(--catbar-last-mr, 0); }

/* ===== Banner / slider: effects, speeds, text animations ===== */
.slider { --fxd: .9s; }
.fxs-fast { --fxd: .5s; } .fxs-slow { --fxd: 1.5s; }
.slide { position: relative; overflow: hidden; background: none !important; transition: opacity var(--fxd) ease, visibility var(--fxd), transform var(--fxd) cubic-bezier(.65, 0, .35, 1); }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.slide .hero-inner { position: relative; z-index: 1; }
.slide.active { z-index: 1; }
.slide.leaving { z-index: 0; visibility: visible; }
.slider-screen .slide { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); }
.slider.hero-right .hero-inner { text-align: right; }
.slider.hero-right .hero-inner > * { margin-left: auto; }
.slider.hero-right .hero-actions { justify-content: flex-end; }
.slide .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; opacity: .9; margin-bottom: .8em; }

/* Posun do strany / nahoru: slides wait off-screen (no animation) and glide in */
.fx-slide .slide, .fx-vertical .slide, .fx-cube .slide { opacity: 1; transition: none; visibility: hidden; }
.fx-slide .slide { transform: translateX(100%); }
.fx-slide[data-dir="prev"] .slide { transform: translateX(-100%); }
.fx-vertical .slide { transform: translateY(100%); }
.fx-vertical[data-dir="prev"] .slide { transform: translateY(-100%); }
.fx-slide .slide.active, .fx-slide .slide.leaving, .fx-vertical .slide.active, .fx-vertical .slide.leaving, .fx-cube .slide.active, .fx-cube .slide.leaving { visibility: visible; transition: transform var(--fxd) cubic-bezier(.65, 0, .35, 1), opacity var(--fxd); }
.fx-slide .slide.active, .fx-vertical .slide.active { transform: none; }
.fx-slide .slide.leaving { transform: translateX(-100%); }
.fx-slide[data-dir="prev"] .slide.leaving { transform: translateX(100%); }
.fx-vertical .slide.leaving { transform: translateY(-100%); }
.fx-vertical[data-dir="prev"] .slide.leaving { transform: translateY(100%); }
/* Otočení (3D) */
.fx-cube .slides { perspective: 1600px; }
.fx-cube .slide { transform-origin: 50% 50% -50vw; transform: rotateY(90deg); backface-visibility: hidden; }
.fx-cube[data-dir="prev"] .slide { transform: rotateY(-90deg); }
.fx-cube .slide.active { transform: rotateY(0); }
.fx-cube .slide.leaving { transform: rotateY(-90deg); }
.fx-cube[data-dir="prev"] .slide.leaving { transform: rotateY(90deg); }
/* Přiblížení s prolnutím */
.fx-zoom .slide { transform: scale(1.12); }
.fx-zoom .slide.active { transform: none; }
.fx-zoom .slide.leaving { opacity: 0; transform: scale(.95); }
/* Ken Burns: the photo slowly zooms while the slide is shown */
.fx-kenburns .slide.active .slide-bg { animation: kenburns var(--slide-time, 8s) linear both; }
.fx-kenburns .slide:nth-child(even).active .slide-bg { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1); } }

/* text animations: each line comes in a little after the previous one */
.ta-el { --i: 0; }
.slide.active .ta-el, .hero .ta-el { animation-duration: .8s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; animation-delay: calc(var(--i) * .15s + .25s); }
.slider .slide.active .ta-el { animation-delay: calc(var(--fxd) * .55 + var(--i) * .15s); }
.slide.ta-up.active .ta-el, .hero.ta-up .ta-el { animation-name: ta-up; }
.slide.ta-down.active .ta-el, .hero.ta-down .ta-el { animation-name: ta-down; }
.slide.ta-left.active .ta-el, .hero.ta-left .ta-el { animation-name: ta-left; }
.slide.ta-right.active .ta-el, .hero.ta-right .ta-el { animation-name: ta-right; }
.slide.ta-zoom.active .ta-el, .hero.ta-zoom .ta-el { animation-name: ta-zoom; }
.slide.ta-fade.active .ta-el, .hero.ta-fade .ta-el { animation-name: ta-fade; }
.slide.ta-blur.active .ta-el, .hero.ta-blur .ta-el { animation-name: ta-blur; }
.slide:not(.active) .ta-el { opacity: 0; }
.slide.ta-none .ta-el, .slide.leaving .ta-el { opacity: 1; }
@keyframes ta-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ta-down { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes ta-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes ta-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes ta-zoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ta-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ta-blur { from { opacity: 0; filter: blur(12px); letter-spacing: .05em; } to { opacity: 1; filter: none; } }

/* time bar */
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 3; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.slider-progress span.run { animation: slider-progress var(--slide-time, 6s) linear forwards; }
.slider:hover .slider-progress span.run.paused { animation-play-state: paused; }
@keyframes slider-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide .ta-el, .hero .ta-el, .slide-bg { animation: none !important; transition: opacity .3s !important; transform: none !important; }
  .slide:not(.active) { opacity: 0; }
}

/* banner / slider: own size in pixels */
.hero.bh-custom { min-height: var(--bh); display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.hero.bh-custom .hero-inner { width: 100%; }
.slider.bh-custom .slide { min-height: var(--bh); }
@media (max-width: 700px) {
  .hero.bh-custom { min-height: var(--bhm); }
  .slider.bh-custom .slide { min-height: var(--bhm); }
}
.hero.bw-content, .slider.bw-content { max-width: calc(var(--wrap, 1200px) - 40px); margin: 20px auto; border-radius: calc(var(--radius, 8px) * 2); overflow: hidden; }
.hero.bw-custom, .slider.bw-custom { max-width: min(var(--bw), 100% - 32px); margin: 20px auto; border-radius: calc(var(--radius, 8px) * 2); overflow: hidden; }
@media (max-width: 700px) { .hero.bw-content, .slider.bw-content, .hero.bw-custom, .slider.bw-custom { margin: 12px; border-radius: var(--radius, 8px); } }

/* more banner changes: the new slide is uncovered over the old one */
.fx-wipe .slide, .fx-circle .slide, .fx-curtain .slide { opacity: 1; transition: none; visibility: hidden; }
.fx-wipe .slide { clip-path: inset(0 0 0 100%); }
.fx-wipe[data-dir="prev"] .slide { clip-path: inset(0 100% 0 0); }
.fx-circle .slide { clip-path: circle(0% at 50% 50%); }
.fx-curtain .slide { clip-path: inset(0 50% 0 50%); }
.fx-wipe .slide.active, .fx-circle .slide.active, .fx-curtain .slide.active { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path var(--fxd) cubic-bezier(.65, 0, .35, 1); }
.fx-circle .slide.active { clip-path: circle(75% at 50% 50%); }
.fx-wipe .slide.leaving, .fx-circle .slide.leaving, .fx-curtain .slide.leaving { visibility: visible; clip-path: none; }
.fx-blur .slide { filter: blur(24px); transform: scale(1.06); }
.fx-blur .slide.active { filter: none; transform: none; transition: opacity var(--fxd), filter var(--fxd), transform var(--fxd); }
.fx-blur .slide.leaving { filter: blur(24px); transition: opacity var(--fxd), filter var(--fxd); }
@media (prefers-reduced-motion: reduce) { .slide { clip-path: none !important; filter: none !important; } }

/* ===== Galerie (gallery block) ===== */
.gal { --gg: 12px; --gcols: 3; --grad: var(--radius, 8px); }
.gal.cols-2 { --gcols: 2; } .gal.cols-4 { --gcols: 4; } .gal.cols-5 { --gcols: 5; }
.gal.gap-none { --gg: 0px; } .gal.gap-small { --gg: 6px; } .gal.gap-large { --gg: 24px; }
.gal.cor-square { --grad: 0px; } .gal.cor-round { --grad: 16px; } .gal.cor-circle { --grad: 50%; }
.gal.align-center .section-title, .gal.align-center figcaption { text-align: center; }
.gal.align-right .section-title, .gal.align-right figcaption { text-align: right; }
.gal-items { display: grid; grid-template-columns: repeat(var(--gcols), minmax(0, 1fr)); gap: var(--gg); }
.gal-item { margin: 0; position: relative; min-width: 0; }
.gal-link { display: block; overflow: hidden; border-radius: var(--grad); aspect-ratio: var(--gr); background: var(--bg-alt); }
.gal-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; }
.gal.ratio-auto .gal-link img { height: auto; }
.gal.cor-circle .gal-link { aspect-ratio: 1 / 1; }
.gal figcaption { font-size: .9rem; color: var(--muted); padding: 6px 2px 0; }
.gal.cap-none figcaption { display: none; }
.gal.cap-over figcaption, .gal.cap-hover figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); border-radius: 0 0 var(--grad) var(--grad); pointer-events: none; }
.gal.cap-hover figcaption { opacity: 0; transition: opacity .25s; }
.gal.cap-hover .gal-item:hover figcaption { opacity: 1; }
.gal.hov-zoom .gal-item:hover img { transform: scale(1.07); }
.gal.hov-lift .gal-link { transition: transform .25s, box-shadow .25s; }
.gal.hov-lift .gal-item:hover .gal-link { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.gal.hov-gray img { filter: grayscale(1); }
.gal.hov-gray .gal-item:hover img { filter: none; }
/* masonry: columns, photos keep their own height */
.gal-masonry .gal-items { display: block; columns: var(--gcols); column-gap: var(--gg); }
.gal-masonry .gal-item { break-inside: avoid; margin-bottom: var(--gg); }
.gal-masonry .gal-link { aspect-ratio: auto; }
.gal-masonry .gal-link img { height: auto; }
/* mosaic: the first photo is big */
.gal-mosaic .gal-items { grid-auto-flow: dense; }
.gal-mosaic .gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.gal-mosaic .gal-item:first-child .gal-link { aspect-ratio: auto; height: 100%; }
.gal-mosaic .gal-item:first-child figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
/* one big photo per row */
.gal-single .gal-items { grid-template-columns: minmax(0, 1fr); }
.gal-single .gal-link { aspect-ratio: var(--gr, 16/9); }
.gal-single.ratio-auto .gal-link { aspect-ratio: auto; }
/* carousel: a sliding strip with arrows */
.gal-car { position: relative; }
.gal-carousel .gal-items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.gal-carousel .gal-items::-webkit-scrollbar { display: none; }
.gal-carousel .gal-item { flex: 0 0 calc((100% - var(--gg) * (var(--gcols) - 1)) / var(--gcols)); scroll-snap-align: start; }
.gal-prev, .gal-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 1.6rem; line-height: 1; cursor: pointer; color: #111; }
.gal-prev { left: -8px; } .gal-next { right: -8px; }
@media (max-width: 900px) {
  .gal { --gcols: 2 !important; }
  .gal-carousel .gal-item { flex-basis: 80%; }
  .gal-prev, .gal-next { display: none; }
}
@media (max-width: 520px) { .gal-masonry .gal-items { columns: 2; } .gal-mosaic .gal-item:first-child { grid-column: 1 / -1; grid-row: auto; } .gal-mosaic .gal-item:first-child .gal-link { aspect-ratio: var(--gr); } }

/* photo viewer with arrows */
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-cap { position: fixed; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); pointer-events: none; }
