/* logo */

@media screen and (max-width: 767px) {
    #header .site-name a img {
        max-width: 90%;
        padding: 0;
    }
}

/* prepsani baneru */

.top-category-addon {
    display: none;
}

.type-index.one-column-body .homepage-box.middle-banners-wrapper {
        background: #F2F5F8;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

@media screen and (min-width: 768px) {
    .id-1.type-index .banners-content > div {
        width: 100% !important;
    }
}
.custom_kategorie_boxy {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 10px;
    height: 590px;
}

.custom_kategorie_box {
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.18);
    display: flex!important;
    flex-direction: column;
    position: relative;
    align-items: center;
    padding: 2rem;
    background: #fff;
}

.custom_kategorie_box h3 {
    font-size: 32px;
    text-align: center;
    z-index: 5;
    margin-bottom: 12px;
    margin-top: 0px;
}

.custom_kategorie_box span {
    font-size: 16px;
    text-align: center;
    z-index: 5;
    padding: 6px 16px;
    border-radius: 32px;
    color: #DA1719;
    text-align: center;
    border: 1px solid #DA1719;
    transition: 0.3s ease all;
}

.custom_kategorie_box1 {
    grid-area: 1 / 1 / 5 / 5;
}

.custom_kategorie_box2 {
	grid-area: 1 / 5 / 3 / 9;
}

.custom_kategorie_box3 {
	grid-area: 3 / 5 / 5 / 9;
}

.custom_kategorie_box4 {
	grid-area: 5 / 5 / 7 / 9;
}

.custom_kategorie_box5 {
    grid-area: 5 / 1 / 9 / 3;
}

.custom_kategorie_box6 {
    grid-area: 5 / 3 / 9 / 5;
}

.custom_kategorie_box7 {
	grid-area: 7 / 5 / 9 / 7;
}

.custom_kategorie_box8 {
	grid-area: 7 / 7 / 9 / 9;
}

/*hlavni stred */

.banner-wrapper a.custom_kategorie_box1 img {
    height: 110%;
    object-fit: cover;
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.custom_kategorie_box1 h3 {
    font-size: 42px;
}

/* box stred */

.custom_kategorie_box5 h3,
.custom_kategorie_box6 h3 {
    font-size: 32px;
    text-align: center;
    z-index: 5;
}

.custom_kategorie_box5 span,
.custom_kategorie_box6 span {
    font-size: 16px;
    text-align: center;
    z-index: 5;
}

.banner-wrapper a.custom_kategorie_box5 img,
.banner-wrapper a.custom_kategorie_box6 img {
    height: 90%;
    object-fit: cover;
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.custom_kategorie_box1,
.custom_kategorie_box5,
.custom_kategorie_box6 {
    padding-top: 4rem;
}

/* box strana dlouhy */

.custom_kategorie_box.custom_kategorie_box2,
.custom_kategorie_box.custom_kategorie_box3,
.custom_kategorie_box.custom_kategorie_box4 {
    align-items: flex-end;
    padding-right: 4rem;
}

.custom_kategorie_box2 h3,
.custom_kategorie_box3 h3,
.custom_kategorie_box4 h3 {
    font-size: 28px;
    text-align: right;
    z-index: 5;
    max-width: 70%;
}

.custom_kategorie_box2 span,
.custom_kategorie_box3 span,
.custom_kategorie_box4 span {
    font-size: 16px;
    text-align: right;
    z-index: 5;
    max-width: 50%;
}

.banner-wrapper a.custom_kategorie_box2 img,
.banner-wrapper a.custom_kategorie_box3 img,
.banner-wrapper a.custom_kategorie_box4 img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    bottom: 0px;
    left: -3%;
    z-index: 1;
}

/* male postranni */

.custom_kategorie_box7,
.custom_kategorie_box8 {
    align-items: flex-end;
    padding-right: 2rem;
}

.custom_kategorie_box7 h3,
.custom_kategorie_box8 h3 {
    font-size: 22px;
    text-align: right;
}

.banner-wrapper a.custom_kategorie_box7 img,
.banner-wrapper a.custom_kategorie_box8 img {
    height: 80%;
    object-fit: cover;
    position: absolute;
    bottom: 10px;
    z-index: 1;
}

.banner-wrapper a.custom_kategorie_box7 img {
    left: -10px;

}

.banner-wrapper a.custom_kategorie_box8 img {
    left: -50px;
}

/* hover efekty */

.custom_kategorie_box:hover span {
    color: #fff;
    border: 1px solid #DA1719;
    background: #DA1719;
}

/* RESPO - MOBILNÍ ZOBRAZENÍ */

@media (min-width: 993px) {
    .custom_img_mobil {
        display: none;
    }
}

@media (max-width: 992px) {
    .custom_img_desktop {
        display: none;
    }

    /* Hlavní obal pro všechny boxy - změníme na 1 sloupec */
    .custom_kategorie_boxy {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 14px; /* Jednotná mezera pro všechny menší displeje */
    }

    /* Úprava samotného boxu kategorie */
    .custom_kategorie_box,
    .custom_kategorie_box1,
    .custom_kategorie_box2,
    .custom_kategorie_box3,
    .custom_kategorie_box4,
    .custom_kategorie_box5,
    .custom_kategorie_box6,
    .custom_kategorie_box7,
    .custom_kategorie_box8 {
        grid-area: auto; /* Zrušíme složité umístění z desktopu */
        
        /* ZDE JE HLAVNÍ ZMĚNA: Každý box je nyní sám o sobě Grid */
        display: grid !important;
        grid-template-columns: 45% 55%; /* Levá půlka (45%) pro obrázek, pravá (55%) pro text */
        grid-template-rows: auto auto; /* První řádek pro nadpis, druhý pro tlačítko */
        align-items: center; /* Vertikální zarovnání na střed */
        padding: 1.5rem 1rem !important; /* Přiměřené odsazení */
    }
    
    /* Úprava textů (Nadpis) */
    .custom_kategorie_box h3 {
        grid-column: 2 / 3; /* Umístí nadpis do druhého (pravého) sloupce */
        grid-row: 1 / 2;    /* Do prvního řádku */
        font-size: 22px;
        text-align: right;
        margin: 0 !important;
        max-width: 100% !important;
        z-index: 5;
    }
    
    /* Úprava tlačítka (Span) */
    .custom_kategorie_box span {
        grid-column: 2 / 3; /* Stejný sloupec jako nadpis */
        grid-row: 2 / 3;    /* Do druhého řádku pod nadpis */
        font-size: 16px;
        text-align: center;
        justify-self: end;  /* Zarovná samotné tlačítko na pravý okraj boxu */
        margin: 10px 0 0 0 !important; /* Malá mezera nad tlačítkem */
        max-width: 120px;
        z-index: 5;
    }
    
    /* OPRAVA OBRÁZKŮ - Konec ořezávání! */
    .banner-wrapper a.custom_kategorie_box img,
    .custom_kategorie_box img {
        grid-column: 1 / 2; /* Umístí obrázek do prvního (levého) sloupce */
        grid-row: 1 / 3;    /* Roztáhne ho přes oba řádky (vedle nadpisu i tlačítka) */
        
        position: relative !important; /* Odstraní absolutní pozicování! */
        height: auto !important; /* Výška se přizpůsobí šířce, žádné ořezy */
        width: 100% !important; /* Obrázek vyplní svůj 45% sloupec */
        max-height: 180px; /* Pojistka, aby kola nebyla gigantická */
        object-fit: contain !important; /* Zaručí, že celý obrázek bude vidět a nezdeformuje se */
        transform: none !important; /* Zrušíme transformace z desktopu */
        left: 0 !important;
        bottom: 0 !important;
    }
}

/* Úpravy pro menší mobilní obrazovky */
@media (max-width: 620px) {
    /* Skryjeme tlačítko "Zobrazit" pro úsporu místa (jak jsi to měl původně) */
    .custom_kategorie_box span {
        display: none !important;
    }

    /* Trochu zmenšíme nadpisy */
    .custom_kategorie_box h3 {
        font-size: 18px;
    }

    /* Ponecháme tvůj hover efekt pro posun */
    a.custom_kategorie_box {
        transition: 0.3s ease all !important;
        transform: translateY(0px);
    }
    a.custom_kategorie_box:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .custom_kategorie_box {
        padding: 1rem !important;
    }
    .custom_kategorie_box h3 {
        font-size: 16px;
    }
}

/* Pro úplně nejmenší telefony (pod 400px) text vycentrujeme a skryjeme obrázek */
@media (max-width: 400px) {
    .custom_kategorie_box {
        grid-template-columns: 1fr !important; /* Změníme box jen na 1 sloupec (bez obrázku) */
        justify-items: center; /* Vycentruje obsah horizontálně */
    }

    .custom_kategorie_box h3 {
        grid-column: 1 / 2; /* Nadpis zabere celý sloupec */
        text-align: center !important;
    }

    .banner-wrapper a.custom_kategorie_box img,
    .custom_kategorie_box img {
        display: none !important; /* Obrázky zmizí, jak jsi měl původně navrženo */
    }
}

@media (max-width: 992px) {
    .custom_kategorie_boxy .custom_kategorie_box5 img,
    .custom_kategorie_boxy .custom_kategorie_box6 img {
        /* Vynucená vizuální korekce prázdného místa ve zdrojovém obrázku */
        transform: scale(1.25) translateY(-8%) !important;
    }
}

/* Nový styl pro nový vizuál úvodních bannerů */
/* --- HLAVNÍ MŘÍŽKA --- */
.custom_kategorie_boxy {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    height: 590px;
}

/* ROZMÍSTĚNÍ BOXŮ (Tzv. Grid Areas) */
.custom_kategorie2_box1 {
    grid-area: 1 / 1 / 3 / 5;
}

.custom_kategorie2_box5 {
    grid-area: 3 / 1 / 5 / 2;
}

.custom_kategorie2_box6 {
    grid-area: 3 / 2 / 5 / 3;
}

.custom_kategorie2_box4 {
    grid-area: 3 / 3 / 4 / 5;
}

.custom_kategorie2_box8 {
    grid-area: 4 / 3 / 5 / 5;
}

/* --- STYLOVÁNÍ JEDNOTLIVÝCH BOXŮ --- */

/* BOX 1 (Velký nahoře) */
.custom_kategorie2_box1 {
    justify-content: center; 
    align-items: flex-end;   
    padding-right: 5%;      
}

.custom_kategorie2_box1 h3 {
    font-size: 48px;         
    text-align: right;       
    margin-bottom: 24px;
}

.custom_kategorie2_box1 span.btn-velky {
    font-size: 18px;         
    max-width: none;         
    padding: 12px 32px;                
    border-radius: 50px;
}

.custom_kategorie2_box1:hover span.btn-velky {
    color: #fff;
}

/* OBRÁZEK V BOXU 1 (Horská elektrokola) */
.banner-wrapper a.custom_kategorie2_box1 img,
.custom_kategorie_boxy a.custom_kategorie2_box1 img {
    width: 45%;              
    height: auto;            
    object-fit: contain;
    position: absolute;
    top: 50%;                
    transform: translateY(-50%); 
    left: 3%;                
    z-index: 1;
}

/* BOX 4 a 8 (Podlouhlé boxy na pravé straně) */
.custom_kategorie_box.custom_kategorie2_box4,
.custom_kategorie_box.custom_kategorie2_box8 {
    align-items: flex-end;   
    justify-content: center; 
    padding-right: 3rem;     
    padding-top: 0;          
}

.custom_kategorie2_box4 h3,
.custom_kategorie2_box8 h3 {
    font-size: 26px;         
    text-align: right;
    margin-bottom: 12px;
}

/* OBRÁZKY V BOXECH 4 a 8 (Ostatní kola a Cyklo doplňky) */
.banner-wrapper a.custom_kategorie2_box4 img,
.banner-wrapper a.custom_kategorie2_box8 img,
.custom_kategorie_boxy a.custom_kategorie2_box4 img,
.custom_kategorie_boxy a.custom_kategorie2_box8 img {
    height: 90%;             
    width: auto;
    object-fit: contain;     
    position: absolute;
    bottom: 5px;              
    left: 3%;                
    transform: none;
    z-index: 1;
}

/* OBRÁZKY V BOXECH 5 a 6 (Krosová a Silniční kola) */
.banner-wrapper a.custom_kategorie2_box5 img,
.banner-wrapper a.custom_kategorie2_box6 img,
.custom_kategorie_boxy a.custom_kategorie2_box5 img,
.custom_kategorie_boxy a.custom_kategorie2_box6 img {
    height: 50%;             
    width: auto;
    object-fit: contain;
    position: absolute;
    bottom: 5%; 
    top: auto;              
    left: 50%;               
    transform: translateX(-50%); 
    z-index: 1;
}

/* RESPO - MOBILNÍ ZOBRAZENÍ */
@media (min-width: 993px) {
    .custom_img_mobil {
        display: none;
    }
}

@media (max-width: 992px) {
    .custom_img_desktop {
        display: none;
    }

    .custom_kategorie_boxy {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 14px; 
    }

    /* VLASTNÍ POŘADÍ PRO MOBILNÍ ZOBRAZENÍ */
    .custom_kategorie2_box1 { order: 1; }
    .custom_kategorie2_box5 { order: 2; }
    .custom_kategorie2_box6 { order: 3; }
    .custom_kategorie2_box4 { order: 4; }
    .custom_kategorie2_box8 { order: 5; }

    /* Pročištěný seznam tříd */
    .custom_kategorie_box,
    .custom_kategorie2_box1,
    .custom_kategorie2_box4,
    .custom_kategorie2_box5,
    .custom_kategorie2_box6,
    .custom_kategorie2_box8 {
        grid-area: auto; 
        display: grid !important;
        grid-template-columns: 45% 55%; 
        grid-template-rows: auto auto; 
        align-items: center; 
        padding: 1.5rem 1rem !important; 
    }
    
    .custom_kategorie2_box h3 {
        grid-column: 2 / 3; 
        grid-row: 1 / 2;    
        font-size: 22px;
        text-align: right;
        margin: 0 !important;
        max-width: 100% !important;
        z-index: 5;
    }
    
    .custom_kategorie2_box span {
        grid-column: 2 / 3; 
        grid-row: 2 / 3;    
        font-size: 16px;
        text-align: center;
        justify-self: end;  
        margin: 10px 0 0 0 !important; 
        z-index: 5;
    }
    
    .banner-wrapper a.custom_kategorie2_box img,
    .custom_kategorie2_box img {
        grid-column: 1 / 2; 
        grid-row: 1 / 3;    
        position: relative !important; 
        height: auto !important; 
        width: 100% !important; 
        max-height: 180px; 
        object-fit: contain !important; 
        transform: none !important; 
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important; 
    }
}

@media (max-width: 620px) {
    .custom_kategorie2_box span {
        display: none !important;
    }

    .custom_kategorie2_box h3 {
        font-size: 18px;
    }

    a.custom_kategorie2_box {
        transition: 0.3s ease all !important;
        transform: translateY(0px);
    }
    a.custom_kategorie_box:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .custom_kategorie2_box {
        padding: 1rem !important;
    }
    .custom_kategorie2_box h3 {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .custom_kategorie2_box {
        grid-template-columns: 1fr !important; 
        justify-items: center; 
    }

    .custom_kategorie2_box h3 {
        grid-column: 1 / 2; 
        text-align: center !important;
    }

    .banner-wrapper a.custom_kategorie2_box img,
    .custom_kategorie2_box img {
        display: none !important; 
    }
}

@media (max-width: 992px) {
    .custom_kategorie_boxy .custom_kategorie2_box5 img,
    .custom_kategorie_boxy .custom_kategorie2_box6 img {
        transform: scale(1.25) translateY(-8%) !important;
    }
}

img.custom_img_desktop {
    padding-left: 20px;
}

.banner-wrapper a.custom_kategorie2_box5 img, 
.banner-wrapper a.custom_kategorie2_box6 img {
    height: 50%;
    width: 90%;
    object-fit: contain !important;
    bottom: 0px !important;
}

.banner-wrapper a.custom_kategorie2_box1 img {
    height: 86% !important;
    bottom: -10px !important;
}

@media (max-width: 768px) {
    .banner-wrapper a.custom_kategorie2_box1 img {
        height: 100% !important;
        bottom: -1px !important;
    }
}

.link-icons {
    display: inline-block;
    vertical-align: middle;
    margin: 40px 0 0 10px !important;
}

/* Výchozí stav (desktop) */
.text-mobile {
    display: none; /* Skryjeme mobilní text */
}

.text-mobile2 {
    display: none; /* Skryjeme mobilní text */
}

/* Jakmile se obrazovka zmenší pod 1440px */
@media (max-width: 1440px) {
    .text-desktop {
        display: none; /* Skryjeme dlouhý desktopový text */
    }
    .text-mobile {
        display: inline-block; /* Ukážeme krátký mobilní text */
    }
}

/* Jakmile se obrazovka zmenší pod 1440px */
@media (max-width: 1200px) {
    .text-mobile {
        display: none;
    }
    .text-mobile2 {
        display: inline-block;
    }
}

/* --- NOVÝ KONTAKTNÍ BANNER --- */

.my-custom-banner {
    background-color: #fcfcfc; /* Velmi jemná šedá, evokující čistý box */
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.my-custom-banner * {
    box-sizing: border-box;
}

.mcb-header {
    text-align: center;
    margin-bottom: 25px;
}

.mcb-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.2;
}

.mcb-subtitle {
    font-size: 15px;
    color: #555;
}

.mcb-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

.mcb-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #111;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.mcb-contact-link:hover {
    color: #e00b0b; /* Tvá červená z Bike-Centrum */
}

.mcb-icon {
    fill: #333;
    margin-right: 12px;
    flex-shrink: 0;
}

.mcb-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mcb-button {
    width: 100%;
    max-width: 250px;
    margin: 0 !important; /* Vyresetování případných marginů z Shoptetu */
}

.mcb-separator {
    color: #777;
    font-size: 14px;
    margin: 14px 0;
}

/* Nový styl pro dostupnost */
/* Hlavní obal - kompaktnější */
.produktove-dostupnosti2 {
    flex-direction: column;
    margin-bottom: 30px; 
    border: none;
    padding: 0;
}

/* Jednotlivé řádky - tenčí a méně nápadné */
.produktove-dostupnosti2 .dostupnost-eshop2,
.produktove-dostupnosti2 .dostupnost-prodejna2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 0; /* Výrazně užší řádky (méně místa) */
    border-left: none;
}

/* Poslední řádek nepotřebuje spodní linku */
.produktove-dostupnosti2 .dostupnost-prodejna2 {
    border-bottom: none; 
}

/* Zjemnění popisků - už nebudou tučné a černé */
.produktove-dostupnosti2 strong {
    font-weight: normal !important; /* Zrušíme tučné písmo */
    font-size: 13px; /* O něco menší text */
    color: #777; /* Jemná šedá barva, která neruší */
    margin-right: 15px;
}

/* Úprava samotné hodnoty (stavu skladu) */
.produktove-dostupnosti2 .dostupnost-eshop2 .availability-value,
.produktove-dostupnosti2 .dostupnost-prodejna2 .availability-value {
    font-size: 13px; /* Sladění velikosti s popiskem */
    text-align: right;
    width: auto; 
    margin-bottom: 0;
}

/* Responzivita pro mobily - zjemněný přechod */
@media (max-width: 576px) {
    .produktove-dostupnosti2 .dostupnost-eshop2,
    .produktove-dostupnosti2 .dostupnost-prodejna2 {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        gap: 2px; /* Minimální mezera mezi názvem a stavem na mobilu */
    }

    .produktove-dostupnosti2 .dostupnost-eshop2 .availability-value,
    .produktove-dostupnosti2 .dostupnost-prodejna2 .availability-value {
        text-align: left;
    }
}

/* Posunutí kodu produktu */
.p-code {
    margin-left: 10px;
}