/*
 * Výchozí vzhled obchodu (varianta A, vybraná 10. 10. 2026): bílé pozadí, modrá #1F5FA8,
 * písmo Onest, dlaždice kategorií s fotkou a Novinky ve 4 sloupcích.
 * Obchod si barvy a písmo změní v shops/<domena>/theme/assets/shop.css přepsáním proměnných,
 * např. :root { --accent: #c2410c; --accent-dark: #9a3412; }. Logo: theme/assets/logo.svg nebo logo.png.
 */

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --text: #1b1d21;
    --text-soft: #4a4e57;
    --muted: #6b6f78;
    --bg: #ffffff;
    --surface: #f3f4f6;
    --image-bg: #ffffff;       /* podklad fotek zboží a kategorií */
    --card-line: color-mix(in srgb, var(--accent) 45%, #fff); /* tenký rámeček kolem karet zboží a kategorií */
    --line: #ececef;
    --field-line: #dcdde1;
    --accent: #1f5fa8;
    --accent-dark: #184b86;
    --accent-text: #ffffff;
    --accent-soft: #eef3fa;
    --sale: #c62828;
    --ok: #15803d;
    --warn: #a15c00;
    --error: #b42318;
    --radius: 10px;
    --radius-image: 12px;
    --wrap: 75rem;
    --gutter: 1.5rem;
    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Základ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font: 16px/1.5 var(--font);
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
.content a, .link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.nowrap { white-space: nowrap; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 46rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    padding: .5rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: var(--radius);
    z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--accent-text); }

/* Hlavička */

/* Pruh nad hlavičkou (oznámení z Textů obchodu nebo Doprava zdarma): výrazný, červený s bílým písmem.
   Obchod si barvu změní přes --promo-bg a --promo-text. */
.promo-bar { margin: 0; padding: .5rem .75rem; font-size: .9375rem; font-weight: 600; text-align: center; color: var(--promo-text, var(--accent-text)); background: var(--promo-bg, var(--sale)); }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.site-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.site-brand:hover { color: var(--text); }
.site-brand:has(img) { flex: none; display: flex; align-items: center; gap: .625rem; }
.site-brand img { flex: none; display: block; max-height: 3rem; width: auto; }
/* SVG bez width/height nemá vlastní šířku, výška natvrdo, ať se vedle něj vejde název. */
.site-brand img[src*=".svg"] { height: 3rem; }
/* Název vedle loga jen když ho obchod zapne (logo bez nápisu): shop.css :root { --brand-name: block; } */
.site-brand-name { flex: none; display: var(--brand-name, none); color: var(--brand-name-color, var(--text)); white-space: nowrap; }

.site-search { flex: 1 1 20rem; }

.site-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-left: auto; }

/* Hlavní kategorie: modrý pruh přes celou šířku, položky oddělené bílými čarami. */
.site-nav { background: var(--accent); }
.site-nav ul { display: flex; flex-wrap: wrap; margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; font-size: .95rem; clip-path: inset(0 var(--gutter)); }
/* Čáry vlevo a nahoře posunuté o 1px ven: první položka v řádku a první řádek je nemají ani při zalomení. */
.site-nav li { flex: 1 1 auto; display: flex; margin: -1px 0 0 -1px; border-top: 1px solid rgb(255 255 255 / .55); border-left: 1px solid rgb(255 255 255 / .55); }
.site-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .5rem 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--accent-text);
    transition: background-color .15s;
}
.site-nav a:hover { color: var(--accent-text); background: var(--accent-dark); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-dark); box-shadow: inset 0 -3px 0 var(--accent-text); }

.menu-button { display: none; width: 2.75rem; height: 2.75rem; align-items: center; color: var(--text); }

/* Hledání */

.search-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 2.75rem;
    padding: 0 .75rem;
    background: var(--bg);
    border: 1px solid var(--field-line);
    border-radius: var(--radius);
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-form button {
    display: flex;
    align-items: center;
    flex: none;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}
.search-form button:hover { color: var(--accent); }
.search-form input[type=search] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: none;
}

/* Košík v hlavičce: „Košík (2)“ */

.cart-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 600; }
.cart-link-count::before { content: "("; }
.cart-link-count::after { content: ")"; }
.cart-link-count { margin-left: -.25rem; }

/* Mobilní nabídka (panel se stromem kategorií) */

.menu-panel { display: none; }
.menu-panel-head {
    flex: none;
    height: 3.75rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.menu-panel-title { font-size: 1.125rem; font-weight: 700; }
.menu-panel-back { height: 2.75rem; padding: 0; font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; }
.menu-panel-close { width: 2.75rem; height: 2.75rem; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; color: var(--text); }
.menu-panel-body { flex: 1; overflow: auto; font-size: 1rem; }
.menu-tree { margin: 0; padding: 0; list-style: none; }
.menu-tree a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.375rem;
    padding: .5rem 1rem;
    border-bottom: 1px solid #f0f1f3;
}
.menu-sub { padding-left: 1rem; }
.menu-tree .menu-all { min-height: 3rem; font-weight: 600; color: var(--accent); }
.menu-panel-links { margin: 0; padding: 1.1rem 1rem; list-style: none; display: flex; flex-direction: column; gap: .75rem; font-size: .95rem; }
.menu-panel-links a { color: var(--text-soft); }

/* JavaScript: jedna úroveň stromu najednou */
.menu-panel.is-levels .menu-sub { display: none; padding-left: 0; }
.menu-panel.is-levels .has-children > a::after { content: "›"; color: #8a8f99; }
.menu-panel.is-drilled .menu-tree li { display: none; }
.menu-panel.is-drilled li.is-path { display: block; }
.menu-panel.is-drilled li.is-path > a { display: none; }
.menu-panel.is-drilled li.is-path > .menu-sub { display: block; }
.menu-panel.is-drilled li.is-path:not(.is-current) > .menu-sub > .menu-all { display: none; }
.menu-panel.is-drilled li.is-current > .menu-sub > .menu-tree > li { display: block; }
.menu-open { overflow: hidden; }

@media (max-width: 47.99rem) {
    :root { --gutter: 1rem; }
    .site-header-inner {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        gap: .6rem 0;
        padding-top: .6rem;
        padding-bottom: .75rem;
    }
    .menu-button { display: flex; grid-column: 1; grid-row: 1; }
    .site-brand { grid-column: 2; grid-row: 1; justify-self: center; font-size: 1.25rem; text-align: center; }
    .site-brand img, .site-brand img[src*=".svg"] { max-height: 2.25rem; }
    .site-brand img[src*=".svg"] { height: 2.25rem; }
    .site-tools { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; gap: .5rem; flex-wrap: nowrap; }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .search-form { height: 2.875rem; }
    .search-form input[type=search] { font-size: 1rem; }
    .site-nav { display: none; }
    .cart-link { gap: .25rem; }
    .cart-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .cart-link-count { margin: 0; }
    .cart-link-count::before, .cart-link-count::after { content: none; }
    .cart-link.is-empty .cart-link-count { display: none; }
    .menu-panel:target, .menu-panel.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: var(--bg);
    }
}

/* Obsah */

.site-main { flex: 1; padding: 2.5rem 0 4rem; }
.site-main:has(> .wrap > .breadcrumbs:first-child) { padding-top: 1.25rem; }
.site-main > .wrap { display: flex; flex-direction: column; gap: 3.5rem; }
.site-main > .wrap > * { margin-top: 0; margin-bottom: 0; }
.site-main > .wrap > .breadcrumbs { margin-bottom: -2rem; }
.site-main > .wrap > .breadcrumbs + .product { margin-top: 1.5rem; }

.intro-title { font-size: 1.6rem; font-weight: 700; margin-bottom: .4em; }

.content { max-width: 46rem; }
.content ul, .content ol { padding-left: 1.4rem; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.page h1 { margin-bottom: .75em; }
.home-intro { font-size: 1.05rem; color: var(--text-soft); }

/* Právní stránky (modul legal): obchodní podmínky, kontakt, odstoupení od smlouvy. */
.legal-page h1 { margin-top: 0; font-size: 1.875rem; letter-spacing: -.02em; }
.legal-page h2 { margin: 1.75rem 0 .5rem; font-size: 1.15rem; }
.legal-page .notice { margin: 1rem 0; }
.legal-page .order-box { margin: 1.25rem 0; }
.legal-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 2rem; }
.withdrawal-form { margin: 1.25rem 0; }
.withdrawal-form fieldset { margin: 0; padding: 0; border: 0; }
.withdrawal-form legend { margin-bottom: .5rem; font-weight: 500; font-size: .9rem; }
.withdrawal-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .375rem 0; border-bottom: 1px solid var(--line); }
.withdrawal-item input[type=number] { width: 5.5rem; flex: none; }
.legal-model-fields { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: 1rem 1.5rem; margin: 1.5rem 0 0; }
.legal-model-fields dt { font-weight: 600; }
.legal-model-fields dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .legal-model-fields { grid-template-columns: 1fr; gap: .25rem; }
    .legal-model-fields dd { margin-bottom: .75rem; }
}

.section { display: flex; flex-direction: column; gap: 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; color: var(--text-soft); }

@media (max-width: 47.99rem) {
    .site-main { padding: 1.1rem 0 2.5rem; }
    .site-main:has(> .wrap > .breadcrumbs:first-child) { padding-top: .9rem; }
    .site-main > .wrap { gap: 1.75rem; }
    .site-main > .wrap > .breadcrumbs { margin-bottom: -.75rem; }
    .site-main > .wrap > .breadcrumbs + .product { margin-top: 0; }
    h2, .section-head h2 { font-size: 1.3rem; }
    .section { gap: .9rem; }
}

/* Tlačítka a formuláře */

.button, button.button, input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    font: inherit;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}
.button:hover, button.button:hover { color: var(--accent-text); background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary, button.button-secondary { color: var(--text); background: var(--bg); border-color: var(--field-line); }
.button-secondary:hover, button.button-secondary:hover { color: var(--text); background: var(--surface); border-color: var(--field-line); }
.button-block { width: 100%; }
.button[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }

.form { display: grid; gap: 1rem; max-width: 32rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 500; font-size: .9rem; }
.field .help { margin: 0; color: var(--muted); font-size: .875rem; }
.field .error { margin: 0; color: var(--error); font-size: .875rem; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--error); }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=search], select, textarea {
    width: 100%;
    min-height: 2.875rem;
    padding: .5rem .75rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--field-line);
    border-radius: var(--radius);
}
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input[type=checkbox] { width: 1.15rem; height: 1.15rem; flex: none; margin: .15rem 0 0; accent-color: var(--accent); }

@media (max-width: 47.99rem) {
    input[type=text], input[type=email], input[type=tel], input[type=password],
    input[type=number], input[type=search], select, textarea { font-size: 1rem; }
}

/* Hlášky */

.notice { padding: .8rem 1rem; background: var(--surface); border-radius: var(--radius); }
.notice-ok { color: var(--ok); background: #eef8f1; }
.notice-warn { color: var(--warn); background: #fdf5e8; }
.notice-error { color: var(--error); background: #fdeeec; }

/* Drobečková navigace a stránkování */

.breadcrumbs { font-size: .875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: .375rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; padding-top: 1rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 .875rem;
    border: 1px solid var(--field-line);
    border-radius: 8px;
}
.pagination ul a, .pagination ul span { padding: 0; }
.pagination [aria-current="page"] { font-weight: 600; color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.pagination .gap { display: flex; align-items: center; padding: 0 .2rem; border: 0; color: var(--muted); }

/* Dlaždice kategorií */

.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
    gap: 1rem;
}
.category-tile {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .75rem;
    background: var(--image-bg);
    border: 1px solid var(--card-line);
    border-radius: var(--radius-image);
}
.category-tile:hover { border-color: var(--accent); }
.category-tile-image {
    display: block;
    aspect-ratio: 1;
    background: var(--image-bg);
    border-radius: calc(var(--radius-image) / 2);
    overflow: hidden;
}
.category-tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.category-tile:hover .category-tile-image img { transform: scale(1.03); }
.category-tile-image img[src$=".svg"] { object-fit: contain; padding: 24%; }
.category-tile-title { font-weight: 600; }

/* Zboží */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 1.75rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.products > li { display: flex; }

.product-card {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem;
    background: var(--image-bg);
    border: 1px solid var(--card-line);
    border-radius: var(--radius-image);
}
.product-card:hover { border-color: var(--accent); }
.product-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--image-bg);
    border-radius: calc(var(--radius-image) / 2);
    overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card-brand { min-height: 1.5em; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.product-card-title { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; min-height: 2.9em; }
.product-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .5rem; margin-top: auto; }
.product-card-foot .availability { font-size: .875rem; }
.product-card-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 .5rem; margin-left: auto; text-align: right; }
.product-card-price .price-old { font-size: .8125rem; }
.product-card .price { font-size: 1.125rem; }

.flags { position: absolute; top: 1.1rem; left: 1.1rem; display: flex; flex-wrap: wrap; gap: .25rem; z-index: 1; }
.flag { padding: .15rem .5rem; font-size: .75rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; }
.flag-sale { background: var(--sale); }

.price { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.price-old { color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-sale { color: var(--sale); }
.price-net { color: var(--muted); font-size: .8125rem; }
.price-lowest { color: var(--muted); font-size: .75rem; }

.availability { font-size: .85rem; }
.availability-in_stock { color: var(--ok); }
.availability-on_order, .availability-days { color: var(--warn); }
.availability-contact, .availability-unavailable, .availability-other { color: var(--muted); }

@media (max-width: 47.99rem) {
    .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .category-tile { gap: .375rem; padding: .5rem; }
    .category-tile-image { aspect-ratio: 4 / 3; }
    .category-tile-title { font-size: .875rem; line-height: 1.3; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem .75rem; }
    .product-card { gap: .25rem; padding: .5rem; }
    .flags { top: .8rem; left: .8rem; }
    .product-card-image { aspect-ratio: 1; }
    .product-card-brand { font-size: .6875rem; }
    .product-card-title { font-size: .875rem; line-height: 1.35; min-height: 0; }
    .product-card-foot { align-items: baseline; }
    .product-card-foot .availability { font-size: .8125rem; }
    .product-card .price { font-size: 1rem; }
}

/* Výpis kategorie */

.catalog { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2rem; }
.catalog-side { flex: 1 1 15rem; max-width: 17.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.catalog-main { flex: 999 1 35rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.catalog-head { display: flex; flex-direction: column; gap: .375rem; }
.catalog-head h1 { margin: 0; font-size: 1.875rem; letter-spacing: -.02em; }
.catalog-head .lead { margin: 0; font-size: 1rem; max-width: 68ch; }
.catalog-back, .catalog-mobile-tools { display: none; }

.category-tree ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.category-tree a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .375rem .625rem;
    border-radius: 8px;
    color: #3d4148;
}
.category-tree-name { display: flex; align-items: center; gap: .375rem; }
.category-tree-arrow { width: .75rem; flex: none; color: #8a8f99; font-size: .6875rem; }
.category-tree .level-0 > a { font-weight: 500; color: var(--text); }
.category-tree .level-1 > a { padding-left: 1.625rem; }
.category-tree .level-2 > a { padding-left: 2.625rem; }
.category-tree .level-3 > a, .category-tree .level-4 > a { padding-left: 3.625rem; }
.category-tree a:hover { background: var(--surface); color: var(--text); }
.category-tree a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.category-tree .count { color: #8a8f99; font-size: .75rem; font-weight: 400; }

.filters { display: flex; flex-direction: column; gap: 1.25rem; }
.filter { display: flex; flex-direction: column; gap: .625rem; margin: 0; padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--line); }
.filter legend { float: left; width: 100%; margin-bottom: .625rem; padding: 0; font-weight: 600; font-size: .95rem; }
.filter .check { align-items: center; font-size: .875rem; }
.filter .check input[type=checkbox] { width: 1.125rem; height: 1.125rem; margin: 0; }
.filter-range { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.filter-range input { width: 100%; min-width: 0; min-height: 2.5rem; border-radius: 8px; }
.filter-stock { display: none; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-reset:not(.is-active) { display: none; }
.js .filters[data-autosubmit] .filter-submit { display: none; }

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.subcategories a {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 3rem;
    padding: .4rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.subcategories a:hover { border-color: var(--accent); }
.subcategories img { width: 2.25rem; height: 2.25rem; object-fit: cover; border-radius: 6px; }
.subcategories img[src$=".svg"] { object-fit: contain; padding: .25rem; }
.subcategories.is-siblings { display: none; }

.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .625rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.sorts { display: flex; flex-wrap: wrap; gap: .375rem; }
.sorts a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .75rem; font-size: .875rem; border: 1px solid transparent; border-radius: 8px; }
.sorts a:hover { background: var(--surface); color: var(--text); }
.sorts a[aria-current] { color: #fff; background: var(--text); border-color: var(--text); font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem; font-size: .875rem; }
.toggle-box { width: 1.125rem; height: 1.125rem; border: 1.5px solid var(--field-line); border-radius: 4px; background: var(--bg); }
.toggle.is-on .toggle-box {
    border-color: var(--accent);
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.listing-count { margin: 0; font-size: .875rem; }
.sheet-head { display: none; }

@media (max-width: 47.99rem) {
    .site-main > .wrap > .breadcrumbs:has(+ .catalog), .site-main > .wrap > .breadcrumbs:has(+ .catalog-back) { display: none; }
    .catalog { gap: 0; }
    .catalog-side { flex-basis: 100%; max-width: none; gap: 0; }
    .catalog-side .category-tree { display: none; }
    .catalog-main { gap: .875rem; }
    .catalog-back { display: block; font-size: .875rem; color: var(--text-soft); }
    .catalog-head h1 { font-size: 1.5rem; }
    .catalog-head .lead { font-size: .9rem; }
    .subcategories, .subcategories.is-siblings {
        display: flex;
        gap: .5rem;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter) 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .subcategories li { flex: none; }
    .subcategories a { min-height: 2.125rem; padding: 0 .75rem; font-size: .875rem; font-weight: 400; border-color: var(--field-line); border-radius: 999px; white-space: nowrap; }
    .subcategories a[aria-current] { font-weight: 600; color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
    .subcategories img { display: none; }
    .catalog-mobile-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
    .catalog-mobile-tools .button { min-height: 2.875rem; padding: 0 .5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 2.75rem; text-align: center; }
    .listing-toolbar.has-sheet { padding: 0; border: 0; }
    .listing-toolbar.has-sheet .toggle { display: none; }
    .listing-toolbar:not(.has-sheet) .sorts { gap: .25rem; }

    /* Panely zespodu (filtr, řazení); bez JavaScriptu přes #filtry a #razeni */
    .sheet { display: none; }
    .sheet:target, .sheet.is-open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        max-height: 90vh;
        max-height: 90dvh;
        overflow: auto;
        padding: .625rem 1rem calc(1.125rem + env(safe-area-inset-bottom));
        background: var(--bg);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 0 0 100vmax rgba(20, 22, 26, .45);
    }
    .sheet::before { content: ""; flex: none; align-self: center; width: 2.5rem; height: 4px; border-radius: 999px; background: var(--field-line); }
    .sheet-head { display: flex; justify-content: space-between; align-items: center; }
    .sheet-head h2 { margin: 0; font-size: 1.2rem; }
    .sheet-close { width: 2.75rem; height: 2.75rem; margin-right: -.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text); }
    .filters.sheet .filter { padding-top: 0; border-top: 0; }
    .filters.sheet .filter legend { font-size: 1rem; }
    .filters.sheet .check { min-height: 2.25rem; font-size: 1rem; }
    .filters.sheet .check input[type=checkbox], .filter-stock input { width: 1.375rem; height: 1.375rem; accent-color: var(--accent); }
    .filter-stock { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
    .filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; padding-top: .25rem; }
    .filter-actions .button { min-height: 3.125rem; }
    .filter-reset:not(.is-active), .js .filters[data-autosubmit] .filter-submit { display: inline-flex; }
    .sorts.sheet { gap: .25rem; }
    .sorts.sheet a { min-height: 3rem; padding: 0 .75rem; font-size: 1rem; }
    .sorts.sheet a[aria-current] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
}

/* Karta produktu */

.product { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.product-gallery { flex: 1 1 28rem; min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--image-bg);
    border-radius: 14px;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.product-thumbs a {
    display: block;
    aspect-ratio: 1;
    background: var(--image-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.product-thumbs a[aria-current] { border: 2px solid var(--accent); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-slides { display: none; }

.product-buy { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 1.125rem; }
.product-buy p { margin: 0; }
.product-head { display: flex; flex-direction: column; gap: .375rem; }
.product-head h1 { margin: 0; font-size: 1.875rem; letter-spacing: -.02em; text-wrap: balance; }
.product-brand { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.product-codes { font-size: .8125rem; }
.product-flags { display: flex; flex-wrap: wrap; gap: .25rem; }
.product-annotation { color: var(--text-soft); }

.product-price { display: flex; flex-direction: column; gap: .125rem; }
.product-price-old { display: flex; align-items: baseline; gap: .625rem; }
.price-large { font-size: 2rem; letter-spacing: -.01em; }
.badge-sale { padding: .05rem .5rem; font-size: .8125rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 6px; }

.variant-picker { display: flex; flex-direction: column; gap: .625rem; }
.variant-picker-title { font-weight: 600; }
.variant-picker ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
/* Tabulka velikostí (modul size-charts): odkaz u výběru varianty a okno (popover). */
.size-chart-link { margin: -.25rem 0 0; }
.link-button { display: inline-flex; align-items: center; gap: .375rem; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--accent-dark, var(--accent)); }
.size-chart-popover { width: min(40rem, 100vw - 2rem); max-height: min(80vh, 100dvh - 2rem); margin: auto; padding: 1rem 1.25rem 1.25rem; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: 0 20px 50px rgb(0 0 0 / .25); overflow: auto; }
.size-chart-popover::backdrop { background: rgb(0 0 0 / .45); }
.size-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.size-chart-head h2 { margin: 0; font-size: 1.25rem; }
.size-chart-close { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.size-chart-wrap { overflow-x: auto; }
.size-chart { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-chart th, .size-chart td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.size-chart thead th { background: var(--surface); font-weight: 600; }
.size-chart tbody th { font-weight: 600; }
.size-chart-note { margin-top: 1rem; color: var(--muted); }
.size-chart-note p { margin: 0 0 .5rem; }
.variant-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 2.75rem;
    padding: 0 .875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    border: 1px solid var(--field-line);
    border-radius: var(--radius);
}
.variant-option:hover { border-color: var(--accent); color: var(--text); }
.variant-option.is-unavailable { opacity: .75; }
.variant-option[aria-current], .variant-option[aria-current]:hover { opacity: 1; color: var(--accent-text); background: var(--accent); border-color: var(--accent); }

.product-availability { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; }
.product-availability .dot { width: .5625rem; height: .5625rem; border-radius: 50%; background: currentColor; }

.product-cart { display: flex; flex-wrap: wrap; gap: .75rem; }
.product-cart input[type=number] { width: 5.25rem; min-height: 3rem; font-size: 1rem; }
.product-cart .button { flex: 1 1 13.75rem; min-height: 3rem; font-size: 1rem; }
.product-cart-summary { display: none; }

.product-info {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: .9375rem;
}
.product-info li { display: flex; gap: .625rem; }
.product-info svg { flex: none; color: var(--text-soft); }

.product-details { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.product-details details { display: flex; flex-direction: column; gap: .75rem; }
.product-details summary { list-style: none; pointer-events: none; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary h2 { margin: 0 0 .75rem; font-size: 1.375rem; }
.product-description { flex: 1 1 32rem; min-width: 0; }
.product-params { flex: 1 1 22rem; min-width: 0; }
.product-main-details { flex: 1 1 32rem; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.product-side-details { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.product-main-details > details, .product-side-details > details { flex: none; }
.files { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.files a { display: inline-flex; align-items: center; gap: .625rem; }
.file-type { display: inline-block; min-width: 2.75rem; padding: .125rem .375rem; font-size: .6875rem; font-weight: 700; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.variant-picker-value { font-weight: 400; color: var(--muted); }
.variant-option.is-other { border-style: dashed; }
.variant-option.has-color { gap: .5rem; }
.variant-color { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.params { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.params th, .params td { padding: .5625rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.params th { width: 45%; padding-right: 1rem; font-weight: 500; color: var(--muted); }
.content table { border-collapse: collapse; }
.content th, .content td { padding: .4rem .6rem; border: 1px solid var(--line); }
.content img { border-radius: var(--radius); }
.product-related .section-head h2 { font-size: 1.375rem; }

@media (max-width: 47.99rem) {
    .site-main > .wrap > .catalog-back { margin-bottom: -1rem; }
    .product { gap: 1.125rem; }
    .product-gallery { margin: 0 calc(-1 * var(--gutter)); gap: .625rem; }
    .product-image { border-radius: 0; }
    .product-gallery.has-slides .product-image, .product-thumbs { display: none; }
    .product-slides { display: block; }
    .product-slides ul {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .product-slides ul::-webkit-scrollbar { display: none; }
    .product-slides li { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; background: var(--image-bg); }
    .product-slides img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .product-dots { display: flex; justify-content: center; gap: .375rem; margin: .625rem 0 0; }
    .product-dots span { width: 6px; height: 6px; border-radius: 999px; background: #d4d6db; transition: width .2s; }
    .product-dots .is-current { width: 18px; background: var(--accent); }
    .product-buy { gap: 1rem; }
    .product-head { gap: .25rem; }
    .product-head h1 { font-size: 1.5rem; line-height: 1.2; }
    .product-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .625rem; }
    .product-price-old, .price-lowest { flex-basis: 100%; }
    .price-large { font-size: 1.75rem; }
    .variant-picker ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
    .variant-picker li { min-width: 0; display: flex; }
    .variant-option { flex: 1; min-width: 0; min-height: 3rem; padding: .25rem .5rem; overflow-wrap: anywhere; }
    .variant-picker li:has(.has-color) { grid-column: span 2; }
    .variant-option.has-color { overflow-wrap: normal; }

    /* Lišta Do košíku přilepená dole */
    .product-cart {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        flex-wrap: nowrap;
        align-items: center;
        padding: .75rem var(--gutter) calc(1.125rem + env(safe-area-inset-bottom));
        background: var(--bg);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 16px rgba(20, 22, 26, .06);
    }
    .product-cart input[type=number] { display: none; }
    .product-cart-summary { display: flex; flex-direction: column; line-height: 1.2; }
    .product-cart-summary span { font-size: .8125rem; color: var(--muted); }
    .product-cart-summary .availability-in_stock { color: var(--ok); font-weight: 600; }
    .product-cart-summary .availability-on_order, .product-cart-summary .availability-days { color: var(--warn); font-weight: 600; }
    .product-cart-summary strong { font-size: 1.125rem; white-space: nowrap; }
    .product-cart .button { flex: 1; min-height: 3.25rem; border-radius: 12px; }
    body:has(.product-cart) .site-footer { padding-bottom: 7.5rem; }

    .product-info { padding-top: .875rem; gap: .5rem; }
    .product-details { flex-direction: column; flex-wrap: nowrap; gap: 0; padding-top: 0; border-top: 0; }
    .product-details details { display: block; padding: .75rem 0; border-top: 1px solid var(--line); }
    .product-details summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 2rem; }
    .product-details summary::after { content: "+"; font-size: 1.25rem; color: var(--muted); }
    .product-details details[open] > summary::after { content: "−"; }
    .product-details summary h2 { margin: 0; font-size: 1.0625rem; }
    .product-details .content, .product-details .params { margin-top: .5rem; }
    .product-description, .product-params { flex: none; }
    .product-main-details, .product-side-details { display: block; flex: none; }
    .product-related { padding-top: .875rem; border-top: 1px solid var(--line); }
    .product-related .section-head h2 { font-size: 1.0625rem; }
    .product-related .products {
        display: flex;
        gap: .75rem;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .product-related .products > li { flex: 0 0 9.375rem; scroll-snap-align: start; }
}

/* Tabulky */

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--text-soft); }
.table .num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* Košík a objednávka */

.checkout-header .site-header-inner { display: flex; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.checkout-header .site-brand { grid-column: auto; justify-self: auto; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: .875rem; color: #8a8f99; }
.checkout-steps li, .checkout-steps a { display: flex; align-items: center; gap: .5rem; }
.checkout-steps .is-current { color: var(--text); font-weight: 600; }
.checkout-steps .is-done a { color: var(--text); }
.checkout-step-mark {
    width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; border: 1px solid var(--field-line);
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.is-current .checkout-step-mark { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.is-done .checkout-step-mark { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft); }
.checkout-step-count { display: none; }

.checkout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem; padding: 0 0 2rem; }
.checkout-main { flex: 999 1 35rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-main > h1 { margin: 0; font-size: 1.875rem; letter-spacing: -.02em; }
.checkout-aside {
    flex: 1 1 20rem; max-width: 25rem; padding: 1.375rem; border: 1px solid var(--line); border-radius: 14px;
    display: flex; flex-direction: column; gap: .875rem;
}
.checkout-aside h2 { margin: 0; font-size: 1.125rem; }
.checkout-row { display: flex; justify-content: space-between; gap: .75rem; margin: 0; font-size: .875rem; }
.checkout-row > :last-child { white-space: nowrap; }
.checkout-aside-part, .checkout-total { border-top: 1px solid var(--line); padding-top: .875rem; display: flex; flex-direction: column; gap: .25rem; }
.checkout-row-total { align-items: baseline; font-size: 1rem; font-weight: 600; }
.checkout-row-total strong { font-size: 1.5rem; }
.checkout-row-small { font-size: .8125rem; color: var(--muted); }
.checkout-methods { margin: 0; padding: 0; list-style: none; display: grid; gap: .375rem; font-size: .8125rem; color: var(--text-soft); }
.checkout-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.button-large { min-height: 3.125rem; padding: 0 1.75rem; font-size: 1rem; }
.back-link { font-size: .875rem; color: var(--text-soft); }

.free-shipping { margin: 0; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: .5rem; }
.free-shipping p { margin: 0; font-size: .875rem; }
.free-shipping-done { font-size: .875rem; font-weight: 600; color: #166534; background: #f1faf4; border-color: #cfe9d8; }
.free-shipping progress { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: #eef0f3; -webkit-appearance: none; appearance: none; }
.free-shipping progress::-webkit-progress-bar { background: #eef0f3; }
.free-shipping progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.free-shipping progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

.cart { border-top: 1px solid var(--line); }
.cart-line {
    display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto auto auto; align-items: center; gap: 1rem;
    padding: 1.125rem 0; border-bottom: 1px solid var(--line);
}
.cart-line-image { width: 5.5rem; height: 5.5rem; box-sizing: border-box; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--image-bg); overflow: hidden; display: block; }
.cart-line-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-name { display: flex; flex-direction: column; gap: .125rem; min-width: 0; font-size: .8125rem; }
.cart-line-name a { font-size: .95rem; font-weight: 600; }
.cart-line.is-unavailable .availability { color: var(--error); }
.cart-line-price { margin: 0; min-width: 6.875rem; text-align: right; display: flex; flex-direction: column; }
.cart-line-price strong { font-size: 1rem; }
.cart-line-price .muted { font-size: .75rem; }
.cart-line-remove { width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--radius); }
.cart-line-remove:hover { color: var(--error); background: var(--surface); }
.quantity { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: var(--radius); height: 2.75rem; }
.quantity input { width: 3.5rem; min-height: 0; height: 100%; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-step { width: 2.75rem; height: 100%; border: 0; background: none; font: inherit; font-size: 1.125rem; cursor: pointer; }
.js .quantity input { width: 1.75rem; padding: 0; }
.cart-recalculate { margin: 1rem 0 0; }
.cart-note { margin-top: 1rem; font-size: .9rem; color: var(--text-soft); }
.cart-note p { margin: 0 0 .5em; }
.js .cart-recalculate { display: none; }
.cart-bar { display: none; }

/* Slevový kód v košíku a řádek slevy v souhrnu */
.coupon { display: flex; flex-direction: column; gap: .625rem; max-width: 28rem; }
.coupon-field { display: flex; gap: .5rem; }
.coupon-field input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-field input::placeholder { text-transform: none; }
.coupon-applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: .9375rem; }
.coupon-remove { padding: 0; border: 0; background: none; font: inherit; font-size: .875rem; color: var(--text-soft); text-decoration: underline; cursor: pointer; }
.coupon-remove:hover { color: var(--error); }
.coupon .notice { margin: 0; font-size: .875rem; }
.checkout-discount > :last-child { color: var(--ok); font-weight: 600; }
.checkout-discount-note { margin: 0; font-size: .8125rem; }

.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: .625rem; }
.choices legend, .checkout-form legend { padding: 0; margin-bottom: .875rem; font-size: 1.375rem; font-weight: 700; }
.choice {
    display: flex; align-items: center; gap: .875rem; min-height: 4rem; padding: .75rem 1rem;
    border: 1px solid var(--field-line); border-radius: 12px; cursor: pointer;
}
.choice[hidden] { display: none; }
.choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { width: 1.15rem; height: 1.15rem; flex: none; margin: 0; accent-color: var(--accent); }
.choice-text { flex: 1; display: flex; flex-direction: column; }
.choice-text .muted { font-size: .8125rem; }
.choice-price { font-weight: 600; white-space: nowrap; }
.choice-price s { font-weight: 400; margin-right: .3rem; }
.choice-point { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: -.25rem 0 .25rem 2.4rem; font-size: .875rem; }
.choice:not(:has(input:checked)) + .choice-point { display: none; }
.choice-point-name { flex: 1; min-width: 12rem; }
.point-dialog { width: min(960px, 100vw - 1rem); height: min(720px, 100vh - 1rem); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; }
.point-dialog[open] { display: flex; flex-direction: column; }
.point-dialog::backdrop { background: rgb(0 0 0 / .45); }
.point-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
.point-dialog-close { border: 0; background: none; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.point-dialog iframe { flex: 1; width: 100%; border: 0; }

.checkout-form fieldset { margin: 0; padding: 0; border: 0; }
.checkout-form legend { font-size: 1.0625rem; margin-bottom: .75rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-items: start; gap: .875rem 1rem; }
.field-wide { grid-column: 1 / -1; }
.checkout-options { display: flex; flex-direction: column; gap: .875rem; }
.checkout-options .check { font-weight: 500; align-items: center; }
.checkout-options .check input[type=checkbox], .checkout-consents .check input[type=checkbox] { width: 1.25rem; height: 1.25rem; }
.checkout-options .check input[type=checkbox] { margin: 0; }
.checkout-form .reveal { padding: 1rem; border-radius: 12px; background: #f6f7f9; }
.js .reveal:not(.is-open) { display: none; }

.order-box { padding: 1.125rem; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: .75rem; }
.order-box h2 { margin: 0; font-size: 1rem; }
.order-box p { margin: 0; }
.order-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.order-box-head a { font-size: .875rem; color: var(--accent); text-decoration: none; }
.order-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.summary-line { display: flex; align-items: center; gap: .75rem; }
.summary-line-image { width: 3.25rem; height: 3.25rem; flex: none; border-radius: 8px; background: var(--surface); overflow: hidden; }
.summary-line-image img { width: 100%; height: 100%; object-fit: contain; }
.summary-line-name { flex: 1; min-width: 0; }
.summary-line-price { min-width: 5rem; text-align: right; }
.checkout-consents { display: flex; flex-direction: column; gap: .75rem; }
.checkout-consents .check { font-weight: 400; }

.order-status { width: 100%; max-width: 51rem; margin: 0 auto; padding: 1rem 0 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.order-status-head { display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; }
.order-status-head h1, .order-status-head p { margin: 0; }
.order-status-head h1 { font-size: 1.875rem; letter-spacing: -.02em; }
.order-status-head p { color: var(--text-soft); }
.order-note p { margin: 0 0 .5em; }
.order-status-icon {
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; color: var(--ok); background: #e8f5ec;
}
.order-next { margin: 0; padding-left: 1.25rem; display: grid; gap: .375rem; color: #3d4148; }
.order-status .order-box:has(.order-next) { padding: 0; border: 0; border-radius: 0; }
.order-status .order-box:has(.order-next) h2 { font-size: 1.125rem; }
.qr-payment { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.375rem; border-radius: 14px; }
.qr-code { width: 10.5rem; flex: none; }
.qr-code svg { display: block; width: 100%; height: auto; }
.qr-payment h2 { font-size: 1.125rem; margin-bottom: .3rem; }
.qr-details { margin: .75rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .375rem 1rem; font-size: .875rem; }
.qr-details dt { color: var(--muted); }
.qr-details dd { margin: 0; font-weight: 600; }

@media (max-width: 47.99rem) {
    .checkout-header .site-header-inner { display: flex; padding-top: .9rem; padding-bottom: .9rem; }
    .checkout-steps { display: none; }
    .checkout-step-count { display: block; margin: 0 0 0 auto; font-size: .8125rem; color: var(--muted); }
    .checkout-step-count strong { margin-right: .375rem; font-size: .9375rem; color: var(--text); }
    .checkout { gap: 1.5rem; }
    .checkout-main > h1, .order-status-head h1 { font-size: 1.5rem; }
    .checkout-aside { max-width: none; }
    .checkout-nav { flex-direction: column-reverse; align-items: stretch; }
    .checkout-nav .button { width: 100%; }
    .cart-line {
        grid-template-columns: 4.75rem minmax(0, 1fr) auto;
        grid-template-areas: "image name remove" "image quantity price";
        align-items: start;
        gap: .375rem .75rem;
        padding: .875rem 0;
    }
    .cart-line-image { grid-area: image; width: 4.75rem; height: 4.75rem; }
    .cart-line-name { grid-area: name; }
    .cart-line .quantity { grid-area: quantity; justify-self: start; }
    .cart-line-price { grid-area: price; align-self: center; min-width: 0; }
    .cart-line-unit { display: none; }
    .cart-line-remove { grid-area: remove; width: 2rem; height: 2rem; }
    .cart-continue { display: none; }

    /* Lišta Celkem a Pokračovat přilepená dole */
    .cart-bar {
        display: flex;
        flex-direction: column;
        gap: .625rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: .75rem var(--gutter) calc(1.125rem + env(safe-area-inset-bottom));
        background: var(--bg);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 16px rgba(20, 22, 26, .06);
    }
    .cart-bar-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
    .cart-bar-total > span { display: flex; flex-direction: column; line-height: 1.2; }
    .cart-bar-total .muted { font-size: .75rem; }
    .cart-bar-total > strong { font-size: 1.375rem; }
    .cart-bar .button { min-height: 3.25rem; border-radius: 12px; }
    body:has(.cart-bar) .site-footer { padding-bottom: 10rem; }
}

/* Zákaznický účet */

.account-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--text); }
.account-link:hover { color: var(--accent); }

.account-box { width: 100%; max-width: 28rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.account-box-wide { max-width: 46rem; }
.account-box h1, .account-main h1 { margin: 0; font-size: 1.875rem; letter-spacing: -.02em; }
.account-box p { margin: 0; }
.account-form { display: flex; flex-direction: column; gap: 1.5rem; }

.account { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem; }
.account-side { flex: 1 1 13.75rem; max-width: 16.25rem; display: flex; flex-direction: column; gap: 1rem; }
.account-who { margin: 0; display: flex; flex-direction: column; }
.account-who .muted { font-size: .8125rem; }
.account-nav { display: flex; flex-direction: column; gap: .125rem; }
.account-nav a, .account-logout {
    display: block; width: 100%; padding: .625rem .75rem; border-radius: var(--radius);
    color: var(--text); font: inherit; text-align: left; background: none; border: 0; cursor: pointer;
}
.account-nav a:hover { background: var(--surface); }
.account-nav a[aria-current="page"] { font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.account-nav form { margin: 0; }
.account-logout { color: var(--muted); }
.account-logout:hover { color: var(--text); background: var(--surface); }
.account-main { flex: 999 1 35rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.account-main > p { margin: 0; }
.account-verify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: 0; }

.account-order { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.account-order summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: 1rem 1.125rem;
    list-style: none; cursor: pointer;
}
.account-order summary::-webkit-details-marker { display: none; }
.account-order summary::after { content: "›"; width: 1rem; color: #8a8f99; transition: transform .15s; }
.account-order[open] summary::after { transform: rotate(90deg); }
.account-order-number { min-width: 8rem; font-weight: 600; }
.account-order-total { margin-left: auto; }
.account-order-body { padding: 1rem 1.125rem; border-top: 1px solid var(--line); background: #fafbfc; display: flex; flex-direction: column; gap: .875rem; }
.account-order-body p { margin: 0; }
.account-order-body .table td { padding-left: 0; }
.account-order-actions { display: flex; flex-wrap: wrap; gap: .625rem; }

.order-chip { padding: .15rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--text-soft); background: var(--surface); }
.order-chip-new, .order-chip-processing { color: #1f4f8a; background: #e6effa; }
.order-chip-ready, .order-chip-sent { color: #8a4b06; background: #fdf1dc; }
.order-chip-done { color: #166534; background: #e7f5ec; }
.order-chip-cancelled { color: var(--error); background: #fbe9e7; }

@media (max-width: 47.99rem) {
    /* Na mobilu je v hlavičce jen košík, účet je v nabídce. */
    .account-link { display: none; }
    .account { gap: 1.25rem; }
    .account-side { max-width: none; }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
    .account-nav a, .account-logout { width: auto; }
    .account-box h1, .account-main h1 { font-size: 1.5rem; }
}

/* Chybová stránka */

.error-page { padding: 2rem 0; text-align: center; }
.error-code { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1; color: var(--line); }

/* Patička */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .875rem; color: var(--text-soft); }
.footer-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem 3rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.footer-main a { color: var(--text-soft); }
.footer-main a:hover { color: var(--accent); }
.footer-text { max-width: 46rem; margin-bottom: 1.25rem; }
.footer-text p { margin: 0 0 .5em; }
.footer-title { font-weight: 600; color: var(--text); }
.footer-company { margin-top: 1.25rem; font-style: normal; font-size: .8rem; color: var(--muted); }

@media (max-width: 47.99rem) {
    .site-footer { padding: 1.125rem 0; font-size: .8125rem; }
    .footer-main { grid-template-columns: 1fr; gap: 1.125rem; }
    .footer-company { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
    .promo-bar, .site-search, .site-tools, .site-nav, .menu-button, .menu-panel, .site-footer, .skip-link,
    .catalog-side, .listing-toolbar, .catalog-mobile-tools, .product-cart, .pagination, .cart-bar, .account-side { display: none; }
}

/* Stránka s mapou výdejních míst v okně objednávky (moduly dopravců). */
body.point-map { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.point-map ppl-access-point-widget, .point-map iframe, .point-map-box { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; }

/* Doklad k tisku (modul Faktury): na obrazovce jako list papíru, při tisku bez okolí. */
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .25rem; }
body.doc-page { background: var(--surface); padding: 1.5rem var(--gutter); }
.doc-actions { max-width: 52rem; margin: 0 auto 1rem; text-align: right; }
.doc { max-width: 52rem; margin: 0 auto; padding: 2.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; }
.doc h1 { margin: 0; font-size: 1.5rem; }
.doc h2 { margin: 0 0 .375rem; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--text); }
.doc-number { margin: 0; font-size: 1.25rem; font-weight: 700; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0; }
.doc-parties p { margin: 0 0 .375rem; }
.doc-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem 1.5rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); }
.doc-dates dt { font-size: .75rem; color: var(--muted); }
.doc-dates dd { margin: 0; font-weight: 600; }
.doc-items, .doc-vat { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.doc-items th, .doc-items td, .doc-vat th, .doc-vat td { padding: .5rem .375rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-items th, .doc-vat th { font-size: .75rem; font-weight: 600; color: var(--muted); }
.doc-items .num, .doc-vat .num { text-align: right; white-space: nowrap; }
.doc-vat { width: auto; margin-left: auto; font-size: .875rem; }
.doc-total { text-align: right; }
.doc-total p { margin: .25rem 0; }
.doc-total strong { font-size: 1.375rem; }
.doc-paid { font-weight: 700; color: var(--ok); }
@media (max-width: 640px) {
    .doc { padding: 1.25rem; }
    .doc-parties { grid-template-columns: 1fr; gap: 1rem; }
}
@media print {
    body.doc-page { background: none; padding: 0; }
    .doc-actions { display: none; }
    .doc { max-width: none; padding: 0; border: 0; }
}
