/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1
*/

/*************** ADD CUSTOM CSS HERE. ***************/

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE ***************/
}

/* Solar-West: wissel alleen naar het tweede beeld wanneer dat echt aanwezig is. */
@media (hover: hover) and (pointer: fine) {
    .product-small .image-fade_in_back:has(img.back-image) > a > img:first-child {
        transition: opacity .35s ease !important;
    }
    .product-small .image-fade_in_back:has(img.back-image):hover > a > img:first-child {
        opacity: 0 !important;
    }
    .product-small .image-fade_in_back:has(img.back-image):hover > a > img.back-image {
        opacity: 1 !important;
    }
    .product-small .image-fade_in_back:not(:has(img.back-image)) > a > img:first-child,
    .product-small .image-fade_in_back:not(:has(img.back-image)):hover > a > img:first-child {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Solar-West: alle productbeelden volledig, gecentreerd en zonder vervorming tonen. */
.product-small .box-image img,
.product-small .image-fade_in_back > a > img {
    object-fit: contain !important;
    object-position: center center !important;
}
.product-small .image-fade_in_back > a > img.back-image {
    box-sizing: border-box;
    background: #fff;
    padding: 10px !important;
}


/* Solar-West: B2B-toegang op productpagina’s zonder samengedrukte tekst. */
.single-product .sw-b2b-access {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 20px !important;
}
.single-product .sw-b2b-access__copy {
    width: 100% !important;
    min-width: 0 !important;
}
.single-product .sw-b2b-access__copy strong,
.single-product .sw-b2b-access__copy > span {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
.single-product .sw-b2b-access__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
}
.single-product .sw-b2b-access__login,
.single-product .sw-b2b-access__register {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
}
@media (max-width: 480px) {
    .single-product .sw-b2b-access__actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* Solar-West uniforme titels op alle productcategorieën */
body.tax-product_cat #wrapper > h1 {
    box-sizing: border-box;
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 15px 10px;
    color: #1f4e79;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
@media (max-width: 849px) {
    body.tax-product_cat #wrapper > h1 {
        padding: 20px 20px 8px;
        font-size: 25px;
    }
}


/* Solar-West uniforme titels op alle productcategorie

/* Solar-West: nette, sitebrede titelbalk voor alle productcategorieën. */
body.archive.tax-product_cat #wrapper > h1 {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 1080px;
    margin: 28px auto 24px;
    padding: 22px 28px;
    color: #173f67;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #eef8fc 0%, #ffffff 76%);
    border-left: 5px solid #0aa4c7;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 24px rgba(23, 63, 103, 0.08);
}

@media (max-width: 549px) {
    body.archive.tax-product_cat #wrapper > h1 {
        width: calc(100% - 24px);
        margin: 18px auto 20px;
        padding: 17px 18px;
        font-size: 26px;
        border-left-width: 4px;
        border-radius: 0 10px 10px 0;
    }
}
