/* ======================================================= */
/* 1. BASIS & LAYOUT (UIT JOUW product.css)               */
/* ======================================================= */

.ww-product-page {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 30px 15px 80px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.ww-product-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.ww-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================= GALLERY ================= */

.ww-gallery-wrap {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    background: #f9fafb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.ww-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* JoomShopping thumbs container */
#list_product_image_thumb {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* THUMBNAIL FIX: Target DIVs i.p.v. A-tags */
.jshop_img_thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: border-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

.jshop_img_thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.jshop_img_thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

.jshop_img_thumb.active {
    border-color: #ff6200; 
}

/* hoofdafbeelding */
.ww-gallery-main {
    position: relative;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#list_product_image_middle img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    display: block;
}

/* ================= BUY CARD RECHTS ================= */

.ww-right-col {
    position: relative;
}

.ww-buy-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    z-index: 20;
}

.ww-product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.ww-product-ean {
    display: inline-block;
    margin-left: 4px;
    font-size: .85rem;
    color: #6b7280;
}

.ww-price-block {
    margin: 10px 0 18px;
}

.ww-old-price {
    font-size: .9rem;
    text-decoration: line-through;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ww-current-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.ww-in3-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f4ff;
    color: #111827;
    font-size: .88rem;
    cursor: pointer;
}

.ww-in3-box img {
    height: 20px;
    width: auto;
}

/* koopformulier */

.ww-buy-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.ww-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #4b5563;
}

.ww-qty-row label {
    min-width: 60px;
}

.ww-qty-input {
    width: 90px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: .9rem;
}

/* Buttons */

.ww-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 11px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: #10b981;
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.32);
}

.ww-btn-primary:hover {
    background: #0ea371;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.4);
}

.ww-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.ww-btn-sm {
    width: auto;
    padding-inline: 18px;
    font-size: .9rem;
}

/* vertrouwninfo onder button */
.ww-buy-trust {
    margin-top: 10px;
    font-size: .85rem;
    color: #4b5563;
}

.ww-buy-trust ul {
    margin: 0;
    padding-left: 18px;
}

/* ================= TAB NAVIGATIE & SECTIES ================= */

.ww-tab-nav {
    display: flex;
    gap: 8px;
    margin: 22px 0 18px;
    position: sticky;
    top: 80px; 
    z-index: 50;
    background: #f9fafb;     
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}


.ww-tab-link {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    padding: 7px 16px;
    font-size: .9rem;
    color: #374151;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.ww-tab-link:hover {
    background: #f3f4ff;
    border-color: #a5b4fc;
}

.ww-tab-link.active {
    background: #ff6200;
    color: #f9fafb;
    border-color: #b74a05;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
}

.ww-section {
    margin-bottom: 32px;
}

.ww-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0 8px;
}

.ww-section-body {
    font-size: .95rem;
    line-height: 1.6;
    color: #4b5563;
}

/* feature lijst (overzicht) */
.ww-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 0;
}

.ww-feature-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 3px;
    font-size: .95rem;
    color: #374151;
}

.ww-feature-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: #10b981;
}

/* ================= KEURMERK & WAAROM BLOKKEN ================= */

.ww-keurmerk-card {
    background: #f9fafb;
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
}

.ww-keurmerk-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ww-keurmerk-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
}

.ww-keurmerk-title {
    font-weight: 700;
    color: #111827;
    font-size: .95rem;
}

.ww-keurmerk-badge {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-keurmerk-subtitle {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 8px;
}

.ww-keurmerk-list {
    list-style: none;
    margin: 0 0 8px;
    padding-left: 0;
    font-size: .9rem;
    color: #374151;
}

.ww-keurmerk-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 2px;
}

.ww-keurmerk-list li::before {
    content: "✔";
    position: absolute;
    left: 2px;
    top: 0;
    font-size: .7rem;
    color: #10b981;
}

.ww-keurmerk-footer {
    font-size: .85rem;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857;
    border: 1px dashed #a7f3d0;
}

.ww-waarom-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px 16px 14px;
    border: 1px solid #e5e7eb;
}

.ww-waarom-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.ww-waarom-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: .9rem;
    color: #374151;
}

.ww-waarom-card ul li:last-child {
    margin-top: 6px;
}

.ww-waarom-card ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
}

.ww-waarom-card ul li::before {
   content: "✔";
    position: absolute;
    left: 2px;
    top: 0;
    font-size: .7rem;
    color: #10b981;
}


/* ================= GARANTIE & INFO STYLES ================= */

.ww-garantie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ww-garantie-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-garantie-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.ww-garantie-highlight {
    background: #ecfdf5;
    border: 1px dashed #10b981;
    padding: 10px 14px;
    border-radius: 10px;
    color: #047857;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: .95rem;
    box-shadow: 0 3px 8px rgba(16,185,129,0.12);
}

.ww-garantie-box {
    padding-top: 24px !important;
}

.ww-garantie-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 20px;
    font-size: .92rem;
    line-height: 1.55;
    color: #374151;
}

.ww-garantie-info-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
}

/* ================= TOOLTIPS (INFO ICON) ================= */

.ww-info-item {
    position:relative;
    display:flex;
    align-items:center;
    padding-left:0;
    margin-bottom:6px;
    gap:6px;
}

.ww-info-icon {
    width:18px;
    height:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#111827;
    color:#fff;
    border-radius:50%;
    font-size:10px;
    font-weight:700;
    margin-left:8px;
    cursor:pointer;
    position:relative;
}

.ww-tooltip-box {
    position:absolute;
    left:0;
    top:32px;
    min-width:260px;
    max-width:360px;
    background:#0f172a;
    color:#fff;
    padding:14px 18px;
    font-size:.9rem;
    line-height:1.45;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,0.35);
    display:none;
    z-index:99999;
}

.ww-tooltip-box.show {
    display:block;
    animation:fadeInTooltip .15s ease-out;
}
@keyframes fadeInTooltip {
    from {opacity:0; transform:translateY(4px);}
    to    {opacity:1; transform:translateY(0);}
}

/* ================= STICKY BUY BAR ONDER ================= */

.ww-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; 
    z-index: 9000; 
    background: rgba(17, 24, 39, 0.96);
    color: #f9fafb;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease, opacity .25s ease;
    transform: translateY(100%);
    opacity: 0;
}

.ww-sticky-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.ww-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ww-sticky-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ww-sticky-img-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    flex-shrink: 0;
}

.ww-sticky-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ww-sticky-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ww-sticky-title {
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ww-sticky-price {
    font-size: .95rem;
    font-weight: 700;
}

.ww-sticky-right .ww-btn-primary {
    box-shadow: none;
}

/* ================= MODAL STYLES ================= */

.ww-in3-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center; 
    justify-content: center; 
    animation: fadeIn .25s ease-out;
}
.ww-in3-modal.is-open {
    display: flex !important; 
}

.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: 0; 
    padding: 30px 32px;
    border-radius: 18px;
    animation: slideUp .25s ease-out;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: block; 
    max-height: 90vh; 
    overflow-y: auto;
}

.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-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;
}

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

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

.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;
}

.ww-in3-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
}

.ww-in3-benefits li {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.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;
}

.ww-in3-details {
    margin-top: 14px;
    font-size: .9rem;
}

.ww-in3-details summary {
    cursor: pointer;
    color: #FF6600;
    font-weight: 600;
}

/* ================= RESPONSIVE FIXES (JOUW MEDIA QUERY GEOPTIMALISEERD) ================= */

@media (max-width: 768px) {
    .ww-product-page {
        padding-inline: 10px;
    }

    /* 1. HOOFD LAYOUT: Zet Grid om naar één kolom */
    .ww-product-layout {
        grid-template-columns: 1fr; 
        /* FIX: display:grid overschrijven met display:inherit */
        display: inherit !important;
        gap: 20px; 
    }
    
    /* **FIX**: Koopkaart bovenaan forceren op mobiel */
    .ww-right-col {
        order: -1; 
        margin-bottom: 20px;
    }

    /* 2. KOOPKAART: Schakel sticky uit op mobiel */
    .ww-buy-card {
        position: static; 
        top: initial;
    }

    /* 3. GALLERY: Maak thumbnails horizontaal scrollbaar */
    
    /* FIX: Galerij items stapelen */
    .ww-gallery-wrap {
        display: flex; /* Zodat flex-direction werkt */
        flex-direction: column; /* Stacks main image en thumbs vertical */
        padding: 12px;
    }
    
    /* FIX: Verticale thumbs container wordt breed en komt onder de hoofdafbeelding */
    .ww-thumbs-vertical {
        order: 2; /* De thumbs moeten onder de hoofdafbeelding (default order 1) */
        width: 100%;
    }
    
    /* FIX: Thumbnail lijst moet horizontaal scrollen */
    #list_product_image_thumb {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px; 
    }

    .jshop_img_thumb {
        min-width: 70px; 
        height: 70px;
        flex-shrink: 0; 
    }
    .jshop_img_thumb img {
        height: 70px;
    }
    
    /* 4. TABS: Maak navigatie verticaal */
    .ww-tab-nav {
        /* Verwijdert horizontale scroll */
        overflow-x: hidden; 
        white-space: normal; 
        padding-bottom: 4px;
        
        /* Forceer tabs om verticaal te stapelen */
        flex-direction: column; 
        /* Verwijder de plakkerige positie, want de tabs zijn nu lang en moeten meescrollen */
        position: static; 
        top: initial;
        background: transparent; /* Maak de achtergrond transparant voor een schonere look */
    }
    
    .ww-tab-link {
        flex-shrink: 0; 
        width: 100%; /* Maak de knoppen volledig breed */
        margin-bottom: 8px; /* Voeg wat ruimte toe tussen de knoppen */
        text-align: left; /* Tekst links uitlijnen */
    }


    /* 5. STICKY BOTTOM BAR */
    .ww-sticky-inner {
        padding-inline: 12px;
    }

    .ww-sticky-title {
        max-width: 160px;
    }
    
    /* Mobiel: modal */
    @media (max-width: 600px) {
        .ww-in3-box {
            padding: 1.5rem !important;
        }
        .ww-in3-terms {
            flex-direction: column;
            gap: 1rem;
        }
    }
}