/* ==========================================================================
   BASE4BIKES – PREMIUM DESIGN v6  |  Shoptet "Classic" gen3
   Bílé pozadí • produkty s vynořováním velikostí/barev na hover •
   zatmavení při hoveru nad menu • mobilní menu • carousel.
   POZOR: na .menu-helper / #navigation position NESAHÁME (jen z-index).
   ========================================================================== */

:root {
    --c-primary: #F71027;
    --c-primary-dark: #D50D20;
    --c-dark: #111111;
    --c-ink: #1a1a1a;
    --c-muted: #6b7280;
    --c-bg: #f6f7f9;
    --c-border: #e9eaec;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;
    --t-fast: .18s ease;
    --t-smooth: .32s cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.22,.61,.36,1);
    --sh-soft: 0 4px 14px rgba(17,17,17,.06);
    --sh-hover: 0 20px 44px rgba(17,17,17,.14);
    --font-display: 'Exo 2', 'Source Sans 3', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.homepage-group-title,
.product .name,
.price-final,
.btn-cart, .add-to-cart-button, .btn-primary,
#navigation .menu-level-1 > li > a,
#navigation .menu-level-1 > li > a b,
#navigation .menu-level-2 a,
#navigation .menu-level-2 a span,
#navigation .menu-level-3 a,
.menu-helper .menu-level-2 a,
.menu-helper .menu-level-2 a span,
.menu-helper .menu-level-3 a {
    font-family: var(--font-display) !important;
}

/* --- POZADÍ: jemná fotka přes celou stránku (~30 %) --- */
html { background: #ffffff !important; }
body { background: transparent !important; }
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('https://www.base4bikes.cz/user/documents/upload/pexels-kseniya-lapteva-93670191-9175763.jpg') center center / cover no-repeat;
    opacity: .10;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   1) STICKY HLAVIČKA (jezdí s uživatelem) + ZATMAVENÍ POZADÍ POD NAVIGACÍ
      #header dostane bílé neprůhledné pozadí + vysoký z-index → sám zakryje
      ztmavení nad sebou, takže se ztmaví JEN obsah pod navigací.
      Pozici .menu-helper / navigation-wrapper neměníme (kotví se dál stejně).
   ========================================================================== */
/* Sticky jen tablet+desktop (≥768). Mobil (≤767) má vlastní fixní header
   Shoptetu – NESAHAT, jinak zmizí logo a košík. */
@media (min-width: 768px) {
    #header {
        position: sticky;
        top: 0;
        z-index: 901;
        background: #fff !important;
        box-shadow: 0 2px 14px rgba(0,0,0,.06);
    }
    .top-navigation-bar {
        position: relative;
        z-index: 902;
    }
}

/* ==========================================================================
   1b) VLASTNÍ HORNÍ LIŠTA (desktop) – nahrazuje ošklivou nativní
       Vkládá skript horni-lista-DO-ZAPATI.html
   ========================================================================== */
.b4b-topbar { display: none; }
@media (min-width: 768px) {
    /* skrýt nativní lištu jen na desktopu (na mobilu je v ní hamburger!) */
    .top-navigation-bar { display: none !important; }

    .b4b-topbar {
        display: block;
        background: #141414;
        color: #cfd2d6;
        font-family: var(--font-display);
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        position: relative;
        z-index: 903;
    }
    .b4b-topbar-in {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        height: 40px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
    }
    .b4b-topbar-left { display: flex; gap: 22px; justify-self: start; }
    .b4b-topbar-center {
        justify-self: center;
        display: inline-flex; align-items: center; gap: 8px;
        font-weight: 700; letter-spacing: .01em; color: #fff; white-space: nowrap;
    }
    .b4b-topbar-right { justify-self: end; }
    .b4b-tb-item, .b4b-tb-login {
        color: #cfd2d6; text-decoration: none;
        display: inline-flex; align-items: center; gap: 7px;
        transition: color .18s ease;
    }
    .b4b-tb-item:hover, .b4b-tb-login:hover { color: var(--c-primary); }
    .b4b-tb-item svg, .b4b-tb-login svg { width: 14px; height: 14px; flex: 0 0 auto; }
    .b4b-tb-login { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
    /* zelená „otevřeno" tečka */
    .b4b-tb-dot {
        width: 8px; height: 8px; border-radius: 50%;
        background: #35c759; box-shadow: 0 0 0 0 rgba(53,199,89,.6);
        animation: b4bDot 2s ease-out infinite;
    }
    @keyframes b4bDot {
        0% { box-shadow: 0 0 0 0 rgba(53,199,89,.55); }
        100% { box-shadow: 0 0 0 7px rgba(53,199,89,0); }
    }
}

@media (min-width: 992px) {
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(8,9,12,.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
        z-index: 800;
        pointer-events: none;
    }
    body:has(#navigation .menu-level-1 > li.ext:hover)::after {
        opacity: 1;
        visibility: visible;
    }
}

/* --- Desktop navigace: přebít Shoptet font-weight:400 + větší písmo --- */
@media (min-width: 768px) {
    #navigation .menu-level-1 > li > a,
    #navigation .menu-level-1 > li > a b,
    .navigation-in ul li a b {
        font-weight: 600 !important;
        font-size: 16px;
    }
    /* položky top-level v menu-helper – tučnější (menu-level-2 necháváme na 400) */
    .menu-helper > ul > li a b {
        font-weight: 600 !important;
    }
}

/* --- Fix výšky horní navigace (32 → 38px), aby nebyla useknutá (desktop) --- */
@media (min-width: 768px) {
    #navigation { height: 38px !important; }
    .menu-helper { height: 38px !important; }
    .menu-helper > ul { margin-top: 3px !important; }
}

/* --- Servis kol v BRNĚ: pryč se zaoblenými rohy (sladit s plochou lištou) --- */
#navigation .navigation-in > ul li > a[href^="/cykloservis"],
.navigation-in > ul li > a[href^="/cykloservis"] {
    border-radius: 0 !important;
}

/* --- Ikony u top-level položek menu (desktop i mobil) --- */
#navigation .menu-level-1 > li > a b {
        display: inline-flex; align-items: center; gap: 8px;
    }
    #navigation .menu-level-1 > li > a b::before {
        content: ''; flex: 0 0 auto;
        width: 18px; height: 18px;
        background-color: currentColor;
        -webkit-mask: var(--b4b-ico) center / contain no-repeat;
        mask: var(--b4b-ico) center / contain no-repeat;
        opacity: .85; transition: opacity var(--t-fast);
    }
    #navigation .menu-level-1 > li > a:hover b::before { opacity: 1; }
    /* přiřazení ikony podle URL sekce */
    #navigation .menu-level-1 > li > a[href^="/vyprodej"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/kola"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='15' cy='5' r='1'/%3E%3Cpath d='M12 17.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/elektrokola"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2L4 13h6l-1 9 8-12h-6z'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/bmx"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='3' x2='5' y2='21'/%3E%3Cpath d='M5 4h13l-3 4 3 4H5z'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/komponenty"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.6 1.6 0 00.3 1.8l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.6 1.6 0 00-1.8-.3 1.6 1.6 0 00-1 1.5V21a2 2 0 01-4 0v-.1A1.6 1.6 0 009 19.4a1.6 1.6 0 00-1.8.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.6 1.6 0 00.3-1.8 1.6 1.6 0 00-1.5-1H3a2 2 0 010-4h.1A1.6 1.6 0 004.6 9a1.6 1.6 0 00-.3-1.8l-.1-.1a2 2 0 112.8-2.8l.1.1a1.6 1.6 0 001.8.3H9a1.6 1.6 0 001-1.5V3a2 2 0 014 0v.1a1.6 1.6 0 001 1.5 1.6 1.6 0 001.8-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.6 1.6 0 00-.3 1.8V9a1.6 1.6 0 001.5 1H21a2 2 0 010 4h-.1a1.6 1.6 0 00-1.5 1z'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/obleceni"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3L4 6l2.5 3L8 8v12h8V8l1.5 1L20 6l-4-3'/%3E%3Cpath d='M9 3a3 3 0 006 0'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/prislusenstvi"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0112 0v10a2 2 0 01-2 2H8a2 2 0 01-2-2z'/%3E%3Cpath d='M9 9V6a3 3 0 016 0v3'/%3E%3Cpath d='M9 14h6'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/helmy"] b { --b4b-ico: url("data:image/png;base64,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"); }
    #navigation .menu-level-1 > li > a[href^="/nologo"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6 .8-4.4 4.2 1.1 6L12 17l-5.3 2.6 1.1-6L3.4 9.4l6-.8z'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/cykloservis"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5a4 4 0 00-5.2 5.2L3 17l4 4 6.8-6.8A4 4 0 0019 9l-2.5 2.5-2.3-.6-.6-2.3z'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href*="znac"] b,
    #navigation .menu-level-1 > li > a[href*="vyrobc"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4L13 21l-9-9V4h8l8.6 8.6a1.4 1.4 0 010 2z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
    #navigation .menu-level-1 > li > a[href^="/retro"] b { --b4b-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3.5 2'/%3E%3C/svg%3E"); }

/* --- Mobilní menu (obrázek vlevo + nadpis + odkazy) --- */
@media (max-width: 991px) {
    /* ikony u sekcí – větší */
    #navigation .menu-level-1 > li > a b { gap: 12px; }
    #navigation .menu-level-1 > li > a b::before { width: 22px; height: 22px; opacity: 1; }

    /* PODSEKCE = kompaktní řádek: obrázek vlevo + obsah těsně vedle */
    #navigation .menu-level-2 > li {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 9px 4px !important;
    }
    #navigation .menu-level-2 > li > .menu-image {
        display: flex !important;
        flex: 0 0 56px !important; width: 56px !important; max-width: 56px !important; min-width: 56px !important;
        align-items: flex-start !important; justify-content: center !important;
        margin: 0 !important; padding: 0 !important;
    }
    #navigation .menu-level-2 > li > .menu-image img {
        width: 52px !important; height: 44px !important;
        object-fit: contain !important;
    }
    /* obsah (font-size:0 skryje čárky + „…") */
    #navigation .menu-level-2 > li > div {
        flex: 1 1 auto !important; min-width: 0 !important;
        font-size: 0 !important; padding: 0 !important;
    }
    /* nadpis podsekce – ČERNÝ bold */
    #navigation .menu-level-2 > li > div > a { display: block !important; margin: 0 0 4px !important; padding: 0 !important; }
    #navigation .menu-level-2 > li > div > a,
    #navigation .menu-level-2 > li > div > a span {
        font-family: var(--font-display) !important;
        font-weight: 700 !important; font-size: 15px !important;
        color: var(--c-dark) !important; line-height: 1.25 !important;
    }
    /* odkazy (level-3) VŽDY viditelné, ČERVENÉ se šipkou › – TĚSNĚ */
    #navigation .menu-level-2 .menu-level-3 {
        display: flex !important; flex-direction: column !important;
        max-height: none !important; overflow: visible !important;
        font-size: 0 !important; margin: 2px 0 0 !important; padding: 0 !important; gap: 0 !important;
    }
    #navigation .menu-level-2 .menu-level-3 li { font-size: 0 !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
    #navigation .menu-level-2 .menu-level-3 a {
        display: block !important; text-align: left !important;
        color: var(--c-primary) !important;
        font-family: var(--font-display) !important;
        font-weight: 600 !important; font-size: 13.5px !important;
        line-height: 1.4 !important; padding: 3px 0 !important; margin: 0 !important;
        text-decoration: none !important; min-height: 0 !important;
    }
    #navigation .menu-level-2 .menu-level-3 a::before {
        content: '\203A'; margin-right: 7px; font-weight: 800; color: var(--c-primary);
    }
    /* pryč se Shoptet „…" i na mobilu */
    #navigation .has-more-items { max-height: none !important; overflow: visible !important; }
    #navigation .more-items-trigger { display: none !important; }
}


/* ==========================================================================
   MEGA-MENU (desktop rozbalení) — plný výpis podsekcí + všech odkazů (bez „...")
   Trik: font-size:0 na kontejnerech skryje „bludné" text nody (čárky za odkazy
   + Shoptet „…"), velikost vracíme jen titulkům a odkazům.
   ========================================================================== */
@media (min-width: 992px) {
    /* panel rozbalení */
    #navigation .menu-level-1 > li > .menu-level-2 {
        padding: 24px 30px 28px !important;
        box-shadow: 0 26px 52px rgba(17,17,17,.16) !important;
        column-gap: 22px !important;
        row-gap: 24px !important;
        align-items: start !important;
    }
    /* každá podsekce = ikonka vlevo + obsah vpravo, zarovnáno nahoru/vlevo */
    #navigation .menu-level-2 > li {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 13px !important;
        text-align: left !important;
    }
    #navigation .menu-level-2 > li > .menu-image {
        flex: 0 0 auto !important;
        margin: 0 !important;
        align-self: flex-start !important;
    }
    #navigation .menu-level-2 > li > .menu-image img {
        width: 64px !important; height: 58px !important;
        object-fit: contain !important;
    }
    /* obsah: font-size:0 zabije čárky i „…" */
    #navigation .menu-level-2 > li > div {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        text-align: left !important;
        font-size: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    /* titulek podsekce */
    #navigation .menu-level-2 > li > div > a {
        display: block !important;
        margin-bottom: 7px !important;
        text-align: left !important;
    }
    /* NADPIS PODSEKCE = ČERNÝ, bez šipky */
    #navigation .menu-level-2 > li > div > a,
    #navigation .menu-level-2 > li > div > a span {
        font-family: var(--font-display) !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--c-dark) !important;
        line-height: 1.3 !important;
    }
    #navigation .menu-level-2 > li > div > a:hover,
    #navigation .menu-level-2 > li > div > a:hover span { color: var(--c-primary) !important; }

    /* seznam odkazů level-3 – svisle, vlevo, těsně */
    #navigation .menu-level-3 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        font-size: 0 !important;
    }
    #navigation .menu-level-3 li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        text-align: left !important;
    }
    #navigation .menu-level-3 li::after,
    #navigation .menu-level-3 li::before { content: none !important; }
    /* ODKAZY (podsekce podsekcí) = ČERVENÉ se šipkou › VLEVO */
    #navigation .menu-level-3 a {
        display: block !important;
        text-align: left !important;
        color: var(--c-primary) !important;
        font-family: var(--font-display) !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        line-height: 1.75 !important;
        text-decoration: none !important;
        transition: color var(--t-fast) !important;
    }
    #navigation .menu-level-3 a::before {
        content: '\203A';
        margin-right: 7px;
        font-weight: 800;
        color: var(--c-primary);
    }
    #navigation .menu-level-3 a:hover,
    #navigation .menu-level-3 a:hover::before { color: var(--c-primary-dark) !important; }

    /* Vypnout Shoptet „více položek" (…) – ukázat VŠECHNY odkazy natrvalo */
    #navigation .has-more-items,
    #navigation .menu-level-3.has-more-items {
        max-height: none !important;
        overflow: visible !important;
    }
    #navigation .more-items-trigger { display: none !important; }
}

/* ==========================================================================
   QUANTITY STEPPER (detail produktu) – zaoblený, čistý, sladěný s UI
   ========================================================================== */
.quantity {
    border: 1px solid var(--c-border) !important;
    border-radius: var(--r-md) !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 46px !important;
    margin-right: 14px !important;   /* mezera k tlačítku Přidat do košíku */
    vertical-align: middle;
}
.quantity .amount {
    border: none !important; box-shadow: none !important; outline: none !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important; font-size: 16px !important;
    color: var(--c-dark) !important; text-align: center !important;
    -moz-appearance: textfield; background: transparent !important;
    height: 44px !important; padding: 0 !important;
}
.quantity .amount::-webkit-outer-spin-button,
.quantity .amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .increase,
.quantity .decrease {
    border: none !important;
    background: var(--c-bg) !important;
    color: var(--c-dark) !important;
    transition: background var(--t-fast), color var(--t-fast) !important;
}
.quantity .increase:hover,
.quantity .decrease:hover {
    background: var(--c-primary) !important;
    color: #fff !important;
}
.quantity .increase__sign,
.quantity .decrease__sign { font-weight: 700 !important; }

/* --- Variant select (Barva, Velikost…) – zaoblený, náš styl --- */
.variant-list td select,
.p-detail select.form-control,
select[class*="parameter-id-"] {
    border: 1px solid var(--c-border) !important;
    border-radius: var(--r-md) !important;
    padding: 11px 40px 11px 15px !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--c-dark) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    background-size: 17px !important;
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    cursor: pointer;
    transition: border-color var(--t-fast) !important;
}
.variant-list td select:hover,
select[class*="parameter-id-"]:hover { border-color: rgba(247,16,39,.4) !important; }
.variant-list td select:focus,
select[class*="parameter-id-"]:focus {
    border-color: var(--c-primary) !important; outline: none !important;
    box-shadow: 0 0 0 3px rgba(247,16,39,.12) !important;
}

/* ==========================================================================
   1c) SLADĚNÍ FONTŮ HORNÍ NAVIGACE (hledání, tlačítko Hledat, košík) s Exo 2
   ========================================================================== */
#header .search-input,
#header .query-input,
#header .search-form input,
#header .search-form button,
#header .navigation-buttons,
#header .cart-count,
#header .cart-price,
#header .top-nav-button {
    font-family: var(--font-display) !important;
}

/* ==========================================================================
   2) MOBILNÍ MENU – čistší vzhled + pryč se zatoulaným ✕
   ========================================================================== */
@media (max-width: 767px) {
    .menu-helper { display: none !important; }

    #navigation .menu-level-1 > li > a {
        padding: 14px 22px !important;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: .01em;
    }
    #navigation .menu-level-1 > li {
        border-bottom: 1px solid rgba(0,0,0,.07);
    }
    #navigation .menu-level-1 > li > a b { font-weight: 600; }

    /* Servis kol v BRNĚ = pořádné červené CTA tlačítko */
    #navigation .menu-item-2595 { border-bottom: none !important; }
    #navigation .menu-item-2595 > a {
        display: block !important;
        margin: 14px 16px !important;
        padding: 13px 18px !important;
        background: var(--c-primary) !important;
        color: #fff !important;
        border-radius: var(--r-pill) !important;
        text-align: center !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        letter-spacing: .02em;
        box-shadow: 0 6px 16px rgba(247,16,39,.3) !important;
    }
    #navigation .menu-item-2595 > a b { font-weight: 800 !important; }

    /* Tlačítka v kartě produktu ať nevyčuhují – plná šířka karty */
    .product .p-tools,
    .product .p-bottom {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .product .btn-cart,
    .product .add-to-cart-button,
    .product .btn-primary {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 12px !important;
    }
}

/* ==========================================================================
   3) CAROUSEL + BANNERY → nižší carousel nahoře, 2 bannery pod ním vedle sebe
   ========================================================================== */
/* Sekce + obalové wrappery PRŮHLEDNÉ (prosvítá fotka).
   Bílé pozadí zůstává jen na kartách produktů (.product .p). */
.in-index .homepage-box,
.in-index .content-wrapper,
.in-index .content-wrapper-in,
.in-index #content,
.in-index .content,
.in-index .products,
.in-index .products-block {
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
}

@media (min-width: 560px) {
    .in-index .banners-row { display: block !important; margin-top: 0 !important; }
    .in-index .banners-row > .col-sm-8,
    .in-index .banners-row > .col-sm-4 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
    .in-index .banners-row > .col-sm-4 { margin-top: 20px; }

    .in-index .next-to-carousel-banners {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 20px;
        height: auto !important;
    }
    .in-index .next-to-carousel-banners .banner-wrapper {
        flex: 1 1 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Napojení carouselu přímo na navigaci (žádná mezera nad ním) */
.in-index .before-carousel,
.in-index .before-carousel .content-wrapper-in { padding-top: 0 !important; margin-top: 0 !important; }

/* Když je aktivní hero carousel, skryj nativní Shoptet carousel (i jeho sloupec).
   Vyšší specificita než .in-index .banners-row > .col-sm-8 {display:block!important}. */
.in-index .b4b-hero + .banners-row > .col-sm-8 { display: none !important; }
.in-index .b4b-hero ~ .banners-row #carousel { display: none !important; }

/* Zarovnání banneru přesně pod carousel (stejná šířka 90vw / max 1180, na střed) */
@media (min-width: 560px) {
    .in-index .b4b-hero + .banners-row {
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
    .in-index .b4b-hero + .banners-row > .col-sm-4 {
        width: min(1180px, 90vw) !important;
        max-width: min(1180px, 90vw) !important;
        margin: 20px auto 0 !important;
        padding: 0 !important;
        float: none !important;
    }
}

/* Bannery pod carouselem – ostré rohy (ladí s carouselem) */
.next-to-carousel-banners .banner-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--sh-soft);
    transition: var(--t-smooth);
}
.next-to-carousel-banners .banner-wrapper a { display: block; width: 100%; }
.next-to-carousel-banners .banner-wrapper img { display: block; width: 100% !important; height: auto; }
.next-to-carousel-banners .banner-wrapper:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }

/* Fallback: kdyby JS hero carousel nenaběhl, nativní #carousel je aspoň slušný */
#carousel .item img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
@media (min-width: 768px) { #carousel, #carousel .carousel-inner, #carousel .item { height: 440px !important; } }
@media (max-width: 767px) { #carousel, #carousel .carousel-inner, #carousel .item { height: 240px !important; } }

/* ==========================================================================
   3b) HERO CAROUSEL – centrální slide + ztlumené sousedy
       Vytváří skript hlavni-carousel-DO-ZAPATI.html (nativní #carousel skryje)
   ========================================================================== */
.b4b-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
}
.b4b-hero-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 calc((100vw - min(1180px, 90vw)) / 2);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.b4b-hero-track::-webkit-scrollbar { display: none; }
.b4b-hero-slide {
    flex: 0 0 min(1180px, 90vw);
    scroll-snap-align: center;
    height: 540px;
    border-radius: 0;              /* ostré rohy */
    overflow: hidden;
    opacity: .35;
    transform: scale(.94);
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
    display: block;
    background: #eceef1;
}
.b4b-hero-slide.is-center { opacity: 1; transform: scale(1); }
.b4b-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b4b-hero-slide > a { display: block; width: 100%; height: 100%; }

/* šipky hero – desktop na hover, dotyk vždy */
.b4b-hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%; border: none;
    background: #fff; box-shadow: var(--sh-hover);
    color: var(--c-dark); font-size: 28px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 4;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease, color var(--t-fast);
}
.b4b-hero:hover .b4b-hero-arrow { opacity: 1; visibility: visible; }
.b4b-hero-arrow:hover { color: var(--c-primary); }
.b4b-hero-arrow.prev { left: 18px; }
.b4b-hero-arrow.next { right: 18px; }

/* tečky (indikátory) */
.b4b-hero-dots {
    display: flex; justify-content: center; gap: 8px;
    padding: 14px 0 2px;
}
.b4b-hero-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none;
    background: rgba(17,17,17,.22); cursor: pointer; padding: 0;
    transition: background var(--t-fast), width var(--t-fast);
}
.b4b-hero-dot.is-active { background: var(--c-primary); width: 24px; border-radius: 6px; }

/* tablet (560–1024): výška podle poměru stran (16:10) → carousel je vždy
   proporčně vyšší než dva nízké bannery vedle sebe pod ním */
@media (min-width: 560px) and (max-width: 1024px) {
    .b4b-hero-slide { height: auto; aspect-ratio: 16 / 10; min-height: 360px; }
}
/* telefon (≤559): bannery se skládají pod sebe, carousel nižší */
@media (max-width: 559px) {
    .b4b-hero-slide { height: 230px; flex-basis: 84vw; }
}
@media (max-width: 767px) {
    .b4b-hero-track { padding: 0 8vw; gap: 10px; }
    .b4b-hero-arrow { opacity: 1; visibility: visible; width: 40px; height: 40px; font-size: 22px; }
    .b4b-hero-arrow.prev { left: 8px; }
    .b4b-hero-arrow.next { right: 8px; }
}
@media (hover: none) {
    .b4b-hero-arrow { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   4) NADPISY SEKCÍ
   ========================================================================== */
.homepage-group-title {
    font-size: 2.05rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .01em; text-align: center;
    margin: 62px 0 32px; color: var(--c-dark); position: relative;
}
.homepage-group-title::after {
    content: ''; display: block;
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
    margin: 16px auto 0; border-radius: 2px;
}
@media (max-width: 768px) {
    .homepage-group-title { font-size: 1.5rem; margin: 40px 0 22px; }
}

/* ==========================================================================
   5) ŠTÍTKY
   ========================================================================== */
.flag, .flag-new, .flag-tip, .flag-sale, .flag-action, .flag-discount {
    font-family: var(--font-display);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    padding: 4px 11px; border-radius: var(--r-pill);
    box-shadow: var(--sh-soft); color: #fff !important;
    display: inline-block; border: none !important;
}
.flag-new { background: linear-gradient(135deg,#111,#3a3a3a) !important; }
.flag-tip, .flag-sale, .flag-action, .flag-discount {
    background: linear-gradient(135deg,var(--c-primary),var(--c-primary-dark)) !important;
}

/* ==========================================================================
   6) TLAČÍTKA (Do košíku / Detail)
   ========================================================================== */
.btn-cart, .add-to-cart-button, .btn-primary {
    box-sizing: border-box !important;
    height: 44px !important;
    display: inline-flex !important;
    justify-content: center !important; align-items: center !important;
    gap: 8px;
    border-radius: var(--r-pill) !important;
    padding: 0 22px !important;
    font-weight: 700 !important; font-size: 13px !important;
    letter-spacing: .03em; text-transform: uppercase !important;
    transition: var(--t-smooth) !important; line-height: 1 !important;
    width: auto !important; min-width: 140px !important;
}
.btn-cart, .add-to-cart-button {
    background: var(--c-primary) !important; color: #fff !important;
    border: 2px solid var(--c-primary) !important;
}
.btn-cart:hover, .add-to-cart-button:hover {
    background: var(--c-dark) !important; border-color: var(--c-dark) !important;
    transform: translateY(-2px); box-shadow: 0 8px 18px rgba(17,17,17,.22) !important; color: #fff !important;
}
.btn-primary {
    background: #fff !important; color: var(--c-dark) !important;
    border: 2px solid var(--c-dark) !important;
}
.btn-primary:hover {
    background: var(--c-dark) !important; color: #fff !important;
    border-color: var(--c-dark) !important; transform: translateY(-2px);
}
@media (max-width: 768px) {
    .btn-cart, .add-to-cart-button, .btn-primary {
        height: 40px !important; padding: 0 18px !important;
        font-size: 12px !important; min-width: 120px !important;
    }
}

/* ==========================================================================
   7) KARTA PRODUKTU + VYNOŘENÍ VELIKOSTÍ/BAREV NA HOVER
   ========================================================================== */
.product .p {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px;
    transition: var(--t-smooth);
    position: relative;
}
.product .image {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 16px;
    display: block;
}
.product .image img {
    transition: transform .6s var(--ease-out);
    display: block; width: 100%; height: auto;
}
.product .name {
    font-size: 15px; font-weight: 700; color: var(--c-ink);
    margin-bottom: 8px; line-height: 1.4; text-decoration: none; display: block;
    transition: color var(--t-fast);
}
.product .name:hover { color: var(--c-primary); }
.price-final { font-size: 1.28rem; font-weight: 800; color: var(--c-dark); margin-bottom: 8px; }
.availability {
    font-size: 12px; font-weight: 700;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em;
}

/* --- Vynoření jen na zařízeních s myší (desktop) --- */
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .product .p:hover {
        border-color: rgba(247,16,39,.22);
        box-shadow: var(--sh-hover);
        transform: translateY(-6px);
    }
    .product .p:hover .image img { transform: scale(1.06); }

    /* Světlý závoj – obrázek "zbledne" */
    .product .image::after {
        content: '';
        position: absolute; inset: 0;
        background: rgba(255,255,255,.84);
        opacity: 0;
        transition: opacity .32s ease;
        pointer-events: none;
        z-index: 2;
    }
    .product .p:hover .image::after { opacity: 1; }

    /* JEN velikosti/barvy se vynoří přes obrázek. Tlačítka zůstávají dole! */
    .product .p .widget-parameter-wrapper {
        position: absolute;
        left: 12px; right: 12px;
        top: 30%;
        z-index: 5;
        margin: 0 !important;
        overflow: visible !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
        pointer-events: none;
    }
    .product .p .widget-parameter-wrapper ~ .widget-parameter-wrapper { top: 48%; }

    .product .p:hover .widget-parameter-wrapper {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .product .p:hover .widget-parameter-wrapper ~ .widget-parameter-wrapper { transition-delay: .06s; }

    /* Zarovnání pilulek na střed */
    .product .p .widget-parameter-wrapper .widget-parameter-list {
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .product .p .widget-parameter-wrapper * { position: relative; z-index: 6; }
    .product .p .widget-parameter-more { display: none; }
}

@media (max-width: 991px) {
    .product .p { padding: 12px; }
    .product .name { font-size: 13.5px; }
    .price-final { font-size: 1.12rem; }
}
/* Mobil: karty bez vnějšího paddingu (obrázek k okrajům), text má malý vnitřní odstup */
@media (max-width: 767px) {
    .product .p { padding: 0 !important; overflow: hidden; }
    .product .image { border-radius: 0 !important; margin-bottom: 10px; }
    .product .p-in { padding: 0 10px 10px !important; }
    .product .p > .widget-parameter-wrapper { padding: 0 10px !important; }
}

/* ==========================================================================
   8) MALÁ TLAČÍTKA BAREV A VELIKOSTÍ (.widget-parameter-value)
   ========================================================================== */
.widget-parameter-wrapper { margin: 2px 0 12px; overflow: visible !important; }
.widget-parameter-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 7px; padding: 0; margin: 0; list-style: none;
}
.widget-parameter-value { list-style: none; margin: 0; flex-shrink: 0; }
/* OPRAVA: šablona ruší levý padding u první hodnoty → rozhodilo to centrování */
.widget-parameter-wrapper .widget-parameter-value:first-child a { padding-left: 12px !important; }
.widget-parameter-value a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 34px; padding: 0 12px;
    background: #fff; border: 1.5px solid #e0e2e6; border-radius: 10px;
    font-family: var(--font-display);
    font-size: 12.5px; line-height: 1; color: var(--c-ink);
    text-decoration: none; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(17,17,17,.05);
    transition: transform var(--t-fast), border-color var(--t-fast),
                background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.widget-parameter-value a:hover {
    border-color: var(--c-primary); background: var(--c-primary); color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 14px rgba(247,16,39,.28);
}
.widget-parameter-value.active a,
.widget-parameter-value a.active,
.widget-parameter-value.selected a {
    border-color: var(--c-dark); background: var(--c-dark); color: #fff; box-shadow: none;
}
.widget-parameter-more { margin-top: 8px; text-align: center; }
.widget-parameter-more span {
    display: inline-flex; align-items: center; height: 24px; padding: 0 11px;
    font-size: 10.5px; font-weight: 800; color: var(--c-muted);
    background: var(--c-bg); border: 1px solid var(--c-border);
    border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .04em;
}

/* ==========================================================================
   9) SEKCE "NOVÉ ČLÁNKY" → celoplošné tmavé pozadí + bílý text
   ========================================================================== */
.in-index .homepage-blog-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 56px calc(50vw - 50%) 64px !important;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(14,15,18,.55), rgba(14,15,18,.55)),
        url('https://www.base4bikes.cz/user/documents/upload/pexels-resourceboy-18541808.jpg') center center / cover no-repeat fixed;
}
.in-index .homepage-blog-wrapper,
.in-index .homepage-blog-wrapper .homepage-group-title,
.in-index .homepage-blog-wrapper .title,
.in-index .homepage-blog-wrapper .description,
.in-index .homepage-blog-wrapper .read-article,
.in-index .homepage-blog-wrapper a { color: #fff !important; }
.in-index .homepage-blog-wrapper .news-item,
.in-index .homepage-blog-wrapper .text { background: transparent !important; }
.in-index .homepage-blog-wrapper .read-article {
    font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

/* ==========================================================================
   10) SEKCE "TIP" → světlé pozadí + černý nadpis (default, bez override)
   ========================================================================== */

/* ==========================================================================
   10b) SEKCE 4 KATEGORIE (2×2 dlaždice) → tmavé pozadí, bílý text
        Vkládá skript kategorie-sekce-DO-ZAPATI.html mezi Novinky a Akční
   ========================================================================== */
.b4b-cats {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 54px calc(50vw - 50%) 58px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(14,15,18,.62), rgba(14,15,18,.62)),
        url('https://www.base4bikes.cz/user/documents/upload/pexels-resourceboy-18541808.jpg') center center / cover no-repeat fixed;
}
.b4b-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}
.b4b-cat {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 16 / 9;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.b4b-cat img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .82;                     /* lehce snížená → text vynikne */
    transition: transform .5s var(--ease-out), opacity .3s ease;
}
.b4b-cat::after {                     /* jemné ztmavení pro čitelnost textu */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.45));
    transition: background .3s ease;
}
.b4b-cat-label {
    position: absolute; inset: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 34px);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
    padding: 0 16px;
}
.b4b-cat:hover img { transform: scale(1.06); opacity: .7; }
.b4b-cat:hover::after { background: linear-gradient(rgba(247,16,39,.25), rgba(0,0,0,.5)); }
@media (max-width: 767px) {
    .b4b-cats-grid { grid-template-columns: 1fr; gap: 14px; }
    .b4b-cats { padding-top: 38px; padding-bottom: 40px; }
}

/* ==========================================================================
   11) SEKCE REFERENCE (Google recenze) – červené celoplošné pozadí + carousel
       HTML/skript: reference-DO-ZAPATI.html
   ========================================================================== */
.b4b-reviews {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 46px 0 52px;
    /* tmavé pozadí (jako ostatní tmavé sekce) */
    background:
        linear-gradient(rgba(14,15,18,.72), rgba(14,15,18,.72)),
        url('https://www.base4bikes.cz/user/documents/upload/pexels-resourceboy-18541808.jpg') center center / cover no-repeat fixed;
}
/* Nadpis bílý, linka pod ním červená */
.b4b-reviews .homepage-group-title { color: #fff !important; }
.b4b-reviews .homepage-group-title::after {
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark)) !important;
}
.b4b-reviews-sub {
    text-align: center; color: rgba(255,255,255,.9); font-weight: 600;
    font-size: 14px; margin: -16px 0 28px;
}

/* --- carousel: vždy 3 karty, přepínání šipkami --- */
.b4b-reviews-carousel {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0;
}
.b4b-reviews-track {
    display: flex;
    align-items: stretch;      /* všechny karty stejně vysoké (dle nejvyšší) */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.b4b-reviews-track::-webkit-scrollbar { display: none; }

/* karty – vždy 3 na šířku, jednotná výška (align-items:stretch v tracku) */
.b4b-review {
    flex: 0 0 calc((100% - 40px) / 3);   /* 3 karty, 2× gap 20px */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-top: 3px solid var(--c-primary);
    border-radius: 0;                     /* ostré rohy */
    padding: 26px 26px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: box-shadow var(--t-smooth), transform var(--t-smooth);
}
.b4b-review:hover { box-shadow: var(--sh-hover); }

.b4b-review-top { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.b4b-avatar {
    flex: 0 0 auto;
    width: 50px; height: 50px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-display);
    font-weight: 800; font-size: 22px; text-transform: uppercase;
}
.b4b-review-who { display: flex; flex-direction: column; min-width: 0; }
.b4b-review-name { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); font-size: 16px; }
/* hvězdy POD jménem */
.b4b-stars { color: #fbbc04; font-size: 13px; letter-spacing: 2px; line-height: 1; margin-top: 3px; }

/* --- text s mizejícím koncem (JK styl); rozbalení GLOBÁLNÍ (.all-open) --- */
.b4b-review-textwrap {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height .45s ease;
}
.b4b-reviews.all-open .b4b-review-textwrap { max-height: 1400px; }
/* jemný fade dole – jen když je co rozbalit a je zavřené */
.b4b-review-textwrap.has-overflow::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 46px;
    background: linear-gradient(rgba(255,255,255,0), #fff);
    pointer-events: none;
    transition: opacity .3s ease;
}
.b4b-reviews.all-open .b4b-review-textwrap::after { opacity: 0; }
.b4b-review-text {
    color: #555; font-size: 14px; line-height: 1.6; margin: 0;
    font-style: italic;
}

/* „Více / Méně" – zobrazí JS jen u přetékajících recenzí; klik rozbalí VŠE */
.b4b-more {
    display: none;
    align-self: flex-start;
    margin-top: 12px;
    cursor: pointer;
    color: var(--c-primary); font-weight: 700; font-size: 13px;
}
.b4b-review.has-more .b4b-more { display: inline-block; }
.b4b-more::after { content: "Více ▾"; }
.b4b-reviews.all-open .b4b-more::after { content: "Méně ▴"; }

.b4b-review-date {
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: block; color: var(--c-muted); font-size: 12px;
}

/* --- šipky (přepínání stránek po 3) – vždy viditelné --- */
.b4b-rev-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: #fff; box-shadow: var(--sh-hover);
    color: var(--c-dark); font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    transition: color var(--t-fast), transform var(--t-fast);
}
.b4b-rev-arrow.prev { left: -6px; }
.b4b-rev-arrow.next { right: -6px; }
.b4b-rev-arrow:hover { color: var(--c-primary); }

/* tablet: 2 karty na stránku */
@media (min-width: 768px) and (max-width: 991px) {
    .b4b-review { flex: 0 0 calc((100% - 20px) / 2); }
    .b4b-reviews-carousel { padding: 8px 12px; }
}
/* mobil: 1 karta */
@media (max-width: 767px) {
    .b4b-review { flex: 0 0 100%; }
    .b4b-reviews-carousel { padding: 8px 12px; }
    .b4b-rev-arrow { width: 40px; height: 40px; font-size: 22px; }
    .b4b-rev-arrow.prev { left: 4px; }
    .b4b-rev-arrow.next { right: 4px; }
}

/* ==========================================================================
   12) INTERAKTIVNÍ KOLO S PUNTÍKY (hotspoty → sekce komponent)
       Vkládá skript kolo-hotspoty-DO-ZAPATI.html
   ========================================================================== */
.b4b-bike {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 42px calc(50vw - 50%) 50px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(14,15,18,.66), rgba(14,15,18,.66)),
        url('https://www.base4bikes.cz/user/documents/upload/pexels-resourceboy-18541808.jpg') center center / cover no-repeat fixed;
}
.b4b-bike .homepage-group-title { color: #fff !important; }
.b4b-bike-title {
    font-family: var(--font-display);
    font-size: 2.05rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .01em; text-align: center; color: var(--c-dark);
    margin: 20px 0 6px;
}
.b4b-bike-title::after {
    content: ''; display: block; width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
    margin: 16px auto 0; border-radius: 2px;
}
.b4b-bike-sub { text-align: center; color: var(--c-muted); font-weight: 600; font-size: 14px; margin: 10px 0 26px; }

.b4b-bike-stage {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    line-height: 0;
}
.b4b-bike-stage > img { width: 100%; height: auto; display: block; }

/* puntík (hotspot) */
.b4b-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    display: block;
}
/* pulzující kruh */
.b4b-dot::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--c-primary);
    animation: b4bPulse 2s ease-out infinite;
}
@keyframes b4bPulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(2.4); opacity: 0; }
}
.b4b-dot:hover { background: var(--c-dark); }

/* popisek dílu */
.b4b-dot-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 700; font-size: 12.5px;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: var(--r-pill);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
    z-index: 3;
}
.b4b-dot-label::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #fff;
}
.b4b-dot:hover .b4b-dot-label,
.b4b-dot:focus .b4b-dot-label {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
    .b4b-bike-title { font-size: 1.5rem; }
    .b4b-dot { width: 22px; height: 22px; border-width: 2px; }
    .b4b-dot-label { font-size: 11px; padding: 5px 9px; }
}

/* --- 3D varianta (model-viewer) --- */
.b4b-bike-stage model-viewer {
    width: 100%;
    height: min(62vh, 560px);
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--c-primary);
    outline: none;
}
/* hotspot tlačítko na 3D modelu (vypadá jako puntík) */
.b4b-hotspot {
    -webkit-appearance: none; appearance: none;
    border: 3px solid #fff;
    background: var(--c-primary);
    width: 26px; height: 26px; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.b4b-hotspot::before {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--c-primary);
    animation: b4bPulse 2s ease-out infinite;
}
.b4b-hotspot:not([data-visible]) { opacity: 0; pointer-events: none; }  /* skryté za modelem */
.b4b-hotspot .b4b-dot-label {
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%);
    background: #fff; color: var(--c-ink);
    font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
    white-space: nowrap; padding: 7px 12px; border-radius: var(--r-pill);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
    pointer-events: none;
}
.b4b-hotspot:hover .b4b-dot-label { opacity: 1; visibility: visible; }
.b4b-hotspot:hover { background: var(--c-dark); }
@media (max-width: 767px) {
    .b4b-hotspot { width: 22px; height: 22px; border-width: 2px; }
}

/* --- ANIMACE z 3 snímků (scroll → snímek 1/2/3) --- */
.b4b-anim-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 2210 / 1240;
}
/* jemné ambientní světlo za kolem (transparentní PNG → žádný multiply) */
.b4b-anim-stage::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    background: radial-gradient(50% 52% at 50% 52%,
        rgba(255,255,255,.14) 0%,
        rgba(255,255,255,.05) 45%,
        rgba(255,255,255,0) 72%);
    pointer-events: none;
}
.b4b-anim-frame {
    position: absolute; inset: 0;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    /* glow přímo kolem obrysu kola (transparentní PNG) */
    filter: drop-shadow(0 8px 26px rgba(0,0,0,.55))
            drop-shadow(0 0 34px rgba(255,255,255,.22));
}
.b4b-anim-frame.is-active { opacity: 1; }
/* body glidnou při změně snímku */
.b4b-anim .b4b-dot {
    transition: top .4s var(--ease-out), left .4s var(--ease-out), background .2s ease;
}

/* ==========================================================================
   13) NEWSLETTER PRUH – cyklista „veze" červený pruh na zádech, přijede ze strany
       Vkládá skript newsletter.js
   ========================================================================== */
.b4b-news { padding: 70px 16px 56px; overflow: hidden; }

/* červený pruh (přijede zleva) */
.b4b-news-panel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 148px;
    display: flex;
    align-items: center;
    padding: 20px 244px 20px 40px;   /* vpravo místo pro cyklistu */
    background: linear-gradient(120deg, #ff2135 0%, var(--c-primary) 52%, var(--c-primary-dark) 100%);
    border-radius: 16px;
    opacity: 0;
    transform: translateX(110px);
    transition: opacity .7s var(--ease-out), transform .85s var(--ease-out);
}
.b4b-news.in-view .b4b-news-panel { opacity: 1; transform: none; }
/* velká měkká koule vlevo */
.b4b-news-panel::after {
    content: '';
    position: absolute; left: -55px; top: 50%; transform: translateY(-50%);
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.10);
    pointer-events: none;
}
/* jemný prstenec pro parádu (vlevo nahoře) */
.b4b-news-panel::before {
    content: '';
    position: absolute; left: 96px; top: -34px;
    width: 84px; height: 84px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.16);
    pointer-events: none;
}

/* cyklista – přesahuje přes levý konec pruhu a je vyšší (veze pruh) */
.b4b-news-bike {
    position: absolute;
    right: 4px;
    bottom: -6px;
    width: 236px;
    z-index: 2;
    transform: translateX(40px);
    transition: transform .85s var(--ease-out) .05s;
}
.b4b-news.in-view .b4b-news-bike { transform: none; }
.b4b-news-bike img {
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 16px 22px rgba(0,0,0,.35));
}

/* obsah v pruhu – na střed */
.b4b-news-content { color: #fff; width: 100%; position: relative; z-index: 1; text-align: center; }
.b4b-news-content h3 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(19px, 2.3vw, 28px); text-transform: uppercase;
    line-height: 1.06; margin: 0 0 12px; color: #fff;
}
.b4b-news-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.b4b-news-form input[type="email"] {
    flex: 1 1 220px; max-width: 360px; height: 48px; border: none; border-radius: var(--r-pill);
    padding: 0 20px; font-size: 14px; font-family: var(--font-display);
    color: var(--c-ink); outline: none;
}
.b4b-news-form input[type="email"]::placeholder { color: #9aa0a6; }
.b4b-news-form button {
    height: 48px; border: none; border-radius: var(--r-pill);
    background: #111; color: #fff; font-family: var(--font-display);
    font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .03em;
    padding: 0 26px; cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.b4b-news-form button:hover { background: #fff; color: var(--c-primary); transform: translateY(-2px); }
.b4b-news-consent {
    margin: 12px 0 0; font-size: 11.5px; line-height: 1.4;
    color: rgba(255,255,255,.9);
}
.b4b-news-consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.b4b-news-consent a:hover { color: #111; }
.b4b-news-msg { margin-top: 8px; font-size: 13px; font-weight: 700; min-height: 18px; color: #fff; }

/* rychločáry za cyklistou (dojem jízdy) – jen desktop */
.b4b-news-speed {
    position: absolute; right: 238px; top: 50%; transform: translateY(-50%);
    z-index: 1; pointer-events: none;
    display: flex; flex-direction: column; gap: 11px;
    align-items: flex-end;
}
.b4b-news-speed span {
    display: block; height: 3px; border-radius: 3px;
    background: rgba(255,255,255,.6);
    opacity: 0;
}
.b4b-news-speed span:nth-child(1) { width: 38px; animation: b4bSpeed 1.1s linear infinite 0s; }
.b4b-news-speed span:nth-child(2) { width: 26px; animation: b4bSpeed 1.1s linear infinite .25s; }
.b4b-news-speed span:nth-child(3) { width: 44px; animation: b4bSpeed 1.1s linear infinite .5s; }
.b4b-news-speed span:nth-child(4) { width: 22px; animation: b4bSpeed 1.1s linear infinite .75s; }
@keyframes b4bSpeed {
    0%   { transform: translateX(14px); opacity: 0; }
    25%  { opacity: .75; }
    100% { transform: translateX(-46px); opacity: 0; }
}
@media (max-width: 767px) { .b4b-news-speed { display: none; } }

/* tablet – menší cyklista */
@media (min-width: 768px) and (max-width: 991px) {
    .b4b-news-panel { padding-left: 40px; padding-right: 200px; }
    .b4b-news-bike { width: 190px; }
}

/* mobil – cyklista nahoře nad pruhem, obsah na střed */
@media (max-width: 767px) {
    .b4b-news { padding-top: 62px; }
    .b4b-news-panel {
        flex-direction: column; text-align: center;
        padding: 0 22px 26px; min-height: 0;
        transform: translateY(40px);
    }
    .b4b-news.in-view .b4b-news-panel { transform: none; }
    .b4b-news-bike {
        position: static; width: 168px; margin: -44px auto 6px;
        transform: none;
    }
    .b4b-news.in-view .b4b-news-bike { transform: none; }
    .b4b-news-content h3 { margin-top: 4px; }
    .b4b-news-form { justify-content: center; }
    .b4b-news-form input[type="email"] { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .b4b-news-panel, .b4b-news-bike { transition: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   14) UVÍTACÍ TEXT – sladění s premium stylem (čistá karta + Exo 2 nadpis)
   ========================================================================== */
.in-index .welcome {
    max-width: 900px;
    margin: 6px auto 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-soft);
    padding: 40px 46px 44px;
}
.in-index .welcome .h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.1;
    color: var(--c-dark) !important;
    text-align: center;
    margin: 0 !important;
    position: relative;
}
.in-index .welcome .h1::after {
    content: ''; display: block;
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
    margin: 16px auto 26px; border-radius: 2px;
}
.in-index .welcome p { font-size: 16px; line-height: 1.7; color: #333; margin: 0 0 14px; }
.in-index .welcome p span { font-size: 16px !important; }   /* přebije inline velikosti */
.in-index .welcome strong { color: var(--c-ink); font-weight: 700; }
.in-index .welcome a { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.in-index .welcome a:hover { color: var(--c-primary-dark); }
.in-index .welcome img {
    max-width: 100%; height: auto; display: block;
    border-radius: var(--r-md); box-shadow: var(--sh-soft); margin: 20px 0;
}
@media (max-width: 767px) {
    .in-index .welcome { padding: 26px 20px 30px; }
    .in-index .welcome p, .in-index .welcome p span { font-size: 15px !important; }
}

/* ==========================================================================
   15) KARTA ČLÁNKU (Nové články) – sladění s premium stylem
   ========================================================================== */
.in-index .homepage-blog-wrapper .news-item {
    max-width: 580px;
    margin: 0 auto;
    float: none !important;
    width: 100% !important;
    flex-basis: auto !important;   /* zrušení flex-basis ze šablony (drží kartu úzkou) */
}
/* svislá karta: obrázek nahoře, text a tlačítko pod ním (desktop i mobil) */
.in-index .homepage-blog-wrapper .news-item > a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--r-md);
    padding: 16px;
    text-decoration: none;
    transition: var(--t-smooth);
}
.in-index .homepage-blog-wrapper .news-item > a:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-3px);
    box-shadow: var(--sh-hover);
}
.in-index .homepage-blog-wrapper .news-item .image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--r-sm);
    overflow: hidden;
    line-height: 0;
    margin-bottom: 16px;
}
.in-index .homepage-blog-wrapper .news-item .image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.in-index .homepage-blog-wrapper .news-item .text { display: block; }
.in-index .homepage-blog-wrapper .news-item .title {
    display: block;
    font-family: var(--font-display); font-weight: 800;
    font-size: 19px; line-height: 1.25; color: #fff !important; margin-bottom: 10px;
}
.in-index .homepage-blog-wrapper .news-item .description {
    font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.82) !important; margin-bottom: 16px;
}
.in-index .homepage-blog-wrapper .news-item .read-article {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: .04em; color: #fff !important;
    padding: 10px 20px; border: 2px solid var(--c-primary); border-radius: var(--r-pill);
    background: var(--c-primary);
    text-decoration: none; transition: var(--t-fast);
}
/* hover: bílé pozadí + ČERVENÝ text (!important přebije bílou ze sekce 9) */
.in-index .homepage-blog-wrapper .news-item > a:hover .read-article {
    background: #fff;
    color: var(--c-primary) !important;
    border-color: #fff;
}

/* ==========================================================================
   16) STRÁNKA KATEGORIE (type-category) – sladění s premium stylem
       Produkty (.product .p) dědí styl z homepage automaticky.
   ========================================================================== */

/* --- Drobečková navigace --- */
body.type-category .breadcrumbs {
    font-family: var(--font-display);
    font-size: 12.5px; font-weight: 600;
    margin: 8px 0 18px;
}
body.type-category .breadcrumbs a { color: var(--c-muted); text-decoration: none; transition: color var(--t-fast); }
body.type-category .breadcrumbs a:hover { color: var(--c-primary); }

/* --- Nadpis kategorie + perex --- */
body.type-category .category-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase; letter-spacing: .01em;
    color: var(--c-dark) !important;
    margin: 4px 0 0 !important;
    position: relative;
}
body.type-category .category-title::after {
    content: ''; display: block;
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
    margin: 14px 0 0; border-radius: 2px;
}
body.type-category .category-perex {
    font-size: 15px; line-height: 1.7; color: #555;
    max-width: 860px; margin: 18px 0 6px;
}
body.type-category .category-perex a { color: var(--c-primary); font-weight: 600; }

/* --- Podkategorie (horizontální dlaždice: ikona vlevo, název vedle) --- */
body.type-category .subcategories.with-image { margin: 22px 0 10px; }
body.type-category .subcategories.with-image > [class*="col-"] { margin-bottom: 16px; }
body.type-category .subcategories.with-image li a {
    display: flex; flex-direction: row; align-items: center;
    gap: 14px; height: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    text-align: left; text-decoration: none;
    box-shadow: none;
    transition: border-color var(--t-fast), box-shadow var(--t-smooth), transform var(--t-smooth);
}
body.type-category .subcategories.with-image li a:hover {
    border-color: rgba(247,16,39,.30);
    box-shadow: var(--sh-soft);
    transform: translateY(-2px);
}
/* ikona vlevo – VĚTŠÍ, neroztahuje se */
body.type-category .subcategories.with-image li a .image {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 72px; height: 56px; margin: 0;
    background: transparent;
}
/* přebíjí Shoptet default (.with-image li a .image img { max-height:30px }) */
body.type-category .subcategories.with-image li a .image img {
    width: auto; height: auto;
    max-width: 100%; max-height: 56px;
    object-fit: contain;
    transition: transform var(--t-smooth);
}
body.type-category .subcategories.with-image li a:hover .image img { transform: scale(1.06); }
/* název vedle ikony – náš font, zarovnaný vlevo */
body.type-category .subcategories.with-image li a .text {
    display: block; flex: 1 1 auto; width: auto; padding-left: 0;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    color: var(--c-ink); line-height: 1.25; letter-spacing: .01em;
    text-align: left;
    transition: color var(--t-fast);
}
body.type-category .subcategories.with-image li a:hover .text { color: var(--c-primary); }
/* na mobilu menší ikona */
@media (max-width: 767px) {
    body.type-category .subcategories.with-image li a { gap: 10px; padding: 10px 12px; }
    body.type-category .subcategories.with-image li a .image { width: 44px; height: 38px; }
    body.type-category .subcategories.with-image li a .image img { max-height: 38px; }
    body.type-category .subcategories.with-image li a .text { font-size: 14px; }
}

/* --- Boxy filtrů a kategorií (sidebar) --- */
body.type-category .box-filters,
body.type-category .box-categories {
    background: var(--c-bg);
    border: none;
    border-radius: var(--r-md);
    box-shadow: none;
    padding: 16px 16px 6px;
    margin-bottom: 20px;
}
body.type-category .box-categories {
    padding-bottom: 12px;
    box-shadow: none;
}
body.type-category .box h3,
body.type-category .box .box-title,
body.type-category .filter-total-count,
body.type-category .cat-trigger {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    text-transform: uppercase; letter-spacing: .02em;
    color: var(--c-dark) !important;
}
body.type-category .filter-label { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }
body.type-category .filter-count { color: var(--c-muted); }
/* odkazy kategorií v sidebaru */
body.type-category .box-categories a { color: var(--c-ink); text-decoration: none; transition: color var(--t-fast); }
body.type-category .box-categories a:hover,
body.type-category .box-categories .active > a { color: var(--c-primary); }

/* hodnoty filtrů (tlačítka velikostí/parametrů) */
body.type-category .filter-section-button label,
body.type-category .filter-section-parametric label {
    font-family: var(--font-display); font-weight: 600;
}

/* tlačítko „Zobrazit / Filtrovat" */
body.type-category .unveil-button,
body.type-category .filters-unveil-button-wrapper .btn {
    font-family: var(--font-display) !important;
    font-weight: 800 !important; text-transform: uppercase; letter-spacing: .03em;
    border-radius: var(--r-pill) !important;
}

/* --- Hlavička výpisu / řazení --- */
body.type-category .products-top-wrapper > h2,
body.type-category .products-top-header {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    color: var(--c-dark) !important;
}
/* řazení (select) + počet na stránku */
body.type-category select,
body.type-category .p-sort select,
body.type-category .ordering select {
    font-family: var(--font-display);
    border: 1px solid var(--c-border) !important;
    border-radius: var(--r-pill) !important;
    padding: 8px 16px !important;
    background: #fff;
    color: var(--c-ink);
    font-weight: 600;
}

/* --- Stránkování --- */
body.type-category .pagination { margin: 34px 0 10px; }
body.type-category .pagination__link,
body.type-category .pagination__currentPage {
    font-family: var(--font-display); font-weight: 700;
    border-radius: var(--r-pill) !important;
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-border);
    transition: var(--t-fast);
}
body.type-category .pagination__link:hover {
    border-color: var(--c-primary); color: var(--c-primary);
}
body.type-category .pagination__currentPage,
body.type-category .pagination__link.active {
    background: var(--c-primary) !important; color: #fff !important; border-color: var(--c-primary) !important;
}
