/* ========================================================= */
/* 1. GLOBÁLNÍ ÚPRAVY HLAVIČKY A LOGA (Nové & Opravené)      */
/* ========================================================= */

#header {
    background-color: #f5f6f8 !important;
}

.menu-helper > span {
    background-color: #f5f6f8 !important;
    border: 0px solid white !important;
}

/* Úpravy loga a horní lišty pro Desktop */
@media (min-width: 992px) {
    .header-top {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
}

@media (min-width: 768px) {
    /* Logo v "přilepené" a skryté hlavičce dle vašeho požadavku */
    .is-header-fixed.is-header-hidden #header .site-name a img {
        max-height: 250px !important;
        padding-top: 10px !important;
    }
    
    /* Základní velikost loga na desktopu, aby nebylo uříznuté */
    #header .site-name a img {
        transition: max-height 0.3s ease !important;
	max-height: 250px !important;
    }
}

/* Logo na mobilu (ponecháno z předchozí verze) */
@media (max-width: 767px) {
    .top-navigation-bar .site-name a img {
        max-height: 300px !important;
        max-width: 180px !important;
    }
}

/* ========================================================= */
/* 2. ULTRA-AGRESIVNÍ NULOVÁNÍ OMEZENÍ ŠABLONY SHOPTETU      */
/* ========================================================= */

.type-product .content, .type-product .page-content, .type-product .product-detail-page, 
.type-product .pobo-product-container, #pobo-all-content, #pobo-inner-content, 
#pobo-content, #pobo-main, .type-product .p-description, .type-product .product-description {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body {
    overflow-x: hidden !important; 
}

.product-detail {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 20px !important; 
    box-sizing: border-box !important;
    font-family: Arial, sans-serif;
    clear: both !important;
    margin-top: 0 !important;
}

.product-detail section {
    background-color: #ffffff !important;
    padding: 30px 40px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important; 
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    width: auto !important;
    display: block !important;
    overflow: hidden !important;
}

.product-detail section:first-of-type, 
.product-detail .product-info-block {
    margin-top: 0 !important;
    padding-top: 30px !important; 
}

.product-detail h2, .product-detail h1 {
    color: #333333 !important;
    font-size: 1.8em !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #eeeeee !important;
    padding-bottom: 10px !important;
}

/* ========================================================= */
/* 3. LAYOUT OBRÁZEK + TEXT (Desktop)                       */
/* ========================================================= */

@media (min-width: 769px) {
    .product-detail section .image-text-layout,
    .product-detail .color-options-block,
    .product-detail .certification-block {
        display: flex !important;
        flex-direction: row !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }

    .product-detail section .product-image-container {
        flex: 0 0 45% !important;
        max-width: 45% !important;
    }

    .product-detail section .product-description-text {
        flex: 1 !important;
        max-width: 55% !important;
    }
}

/* IKONY */
.product-detail .product-features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 25px !important;
    text-align: center !important;
}

.product-detail .feature-item img {
    width: 60px !important;
    height: auto !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}

/* CERTIFIKACE OBRÁZEK */
.product-detail .certification-block .product-image-container img {
    max-width: 250px !important;
}

/* ========================================================= */
/* 4. CTA BLOK (Tlačítko a kontakt)                          */
/* ========================================================= */

.product-detail .cta-block-single {
    text-align: center !important;
    background-color: #ffffff !important;
    padding: 50px 40px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-top: 30px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-detail .cta-button {
    display: inline-block !important; 
    max-width: 350px !important;
    margin: 20px auto !important;
    background-color: #9c262a !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
}

.product-detail .cta-link-secondary {
    display: block !important;
    color: #777777 !important;
    text-decoration: underline !important;
    margin-top: 15px !important;
}

/* ========================================================= */
/* 5. RESPONSIVITA PRO MOBILY                                */
/* ========================================================= */

@media (max-width: 768px) {
    .product-detail {
        padding: 0 10px !important; 
    }
    
    .product-detail section {
        padding: 20px 15px !important; 
    }

    .product-detail section .image-text-layout,
    .product-detail .color-options-block,
    .product-detail .certification-block {
        display: block !important;
    }

    .product-detail section .product-image-container,
    .product-detail section .product-description-text {
        max-width: 100% !important;
        width: 100% !important;
    }

    .product-detail .product-image-container img {
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }
}

/* OPRAVA PŘÍZNAKU DOPRAVA ZDARMA (Změna čtverečku na textový štítek) */
.flags .flag-free-shipping, 
.flags .flag.free-shipping {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;         /* Zruší fixní šířku čtverce */
    height: 26px !important;        /* Výška štítku */
    padding: 0 12px !important;     /* Mezery kolem textu */
    background-color: #28a745 !important; /* Pěkná zelená barva */
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    position: relative !important;
}

/* Vložení textu přímo do příznaku */
.flags .flag-free-shipping::before,
.flags .flag.free-shipping::before {
    content: "Doprava zdarma" !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Skrytí původní ikonky/obrázku uvnitř čtverečku, aby nepřekážela textu */
.flags .flag-free-shipping i, 
.flags .flag-free-shipping img {
    display: none !important;
}