/* WESLEYS WITGOED 2025 – GRID */
.ww-grid-2025 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .ww-grid-2025 {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* -------------------------------------------------------------------- */
/* THEME VARIABELEN                                                       */
/* -------------------------------------------------------------------- */
:root {
    --ww-primary: #FF6600;      /* Oranje (knoppen, accenten) */
    --ww-success: #28a745;      /* Groen (vinkjes, trust)      */
    --ww-dark: #212529;
    --ww-light-gray: #f8f9fa;
    --ww-old-price-gray: #6c757d;
    --brand-primary: #003087; /* Voor de discount badge */
}


/* -------------------------------------------------------------------- */
/* FILTERS BOVENIN                                                           */
/* -------------------------------------------------------------------- */

/* --- WRAPPER --- */
.form_sort_count {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Verwijder die grote bak */
.form_sort_count .block_sorting_count_to_page {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* --- LABELS --- */
.form_sort_count .control-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-right: 6px;
}

/* --- DROPDOWNS --- */
.form_sort_count select {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
}

.form_sort_count select:hover {
    border-color: #ff6600;
}

/* --- ICON --- */
.icon-arrow {
    display: none; /* weg ermee */
}

/* --- AFSTAND --- */
.box_products_sorting,
.box_products_count_to_page {
    display: flex;
    align-items: center;
}

/* --- MOBILE --- */
@media(max-width:600px){
    .form_sort_count {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --- PAGINATION --- */

.jshop_pagination {
    margin: 35px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* UL */
.jshop_pagination .pagination {
    display: flex;
    gap: 6px;
    padding: 0;
}

/* GENERAL BUTTONS */
.jshop_pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;

    font-weight: 600;
    transition: all .15s ease;
    text-decoration: none;

    font-size: 0.9rem;
}

/* HOVER */
.jshop_pagination .page-item .page-link:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* ACTIVE */
.jshop_pagination .page-item.active .page-link {
    background: #ff6600 !important;
    color: #fff !important;
    border-color: #ff6600 !important;
}

/* DISABLED */
.jshop_pagination .page-item.disabled .page-link {
    background: #f3f3f3;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
}

/* FIX ICONS → maak ze echte pijltjes */
.jshop_pagination .icon-angle-left::before {
    content: "‹";
    font-size: 20px;
    line-height: 1;
}

.jshop_pagination .icon-angle-right::before {
    content: "›";
    font-size: 20px;
    line-height: 1;
}

.jshop_pagination .icon-angle-double-left::before {
    content: "«";
    font-size: 20px;
}

.jshop_pagination .icon-angle-double-right::before {
    content: "»";
    font-size: 20px;
}

/* RESULT COUNTER */
.pagination_result_counter {
    margin-top: 8px;
    font-size: .9rem;
    color: #555;
}

/* MOBILE SCROLL */
@media(max-width:600px){
    .jshop_pagination .pagination {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
    }
}

/* VERWIJDER BULLET-ICONEN ALLEEN IN PAGINATION */
.pagination__wrapper .icon-angle-left::before,
.pagination__wrapper .icon-angle-right::before,
.pagination__wrapper .icon-angle-double-left::before,
.pagination__wrapper .icon-angle-double-right::before {
    content: "" !important;
}


/* VOEG NIEUWE ICONS TOE (ALLEEN IN PAGINATION) */
.pagination__wrapper .icon-angle-left::after {
    content: "‹";
    font-size: 16px;
}

.pagination__wrapper .icon-angle-right::after {
    content: "›";
    font-size: 16px;
}

.pagination__wrapper .icon-angle-double-left::after {
    content: "«";
    font-size: 16px;
}

.pagination__wrapper .icon-angle-double-right::after {
    content: "»";
    font-size: 16px;
}

.pagination__wrapper .page-link span {
    display: flex;
    align-items: center;
    justify-content: center;
}




/* -------------------------------------------------------------------- */
/* BASIS CARD                                                             */
/* -------------------------------------------------------------------- */
.ww-card-2025,
.ww-in3-modal {
    font-family: 'Inter', sans-serif;
    color: var(--ww-dark);
}

.ww-card-2025 {
    position: relative;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s ease-in-out;
    padding: 1.5rem;
    /* Belangrijk: De flex-kolom voor de mobiele knop is verwijderd */
    /* De knop zit nu weer in ww-card-image-wrapper */
}
.ww-card-2025:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* GRID STRUCTUUR BINNEN DE CARD (Bepaalt de 2 kolommen op desktop) */
.ww-card-inner {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom op mobiel */
    gap: 1.5rem;
    align-items: start;
    padding: 0;
    /* Zorgt dat de ww-card-inner alle beschikbare ruimte inneemt BINNEN de ww-card-2025 container */
    flex-grow: 1; 
}

/* Op mobiel: logische stapeling */
.ww-card-content { order: initial; }
.ww-card-image-wrapper { order: initial; }       

@media (min-width: 768px) {
    /* HERSTELD: Vaste hoogte voor strakke uitlijning van knop en afbeelding */
    .ww-card-2025 {
        height: 360px;
        display: block; /* Terug naar blok-weergave */
    }

    /* HERSTELD: Gebruik CSS Grid voor betere kolomcontrole op desktop */
    .ww-card-inner {
        display: grid; 
        height: 100%;
        /* HERSTELD: Strakkere kolomverhouding (1.5fr / 1fr is goed) */
        grid-template-columns: 1.5fr 1fr; 
        gap: 1.5rem; 
        align-items: flex-start; 
    }

    /* LINKER KOLOM (Content) */
    .ww-card-content {
        height: 100%;
        min-width: 0;
        /* HERSTELD: Zorg dat content flexibel is om de prijs naar de onderkant te duwen */
        display: flex;
        flex-direction: column;
    }

    /* RECHTER KOLOM (Afbeelding + Knop) */
    .ww-card-image-wrapper {
        height: 100%;
        min-width: 0;
        /* BELANGRIJK: Flexbox om de knop naar de onderkant te dwingen */
        display: flex; 
        flex-direction: column;
        align-items: center; /* Horizontaal centreren van de afbeelding */
        justify-content: space-between; /* Afbeelding boven, Knop onder */
    }
}

/* LINKERKOLOM (CONTENT) */
.ww-card-content {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* RECHTERKOLOM (AFBEELDING) - Stijlen verplaatst naar de media query hierboven voor desktop */
.ww-card-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    /* Mobiel: De content stapelt, dus align-items is 'center' */
    justify-content: flex-start; 
}


/* -------------------------------------------------------------------- */
/* PRODUCTAFBEELDING + MERKLOGO                                           */
/* -------------------------------------------------------------------- */
.ww-card-image {
    width: 100%;
    max-width: 250px;
    height: 180px;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 768px) {
    .ww-card-image {
         margin-bottom: 0; 
         height: 180px; 
         max-width: 100%;
         /* BELANGRIJK: Zorgt dat de afbeelding naar boven wordt geduwd */
         margin-top: 0;
    }
}

.ww-card-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Premium merklogo op de afbeelding */
.ww-brand-on-image {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}
.ww-brand-on-image img {
    width: 48px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* -------------------------------------------------------------------- */
/* BADGES - GECONSOLIDEERD                                                */
/* -------------------------------------------------------------------- */
.ww-badge-discount,
.ww-badge-stock {
    position: absolute;
    top: 0;
    z-index: 10;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-size: 0.8rem;
    text-transform: uppercase;
    /* Gedeelde stijlen */
    border-radius: 0.75rem 0 0 0;
    left: 0;
}

.ww-badge-discount {
    background-color: var(--brand-primary);
}

.ww-badge-stock {
    background-color: var(--ww-primary);
}

/* Wanneer de stock badge volgt op de discount badge, verschuift hij */
.ww-card-2025 .ww-badge-discount + .ww-badge-stock {
    left: 80px;
    border-radius: 0;
}

.ww-badge-stock.bg-dark {
    background-color: var(--ww-dark);
}

/* -------------------------------------------------------------------- */
/* TITEL + TEKST                                                          */
/* -------------------------------------------------------------------- */
/* Titel: max 2 regels met ellipsis */
.ww-title {
    font-size: 1.25rem;
    font-weight: 700;
    /* AANGEPAST: Minder marge onder de titel */
    margin-bottom: 0.75rem; 
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2em;
}
@media (min-width: 768px) {
    .ww-title {
        font-size: 1.4rem;
    }
}


/* Korte omschrijving, omgezet naar features-lijst met vinkjes */
.ww-features {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    /* AANGEPAST: Meer marge na features om ze van de prijs te scheiden */
    margin-bottom: 1.25rem; 
    font-size: 1rem;
    max-height: none;
    overflow: visible;
}
.ww-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.ww-features li::before {
    content: "✓";
    color: #fff;
    background-color: var(--ww-success);
    border-radius: 0.25rem;
    padding: 0 0.25rem;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 700;
}

/* -------------------------------------------------------------------- */
/* PRIJZEN & IN3                                                          */
/* -------------------------------------------------------------------- */
.ww-price-section {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

.ww-old-price {
    font-size: 1rem;
    color: var(--ww-old-price-gray);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.ww-price {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.ww-in3-trigger {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--ww-light-gray);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0;
    width: 100%;
}
.ww-in3-trigger:hover {
    background-color: #e9ecef;
}
.ww-in3-trigger img {
    height: 18px;
    width: auto;
    margin-right: 0.5rem;
}

/* -------------------------------------------------------------------- */
/* BUTTONS (ZIT WEER IN ww-card-image-wrapper)                            */
/* -------------------------------------------------------------------- */
.ww-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    
    /* Mobiel: Gewoon ruimte onder de afbeelding */
    margin-top: 1rem; 
}

/* Op desktop (vanaf 768px): De knop is nu een direct kind van de flex-kolom (ww-card-image-wrapper) */
@media (min-width: 768px) {
    .ww-bottom-row {
        margin-top: 15px; /* Geen extra ruimte, wordt beheerd door flexbox */
        /* BELANGRIJK: Zorgt dat de knop rechts uitgelijnd wordt binnen de kolom */
        align-self: flex-end; 
        /* Beperk de breedte van de knop */
    
        width: 100%; /* Zorg dat de knop de max-width vult */
    }
}


.ww-btn {
    background-color: var(--ww-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 3px 0 0 #cf5500;
    width: 100%;
}
.ww-btn:hover {
    background-color: #e65c00;
	color:#fff!important;
}
.ww-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 0 #cf5500;
}

/* -------------------------------------------------------------------- */
/* UITVERKOCHT STYLING - GECONSOLIDEERD                                   */
/* -------------------------------------------------------------------- */

/* Hele kaart wat lichter en niet-interactief bij sold out */
.ww-card-2025.sold-out {
    opacity: 0.75;
    pointer-events: none;
}

/* Grijze “uitverkocht” knop (sterke selector om hover/active te onderdrukken) */
.ww-btn.sold-out,
.ww-card-2025.sold-out .ww-btn {
    background: #cfcfcf !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    border: 1px solid #c2c2c2;
    /* Overschrijf normale button animaties */
    transform: none !important;
    padding: 0.75rem 1.5rem;
}

/* In3 en levering verbergen als uitverkocht */
.ww-card-2025.sold-out .ww-in3-trigger,
.ww-card-2025.sold-out .ww-delivery {
    display: none !important;
}

/* Sold-out badge stijlen */
.ww-sold-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* -------------------------------------------------------------------- */
/* IN3 MODAL (Ongewijzigd)                                               */
/* -------------------------------------------------------------------- */
.ww-in3-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    animation: fadeIn .25s ease-out;
}
.ww-in3-modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to    { opacity: 1; }
}

.ww-in3-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.ww-in3-box {
    position: relative;
    background: #fff;
    width: 92%;
    max-width: 648px;
    margin: 70px auto;
    padding: 30px 32px;
    border-radius: 18px;
    animation: slideUp .25s ease-out;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@keyframes slideUp {
    from { transform: translateY(25px); opacity: 0; }
    to    { transform: translateY(0); opacity: 1; }
}

/* Close button */
.ww-in3-close {
    position: absolute;
    right: 14px;
    top: 14px;
    border: none;
    background: #eee;
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}
.ww-in3-close:hover {
    background: #ddd;
}

/* Header */
.ww-in3-header {
    text-align: center;
    padding-bottom: 15px;
}
.ww-in3-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #003087;
    margin-bottom: 25px;
}
.ww-in3-subtitle {
    color: #555;
    font-size: .95rem;
    margin-top: -5px;
}

/* Productnaam */
.ww-in3-product {
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #222;
}

/* Warning */
.ww-in3-warning {
    background: #fff7df;
    padding: 10px 14px;
    border-left: 4px solid #FF6600;
    border-radius: 6px;
    color: #8a5b00;
    margin-bottom: 18px;
    font-size: .9rem;
}

/* Termijnen blok */
.ww-in3-terms {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}
.ww-in3-term {
    flex: 1;
    background: #f5f6f7;
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
}
.ww-term-icon {
    background: #FF6600;
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 6px;
}
.ww-in3-term .price {
    font-size: 1.25rem;
    font-weight: 800;
}
.ww-in3-term .label {
    font-size: 0.85rem;
    color: #555;
}

/* Benefits lijst */
.ww-in3-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
}
.ww-in3-benefits li {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* Info tekst */
.ww-in3-info h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}
.ww-in3-info p {
    margin-top: 6px;
    color: #555;
    font-size: .95rem;
}

/* Details blokken */
.ww-in3-details {
    margin-top: 14px;
    font-size: .9rem;
}
.ww-in3-details summary {
    cursor: pointer;
    color: #FF6600;
    font-weight: 600;
}

/* Mobiel: modal */
@media (max-width: 600px) {
    .ww-in3-box {
        padding: 1.5rem !important;
        margin: 40px auto !important;
    }
    .ww-in3-terms {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Ongebruikte stijlen verwijderd */
.ww-sold-overlay, .ww-sold-tag, .ww-brand, #mxcpr, .ww-savings, .ww-shortdesc, .ww-delivery, .ww-manufacturer-logo {
    display: none !important;
}


/* -----------------------------------------
   MOBIEL FIXED LAYOUT
------------------------------------------ */
@media (max-width: 767px) {

    .ww-card-inner {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* 1. Foto bovenaan */
    .ww-card-image-wrapper {
        order: 1;
        margin-bottom: 0;
    }

    /* 2. Content (titel, features, prijs) */
    .ww-card-content {
        order: 2;
    }

    /* 3. Button ALTIJD helemaal onderaan */
    .ww-bottom-row {
        order: 3;
        margin-top: auto;
    }

    /* Zorg dat foto netjes blijft */
    .ww-card-image {
        height: auto;
        max-height: 240px;
    }

    .ww-card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Prevent weird button alignment inside wrapper */
.ww-card-image-wrapper .ww-bottom-row {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .ww-card-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "image content"
            "button content"; /* ← knop onder de foto */
        gap: 1.5rem;
    }

    .ww-card-image-wrapper {
        grid-area: image;
    }

    .ww-card-content {
        grid-area: content;
    }

    .ww-bottom-row {
        grid-area: button;
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ww-features {
        display: none !important;
    }
}

/*===============
|   categorieen   |
=================*/

.category-grid-row {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 10px 0 40px 0; /* extra spacing onder grid */
}

/* ======= CARD ======= */
.jshop_categ.category-item-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    width: calc(33.333% - 14px) !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 20px 0 !important;
    transition: .2s ease;
}

.jshop_categ.category-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ======= IMAGE CONTAINER ======= */
.category-item-image {
    padding: 30px 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    background: #fff;
}

.category-item-image img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform .4s ease;
}

.category-item-image:hover img {
    transform: scale(1.06);
}

/* ======= CONTENT ======= */
.category-item-info {
    padding: 20px 25px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

/* Titel */
.category-name a {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.category-name a:hover {
    color: #ff7800;
}

/* korte tekst */
.category-short-description {
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

/* Knop */
.category-action-link {
    background: #ff7800;
    color: #fff !important;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    margin-top: auto;
    transition: .2s ease;
}

.category-action-link:hover {
    background: #e46e00;
}

/* ======= RESPONSIVE ======= */
@media(max-width: 1024px) {
    .jshop_categ.category-item-card {
        width: calc(50% - 14px) !important;
    }
}

@media(max-width: 600px) {
    .jshop_categ.category-item-card {
        width: 100% !important;
    }

    .category-item-image {
        height: 200px !important;
        padding: 20px !important;
    }
}

/* Verberg categorie titel volledig maar behoud SEO */
.category-header-section h1 {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
}

/* Verberg Subcategorieën-titel */
.category-list-title {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}



