/*
 Theme Name:   oekostromhelden
 Theme URI:    http://oekostromhelden.de/oekostromhelden/
 Description:  Oekostromhelden Theme based on Storefront
 Author:       Frank Schneider
 Author URI:   http://www.oekostromhelden.de
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         mega-geil
 Text Domain:  oekostromhelden
*/

/*
 * Hinweis Relaunch 2026-12: Globale Regeln (Schrift, Farben, Layout, Header, Footer, Breadcrumb,
 * Produktgrid, Karussell) liegen jetzt in css/theme.css. Diese Datei enthält nur noch
 * Bausteine der Produktseite (Galerie, Lightbox, Variantenauswahl, Mengenfeld).
 */

/* Produkt-Zusammenfassung */
.custom-product-summary h1 { margin: 0 0 20px 0; font-size: 32px !important; font-family: "Noway", sans-serif !important; font-weight: 800 !important; line-height: 1.2; text-align: left !important; }
.custom-price { font-size: 28px !important; margin: 20px 0 !important; font-weight: 800 !important; font-family: "Noway", sans-serif !important; color: #333; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.custom-price del { color: #999; margin-right: 10px; font-weight: normal; font-size: 0.7em; }
.custom-price ins { text-decoration: none; color: #df1c2f; }
.custom-stock { color: #187f01; font-weight: 700; margin: 15px 0; font-family: "Noway", sans-serif; display: flex; align-items: center; gap: 8px; }
.custom-stock::before { content: "●"; font-size: 12px; }
.custom-stock.out-of-stock { color: #e2401c; }
.custom-short-description { margin: 20px 0; line-height: 1.6; font-size: 16px; color: #555; }

.custom-product-description { margin-top: 60px !important; border-top: 1px solid #eee; padding-top: 40px !important; }
.custom-product-description h2 { font-size: 24px; margin-bottom: 25px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.custom-product-description p { line-height: 1.8; margin-bottom: 20px; color: #444; }
.custom-product-description ul, .custom-product-description ol { margin-bottom: 25px; padding-left: 20px; line-height: 1.8; color: #444; }
.custom-product-description li { margin-bottom: 10px; }
.custom-product-description h3 { font-size: 20px; margin: 30px 0 15px; font-weight: 700; color: #333; }
.custom-product-description h4 { font-size: 18px; margin: 25px 0 12px; font-weight: 600; color: #444; }
.custom-product-description img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.custom-product-description table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 15px; }
.custom-product-description th, .custom-product-description td { padding: 12px 15px; border: 1px solid #eee; text-align: left; }
.custom-product-description th { background-color: #f9f9f9; font-weight: 700; }

/* Produktbilder & Galerie */
.custom-product-images { position: relative; width: 100%; }
.custom-product-images img.main-image {
    width: 100% !important;
    height: 500px !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    display: block !important;
    cursor: zoom-in !important;
    object-fit: contain !important;
    background: #fff;
}
@media (max-width: 768px) { .custom-product-images img.main-image { height: 350px !important; } }

.custom-product-gallery { display: flex !important; gap: 12px !important; margin-top: 15px !important; flex-wrap: wrap !important; }
.custom-product-gallery img { width: 80px !important; height: 80px !important; object-fit: cover !important; cursor: pointer !important; border: 2px solid #eee !important; border-radius: 4px !important; opacity: 0.7 !important; }
.custom-product-gallery img.active { border-color: #df1c2f !important; opacity: 1 !important; }

/* Lightbox */
.lightbox-modal { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background: rgba(0, 0, 0, 0.95) !important; z-index: 999999 !important; display: none; align-items: center !important; justify-content: center !important; }
.lightbox-content { position: relative !important; max-width: 90% !important; max-height: 85vh !important; }
.lightbox-content img { max-width: 100% !important; max-height: 75vh !important; object-fit: contain !important; }
.lightbox-close { position: absolute !important; top: 20px !important; right: 20px !important; color: white !important; font-size: 50px !important; background: none !important; border: none !important; cursor: pointer !important; }
.lightbox-prev, .lightbox-next { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; color: white !important; font-size: 60px !important; background: rgba(255,255,255,0.1) !important; border: none !important; padding: 10px 20px !important; cursor: pointer !important; border-radius: 8px !important; }
.lightbox-prev { left: 20px !important; }
.lightbox-next { right: 20px !important; }
.lightbox-thumbnails { position: absolute !important; bottom: 20px !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; gap: 10px !important; background: rgba(0,0,0,0.5) !important; padding: 10px !important; border-radius: 10px !important; }
.lightbox-thumb { width: 60px !important; height: 60px !important; object-fit: cover !important; cursor: pointer !important; border: 2px solid transparent !important; }
.lightbox-thumb.active { border-color: #df1c2f !important; }
@media (max-width: 768px) { .lightbox-prev, .lightbox-next { display: none !important; } }

/* Formulare & Buttons */
.external-product-form { background: transparent !important; padding: 0 !important; border: none !important; }
.variation-attribute { margin-bottom: 30px; }
.variation-attribute label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 12px; }
.radio-options { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-option { position: relative; padding: 12px 24px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.25s; font-weight: 600; font-size: 15px; color: #333; }
.radio-option:has(input:checked) { border-color: #df1c2f; background: #fffafa; color: #df1c2f; box-shadow: 0 4px 12px rgba(223, 28, 47, 0.1); }
.radio-option input { position: absolute; opacity: 0; }
.quantity-selector { display: flex; align-items: center; gap: 25px; margin: 35px 0; }
.quantity-input-wrapper { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; height: 54px; background: #fff; }
.qty-btn { width: 50px; height: 100%; background: #fcfcfc; border: none; font-size: 22px; color: #666; cursor: pointer; }
.qty-input { width: 70px; height: 100%; text-align: center; border: none; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; font-size: 18px; font-weight: 700; }
.add-to-cart-btn { width: 100%; height: 64px; background-color: #df1c2f !important; color: #fff !important; border: none; border-radius: 10px; font-size: 18px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 8px 24px rgba(223, 28, 47, 0.25); cursor: pointer; }

/* Spec Cards / Icon Container Product */
.icon_container_product {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.icon_container_product .element {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.icon_container_product .element:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.icon_container_product .element .oben {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon_container_product .element .oben i {
    font-size: 50px;
    color: #df1c2f; /* Markenfarbe */
    background: linear-gradient(135deg, #df1c2f 0%, #ff4d5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon_container_product .element .unten h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 700;
}

.icon_container_product .element .unten hr {
    width: 30px;
    height: 2px;
    background: #df1c2f;
    border: none;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.icon_container_product .element .spec-value {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: "Noway", sans-serif;
}

.icon_container_product .element .spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin-bottom: 5px;
}

.icon_container_product .element p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .icon_container_product {
        flex-direction: row;
        gap: 30px;
    }
}

