/* =========================================
   CUSTOM OVERRIDES (JTL NOVA CHILD)
   ========================================= */


/* =========================================
   EQUAL-HEIGHT PRODUCT CARDS
   ========================================= */

.product-list.layout-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 2rem !important;          /* Abstand zwischen Zeilen — ersetzt margin-bottom */
}

/* WICHTIG: margin-bottom auf ALLEN Wrappern neutralisieren!
   my-nova.css setzt #product-list .product-wrapper:not(:last-child) { margin-bottom: 4rem }
   → letzte Card hat 0 Margin, andere 4rem → unterschiedliche Content-Höhen im Flex-Row.
   Wir nutzen stattdessen row-gap auf dem Container. */
#product-list .product-wrapper,
.product-list .product-wrapper {
    display: flex !important;
    margin-bottom: 0 !important;
    height: auto !important;           /* JTL-JS setzt inline height → muss überschrieben werden */
}

.product-list .productbox {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
}

/* NOVA setzt .productbox.productbox-hover.productbox-column { height:100% }
   im @media(min-width:768px) und im Hover position:absolute auf .productbox-inner.
   → Quick-Buy Content wird abgeschnitten.
   !important noetig weil NOVA's Regel hoehere Spezifitaet hat (3 Klassen). */
#product-list .productbox.productbox-hover.productbox-column {
    height: auto !important;
}

#product-list .productbox.productbox-hover.productbox-column:hover .productbox-inner.pos-abs,
#product-list .productbox.productbox-hover.productbox-column:focus .productbox-inner.pos-abs,
#product-list .productbox.productbox-hover.productbox-column.focus .productbox-inner.pos-abs {
    position: relative !important;
}

/* Overflow sichtbar halten */
#product-list .productbox,
#product-list .productbox .productbox-inner {
    overflow: visible !important;
}

.product-list .productbox > form {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-list .productbox .productbox-inner {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Row als Flex-Column statt Row+Wrap — damit flex-grow auf letzter Spalte greift */
.product-list .productbox .productbox-inner > .row {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

/* Bootstrap col-12 Reset: im Column-Kontext nur Content-Höhe, volle Breite */
.product-list .productbox .productbox-inner > .row > [class*="col"] {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Letzte Spalte füllt restliche Höhe → margin-top:auto auf quickbuy greift */
.product-list .productbox .productbox-inner > .row > [class*="col"]:last-child {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Quick-Buy immer ganz unten in der Card */
.productbox-quickbuy {
    margin-top: auto !important;
    padding: 0.5rem 0 0.25rem !important;
}


/* =========================================
   QUICK-BUY: Produktuebersicht
   Mobile First — hohe Spezifizitaet statt !important
   Touch-Targets mind. 44px (WCAG 2.5.5)
   ========================================= */

/* --- Varianten-Pills Container --- */
#product-list .productbox .productbox-quickbuy .quickbuy-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
}

/* --- Einzelne Pill --- */
#product-list .productbox .productbox-quickbuy .quickbuy-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #fff;
    color: #333;
    text-decoration: none;
    min-width: 2.2rem;
    min-height: 32px;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    user-select: none;
    box-sizing: border-box;
}

#product-list .productbox .productbox-quickbuy .quickbuy-pill:hover {
    border-color: var(--primary, #6b7280);
    text-decoration: none;
    color: #333;
}

#product-list .productbox .productbox-quickbuy .quickbuy-pill.active {
    border-color: var(--primary, #6b7280);
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
}

#product-list .productbox .productbox-quickbuy .quickbuy-more {
    border-style: dashed;
    opacity: 0.6;
    font-size: 0.72rem;
}

#product-list .productbox .productbox-quickbuy .quickbuy-more:hover {
    opacity: 1;
}

/* --- Menge + Warenkorb-Zeile --- */
#product-list .productbox .productbox-quickbuy .quickbuy-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

/* --- Mengen-Stepper --- */
#product-list .productbox .productbox-quickbuy .quickbuy-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
    flex-shrink: 0;
    flex-grow: 0;
    background: #fff;
}

#product-list .productbox .productbox-quickbuy .quickbuy-qty-btn {
    background: none;
    border: none;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: #555;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    height: 100%;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    outline: none;
}

#product-list .productbox .productbox-quickbuy .quickbuy-qty-btn:hover {
    background: var(--light, #f5f7fa);
    color: var(--primary, #6b7280);
}

#product-list .productbox .productbox-quickbuy .quickbuy-qty-input {
    width: 2rem;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    height: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
    -webkit-appearance: none;
    background: transparent;
    min-width: 0;
    max-width: 2.2rem;
    flex-shrink: 0;
    box-shadow: none;
    outline: none;
    border-radius: 0;
}

#product-list .productbox .productbox-quickbuy .quickbuy-qty-input::-webkit-inner-spin-button,
#product-list .productbox .productbox-quickbuy .quickbuy-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#product-list .productbox .productbox-quickbuy .quickbuy-qty-input:focus {
    outline: none;
    box-shadow: none;
}

/* --- Warenkorb-Button — volle Breite ausfuellen --- */
#product-list .productbox .productbox-quickbuy .quickbuy-cart {
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
    border: none;
    border-radius: 8px;
    height: 36px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    min-width: 0;
    padding: 0 0.6rem;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    outline: none;
}

#product-list .productbox .productbox-quickbuy .quickbuy-cart:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

#product-list .productbox .productbox-quickbuy .quickbuy-cart:active {
    transform: scale(0.96);
}

/* --- "Zum Artikel" Link-Button (Alternative) --- */
#product-list .productbox .productbox-quickbuy .quickbuy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1.4;
    min-height: 36px;
}

#product-list .productbox .productbox-quickbuy .quickbuy-link:hover {
    opacity: 0.85;
    color: var(--dark, #333);
    text-decoration: none;
}

/* --- Spinner --- */
#product-list .productbox .productbox-quickbuy .quickbuy-cart .fa-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== Tablet (>=576px) ===== */
@media (min-width: 576px) {
    #product-list .productbox .productbox-quickbuy .quickbuy-pill {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        min-height: 34px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-qty {
        height: 38px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-qty-input {
        width: 2rem;
        font-size: 0.85rem;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-cart {
        height: 38px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-link {
        font-size: 0.85rem;
        padding: 0.45rem 1.2rem;
        min-height: 38px;
    }
}

/* ===== Desktop (>=992px) ===== */
@media (min-width: 992px) {
    #product-list .productbox .productbox-quickbuy .quickbuy-pill {
        padding: 0.35rem 0.8rem;
        font-size: 0.82rem;
        min-height: 36px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-variants {
        gap: 0.35rem;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-qty {
        height: 40px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-qty-btn {
        padding: 0 0.6rem;
        min-width: 36px;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-qty-input {
        width: 2.2rem;
        font-size: 0.88rem;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-cart {
        height: 40px;
        font-size: 1rem;
    }

    #product-list .productbox .productbox-quickbuy .quickbuy-link {
        font-size: 0.88rem;
        padding: 0.5rem 1.4rem;
        min-height: 40px;
    }
}


/* =========================================
   PRODUCT DETAIL PAGE — Mobile First
   Alle Farben über CSS-Variablen (--primary, --secondary, --dark, --light)
   Nur NOVAChild — NOVA Original bleibt unberührt
   ========================================= */

/* --- 1. Produkttitel --- */
.product-info-inner .product-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--dark, #333);
}

/* Artikelnummer ausblenden */
.product-info-inner .info-essential .product-sku {
    display: none;
}

/* --- 2. Meta-Info (Kategorie, Hersteller) als Inline-Pills --- */
.product-info-inner .info-essential {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    margin-bottom: 0.8rem;
}

.product-info-inner .info-essential li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--light, #f5f7fa);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--gray, #707070);
    line-height: 1.5;
}

.product-info-inner .info-essential li strong {
    font-weight: 500;
    color: var(--gray-dark, #9b9b9b);
}

.product-info-inner .info-essential li a {
    color: var(--dark, #525252);
    text-decoration: none;
}

.product-info-inner .info-essential li a:hover {
    color: var(--primary, #6b7280);
}

/* --- 3. Kurzbeschreibung --- */
.product-info-inner .shortdesc {
    background: var(--light, #f5f7fa);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-darker, #525252);
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary, #6b7280);
}

/* --- 4. Varianten-Selector — Moderne Pills --- */
.product-info-inner .variations .variation-wrapper {
    margin-bottom: 0.5rem;
}

/* Label "Stück" */
.product-info-inner .variations dt,
.product-info-inner .variations .js-btn-slider-wrapper {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray, #707070);
    margin-bottom: 0.4rem;
}

/* Varianten-Container (swatches) */
.product-info-inner .variations dd.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Fix: Slider-Wrapper Layout (form-row negative margins überschreiben) */
.product-info-inner .variations .js-slider-items,
.product-info-inner .variations .form-row.swatches {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.product-info-inner .variations .js-slider-item,
.product-info-inner .variations .form-row.swatches > .col-auto {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0;
}

/* Variation-Label als Pill-Button (swatches-text Layout) */
.product-info-inner .variations .variation.swatches,
.product-info-inner .variations label.variation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--dark, #333);
    text-align: center;
    min-width: 3.5rem;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Aufpreis-Badge + sr-only ausblenden */
.product-info-inner .variations .variation.swatches .variation-badge,
.product-info-inner .variations label.variation .variation-badge {
    display: none !important;
}

.product-info-inner .variations .variation.swatches .sr-only,
.product-info-inner .variations label.variation .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Hover */
.product-info-inner .variations .variation.swatches:hover,
.product-info-inner .variations label.variation:hover {
    border-color: var(--primary, #6b7280);
    background: rgba(107, 114, 128, 0.05);
}

/* Active/Selected */
.product-info-inner .variations .variation.swatches.active,
.product-info-inner .variations label.variation.active {
    border-color: var(--primary, #6b7280);
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* (Badge ist ausgeblendet, Active-Styles nicht nötig) */

/* Nicht verfügbare Varianten */
.product-info-inner .variations .variation.swatches.not-available,
.product-info-inner .variations label.variation.not-available {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Fallback: custom-radio Varianten (dropdown/radio Layout) */
.product-info-inner .variations .custom-radio {
    padding-left: 0;
    margin-bottom: 0;
}

.product-info-inner .variations .custom-radio .custom-control-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--dark, #333);
}

.product-info-inner .variations .custom-radio .custom-control-label::before,
.product-info-inner .variations .custom-radio .custom-control-label::after {
    display: none !important;
}

.product-info-inner .variations .custom-radio .custom-control-label:hover {
    border-color: var(--primary, #6b7280);
}

.product-info-inner .variations .custom-radio .custom-control-input:checked ~ .custom-control-label {
    border-color: var(--primary, #6b7280);
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* --- 5. Preis — Prominent --- */
.product-info-inner .price_wrapper {
    padding: 0.8rem 0;
    margin-bottom: 0.3rem;
    border-top: 1px solid #eee;
}

.product-info-inner .price_wrapper .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark, #333);
    line-height: 1.2;
}

.product-info-inner .price_wrapper .price .text-muted,
.product-info-inner .price_wrapper .price .from-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray, #707070);
}

.product-info-inner .price-note,
.product-info-inner .price_wrapper .price-note {
    font-size: 0.73rem;
    color: var(--gray-dark, #9b9b9b);
    margin-top: 0.15rem;
}

.product-info-inner .price-note a {
    color: var(--gray-dark, #9b9b9b);
    text-decoration: underline;
}

/* Streichpreis */
.product-info-inner .price_wrapper .old-price {
    font-size: 1rem;
    color: var(--gray-dark, #9b9b9b);
    text-decoration: line-through;
}

/* --- 6. Verfügbarkeit — Badge-Style --- */
.product-info-inner .delivery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Grüner Status (verfügbar) */
.product-info-inner .delivery-status .status-1,
.product-info-inner .delivery-status .status-2 {
    color: #2e7d32;
}

.product-info-inner .delivery-status:has(.status-1),
.product-info-inner .delivery-status:has(.status-2) {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Gelber Status (knapper Bestand) */
.product-info-inner .delivery-status .status-0 {
    color: #e65100;
}

.product-info-inner .delivery-status:has(.status-0) {
    background: #fff3e0;
    color: #e65100;
}

/* Lieferzeit-Text */
.product-info-inner .estimated-delivery {
    font-size: 0.73rem;
    color: var(--gray, #707070);
    margin-top: 0.15rem;
}

/* --- 7. Menge + Warenkorb --- */
.product-info-inner .form-counter {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.product-info-inner .form-counter .btn {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark, #525252);
    padding: 0.4rem 0.7rem;
    transition: background 0.15s;
    line-height: 1;
}

.product-info-inner .form-counter .btn:hover {
    background: var(--light, #f5f7fa);
    color: var(--primary, #6b7280);
}

.product-info-inner .form-counter .form-control {
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    width: 3rem;
    padding: 0.4rem 0;
    box-shadow: none;
}

/* Warenkorb-Button (überschreibt auch .btn-primary.btn-block) */
.product-info-inner button[name="inWarenkorb"],
#buy_form .product-buy button[name="inWarenkorb"],
#buy_form .basket-form-inline .btn-primary.btn-block {
    background: var(--primary, #6b7280) !important;
    color: var(--dark, #333) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.product-info-inner button[name="inWarenkorb"]:hover,
#buy_form .product-buy button[name="inWarenkorb"]:hover,
#buy_form .basket-form-inline .btn-primary.btn-block:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

.product-info-inner button[name="inWarenkorb"]:active,
#buy_form .product-buy button[name="inWarenkorb"]:active {
    transform: translateY(0);
}

/* --- 8. "Frage zum Artikel" — dezenter --- */
.product-info-inner .question-btn,
.product-info-inner [data-toggle="modal"][data-target*="question"] {
    font-size: 0.78rem;
    color: var(--gray, #707070);
    background: transparent;
    border: none;
    padding: 0.3rem 0;
    text-decoration: underline;
    transition: color 0.2s;
}

.product-info-inner .question-btn:hover,
.product-info-inner [data-toggle="modal"][data-target*="question"]:hover {
    color: var(--primary, #6b7280);
}

/* --- 9. Beschreibungs-Tabs --- */
.tab-navigation {
    margin-top: 2rem;
}

#product-tabs {
    border-bottom: 2px solid var(--light, #f5f7fa);
    gap: 0;
}

#product-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray, #707070);
    padding: 0.75rem 1.2rem;
    transition: color 0.2s, border-color 0.2s;
    background: transparent;
}

#product-tabs .nav-link:hover {
    color: var(--dark, #333);
    border-bottom-color: var(--gray-medium, #ebebeb);
}

#product-tabs .nav-link.active {
    color: var(--dark, #333);
    border-bottom-color: var(--primary, #6b7280);
    background: transparent;
}

/* Tab-Content */
#tab-content-product-tabs {
    padding: 1.5rem 0;
}

#tab-content-product-tabs .desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--gray-darker, #525252);
}

#tab-content-product-tabs .desc p {
    margin-bottom: 0.8rem;
}

#tab-content-product-tabs .desc ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

#tab-content-product-tabs .desc ul li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

#tab-content-product-tabs .desc b,
#tab-content-product-tabs .desc strong {
    color: var(--dark, #333);
    font-weight: 700;
}

/* Scroll-Offset für Tabs (damit Header nicht verdeckt) */
.tab-navigation {
    scroll-margin-top: 80px;
}

/* --- 10. Bildgalerie --- */
#image_wrapper #gallery .product-image .inner img,
#image_wrapper .square-image .inner img {
    border-radius: 12px;
}

#image_wrapper .product-thumbnails .square-image .inner img {
    border-radius: 6px;
    transition: opacity 0.2s;
}

#image_wrapper .product-thumbnails .slick-current .square-image .inner img {
    outline: 2px solid var(--primary, #6b7280);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Wishlist/Compare Icons im Bild — prominent und immer sichtbar */
.product-gallery .product-actions {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-gallery .product-actions .btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: all 0.2s;
    opacity: 1 !important;
    font-size: 1rem;
}

.product-gallery .product-actions .btn:hover {
    background: var(--primary, #6b7280);
    transform: scale(1.1);
}

.product-gallery .product-actions .btn.wishlist {
    color: #e74c3c;
}

.product-gallery .product-actions .btn.wishlist:hover {
    background: #e74c3c;
    color: #fff;
}

/* --- Fix: JTL hidden validation button --- */
#buy_form .btn-hidden,
#buy_form .btn-hidden-default {
    display: none !important;
}

/* --- 11. Alert-Box (Variationshinweis) --- */
.product-info-inner .alert {
    border-radius: 10px;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    border: none;
    background: var(--light, #f5f7fa);
    color: var(--gray-darker, #525252);
}

/* --- 12. Allgemeine Spacing & Separatoren --- */
.product-info-inner .product-offer > .row {
    margin-bottom: 0.3rem;
}

/* Breadcrumb dezenter */
.breadcrumb-container {
    font-size: 0.78rem;
}

.breadcrumb-container .breadcrumb-item a {
    color: var(--gray, #707070);
}

.breadcrumb-container .breadcrumb-item.active {
    color: var(--dark, #333);
}


/* ===== Tablet (>=576px) ===== */
@media (min-width: 576px) {
    .product-info-inner .product-title {
        font-size: 1.55rem;
    }

    .product-info-inner .price_wrapper .price {
        font-size: 2.2rem;
    }

    #buy_form button[name="inWarenkorb"] {
        width: auto;
        min-width: 200px;
    }
}


/* ===== Desktop (>=992px) ===== */
@media (min-width: 992px) {
    .product-info-inner .product-title {
        font-size: 1.8rem;
    }

    .product-info-inner .price_wrapper .price {
        font-size: 2.4rem;
    }

    .product-info-inner .variations .custom-radio .custom-control-label {
        padding: 0.45rem 1.2rem;
        font-size: 0.85rem;
    }

    #tab-content-product-tabs {
        padding: 2rem 0;
    }

    #tab-content-product-tabs .desc {
        font-size: 0.95rem;
        max-width: 800px;
    }
}


/* ===== Mobile Sticky Add-to-Cart Bar (< 992px) ===== */
@media (max-width: 991.98px) {
    .product-buy .basket-form-inline,
    #add-to-cart .basket-form-inline {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
        padding: 0.6rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin: 0;
    }

    .product-buy .basket-form-inline .form-counter,
    #add-to-cart .basket-form-inline .form-counter {
        flex-shrink: 0;
    }

    .product-buy .basket-form-inline .btn-primary,
    #add-to-cart .basket-form-inline .btn-primary {
        flex: 1;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
        width: auto;
    }

    /* Padding unten am Body damit Content nicht vom Sticky Bar verdeckt wird */
    body:has(#buy_form) {
        padding-bottom: 70px;
    }
}


/* =========================================
   CONTACT SIDEBAR — Floating Buttons
   ========================================= */

.contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1025;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--primary, #6b7280);
    color: var(--dark, #333);
    text-decoration: none;
    font-size: 1.25rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-sidebar-btn:first-child {
    border-radius: 8px 0 0 0;
}

.contact-sidebar-btn:last-child {
    border-radius: 0 0 0 8px;
}

.contact-sidebar-btn:only-child {
    border-radius: 8px 0 0 8px;
}

.contact-sidebar-btn:hover {
    transform: translateX(-4px);
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.15);
    color: var(--dark, #333);
    text-decoration: none;
}

.contact-sidebar-btn:focus {
    outline: none;
    color: var(--dark, #333);
    text-decoration: none;
}

/* ===== Contact Sidebar Mobile ===== */
@media (max-width: 991.98px) {
    .contact-sidebar-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
