﻿/* PDP Trust Bar */
.hhk-pdp-trust-bar {
    align-items: stretch;
    background: #f8f6f2;
    border-top: 1px solid var(--hhk-rule-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 24px;
    padding: 18px clamp(14px, 3vw, 28px);
    width: 100%;
}

.hhk-pdp-trust-item {
    align-items: center;
    display: flex;
    flex: 1 1 22%;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
}

.hhk-pdp-trust-icon {
    color: var(--hhk-holz-dark);
    font-size: 1.5rem;
    line-height: 1;
}

.hhk-pdp-trust-label {
    color: var(--hhk-ink);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.hhk-pdp-trust-bar--buybox {
    background: transparent;
    border-top: 1px solid var(--hhk-rule-soft);
    gap: .5rem;
    margin-top: 14px;
    padding: 12px 0 0;
}

.hhk-pdp-trust-bar--buybox .hhk-pdp-trust-item {
    flex: 1 1 30%;
    gap: 4px;
    padding: 0;
}

.hhk-pdp-trust-bar--buybox .hhk-pdp-trust-icon {
    font-size: 1.1rem;
}

.hhk-pdp-trust-bar--buybox .hhk-pdp-trust-label {
    font-size: .7rem;
}

@media (max-width: 767px) {
    .hhk-pdp-trust-item {
        flex-basis: 46%;
    }
}

@media (max-width: 360px) {
    .hhk-pdp-trust-label {
        white-space: normal;
    }
}

/* ================================================================
   TH-010 Produktdetailseite – CI-Anpassung (NOVA-Struktur, CSS-only)
   ================================================================ */

/* ── #1 Galerie ──────────────────────────────────────────────────── */
#image_wrapper .product-detail-image-topbar {
    display: none;
}

#image_wrapper.fullscreen .product-detail-image-topbar {
    display: block;
}

.product-detail-image-main-col {
    isolation: isolate;
    position: relative;
}

#gallery_wrapper {
    background: #fff;
    border: 1px solid var(--hhk-rule-soft);
    border-radius: var(--hhk-radius, 8px);
    overflow: hidden;
}

.gallery-with-action-main:has(#gallery_preview_wrapper) #gallery_wrapper {
    border-bottom: 0;
    border-radius: var(--hhk-radius, 8px) var(--hhk-radius, 8px) 0 0;
}

#gallery .square-image {
    background: #fff;
}

#gallery .product-image {
    object-fit: contain;
}

.product-thumbnails-wrapper {
    background: #fff;
    border: 1px solid var(--hhk-rule-soft);
    border-radius: 0 0 var(--hhk-radius, 8px) var(--hhk-radius, 8px);
    padding: 10px clamp(10px, 2vw, 16px);
}

#gallery_preview .square-image {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .15s ease;
}

#gallery_preview .square-image .inner {
    border-radius: inherit;
    overflow: hidden;
}

#gallery_preview .square-image:hover,
#gallery_preview .square-image.slick-current {
    border-color: var(--hhk-holz-dark);
}

#gallery_wrapper .slick-dots li button {
    background: var(--hhk-rule);
}

#gallery_wrapper .slick-dots li.slick-active button {
    background: var(--hhk-holz-dark);
}

.product-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 22px;
    top: 14px;
    z-index: 1000;
}

.product-actions .btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--hhk-rule-soft);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    color: var(--hhk-ink);
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
}

.product-actions .btn:hover,
.product-actions .btn:focus {
    background: #fff;
    border-color: var(--hhk-rule);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
    color: var(--hhk-holz-dark);
}

.product-actions .btn .fa,
.product-actions .btn .far,
.product-actions .btn .fas {
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

/* ── #2 Kaufbox: Titel, Bewertung, Artikelinfos ─────────────────── */
.product-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 900;
    line-height: 1.15;
}

.rating-wrapper .rating .fas.fa-star,
.rating-wrapper .rating .fas.fa-star-half-alt {
    color: var(--hhk-gold);
}

.rating-wrapper .rating .far.fa-star {
    color: var(--hhk-rule);
}

.info-essential {
    color: var(--hhk-ink-soft);
    font-size: 14px;
}

.info-essential li {
    margin-bottom: 4px;
}

.info-essential strong {
    color: var(--hhk-ink);
}

/* ── #3 Preis ────────────────────────────────────────────────────── */
.price_wrapper {
    border-top: 1px solid var(--hhk-rule-soft);
    margin-top: 14px;
    padding-top: 14px;
}

.price_wrapper .price.h1 {
    color: var(--hhk-burgrot);
    font-weight: 900;
}

.price_wrapper .price.special-price {
    color: var(--hhk-burgrot);
}

.price_wrapper .price_label.nowonly,
.price_wrapper .price_label.pricestarting {
    color: var(--hhk-ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.price_wrapper .price-note {
    color: var(--hhk-ink-soft);
    font-size: 13px;
}

.price_wrapper .text-danger {
    color: var(--hhk-ink-soft) !important;
}

.price_wrapper .discount .value {
    color: var(--hhk-burgrot);
    font-weight: 800;
}

/* ── #4 Varianten ────────────────────────────────────────────────── */
.variations dt {
    color: var(--hhk-ink);
    font-weight: 800;
}

.variations .custom-select,
.variations select.selectpicker {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 8px;
    color: var(--hhk-ink);
}

.variations .custom-select:focus {
    border-color: var(--hhk-holz-dark);
    box-shadow: none;
}

.variations label.variation {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 8px;
    color: var(--hhk-ink);
    transition: border-color .15s ease, background-color .15s ease;
}

.variations label.variation:hover {
    border-color: var(--hhk-rule);
}

.variations .custom-radio .custom-control-input:checked ~ label.variation,
.variations label.variation.active {
    background: var(--hhk-creme);
    border-color: var(--hhk-holz-dark);
}

.variations .swatches-not-in-stock,
.variations .swatches-sold-out {
    opacity: .5;
}

/* ── #5 Menge & Warenkorb-Button ─────────────────────────────────── */
#quantity-grp {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 999px;
    overflow: hidden;
}

#quantity-grp .btn,
#quantity-grp button,
#quantity-grp .quantity,
#quantity-grp .unit {
    background: #fff;
}

#quantity-grp .btn,
#quantity-grp button {
    border: 0;
    border-radius: 0;
    color: var(--hhk-ink);
}

#quantity-grp .quantity {
    border: 0;
    text-align: center;
}

.btn-basket-check {
    font-weight: 800;
}

.choose-variations {
    background: var(--hhk-paper-warm);
    border-color: var(--hhk-rule-soft);
    color: var(--hhk-ink-soft);
}

.purchase-info {
    background: var(--hhk-paper-warm);
    border-color: var(--hhk-rule-soft);
    color: var(--hhk-ink-soft);
    font-size: 13px;
}

/* ── #6 Lager & Lieferzeit ───────────────────────────────────────── */
.delivery-status .status {
    font-weight: 700;
}

.delivery-status .status-icon {
    color: var(--hhk-wald-dark);
    margin-right: 6px;
}

.delivery-status .status-1,
.delivery-status .status-2 {
    color: var(--hhk-wald-dark);
}

.delivery-status .status-3 {
    color: var(--hhk-burgrot);
}

.estimated-delivery {
    color: var(--hhk-ink-soft);
    font-size: 14px;
}

.question-on-item .btn-link {
    color: var(--hhk-ink-soft);
}

/* ── #7 Tabs & Beschreibung ──────────────────────────────────────── */
.tab-navigation .nav-tabs {
    border-bottom: 1px solid var(--hhk-rule-soft);
}

.tab-navigation .nav-link {
    color: var(--hhk-ink-soft);
    font-weight: 700;
}

.tab-navigation .nav-link.active {
    border-bottom: 2px solid var(--hhk-gold);
    color: var(--hhk-ink);
}

.desc {
    color: var(--hhk-ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.product-attributes .table {
    font-size: 14px;
}

.product-attributes .badge-primary {
    background: var(--hhk-creme-2);
    border-radius: 999px;
    color: var(--hhk-ink);
    font-weight: 700;
}

/* Mobile Accordion (Tabs-Ersatz) */
#tabAccordion .card,
#tabAccordion .card-header {
    background: #fff;
    border-color: var(--hhk-rule-soft);
}

#tabAccordion .card-header {
    color: var(--hhk-ink);
    font-weight: 800;
}

/* ── #8 Reviews ──────────────────────────────────────────────────── */
.reviews {
    background: #fff;
    border: 1px solid var(--hhk-rule-soft);
    border-radius: var(--hhk-radius);
    padding: clamp(16px, 3vw, 24px);
}

.reviews .card {
    border-color: var(--hhk-rule-soft);
}

.reviews .progress-bar {
    background-color: var(--hhk-gold);
}

.reviews p {
    color: var(--hhk-ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.reviews .btn-outline-primary {
    color: var(--hhk-gold);
    border-color: var(--hhk-gold);
    min-height: 48px;
}

.reviews .btn-outline-primary:hover,
.reviews .btn-outline-primary:focus {
    background-color: var(--hhk-gold);
    border-color: var(--hhk-gold);
    color: #fff;
}

.reviews .subheadline {
    color: var(--hhk-ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── #9 Cross-Sell-Slider ────────────────────────────────────────── */
.recommendations .hr-sect {
    color: var(--hhk-ink);
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 900;
    margin-bottom: 16px;
}

.recommendations .slick-arrow {
    background: #fff;
    border: 1px solid var(--hhk-rule-soft);
    color: var(--hhk-ink);
}

.recommendations .slick-dots li button {
    background: var(--hhk-rule);
}

.recommendations .slick-dots li.slick-active button {
    background: var(--hhk-holz-dark);
}

/* ── #10 Mobile ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .product-info-inner {
        padding-top: 16px;
    }

    .price_wrapper .price.h1 {
        font-size: 28px;
    }
}
