/*
 * VENDYSHOP - PRODUKTOVÝ STYL - KONEČNÁ VERZE 🛠️
 * Zajišťuje fix layoutu (flex/grid) a barvy CTA sekce.
 */

.product-detail {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif;
    clear: both !important;
}

.product-detail section {
    background-color: #ffffff !important;
    padding: 30px 40px !important;
    margin-bottom: 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    width: auto !important;
    display: block !important;
    overflow: hidden !important;
}

.product-detail h2 {
    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;
}

/* ========================================================= */
/* KRITICKÉ OPRAVY LAYOUTU (FLEXBOX/GRID) - ZAJIŠTĚNÍ ZOBRAZENÍ VEDLE SEBE */
/* ========================================================= */

/* Zajištění, že hlavní sekce Obrázek/Text se zobrazuje vedle sebe */
.product-detail section .image-text-layout {
    display: flex !important;
    flex-direction: row !important; /* Vynucení řádku */
    gap: 40px !important;
    align-items: flex-start !important;
}

/* Zajištění, že se kontejner obrázku drží šířky */
.product-detail section .product-image-container {
    min-width: 40% !important; /* Důležité pro fix */
    flex: 0 0 45% !important;
    max-width: 45% !important;
}

.product-detail section .product-description-text {
    flex: 1 !important;
    max-width: 55% !important;
}

/* ----- SPECIFICKÝ FIX PRO JINÉ BARVY A ZDRAVOTNÍ NEZÁVADNOST ----- */
/* Jelikož Shoptet zřejmě používá jiné třídy pro tyto sekce, aplikujeme fix i na ně */

.product-detail .color-options-block,
.product-detail .certification-block {
    display: flex !important;
    flex-direction: row !important; /* Vynucení řádku */
    gap: 40px !important;
    align-items: flex-start !important;
}

/* ZVĚTŠENÍ IKON VE VLASTNOSTECH a OPRAVA GRIDU */
.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-bottom: 15px !important;
}

/* ZVĚTŠENÍ OBRÁZKU U CERTIFIKACE */
.product-detail .certification-block .product-image-container img {
    max-width: 250px !important; /* ZVĚTŠENO Z 180px NA 250px */
}

/* ========================================================= */
/* CTA KARTY - BARVY A INTERAKTIVITA S OBRÁZKY (BEZ ZMĚNY) */
/* ========================================================= */

.product-detail .cta-cards-three {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    text-align: center !important;
    background-color: #f7f7f7 !important;
    padding: 40px !important;
    border-radius: 8px !important;
    margin-top: 50px !important;
}

.product-detail .cta-card {
    padding: 30px 20px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

/* ZVĚTŠENÍ OBRÁZKU V CTA */
.product-detail .cta-card img {
    width: 90px !important;
    height: auto !important;
    margin-bottom: 20px !important;
}

/* 1. Nadpisy: Změna barvy na černou */
.product-detail .cta-card h3 {
    font-size: 1.5em !important;
    color: #333333 !important; /* Černá */
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* 2. & 3. TLAČÍTKA: BAREVNÉ SCHÉMA A INTERAKCE */
.product-detail .cta-button {
    display: inline-block !important;
    background-color: #9c262a !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    margin-top: 20px !important;
    border: none !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    transition: background-color 0.3s, transform 0.2s;
}

.product-detail .cta-button:hover {
    background-color: #771d20 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================================= */
/* RESPONSIVITA PRO MOBILY */
/* ========================================================= */

@media (max-width: 768px) {
    /* Stackování prvků pod sebou na mobilu */
    .product-detail section .image-text-layout,
    .product-detail .color-options-block,
    .product-detail .certification-block {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .product-detail section .product-image-container,
    .product-detail section .product-description-text {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .product-detail .cta-cards-three {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
}