/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 5.5.2.1779457150
Updated: 2026-05-22 14:39:10

*/

/* ========================================================================
   DIVI CHILD THEME CSS - MINIBYDLÍK (WOOCOMMERCE PRODUKT)
======================================================================== */

/* 1. Hlavní Grid rozložení pro náš vlastní wrapper */
.mb-custom-product-layout {
    display: grid;
    grid-template-columns: 100%;
    gap: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (min-width: 980px) {
    .mb-custom-product-layout {
        grid-template-columns: calc(50% - 20px) calc(50% - 20px);
        padding: 50px;
    }
}

/* 2. Levý sloupec (Galerie obrázků) */
.mb-custom-product-layout .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.mb-custom-product-layout .woocommerce-product-gallery__image img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 3. Pravý sloupec (Texty a shrnutí) */
.mb-custom-product-layout .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Nadpis a Cena */
.mb-custom-product-layout .product_title {
    color: #184381 !important; /* Firemní modrá */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}
.mb-custom-product-layout p.price,
.mb-custom-product-layout span.price {
    color: #8cc63f !important; /* Firemní zelená */
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    display: block;
}
.mb-custom-product-layout p.price del {
    color: #999 !important;
    font-size: 1.2rem;
    font-weight: normal;
    margin-right: 10px;
}

/* Krátký popis */
.mb-custom-product-layout .woocommerce-product-details__short-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 4. Konfigurátor (PEWC plugin) */
.pewc-group-heading-wrapper { display: none !important; }
ul.pewc-product-extra-groups { padding: 0 !important; list-style: none; width: 100%; margin-bottom: 20px; }
.pewc-product-extra-groups li {
    background: #fbfbfb;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    width: 100%;
}
.pewc-preset-style .pewc-item-field-wrapper h4 {
    margin: 0 auto 0 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.pewc-preset-style .pewc-checkbox-form-label, 
.pewc-preset-style .pewc-item-field-wrapper {
    display: flex;
    align-items: center;
}
.pewc-preset-style .pewc-item-field-wrapper span.pewc-theme-element {
    border: 1px solid #cacaca;
    background: #fff;
    border-radius: 4px;
}
select.pewc-form-field {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 15px;
}

/* 5. Tlačítko přidat do košíku & Množství */
.mb-custom-product-layout form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}
.mb-custom-product-layout .quantity input.qty {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1.1rem;
}
.mb-custom-product-layout .button.single_add_to_cart_button {
    background-color: #8cc63f !important;
    border: 2px solid #8cc63f !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}
.mb-custom-product-layout .button.single_add_to_cart_button:hover {
    background-color: transparent !important;
    color: #8cc63f !important;
}

/* 6. Vizuál - červené přeškrtnutí (tvůj původní oblíbený kód) */
.overline-red { position: relative; display: inline-block; }
.overline-red::before {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 3px;
    background-color: #e3001b; transform: translateY(-50%) rotate(-8deg); pointer-events: none; z-index: 10;
}