/*
    Theme Name: Hello Elementor Child
    Theme URI: https://landkaeserei-herzog.de
    Description: Child-Theme für Landkäserei Herzog Online-Shop
    Author: EHNES GmbH
    Author URI: https://ehnes.com
    Template: hello-elementor
    Version: 1.0.2
    Text Domain: hello-elementor-child
*/

/* =============================================
   PRODUKT-DETAILSEITE — #shop-detail
   Elementor Widget-ID für Tabs: 5174657
   ============================================= */

/* --- Tab-Navigation --- */
.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
}

.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs::before,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs::before {
    display: none !important;
}

/* Inaktive Tabs: hellgrau */
.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs li,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs li {
    background: #e0e0e0 !important;
    background-color: #e0e0e0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs li a,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs li a {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    color: #333333 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Aktiver Tab: dunkelblau */
.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs li.active,
.woocommerce div.product .elementor-element-5174657 .woocommerce-tabs ul.tabs li.active,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs li.active {
    background: #1a1a5e !important;
    background-color: #1a1a5e !important;
    border-bottom-color: #1a1a5e !important;
}

.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs li.active a,
.woocommerce div.product .elementor-element-5174657 .woocommerce-tabs ul.tabs li.active a,
body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    color: #ffffff !important;
}

/* Hover auf inaktiven Tabs */
.woocommerce .elementor-element-5174657 .woocommerce-tabs ul.wc-tabs li:not(.active):hover {
    background: #c8c8c8 !important;
    background-color: #c8c8c8 !important;
}

/* --- Tab-Content --- */
.woocommerce .elementor-element-5174657 .woocommerce-Tabs-panel,
body.single-product #shop-detail .woocommerce-tabs .woocommerce-Tabs-panel {
    border: none !important;
    padding: 30px 35px !important;
    position: relative;
}

/* =============================================
   BIO-SIEGEL PLATZHALTER
   (wird später über eigenes Modul befüllt)
   Ansprechen über: #shop-detail .brand-badges
   ============================================= */

#shop-detail .brand-badges {
    position: absolute;
    right: 0;
    top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

#shop-detail .brand-badges img {
    max-width: 90px;
    height: auto;
}

#shop-detail .brand-badges .badge-label {
    font-size: 12px;
    color: #333333;
    text-align: center;
    margin-top: 5px;
}

/* =============================================
   PRODUKT-KARTEN (Shop-Grid / Archive)
   ============================================= */

.woocommerce ul.products li.product {
    border: 1px solid #e0e0e0;
    padding: 15px;
    background: #ffffff;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    color: #333333;
    font-weight: 600;
}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #cccccc;
    font-size: 13px;
    padding: 6px 12px;
    text-transform: none;
    margin-top: 5px;
}

.woocommerce ul.products li.product a.button:hover {
    background-color: #1a1a5e;
    color: #ffffff;
    border-color: #1a1a5e;
}

/* =============================================
   PRODUKTE IM FOKUS — Karussell
   ============================================= */

.produkte-fokus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.produkte-fokus-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.slider-nav button {
    background: #1a1a5e;
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-nav button:hover {
    background: #2a2a7e;
}

.fokus-carousel-wrapper {
    overflow: hidden;
}

.fokus-carousel-wrapper .products {
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
}

.fokus-carousel-wrapper .products::-webkit-scrollbar {
    display: none;
}

.fokus-carousel-wrapper .products li.product {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    padding: 15px;
    background: #ffffff;
    text-align: center;
    list-style: none;
    width: auto !important;
    float: none !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 767px) {
    body.single-product #shop-detail .woocommerce-tabs ul.tabs.wc-tabs {
        flex-direction: column !important;
    }

    #shop-detail .brand-badges {
        position: relative;
        top: 0;
        right: 0;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
    }
}
