/* HEIMKINOWELTEN Produkt-Tabs Design – Performance-/Design-Version 1.0.5
   Die WooCommerce/Porto Tabs werden nicht ersetzt. Dieses CSS gestaltet nur den umliegenden Rahmen und die vorhandenen Tabs. */

.hkw-product-tabs-shell,
.hkw-product-tabs-shell * {
    box-sizing: border-box;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell {
    /*
     * Breiten-Fix 1.0.5:
     * Porto/WooCommerce-Tabs bleiben an ihrer nativen Position. Nur der äußere HKW-Rahmen
     * wird auf die normale Inhalts-/Containerbreite gezogen. Dadurch bleibt die Performance-
     * Optimierung erhalten, ohne has_product_tabs() oder apply_filters('woocommerce_product_tabs').
     */
    --hkw-tabs-container-width: min(calc(100vw - var(--porto-grid-gutter-width, 30px)), var(--porto-container-width, 1200px));
    position: relative;
    clear: both;
    display: block !important;
    float: none !important;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
    align-self: stretch !important;
    overflow: hidden;
    width: var(--hkw-tabs-container-width) !important;
    max-width: var(--hkw-tabs-container-width) !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    margin-right: calc(50% - (var(--hkw-tabs-container-width) / 2)) !important;
    margin-bottom: 42px !important;
    margin-left: calc(50% - (var(--hkw-tabs-container-width) / 2)) !important;
    padding: clamp(24px, 3vw, 40px) !important;
    border: 1px solid rgba(8, 118, 189, 0.16) !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(17, 43, 72, 0.10) !important;
    color: var(--hkw-tabs-dark, #1c1c1c) !important;
}

@supports not (width: min(100px, 100%)) {
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Der Rahmen und alle direkten Tab-Container nutzen die volle Breite innerhalb des HKW-Rahmens. */
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-tabs,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tabs-wrapper,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-tabs .tab-content,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-tabs .tab-pane,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .resp-tabs-container,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .resp-tabs-list {
    width: 100% !important;
    max-width: none !important;
}

.hkw-product-tabs-shell__stripe {
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(180deg, var(--hkw-tabs-accent, #0876bd), #004a9e);
    pointer-events: none;
}

.hkw-product-tabs-shell__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 36px);
    margin-bottom: 24px;
}

.hkw-product-tabs-shell__headline {
    min-width: 0;
    max-width: 850px;
}

.hkw-product-tabs-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(8, 118, 189, .10);
    color: var(--hkw-tabs-accent, #0876bd);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hkw-product-tabs-shell__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(8, 118, 189, .14);
}

.hkw-product-tabs-shell__title {
    margin: 0 0 10px !important;
    color: var(--hkw-tabs-dark, #1c1c1c) !important;
    font-size: clamp(20px, 2.4vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
}

.hkw-product-tabs-shell__description {
    color: #626a73;
    font-size: 15px;
    line-height: 1.65;
}

.hkw-product-tabs-shell__description p {
    margin: 0 0 .7em;
}

.hkw-product-tabs-shell__description p:last-child {
    margin-bottom: 0;
}

.hkw-product-tabs-shell__mark {
    flex: 0 0 auto;
    display: grid;
    min-width: 104px;
    min-height: 104px;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(8,118,189,.10), 0 18px 34px rgba(17,43,72,.08);
    color: var(--hkw-tabs-accent, #0876bd);
    text-align: center;
}

.hkw-product-tabs-shell__mark span {
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.hkw-product-tabs-shell__mark strong {
    display: block;
    max-width: 88px;
    margin-top: 6px;
    color: var(--hkw-tabs-dark, #1c1c1c);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.hkw-product-tabs-shell__content {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: none !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-tabs,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tabs-wrapper,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-Tabs-panel,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel {
    max-width: none !important;
}

/* Die echte WooCommerce/Porto Tab-Ausgabe innerhalb unseres Rahmens neutralisieren und dann gestalten. */
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content > .woocommerce-tabs,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content > .wc-tabs-wrapper,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content > .tab-content,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content > .resp-tabs-container,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell__content > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tabs {
    position: relative;
    z-index: 2;
    display: flex !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs::before,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs::after,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li::before,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li::after {
    display: none !important;
    content: none !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li {
    position: relative;
    display: inline-flex !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(8, 118, 189, .13) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.86) !important;
    box-shadow: 0 10px 22px rgba(17,43,72,.06) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li:hover {
    transform: translateY(-1px);
    border-color: rgba(8,118,189,.32) !important;
    box-shadow: 0 14px 28px rgba(17,43,72,.09) !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li.active,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li.current {
    border-color: var(--hkw-tabs-accent, #0876bd) !important;
    background: linear-gradient(135deg, var(--hkw-tabs-accent, #0876bd), #004a9e) !important;
    box-shadow: 0 14px 30px rgba(8,118,189,.26) !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    color: var(--hkw-tabs-dark, #1c1c1c) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    letter-spacing: .03em !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li.active a,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li.current a {
    color: #fff !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tab,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-Tabs-panel {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(18px, 2.2vw, 28px) !important;
    border: 1px solid rgba(8,118,189,.12) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(17,43,72,.07) !important;
    color: #2c2f33 !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel > h2:first-child,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-Reviews-title,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell #reply-title {
    margin: 0 0 16px !important;
    color: var(--hkw-tabs-dark, #1c1c1c) !important;
    font-size: clamp(19px, 2vw, 25px) !important;
    font-weight: 850 !important;
    line-height: 1.22 !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel p,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel li,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel td,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel th {
    color: #3f464d;
    font-size: 15px;
    line-height: 1.68;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel p {
    margin: 0 0 1em;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel a {
    color: var(--hkw-tabs-accent, #0876bd);
    font-weight: 750;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel img {
    height: auto;
    max-width: 100%;
    border-radius: 14px;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes {
    overflow: hidden;
    width: 100%;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes th,
.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes td {
    padding: 12px 14px !important;
    border: 0 !important;
    background: rgba(245,248,251,.98) !important;
    vertical-align: top !important;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes th {
    width: 32%;
    border-radius: 12px 0 0 12px;
    color: var(--hkw-tabs-dark, #1c1c1c);
    font-weight: 850;
}

.hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes td {
    border-radius: 0 12px 12px 0;
    font-style: normal !important;
}

@media (max-width: 720px) {
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell {
        --hkw-tabs-container-width: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 22px 20px !important;
        border-radius: 20px !important;
    }

    .hkw-product-tabs-shell__header {
        display: block;
        margin-bottom: 18px;
    }

    .hkw-product-tabs-shell__mark {
        display: none;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li {
        display: flex !important;
        width: 100% !important;
        border-radius: 14px !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell ul.tabs li a {
        width: 100% !important;
        justify-content: flex-start !important;
        min-height: 42px !important;
        white-space: normal !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .panel,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .wc-tab,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell .woocommerce-Tabs-panel {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes tbody,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes tr,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes th,
    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes td {
        display: block;
        width: 100% !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes th {
        border-radius: 12px 12px 0 0;
        padding-bottom: 4px !important;
    }

    .hkw-product-tabs-design-active.single-product div.product .hkw-product-tabs-shell table.shop_attributes td {
        border-radius: 0 0 12px 12px;
        padding-top: 4px !important;
    }
}
