/* ==========================================================================
   1. GLOBALE ELEMENTEN & BREADCRUMBS
   ========================================================================== */

/* Basis styling voor breadcrumbs (binnen Elementor) */
.woocommerce-breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}
.woocommerce-breadcrumb a {
    color: #333;
    text-decoration: none;
}

/* FIX: Verberg de dubbele (Astra) breadcrumb */
/* We gebruiken de '>' selector om alleen de breadcrumb te pakken die DIRECT in de container staat */
.single-product .ast-container > nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Animatie voor badges & countdown */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   ===== SINGLE PRODUCT PAGE                                             ====
   ========================================================================== */

/* ==========================================================================
   2. BUY BOX (FILIAAL BADGES, COUNTDOWN & KNOPPEN)
   ========================================================================== */

/* AI Generated Product USP's */
.single-product-highlights-wrapper {
    gap: 4px 12px !important;
}

/* Add to Cart Section */
.variations_form {
    font-size: 90%;
}

/* Container Layout: Forceer flex-wrap zodat badges op eigen regel komen */
.woocommerce-variation-add-to-cart, 
.single_variation_wrap .variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
}

/* --- A. Voorraad Badge (Groen/Oranje) --- */
#bcs-badges-container {
    width: 100% !important;        
    flex-basis: 100% !important;   
    margin-bottom: 5px !important;
    min-height: auto !important;   
    display: block !important;
}

#bcs-dynamic-badge-container {
    display: inline-block;
}

.bcs-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.bcs-stock-badge, .bcs-stock-badge-archive {
    background-color: #28a745;
    position: relative;
    padding-left: 30px; /* Ruimte voor vinkje */
}

/* Voeg een vinkje toe voor de groene voorraad badge */
.bcs-stock-badge::before {
    content: "\2713"; /* Unicode voor een vinkje */
    position: absolute;
    left: 4px;
    top: -19px; /* kan ook top: 50%; transform: translateY(-50%) <- verticaal uitlijnen */
    margin-right: 6px;
    color: orange;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,0.5);
}

.bcs-occasion-badge {
    background-color: #ff8c00;
}



/* --- Nieuwe Badge Stijlen --- */

/* Neutrale info badge (voor als er nog niets gekozen is) */
.bcs-info-badge {
    background-color: #6c757d; /* Neutraal grijs */
    color: #fff;
    /* Geen vinkje (::before) hier! */
}

/* Oranje badge voor 'Op aanvraag' (Zonder vinkje) */
.bcs-warning-badge {
    background-color: #f0ad4e; /* Oranje */
    color: #fff;
}



/* Loop positionering (Archief pagina's) */
.woocommerce-loop-product__link .bcs-badge { position: absolute; top: 10px; z-index: 10; }
.woocommerce-loop-product__link .bcs-stock-badge-archive { left: 10px; }
.woocommerce-loop-product__link .bcs-occasion-badge { right: 10px; }
.woocommerce-loop-product__link .bcs-occasion-badge:only-child { left: 10px; right: auto; }

/* --- B. Countdown Timer (Lichtgroene balk) --- */
#bcs-countdown-container {
    width: 100% !important;        
    flex-basis: 100% !important;   /* Verplicht een eigen regel */
    margin-bottom: 15px !important; /* Ruimte tot de knoppen */
    padding: 8px 12px;             /* Jouw compacte padding */
    border-radius: 4px;
    border-left: 3px solid #28a745; /* Jouw groene randje links */
    background: #e6f4ea;
    box-sizing: border-box;       
    line-height: 1.4;
    font-size: 13px;               /* Jouw lettergrootte */
    color: #155724;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* 'poppen' */
    animation: fadeIn 0.4s ease-out forwards;
}

.bcs-countdown-time {
    font-weight: bold;
    font-size: 1.1em;
}

/* --- C. Aantal & Bestelknop --- */
/* De Aantal Selector (Input veld) */
.woocommerce-variation-add-to-cart .quantity {
    margin-right: 10px !important; /* Ruimte rechts van het vakje */
    margin-bottom: 0 !important;   /* Geen marge onder */
}

/* Add to Cart Button (Gele button) */
.woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    flex-grow: 1;                  /* Vul de rest van de breedte */
    margin-bottom: 0 !important;
}

/* ==========================================================================
   3. CONTENT BLOKKEN (COOLBLUE STIJL)
   ========================================================================== */

/* De tabbladen zelf */
.bcs-stacked-content-tabs li {
    margin: 0 !important;
    padding: 12px !important;
}
.bcs-stacked-content-tabs li:hover {
    background: lightyellow;
    font-weight: 500;
}

/* De content blokken */
.bcs-content-block {
    padding: 40px 0;
    scroll-margin-top: 100px; /* Zorgt dat de sticky header de tekst niet overlapt bij klikken */
}

/* De titels van de blokken */
.bcs-block-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* De inhoud van de blokken */
.bcs-block-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Verberg dubbele H2's binnen de content blokken */
.bcs-block-content > h2 {
    display: none;
}

/* De scheidingslijn tussen de blokken */
.bcs-block-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

/* ==========================================================================
   4. SPECIFIEKE ONDERDELEN
   ========================================================================== */

/* --- Pros & Cons (Plus- en minpunten) Blok --- */
.bcs-pros-cons {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-left: 4px solid #46b450;
}

.bcs-pros-cons h3 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.bcs-pros-cons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bcs-pros-cons-col {
    flex: 1;
    min-width: 200px;
}

.bcs-pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bcs-pros-cons-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.bcs-pros-cons-icon {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.bcs-icon-plus { color: #46b450; margin-right: 8px; }
.bcs-icon-minus { color: #d63638; margin-right: 10px; }

/* --- TABELLEN STYLING (Specificaties & Extra Informatie) --- */

/* Target zowel jouw custom tabel (.bcs-specs-table) als de standaard WooCommerce tabel (.shop_attributes) */
.bcs-specs-table,
table.shop_attributes {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    font-size: 15px;
    border: 1px solid #e2e4e7; /* Rand om de hele tabel */
    font-family: inherit;
    background-color: #fff; /* Geforceerd wit */
}

/* Algemene cel styling voor BEIDE tabellen */
.bcs-specs-table th, .bcs-specs-table td,
table.shop_attributes th, table.shop_attributes td {
    text-align: left;
    padding: 12px 15px !important;
    border: 1px solid #e2e4e7; /* Het 'rooster' effect (de lijntjes) */
    vertical-align: middle;
    font-style: normal !important; /* GEEN cursieve tekst meer */
}

/* Verwijder extra marge/padding in <p> tags binnen tabellen */
table.shop_attributes th p, table.shop_attributes td p {
    margin: 0;
    padding: 0 !important;
}

/* Hoofding van de tabel (Specificaties) */
.bcs-specs-table .bcs-section-header th[colspan="2"] {
    font-weight: 800;
}

/* Linkerkolom (Labels: Kleur, Framemaat, etc.) */
.bcs-specs-table th,
table.shop_attributes th {
    font-weight: 600;
    color: #333;
    width: 25% !important;
    min-width: 250px; /* Zorgt dat de labels niet te smal worden */
    background-color: #fff; /* Wit */
}

/* Rechterkolom (Waardes) */
.bcs-specs-table td,
table.shop_attributes td {
    color: #666;
    background-color: #fff; /* Wit */
}

/* Specifieke fix: WooCommerce zet waardes vaak in <p> tags die cursief zijn. Dit forceert ze recht. */
table.shop_attributes td p {
    font-style: normal !important;
    margin: 0;
}

/* --- De Tussenkopjes (Alleen van toepassing op Specificaties tabel) --- */
.bcs-specs-table tr.bcs-section-header th {
    background-color: #f0f4f8; /* Lichtblauw */
    color: #1a202c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    padding-top: 12px;
    padding-bottom: 12px;
    width: 100%;
    border-bottom: 1px solid #dce3eb; 
}

/* Subtiele Hover (op beide tabellen) */
.bcs-specs-table tr:not(.bcs-section-header):hover td,
.bcs-specs-table tr:not(.bcs-section-header):hover th,
table.shop_attributes tr:hover td,
table.shop_attributes tr:hover th {
    background-color: #fafafa;
}

/* Mobiele aanpassingen */
@media (max-width: 768px) {
    .bcs-specs-table th, .bcs-specs-table td,
    table.shop_attributes th, table.shop_attributes td {
        padding: 8px 10px;
        font-size: 14px;
    }
    .bcs-specs-table th, table.shop_attributes th {
        width: 45%;
    }
}

/* --- AI Short Description / Product USP's --- */

/* De lijst zelf */
.woocommerce-product-details__short-description ul {
    list-style: none !important; /* Weg met standaard bolletjes */
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.woocommerce-product-details__short-description li {
    position: relative;
    padding-left: 24px; /* Ruimte maken voor het vinkje */
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
    color: #555;
}

/* Het groene vinkje ervoor */
.woocommerce-product-details__short-description li::before {
    content: "\2713"; /* Unicode vinkje */
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745; /* Zelfde groen als je voorraad badge */
    font-weight: bold;
    font-size: 16px;
}

/* De kernwoorden (die de AI dikgedrukt maakt) */
.woocommerce-product-details__short-description li strong {
    color: #000; /* Of gebruik #e3bd2c (je geel) als je het heel speels wilt */
    font-weight: 700;
}

/* General Business USP's */
.bcs-product-usps {
    margin-top: 25px;
    padding: 15px;
    background-color: #f9f9f9; /* Lichtgrijs blokje */
    border-radius: 4px;
    border: 1px solid #eee;
}

.bcs-product-usps ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bcs-product-usps li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.bcs-product-usps li span.dashicons {
    color: #46b450; /* Icoontjes groen maken */
    margin-right: 8px;
    font-size: 18px;
}

/* --- Ruimte rondom de grote koppen --- */
/* Zorgt dat 'Specificaties' en 'Gerelateerde producten' niet zo op elkaar gepropt staan */
#tab-fiets_specs h2, 
.related.products h2 {
    margin-top: 40px;
    margin-bottom: 25px;
}