
body.sml-category-layout-theme_1,
body.sml-product-layout-theme_1{
    --sml-red:#f90000;
    --sml-cream:#f6ebcf;
    --sml-black:#111111;
    --sml-white:#ffffff;
    --sml-green:#2c8b35;
    --sml-muted:#646464;
    --sml-line:#e6e1d8;
    --sml-soft:#fbf8f2;
    --sml-radius:14px;
}

/* ===== PRODUCT THEMA 1 ===== */
body.sml-product-layout-theme_1 #primary,
body.sml-product-layout-theme_1 .content-area{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}
body.sml-product-layout-theme_1 .ast-container{
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
}
body.sml-product-layout-theme_1 #secondary{display:none!important;}

.sml-t1-page{
    width:min(1480px,calc(100% - 56px));
    margin:0 auto;
    padding:24px 0 56px;
}

.sml-t1-breadcrumb{
    margin-bottom:28px;
    color:#777;
    font-size:13px;
}
.sml-t1-breadcrumb .woocommerce-breadcrumb{
    margin:0!important;
    color:#777!important;
    font-size:13px!important;
}
.sml-t1-breadcrumb a{color:#777!important;}

.sml-t1-product{
    display:grid;
    grid-template-columns:minmax(420px,1.03fr) minmax(390px,1fr) minmax(310px,.72fr);
    gap:34px;
    align-items:start;
}

/* Gallery */
.sml-t1-gallery .woocommerce-product-gallery{
    float:none!important;
    width:100%!important;
    margin:0!important;
}
.sml-t1-gallery .woocommerce-product-gallery__wrapper{
    overflow:hidden;
    border:1px solid var(--sml-line);
    border-radius:12px;
    background:#f5f5f5;
}
.sml-t1-gallery .woocommerce-product-gallery__image img{
    display:block;
    width:100%!important;
    height:auto!important;
    aspect-ratio:4/3;
    object-fit:cover;
}
.sml-t1-gallery .flex-control-thumbs{
    display:grid!important;
    grid-template-columns:repeat(4,86px);
    gap:14px;
    margin:16px 0 0!important;
}
.sml-t1-gallery .flex-control-thumbs li{
    float:none!important;
    width:auto!important;
    margin:0!important;
}
.sml-t1-gallery .flex-control-thumbs img{
    width:86px!important;
    height:70px!important;
    object-fit:cover;
    border:2px solid transparent;
    border-radius:6px;
    opacity:1!important;
}
.sml-t1-gallery .flex-control-thumbs img.flex-active{
    border-color:var(--sml-red);
}
.sml-t1-gallery .woocommerce-product-gallery__trigger{
    top:auto!important;
    right:16px!important;
    bottom:16px!important;
    border:1px solid #ddd!important;
    background:#fff!important;
}

/* Middenkolom */
.sml-t1-info{padding-top:4px;}
.sml-t1-stock-badge{
    display:inline-flex;
    align-items:center;
    margin-bottom:14px;
    padding:7px 12px;
    border:1px solid #cde8cc;
    border-radius:999px;
    background:#edf8ed;
    color:var(--sml-green);
    font-size:13px;
    font-weight:800;
}
.sml-t1-title{
    margin:0 0 14px!important;
    color:var(--sml-black);
    font-size:clamp(31px,2.5vw,44px)!important;
    line-height:1.08!important;
}
.sml-t1-short{
    color:#3f3f3f;
    font-size:16px;
    line-height:1.65;
}
.sml-t1-short p{margin:0 0 15px;}
.sml-t1-specs{
    margin:20px 0 0;
    padding-top:16px;
    border-top:1px solid var(--sml-line);
}
.sml-t1-specs>strong{
    display:block;
    margin-bottom:8px;
    font-size:16px;
}
.sml-t1-spec-row{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:7px 0;
    border-bottom:1px dashed #e6e6e6;
    font-size:14px;
}
.sml-t1-spec-row span{color:#777;}
.sml-t1-price{
    margin:25px 0 8px;
    color:var(--sml-red);
    font-size:38px;
    font-weight:900;
    line-height:1.05;
}
.sml-t1-price .price{color:inherit!important;font-size:inherit!important;}
.sml-t1-price del{
    margin-right:9px;
    color:#777!important;
    font-size:19px!important;
    font-weight:500;
}
.sml-t1-price ins{
    color:var(--sml-red)!important;
    text-decoration:none!important;
}
.sml-t1-stock{
    margin-top:14px;
    color:var(--sml-green);
    font-weight:800;
}
.sml-t1-stock .stock{color:inherit!important;margin:0!important;}

/* Rechter bestelblok */
.sml-t1-buybox{
    padding:24px 22px;
    border:1px solid var(--sml-line);
    border-radius:12px;
    background:linear-gradient(180deg,#fbf7ef 0%,#f7f2e8 100%);
    box-shadow:0 6px 20px rgba(0,0,0,.035);
}
.sml-t1-buybox-title{
    margin-bottom:16px;
    font-size:19px;
    font-weight:850;
}
.sml-t1-buybox form.cart{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
.sml-t1-buybox .quantity{
    margin-bottom:12px!important;
}
.sml-t1-buybox .quantity .qty{
    min-height:44px;
    border:1px solid #d6d0c4;
    border-radius:8px;
}
.sml-t1-buybox .single_add_to_cart_button{
    width:100%!important;
    min-height:56px!important;
    margin-top:16px!important;
    border:0!important;
    border-radius:8px!important;
    background:var(--sml-red)!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:850!important;
}
.sml-t1-buybox .single_add_to_cart_button:hover{
    filter:brightness(.93);
}

/* SML Levering compact binnen buybox */
.sml-t1-buybox [class*="sml-lever"],
.sml-t1-buybox [id*="sml-lever"]{
    max-width:100%!important;
    box-sizing:border-box!important;
}

/* Trustbar */
.sml-t1-trustbar{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    margin:34px 0 26px;
    border:1px solid #efe7d5;
    border-radius:12px;
    background:linear-gradient(90deg,#fbf5e9 0%,#f6ebcf 100%);
}
.sml-t1-trustbar>div{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:92px;
    padding:18px 28px;
    border-right:1px solid rgba(0,0,0,.08);
}
.sml-t1-trustbar>div:last-child{border-right:0;}
.sml-t1-trust-icon{
    flex:0 0 auto;
    font-size:31px;
    line-height:1;
}
.sml-t1-trustbar p{margin:0!important;}
.sml-t1-trustbar strong,
.sml-t1-trustbar small{display:block;}
.sml-t1-trustbar strong{font-size:15px;}
.sml-t1-trustbar small{
    margin-top:4px;
    color:#666;
    font-size:13px;
}

/* Tabs */
.sml-t1-tabs{
    overflow:hidden;
    border:1px solid var(--sml-line);
    border-radius:12px;
    background:#fff;
}
.sml-t1-tabs .woocommerce-tabs{margin:0!important;}
.sml-t1-tabs .woocommerce-tabs ul.tabs{
    display:flex;
    gap:26px;
    margin:0!important;
    padding:0 24px!important;
    border-bottom:1px solid var(--sml-line);
    background:#fff;
}
.sml-t1-tabs .woocommerce-tabs ul.tabs:before{display:none!important;}
.sml-t1-tabs .woocommerce-tabs ul.tabs li{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
.sml-t1-tabs .woocommerce-tabs ul.tabs li:before,
.sml-t1-tabs .woocommerce-tabs ul.tabs li:after{display:none!important;}
.sml-t1-tabs .woocommerce-tabs ul.tabs li a{
    padding:18px 0!important;
    color:#333!important;
    font-size:14px;
    font-weight:800!important;
}
.sml-t1-tabs .woocommerce-tabs ul.tabs li.active a{
    color:var(--sml-black)!important;
    border-bottom:3px solid var(--sml-red);
}
.sml-t1-tabs .woocommerce-Tabs-panel{
    margin:0!important;
    padding:24px!important;
    font-size:15px;
    line-height:1.7;
}

/* Gerelateerde producten */
.sml-t1-page .related.products,
.sml-t1-page .up-sells{
    margin-top:40px;
}

/* ===== CATEGORIE THEMA 1 ===== */
.sml-t1-category-hero{
    margin:18px 0 28px;
    padding:34px 38px;
    border:1px solid #eadfca;
    border-radius:16px;
    background:linear-gradient(135deg,#fbf4e3 0%,#f6ebcf 100%);
}
.sml-t1-eyebrow{
    display:inline-block;
    margin-bottom:8px;
    color:var(--sml-red);
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.sml-t1-category-hero h1{
    margin:0 0 10px!important;
    font-size:clamp(34px,4vw,52px)!important;
}
.sml-t1-product-badge{
    position:absolute;
    z-index:3;
    top:12px;
    left:12px;
    padding:7px 10px;
    border:1px solid #c8e8c3;
    border-radius:999px;
    background:#eef8ec;
    color:#267327;
    font-size:12px;
    font-weight:800;
}

/* Tablet */
@media (max-width:1180px){
    .sml-t1-product{
        grid-template-columns:minmax(380px,1fr) minmax(360px,1fr);
    }
    .sml-t1-buybox{
        grid-column:2;
    }
    .sml-t1-trustbar{
        grid-template-columns:1fr 1fr;
    }
    .sml-t1-trustbar>div:nth-child(2){border-right:0;}
    .sml-t1-trustbar>div:nth-child(-n+2){border-bottom:1px solid rgba(0,0,0,.08);}
}

/* Mobiel */
@media (max-width:820px){
    .sml-t1-page{
        width:min(100% - 28px,720px);
        padding-top:14px;
    }
    .sml-t1-breadcrumb{
        margin-bottom:16px;
        font-size:12px;
    }
    .sml-t1-product{
        display:flex;
        flex-direction:column;
        gap:22px;
    }
    .sml-t1-gallery,
    .sml-t1-info,
    .sml-t1-buybox{
        width:100%;
    }
    .sml-t1-gallery .woocommerce-product-gallery__image img{
        aspect-ratio:4/3;
    }
    .sml-t1-gallery .flex-control-thumbs{
        grid-template-columns:repeat(4,1fr);
        gap:8px;
    }
    .sml-t1-gallery .flex-control-thumbs img{
        width:100%!important;
        height:auto!important;
        aspect-ratio:1/1;
    }
    .sml-t1-title{
        font-size:30px!important;
    }
    .sml-t1-price{
        font-size:31px;
    }
    .sml-t1-buybox{
        padding:18px 16px;
    }
    .sml-t1-trustbar{
        grid-template-columns:1fr;
        margin-top:24px;
    }
    .sml-t1-trustbar>div{
        min-height:74px;
        padding:14px 18px;
        border-right:0!important;
        border-bottom:1px solid rgba(0,0,0,.08);
    }
    .sml-t1-trustbar>div:last-child{border-bottom:0;}
    .sml-t1-tabs .woocommerce-tabs ul.tabs{
        gap:18px;
        overflow-x:auto;
        white-space:nowrap;
        padding:0 16px!important;
    }
    .sml-t1-tabs .woocommerce-Tabs-panel{
        padding:18px 16px!important;
    }
}

@media (max-width:520px){
    .sml-t1-page{width:calc(100% - 20px);}
    .sml-t1-title{font-size:27px!important;}
    .sml-t1-short{font-size:15px;}
    .sml-t1-price{font-size:29px;}
}


/* ===== v1.3 correcties ===== */

/* Astra/thema titel boven onze eigen producttemplate verwijderen */
body.sml-product-layout-theme_1 .entry-header,
body.sml-product-layout-theme_1 .ast-woocommerce-container > .product_title,
body.sml-product-layout-theme_1 main > article > header.entry-header{
    display:none!important;
}

/* Productfoto altijd volledig tonen - nooit croppen */
body.sml-product-layout-theme_1 .sml-t1-gallery .woocommerce-product-gallery__wrapper{
    background:#fff;
}
body.sml-product-layout-theme_1 .sml-t1-gallery .woocommerce-product-gallery__image img{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
}

/* Prijs verhuist naar rechter bestelkolom */
.sml-t1-buybox-price{
    margin:0 0 18px;
    padding:0 0 18px;
    border-bottom:1px solid #e4dccd;
}
.sml-t1-buybox-price .price{
    display:flex!important;
    flex-wrap:wrap;
    align-items:baseline;
    gap:8px 14px;
    margin:0!important;
    color:var(--sml-red)!important;
    font-size:36px!important;
    font-weight:900!important;
    line-height:1.05!important;
}
.sml-t1-buybox-price .price del{
    order:-1;
    color:#777!important;
    font-size:17px!important;
    font-weight:500!important;
    opacity:1!important;
}
.sml-t1-buybox-price .price ins{
    color:var(--sml-red)!important;
    text-decoration:none!important;
}
.sml-t1-vat{
    display:block;
    margin-top:6px;
    color:#707070;
    font-size:13px;
    font-weight:500;
}

/* Oude prijspositie voor de zekerheid niet tonen */
.sml-t1-info > .sml-t1-price{display:none!important;}

/* Trustbar iconen huisstijl rood */
.sml-t1-trust-icon{
    color:var(--sml-red)!important;
}

/* Witruimte compacter */
.sml-t1-product{
    margin-bottom:0!important;
}
.sml-t1-trustbar{
    margin-top:24px;
}

/* Op mobiel prijs boven levering compact houden */
@media (max-width:820px){
    .sml-t1-buybox-price .price{
        font-size:31px!important;
    }
}


/* ===== v1.3.1 positionering ===== */
body.sml-product-layout-theme_1 .sml-t1-breadcrumb{display:none!important;}
body.sml-product-layout-theme_1 .sml-t1-buybox > .stock,
body.sml-product-layout-theme_1 .sml-t1-buybox form.cart > .stock{display:none!important;}
body.sml-product-layout-theme_1 .sml-t1-buybox-price{margin:18px 0 0;padding:18px 0 0;border-top:1px solid #e4dccd;border-bottom:0;}
body.sml-product-layout-theme_1 .sml-t1-buybox-stock{margin-top:16px;padding-top:16px;border-top:1px solid #e4dccd;color:#222;font-size:15px;line-height:1.4;}
body.sml-product-layout-theme_1 .sml-t1-buybox-stock .stock{display:inline!important;margin:0!important;color:var(--sml-green)!important;font-weight:500!important;}


/* ===== v1.3.2 definitieve buybox-volgorde ===== */
body.sml-product-layout-theme_1 .sml-t1-buybox > p.stock,
body.sml-product-layout-theme_1 .sml-t1-buybox > .stock,
body.sml-product-layout-theme_1 .sml-t1-buybox form.cart > p.stock,
body.sml-product-layout-theme_1 .sml-t1-buybox form.cart > .stock{
    display:none!important;
}

body.sml-product-layout-theme_1 .sml-t1-relocate-price{display:none;}
body.sml-product-layout-theme_1 .sml-t1-relocate-price.sml-t1-price-ready{display:block;}

body.sml-product-layout-theme_1 .sml-t1-buybox-price{
    width:100%; box-sizing:border-box;
    margin:18px 0 14px!important;
    padding:18px 0 0!important;
    border-top:1px solid #e4dccd!important;
    border-bottom:0!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox-price .price{
    display:flex!important; flex-wrap:wrap; align-items:baseline;
    gap:7px 12px; margin:0!important; line-height:1.1!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox-price .price del{
    color:#666!important; font-size:16px!important; font-weight:500!important; opacity:1!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox-price .price ins,
body.sml-product-layout-theme_1 .sml-t1-buybox-price .price > .woocommerce-Price-amount{
    color:var(--sml-red)!important; font-size:30px!important; font-weight:900!important;
    text-decoration:none!important;
}
body.sml-product-layout-theme_1 .sml-t1-vat{
    display:block; margin-top:5px; color:#707070; font-size:13px; font-weight:500;
}

body.sml-product-layout-theme_1 .sml-t1-buybox-stock{
    display:block!important; margin:16px 0 0!important; padding:16px 0 0!important;
    border-top:1px solid #e4dccd!important; color:#222!important;
    font-size:15px!important; line-height:1.4!important;
}
body.sml-product-layout-theme_1 .sml-t1-stock-value,
body.sml-product-layout-theme_1 .sml-t1-stock-value *{
    color:var(--sml-green)!important; font-weight:500!important;
}


/* ===== v1.3.3 voorraadcorrectie ===== */
/* Verberg iedere standaard WooCommerce voorraadmelding in de buybox.
   Onze eigen voorraadregel gebruikt geen .stock-class en blijft zichtbaar. */
body.sml-product-layout-theme_1 .sml-t1-buybox .stock{
    display:none!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox .sml-t1-buybox-stock{
    display:block!important;
}


/* ===== v1.3.4 voorraad: exact één keer onder de winkelwagenknop ===== */
body.sml-product-layout-theme_1 .sml-t1-buybox .stock,
body.sml-product-layout-theme_1 .sml-t1-buybox p.stock,
body.sml-product-layout-theme_1 .sml-t1-buybox .woocommerce-variation-availability{
    display:none!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox-stock{
    display:block!important;
}
body.sml-product-layout-theme_1 .sml-t1-buybox-stock .sml-t1-stock-value{
    color:#4f9b43;
}
