/*
Theme Name: Uncode Child Houtboerke
Theme URI: https://undsgn.com/uncode/
Template: uncode
Author: Undsgn
Author URI: https://undsgn.com/
Description: Modernized Uncode child theme for Houtboerke.be with Poppins font and Houtboerke aesthetics.
Tags: houtboerke, uncode-child
Version: 1.0.0
Text Domain: uncode-child
*/

:root {
    --hb-brown: #7a2c1b;
    --hb-brown-dark: #622315;
    --hb-yellow: #eec34b;
    --hb-yellow-hover: #dab24b;
    --hb-orange: #f29400;
    --hb-border-gray: #e0e0e0;
    --hb-text-dark: #333333;
    --uncode-body-font: 'Poppins', sans-serif;
    --uncode-heading-font: 'Poppins', sans-serif;
}

body, button, input, select, textarea {
    font-family: var(--uncode-body-font) !important;
    line-height: 1.8 !important; 
    color: var(--hb-text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--uncode-heading-font) !important;
    font-weight: 600;
}

/* 
 * 1. FONTS & TYPOGRAPHY - Uncode overrides 
 */

.uncont h1, .uncont h2, .uncont h3, .uncode-h1, .uncode-h2, .uncode-h3 {
    font-family: var(--uncode-heading-font) !important;
}

/* 
 * 2. BUTTONS 
 */
.btn-default, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
    background-color: var(--hb-brown) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 35px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.btn-default:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
    background-color: var(--hb-brown-dark) !important;
    color: var(--hb-yellow) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

/* 
 * 3. LABELS, BADGES EN PRIJZEN 
 */

.hb-price-box {
    background-color: #eec34b !important; /* Houtboerke geel */
    color: #000000 !important; /* Dwingt absolute zwarte inkt voor scherp contrast */
    padding: 12px 18px; 
    border-radius: 8px; /* Past bij de foto border */
    display: inline-flex;
    flex-direction: column; /* Forceert de tekst strak onder de prijs op een nieuwe lijn */
    align-items: center; /* Lijn subtiel en evenredig in het midden uit */
    justify-content: center;
    margin: 0 !important;
    box-shadow: none !important; /* Schaduw is verwijderd! */
}

/* Geforceerd diepzwart in de kind-elementen om overrides van Uncode teksten te doden */
.hb-price-box .price-amount,
.hb-price-box .price-unit {
    color: #000000 !important; 
}

/* Aanvullende grid posities voor de lopende meter badge zodat hij in het "kader" plakt */
.hb-price-box.navsync-lm-badge {
    position: absolute !important;
    top: 15px !important; /* Exact 15px vanaf de bovenrand */
    right: 15px !important; /* Exact 15px vanaf de rechterrand */
    transform: scale(0.65) !important;
    transform-origin: top right !important; /* Repareert het gat rechts door de verkleining */
    z-index: 10 !important;
}

.hb-price-box .price-amount {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
}

.hb-price-box .price-unit {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Verberg algemene vanafprijs in grid (als de Houtboerke-badge er staat) */
ul.products li.product .price {
    display: none !important;
}

/* 
 * 4. WOOCOMMERCE LOOP BUTTONS (De >> Pijl)
 */
.woocommerce ul.products li.product a.button, 
.uncode-archive-products a.button {
    font-size: 0 !important; 
    width: auto !important;
    height: auto !important;
    padding: 0 10px !important;
    border-radius: 0 !important; 
    display: inline-flex !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    right: 5px; 
    bottom: 5px; 
}

.woocommerce ul.products li.product a.button::after,
.uncode-archive-products a.button::after {
    content: "»" !important; 
    font-size: 52px !important; 
    color: var(--hb-brown) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    top: -4px; 
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.woocommerce ul.products li.product a.button:hover::after,
.uncode-archive-products a.button:hover::after {
    color: var(--hb-yellow) !important;
    transform: translateX(4px) !important;
}

/* 
 * 5. SINGLE PRODUCT AANPASSINGEN 
 */
.single-product .product_title.entry-title {
    font-size: 2.5rem !important; 
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--hb-text-dark) !important;
}
.single-product div.product > .summary > p.price {
    font-size: 1.4rem !important; 
    font-weight: 500 !important;
    color: #64748b !important; 
}

/* Verwijder de scheidingslijnen bij variaties */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .single_variation_wrap {
    border: none !important;
}
.woocommerce div.product form.cart hr {
    display: none !important;
}

/* Add to cart op single product */
.woocommerce div.product form.cart .button {
    padding: 0 25px !important;
    height: 44px !important;
}
.woocommerce div.product form.cart div.quantity input.qty {
    height: 44px !important;
}

/* 
 * 6. WOOCOMMERCE ARCHIEVEN EN CATEGORIEËN
 */
.tax-product_cat .woocommerce-products-header__title,
.uncode-category-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
}

.tax-product_cat .term-description p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
}

/* 
 * 7. STICKY FILTER BALK FIXES VOOR UNCODE
 * Uncode gebruikt op veel levels "overflow: hidden" en "overflow-x: hidden" of flex-box issues.
 * Hier slopen we dit lokaal weg voor shop/taxonomie, inclusief alle wrappers!
 */


/* 
 * 8. UNCODE PRODUCT TEGEL (TILE) ANIMATIES UITSCHAKELEN
 * Houtboerke wil een rustige winkel, zonder drukke zoom/slide of fade effecten.
 */

/* Verwijder de "zoom" of "scale" van de afbeelding bij hover */
.woocommerce ul.products li.product .tmb:hover .t-entry-visual img,
.uncode-archive-products .tmb:hover .t-entry-visual img,
.tmb-woocommerce:hover .t-entry-visual img {
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    transition: none !important;
}

/* Stop het omhoog schuiven (translateY) of bouncen van de gehele kaart zelf */
.woocommerce ul.products li.product .tmb,
.uncode-archive-products .tmb,
.tmb-woocommerce {
    transform: none !important;
    -webkit-transform: none !important;
}
.woocommerce ul.products li.product .tmb:hover,
.uncode-archive-products .tmb:hover,
.tmb-woocommerce:hover {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important; /* Mocht er een 'lift' schaduw op zitten */
}

/* Verberg de typische "donkere of witte mistige overlay" en icoontjes die Uncode toevoegt bij hover */
.woocommerce ul.products li.product .t-overlay-wrap,
.uncode-archive-products .t-overlay-wrap,
.tmb-woocommerce .t-overlay-wrap,
.woocommerce ul.products li.product .t-entry-overlay,
.uncode-archive-products .t-entry-overlay,
.tmb-woocommerce .t-entry-overlay {
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
}

/* Zet de tekst direct vast in positie zodat het blok niet uitklapt of animeert bij mouse-over */
.woocommerce ul.products li.product .t-entry-text,
.uncode-archive-products .t-entry-text,
.tmb-woocommerce .t-entry-text {
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    margin-top: 0 !important; 
    padding-top: 0 !important;
}

/* Volledig, extreem agressief verbergen van variatie-blokken, lengtes en swatches op de grid weergave */
.woocommerce ul.products li.product .cfvsw-swatches-container,
.woocommerce ul.products li.product .cfvsw-shop-wrapper,
.woocommerce ul.products li.product .navsync-swatches,
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .woo-variation-swatches,
.woocommerce ul.products li.product .wvs-archive-variation-wrapper,
.cfvsw-swatches-container, 
.cfvsw-shop-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Verberg exact de Uncode 'Opties selecteren' overlay box én de semi-transparante achtergrond */
.add-to-cart-overlay,
.t-entry-visual-overlay,
.t-entry-visual-overlay-in,
.product_button_loop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

/* 
 * 9. PRODUCT TEGEL STYLING & DETAILS
 */

/* Content onder de tegel links uitlijnen en compacter op de foto aansluiten */
.woocommerce ul.products li.product .t-entry-text,
.uncode-archive-products .t-entry-text,
.tmb-woocommerce .t-entry-text {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important; 
    padding-top: 0 !important; 
    margin-top: 0 !important;
}

/* Forceren dat de tabel-cellen en containers daarbinnen ook GEEN overhead padding injecteren */
.tmb-woocommerce .t-entry-text-tc,
.tmb-woocommerce .t-entry,
.tmb-woocommerce .t-entry-text-tc.single-block-padding {
    padding-top: 12px !important; /* Ietsje soepeler marge, zodat titel de foto netjes loslaat */
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* De naam van het product flink groter zetten en nadrukkelijk Houtboerke bruin maken 
 * Doel: Alle Titels in Uncode product/post blocken (TMB) forceren, los van pagina type.
 */
.tmb h3.t-entry-title,
.tmb h3.t-entry-title a,
.tmb .t-entry-text h3 a,
.tmb-woocommerce .t-entry-title a {
    font-size: 18px !important; /* Gereduceerd van 22px naar 18px */
    color: #7a2c1b !important; /* Keihard Houtboerke bruin */
    font-weight: 700 !important;
    line-height: 1.2 !important; /* Compacter */
    text-transform: none !important;
    transition: color 0.3s ease !important;
    margin-top: 0 !important; /* Vermoord standaard Uncode titel margins */
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}
/* Alleen de h3 container zelf fungeert als relatief blok voor de pijl */
.tmb h3.t-entry-title,
.tmb-woocommerce h3.t-entry-title {
    position: relative !important;
    padding-right: 35px !important; /* Reservering over de fysieke breedte van de absolute titel zelf */
}

/* Hover over de fototegel: Titel kleurt speels in de Houtboerke accentkleur */
.tmb:hover h3.t-entry-title a,
.tmb:hover .t-entry-text h3 a,
.tmb-woocommerce:hover .t-entry-title a {
    color: #eec34b !important;
}

/* Injecteer een zware, prominente pijl (➜) strak rechts uitgelijnd OP het titel element */
.tmb h3.t-entry-title::after,
.tmb-woocommerce h3.t-entry-title::after {
    content: "\279C" !important; /* Heavy Right-Pointing Arrow */
    position: absolute !important;
    right: 5px !important; /* Solide uitlijning op de extreem rechtse grens van de titel */
    top: 50% !important; /* NU wiskundig gegarandeerd 100% exact in het centrum van het tekstveld */
    transform: translateY(-50%) translateX(-15px) !important; /* Start verborgen onzichtbaar */
    opacity: 0 !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    color: #eec34b !important; /* Hard geel */
    font-size: 22px !important; /* Duidelijk grotere interface-affordance */
    line-height: 1 !important;
    pointer-events: none !important;
}

/* Hover-animatie: De grote pijl schiet perfect rechts naast het gecentreerde title block */
.tmb:hover h3.t-entry-title::after,
.tmb-woocommerce:hover h3.t-entry-title::after {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0px) !important; /* Pijl plonst scherp in z'n bounds */
}

/* De VANAFPRIJS onder een product weglaten op het overzicht */
.tmb .t-entry-text .price,
.tmb-woocommerce .price {
    display: none !important;
}

/* De afbeelding een erg fijne lichtgrijze border geven */
.tmb .t-entry-visual {
    border: 1px solid #d4d4d4 !important; /* Zichtbaar, lichtgrijs randje */
    border-radius: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important; 
    display: block !important;
    transition: border-color 0.3s ease !important;
    margin-bottom: 0 !important; /* Garandeert zero gap richting the tekst eronder! */
    padding-bottom: 0 !important;
}

/* Hover: Afbeelding border wordt Houtboerke bruin */
.tmb:hover .t-entry-visual {
    border-color: #7a2c1b !important;
}

/* Haal border van de img direct af om overlappen/verdwijnen te voorkomen */
.tmb .t-entry-visual a img,
.tmb .t-entry-visual img,
.tmb .t-entry-visual-cont {
    border: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Verberg de typische "Uitverkocht" (out of stock) badge van Uncode/WooCommerce */
.woocommerce ul.products li.product .outofstock-badge,
.uncode-archive-products .badge-out-of-stock,
.tmb-woocommerce .t-entry-badges,
.outofstock-badge,
.tmb-out-of-stock {
    display: none !important;
}

/* Onze nieuwe groene OP VOORRAAD badge (Toegevoegd via PHP functies) */
.hb-in-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #27ae60 !important; /* Mooi fris groen */
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 99;
    box-shadow: none !important; /* Schaduw weggehaald! */
}

/* 
 * 10. ZIJBALK (SIDEBAR) & WIDGET STYLING (Houtboerke Filters)
 * Herstructurering: De GELE lijn over de gehele kolom trekken, met daarbinnen losse filter-dropdowns.
 */

/* De buitenste container (sidebar) inkaderen als ééngrote doos! */
.col-widgets-sidebar .uncont {
    background-color: #ffffff !important;
    border-radius: 4px !important; /* Strakker */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    padding: 15px 15px !important; /* EXTREEM compacter binnen de box */
    border-top: 3px solid #eec34b !important; /* Eén strakke, dunnere gele Houtboerke lijn bovenaan */
}

/* De hero-titel 'Verfijn je keuze' met icoon automatisch 1x bovenaan de hele balk injecteren */
.col-widgets-sidebar .uncont::before {
    content: "Verfijn je keuze";
    display: block;
    font-size: 16px !important; /* Zeer compact */
    font-weight: 800 !important;
    color: #4a4a4a !important;
    font-family: var(--uncode-heading-font) !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    /* Houtboerke gele filter icon (SVG base64) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23eec34b' stroke='%23eec34b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'%3E%3C/polygon%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    padding-left: 24px !important; /* Strak op het icoontje */
}

/* De losse widgets (filters) GEEN witte boxen en randen meer geven, ze zitten al in de doos */
.col-widgets-sidebar .widget,
.col-widgets-sidebar .widget.woocommerce-widget-layered-nav,
.col-widgets-sidebar .widget.widget_layered_nav {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important; /* Filters letterlijk OPEENGESMETEN zonder gaps */
    border-top: none !important; 
}

/* Alle onzichtbare formulier/dropdown gaps wegkappen in Uncode widgets */
.col-widgets-sidebar .widget form,
.col-widgets-sidebar .widget div,
.col-widgets-sidebar .widget p,
.col-widgets-sidebar .widget ul,
.col-widgets-sidebar aside,
.col-widgets-sidebar .widget-container form,
.col-widgets-sidebar .woocommerce-widget-layered-nav-dropdown {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

/* De widget titels (Bewerking, Breedte, Dikte, etc) */
.col-widgets-sidebar .widget.woocommerce-widget-layered-nav .widget-title,
.col-widgets-sidebar .widget.widget_layered_nav .widget-title,
.col-widgets-sidebar h3.widget-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #7a2c1b !important; /* Houtboerke bruin */
    text-transform: uppercase !important;
    margin-bottom: 6px !important; /* Terug iets meer ademruimte OP de dropdown */
    margin-top: 16px !important; /* Voldoende marge tussen voorgaande dropdown en deze filter */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important; /* Scheidingslijnen uitschakelen */
    letter-spacing: 0.5px !important;
    font-family: var(--uncode-heading-font) !important;
}

/* Custom styling voor de dropdown (<select>) keuzelijsten in Uncode sidebar */
.col-widgets-sidebar .widget.woocommerce-widget-layered-nav select,
.col-widgets-sidebar .widget.widget_layered_nav select {
    appearance: none !important; 
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #f8f9fa !important; 
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    padding: 10px 14px !important; /* Terug groter zodat afgesneden onderkant van tekst (letters g,y,j) weer in de dropdown past! */
    color: #4a5568 !important;
    font-family: var(--uncode-body-font) !important;
    font-size: 14px !important; /* Hersteld naar normaal vullend letterformaat */
    font-weight: 500 !important;
    width: 100% !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    /* Een modern getekend, Houtboerke-bruin selectie pijltje, vastgemaakt op de achtergrond */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a2c1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* 
 * 11. SIDEBAR WAARDES & GRID MARGES AANPASSEN
 * We overschrijven Uncode's grid kolommen om de sidebar exact op 20% te dwingen!
 */
.col-widgets-sidebar {
    width: 20% !important;
    max-width: 20% !important; 
    flex: 0 0 20% !important;
}
/* De productkolom rechts ernaast vangt de overige 80% op */
.col-widgets-sidebar ~ div.uncol {
    width: 80% !important;
    max-width: 80% !important;
    flex: 0 0 80% !important;
}
/* Halveer de gigantische lege kloof tussen de sidebar en de producten */
.uncoltable .uncell.col-widgets-sidebar {
    padding-right: 15px !important;
}
.col-widgets-sidebar ~ div.uncol .uncell {
    padding-left: 15px !important;
}

/* FIX: Zorg dat Uncode's 33.333333% berekening NIET overloopt 
 * (Browsers breken grid af bij afrondingsfouten: 3x 33.3 = 99.9% is 100% bomb-proof) 
 */
.un-sidebar-layout .tmb-iso-w4 {
    width: 33.3% !important;
}

/* Voor mobiele apparaten springen we terug naar 100% onder elkaar */
@media (max-width: 959px) {
    .col-widgets-sidebar,
    .col-widgets-sidebar ~ div.uncol {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .uncoltable .uncell.col-widgets-sidebar,
    .col-widgets-sidebar ~ div.uncol .uncell {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

/* 
 * 12. AJAX BADGE PLAATSING (OP VOORRAAD & LOPENDE METER)
 */

/* Voorraad label linksonder op de fysieke tegel en licht pulserend! */
.tmb .hb-in-stock-badge.hb-ajax-badge {
    position: absolute !important;
    top: auto !important; /* Overschrijft eerdere top waarden veilig */
    bottom: 12px !important; /* Verplaatst naar linksonder */
    left: 12px !important;
    font-size: 8px !important; /* Nog verder verkleind! Extreem verfijnd */
    padding: 4px 7px !important; /* Subtiel krappere uitsnede */
    z-index: 100 !important;
    animation: hb-pulse-green 2.5s infinite ease-in-out !important; /* Subtiele adem/hartslag effect */
}

@keyframes hb-pulse-green {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    50%  { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

/* Lopende meter geel ticket rechtsboven op de fysieke tegel */
.tmb .hb-price-box.navsync-lm-badge.hb-ajax-badge {
    position: absolute !important;
    top: 10px !important; 
    right: 10px !important;
    z-index: 100 !important;
    transform: scale(0.55) !important; /* Gekrompen van 0.65 naar 0.55 */
    transform-origin: top right !important; /* Zorgt dat de doos uiterst rechts blijft hangen bij het verkleinen */
    margin: 0 !important;
}

/* Hover en Focus states wanneer de klant een filter kiest */
.col-widgets-sidebar .widget.woocommerce-widget-layered-nav select:hover,
.col-widgets-sidebar .widget.widget_layered_nav select:hover {
    border-color: #7a2c1b !important; 
}
.col-widgets-sidebar .widget.woocommerce-widget-layered-nav select:focus,
.col-widgets-sidebar .widget.widget_layered_nav select:focus {
    outline: none !important;
    border-color: #eec34b !important; 
    box-shadow: 0 0 0 3px rgba(238, 195, 75, 0.2) !important;
}

/* 
 * 13. SINGLE PRODUCT AANPASSINGEN (VRAAG 28 MAART)
 */

/* De productnaam styling bovenaan */
.single-product .product_title.entry-title,
.uncode-wc-title {
    margin-bottom: 25px !important;
    font-size: 2.5rem !important; 
    font-weight: 800 !important;
    color: #7a2c1b !important;
    line-height: 1.2 !important;
}

/* De algemene vanafprijs mag weg bovenaan (verbergen) */
/* (Wordt nu ook direct via PHP verborgen voor 100% zekerheid) */
.single-product .price-wrapper > .price,
.single-product div.product > .summary > p.price,
.single-product .uncode-price > .price {
    display: none !important;
}

/* De prijzen in de variatie houden we wel zichtbaar */
.single-product .woocommerce-variation-price .price {
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #4a5568 !important;
    margin-bottom: 15px !important;
}

/* De 'wissen' knop daaronder mag weg */
.single-product .reset_variations {
    display: none !important;
}

/* De op voorraad mag blijven staan maar moet groen staan, uitverkocht rood */
.single-product .stock {
    color: #27ae60 !important; /* Fris groen (standaard) */
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}
.single-product .stock.out-of-stock {
    color: #e74c3c !important; /* Helder rood voor uitverkocht */
}

/* Visual per lopende meter weergave (main badge top-left, specifieke class om related products niet te raken) */
.navsync-main-lm-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    z-index: 100 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    /* Verwijder transform: scale() om "te breed" layout-spookruimtes te voorkomen, gebruik vaste afmetingen */
    /* Gebruiker had deze factor x2 gewild voor de hoofdfoto */
    padding: 14px 22px !important;
    width: max-content !important;
}
/* Reduceer de letters fysiek i.p.v. het hele element in/uitzoomen */
.navsync-main-lm-badge .price-amount {
    font-size: 2.6rem !important; /* Ongeveer 2x groter dan de 1.4rem */
    line-height: 1 !important;
}
.navsync-main-lm-badge .price-unit {
    font-size: 1.3rem !important; /* Ongeveer 2x groter dan de 0.8rem */
    margin-top: 0 !important;
}

/* 
 * 14. WINKELMANDJE DROPDOWN STYLING (Houtboerke Geel)
 * Zorgt ervoor dat de cart-flyout in het menu een knallende gele achtergrond krijgt en royaal breed oogt.
 */
ul.uncode-cart-dropdown,
ul.uncode-cart-dropdown.cart_list,
li.uncode-cart ul.drop-menu {
    background-color: #eec34b !important; /* Houtboerke geel */
    color: #4a4a4a !important; /* Donkere tekst (niet 100% zwart voor rust) */
    width: 480px !important; /* Extra verbreed zodat 'Winkelwagen bekijken' op 1 lijn past! */
    min-width: 480px !important; /* Blokkeert Uncode's eigen smalle limieten */
    max-width: 95vw !important; /* Blijft binnen mobiele schermen */
    border: none !important;
    padding: 20px !important; /* Royaal kussen voor randen */
    position: absolute !important; /* Trek hem fysiek uit de navigatie-flow */
    right: 0 !important; /* Lijn uit aan achterkant */
    left: auto !important; /* VERBIEDT extreme verbreding via left-anchoring. Elimineert The Mega Yellow Bar layout spook! */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Base layout lists */
ul.uncode-cart-dropdown li {
    border: none !important; /* Alle (witte én bruine) scheidingslijntjes genadeloos weggesneden */
    box-shadow: none !important; /* Kill Uncode's shadow borders if present */
    font-size: 15px !important; /* Duidelijker leesbaar */
}
ul.uncode-cart-dropdown li:last-child {
    border: none !important;
}
ul.uncode-cart-dropdown li.divider,
ul.uncode-cart-dropdown .divider {
    display: none !important; /* Fysiek verbergen van eventuele expliciete divider HTML blokjes */
}

/* Lijn individuele producten soepel horizontaal uit naast foto */
ul.uncode-cart-dropdown li.mini_cart_item,
.woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 30px !important; /* Reserveert linker ruimte voor het kruisje! */
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    gap: 15px !important; /* Ruimte tussen foto en tekst */
}

.woocommerce-mini-cart-item img {
    max-width: 60px !important; 
    height: auto !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
}

/* Product namen en meta data in the dropdown (sluit knoppen zorgvuldig uit) */
ul.uncode-cart-dropdown li a:not(.remove):not(.button):not(.checkout):not(.wc-forward) {
    color: #7a2c1b !important; /* Houtboerke Bruin */
    font-weight: 700 !important;
    font-size: 15px !important; /* Vullend, verbreed kader */
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
    display: block !important;
}
ul.uncode-cart-dropdown li a:not(.remove):hover {
    color: #000000 !important;
}
ul.uncode-cart-dropdown .quantity {
    display: block !important;
    margin-top: 5px !important;
    font-size: 14px !important;
}

/* Plaats het (kruisje) icoon strak veilig aan de uiterste linker as d.m.v. absolute positionering */
ul.uncode-cart-dropdown li a.remove {
    position: absolute !important;
    left: 0 !important; /* Verankert hem aan de uiterste grens, geen clash met the img */
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #e74c3c !important; /* Helderrood voor afbreken */
    font-size: 24px !important; /* Groter voor gemak */
    background: transparent !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}
ul.uncode-cart-dropdown li a.remove:hover {
    color: #c0392b !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Het Totaal-bedrag blok onderin het mandje */
ul.uncode-cart-dropdown li.total,
ul.uncode-cart-dropdown .total {
    border: none !important; /* De lijn boven het totaalbedrag is nu ook structureel verdwenen */
    color: #7a2c1b !important;
    font-size: 1.3em !important; /* Subtotaal extra vergroot */
    padding-top: 15px !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
}
ul.uncode-cart-dropdown li.total strong,
ul.uncode-cart-dropdown .total strong {
    color: #7a2c1b !important;
    font-size: 1em !important;
}

/* Actieknoppen onderin (Winkelmand bekijken & Afrekenen) strak in the Flexbox maler! */
ul.uncode-cart-dropdown .buttons,
.woocommerce-mini-cart__buttons {
    display: flex !important;
    gap: 10px !important; /* Marge tussen de twee knoppen */
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.uncode-cart-dropdown .buttons a,
.woocommerce-mini-cart__buttons a,
ul.uncode-cart-dropdown li.buttons a.button {
    flex: 1 !important; /* Neemt met zijn tweeen exact 50% overige ruimte aan */
    text-align: center !important; /* Tekst gecentreerd de knop */
    background-color: #7a2c1b !important; /* Solide bruine knop */
    color: #ffffff !important; /* Absolute noodzakelijk WIT uiterlijk (geen bruin-op-bruin text) */
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important; /* Duidelijkere Call To Actions */
    padding: 14px 10px !important; /* Forsere randen voor klik-vlak */
    border-radius: 6px !important;
    display: inline-block !important; /* Forceert de achtergrond in de padding */
    transition: all 0.3s ease !important;
    white-space: nowrap !important; /* FORCEERT DAT ETIKET 'WINKELMAND BEKIJKEN' NETJES OP ÉÉN ZIN BLIJFT STAAN! */
}
ul.uncode-cart-dropdown .buttons a:hover,
.woocommerce-mini-cart__buttons a:hover {
    background-color: #000000 !important; /* Zwarte interactie edge */
    color: #eec34b !important; /* Tekst knippert om naar Houtboerke geel */
}
