/* Single Product Header */
body.woocommerce.single-product .woocommerce-products-header {
    height: 27.84vw;
    width: 100vw;
    position: relative;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

body.woocommerce.single-product .l-section.for_shop > .l-section-h {
    padding: 0;
}

body.woocommerce.single-product
    .woocommerce-products-header
    .product-header-image-wrapper:before,
body.woocommerce.single-product
    .woocommerce-products-header
    .product-header-image-wrapper
    img,
body.woocommerce.single-product
    .woocommerce-products-header
    .product-header-image-wrapper {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

body.woocommerce.single-product
    .woocommerce-products-header
    .product-header-image-wrapper
    img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

body.woocommerce.single-product
    .woocommerce-products-header
    .product-header-image-wrapper:before {
    content: "";
    background-color: var(--overlay-color);
    opacity: 0.5;
    z-index: 1;
}

body.woocommerce.single-product .woocommerce-products-header:after {
    content: "";
    height: 13px;
    width: 100%;
    background-color: #cde9e2;
    position: absolute;
    bottom: -13px;
    left: 0;
}

body.woocommerce.single-product a {
    color: var(--primary-color);
    text-decoration: underline;
}

body.woocommerce.single-product .woocommerce-products-header h4,
body.woocommerce.single-product .woocommerce-products-header h1 {
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
}

body.woocommerce.single-product .woocommerce-products-header h1 {
    color: #ffffff;
}

/* Main Product Layout */
.product-main-content {
    display: flex;
    flex-direction: column; /* Mobile-first: stack columns */
    padding: 0 var(--side-padding);
}

.product-main-content .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

.product-main-content
    .woocommerce-product-gallery__wrapper
    .woocommerce-product-gallery__image
    a {
    display: block;
    border: 2px solid #004e52;
    border-radius: 25px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
}

.product-main-content .summary {
    width: 100% !important;
    float: none !important;
}

.product-main-content .summary table.variations tr {
    margin: 10px 0;
}

.product-main-content .summary table.variations tr,
.product-main-content .summary table.variations td,
.product-main-content .summary table.variations th {
    display: block;
    padding: 0;
    border-bottom: none;
}

.woocommerce .variations_form .variations td.value:after {
    top: 0;
    right: 8px;
}

.woocommerce .variations_form {
    padding: 0;
}

.product-main-content .variations select {
    padding: 0 25px 0 15px;
    appearance: none;
    border: 1px solid #50be95;
    /*border-radius: 50px;*/
}
.product-main-content input[type="number"] {
    padding: 0 15px;
    border: 1px solid #50be95;
}

.woocommerce .variations_form .single_variation_wrap > div {
    display: flex;
    align-items: flex-end;
}

/* Desktop Two-Column Layout */
@media (min-width: 992px) {
    .product-main-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 4%;
    }

    .product-main-content .woocommerce-product-gallery {
        width: 48% !important;
    }

    .product-main-content .woocommerce-product-gallery .flex-viewport img {
        aspect-ratio: 4 / 3;
        width: 100%;
    }

    .product-main-content .summary {
        width: 48% !important;
        padding: 0; /* Reset padding for desktop */
    }
}

@media (max-width: 480px) {
    .woocommerce .cart.variations_form {
        padding: 0;
    }
}

/* General Summary & Button Styles (Kept from original) */
.woocommerce div.product .summary {
    --overlay-color: #004e52;
}

.woocommerce div.product .summary .w-image:not(.overlay):before {
    content: none;
}

.woocommerce div.product .summary .wpb_wrapper table,
.woocommerce table.custom-specs-table {
    border-radius: 2em;
    overflow: hidden;
    background-color: #eaf6f3;
    background-image: url(../images/watermarks/list-bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
}

.woocommerce div.product .summary .wpb_wrapper table thead th,
.woocommerce table.custom-specs-table thead th {
    padding: 20px 15px 8px 15px;
}

.woocommerce div.product .summary .wpb_wrapper table tbody tr:last-child td,
.woocommerce table.custom-specs-table tbody tr:last-child td {
    border: none !important;
    padding: 8px 15px 20px 15px;
}

.woocommerce .button[type="submit"] {
    position: relative;
    opacity: 1;
    left: 1ch;
    bottom: 0;
    transform: unset;
    background-color: #50be95;
    border: 1px solid #50be95;
    padding: 15px 45px 15px 75px;
    color: #ffffff;
    height: 62px;
    border-radius: 3em;
    max-width: 80%;
    font-size: 20px;
    text-transform: none;
}
.specs-actions-wrapper {
    margin-top: 20px;
    container-name: specs;
    container-type: inline-size;
}

@container specs (min-width: 500px) {
    .specs-actions {
        display: flex;
        gap: 20px;
    }
    .specs-actions > * {
        flex: 0 0 50%;
    }
}

.product-secondary-actions .w-btn-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
}

.product-secondary-actions .w-btn-wrapper a {
    text-align: center;
    text-decoration: none !important;
    display: block;
}
.pricelist_button:before,
.brochure_button:before,
.questions-button:before,
.whatsapp-button:before,
.woocommerce .button[type="submit"]:before {
    content: "";
    width: 34px;
    height: 32px;
    position: absolute;
    left: 20px;
    bottom: 50%;
    transform: translateY(50%);
    background-image: url(../images/icons/cart.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.pricelist_button:before {
    background-image: url(../images/icons/euro.svg);
}
.brochure_button:before {
    background-image: url(../images/icons/download.svg);
}
.questions-button:before {
    background-image: url(../images/icons/info.svg);
}
.whatsapp-button:before {
    background-image: url(../images/icons/whatsapp.svg);
}

.woocommerce .quantity input.qty {
    width: 65px;
}

.woocommerce div.product .cart {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.woocommerce div.product .quantity {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between label and input */
}

label.quantity-label {
    font-weight: bold;
    font-size: 16px;
}

.single_add_to_cart_button {
    margin: 0 !important;
}

.product-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-secondary-actions .l-section {
    margin: 0;
}

.product-secondary-actions .l-section-h {
    padding: 0;
}

.product-secondary-actions a.w-btn.style_flat.color_light,
.product-secondary-actions a.w-btn.color_light {
    background-color: #82d1b4;
    color: #ffffff;
}

.product-secondary-actions a.w-btn.style_flat.color_contrast,
.product-secondary-actions a.w-btn.color_contract {
    background-color: #16967a;
    color: #ffffff;
}

.product-secondary-actions ~ div p {
    text-align: right !important;
}

/* Related Products & Upsells (Kept from original) */
.related.up-sells.upsells,
.related.background-green {
    position: relative;
    border-top: none;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
}

.related.background-green .heading h2 {
    color: #ffffff;
}

.related.background-green .heading h4 {
    text-transform: uppercase;
}

.related.background-green:before {
    background-image: url(../images/watermarks/category-related.svg);
    background-size: cover;
}

.woocommerce-type_2 .related ul.products {
    grid-template-columns: repeat(auto-fit, minmax(228px, 238px));
    /*justify-content: center;*/
}

.woocommerce .products .product .product-image-wrapper {
    height: auto;
    aspect-ratio: 4/3;
}

.no-touch .woocommerce-type_2 .product-meta h2 {
    color: #ffffff;
    font-size: 16px;
    width: 100%;
    font-weight: 500 !important;
}

.woocommerce .related ul.products .product .price {
    font-size: 14px;
}

.woocommerce .related ul.products .product .price del,
.woocommerce .related ul.products .product .price del .amount {
    opacity: 1;
    font-weight: 500;
}

/* Custom List Styles (Kept from original) */
.wpb_text_column ul {
    padding: 1.58vw;
    background-color: #eaf6f3;
    border-radius: 2em;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    list-style: none;
    list-style-type: none;
    margin: 0 0 1.38vw 0;
}

.wpb_text_column ul:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(../images/watermarks/list-bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
}

.wpb_text_column ul li {
    position: relative;
    margin-left: 28px;
}

.wpb_text_column ul li:before {
    position: absolute;
    content: "";
    left: -28px;
    top: 4px;
    width: 18px;
    height: 18px;
    background-image: url(../images/icons/checkmark-rounded.svg);
    background-repeat: no-repeat;
}

/* Thumbnail Scroller/Carousel */
.thumb-carousel-wrap {
    position: relative;
    margin-top: 15px;
    padding: 0; /* Make space for arrows */
}

ol.flex-control-nav {
    display: flex;
    overflow: hidden; /* Hide scrollbar, JS will handle it */
    flex-wrap: nowrap;
    padding: 10px 0;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    list-style: none;
}

ol.flex-control-nav li {
    flex-shrink: 0;
    margin: 0 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
}

ol.flex-control-nav li img {
    max-width: 120px;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #004e52;
}

ol.flex-control-nav li:hover img {
    border-color: #50be95;
}

ol.flex-control-nav li img.flex-active {
    border-color: #50be95;
}

/* Arrow Navigation */
.thumb-carousel-wrap .thumb-prev,
.thumb-carousel-wrap .thumb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #50be95;
    border: none;
    appearance: none;
    outline: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
    line-height: 28px;
    text-align: center;
    padding: 0;
    transition: opacity 0.3s;
}

.thumb-carousel-wrap .chevron-right,
.thumb-carousel-wrap .chevron-left {
    display: inline-block;
    border-right: 4px solid #fff; /* Dikte van de pijl */
    border-top: 4px solid #fff;
    width: 14px; /* Grootte van de pijl */
    height: 14px;
    margin: 9px 4px 0 0;
    transform: rotate(45deg);
}

.thumb-carousel-wrap .chevron-left {
    transform: rotate(-135deg);
    margin: 9px -4px 0 0;
}

.thumb-carousel-wrap .thumb-prev {
    left: -5px;
}

.thumb-carousel-wrap .thumb-next {
    right: -5px;
}

/* Custom Specifications Table */

.product-div {
    margin-top: 3rem;
    padding: 0 var(--side-padding);
}

.custom-specs-table-wrapper .specifications-title {
    margin-bottom: 0;
}
@media (min-width: 1024px) {
    .product-div.custom-specs-table-wrapper .inner-content {
        display: flex;
        gap: 40px;
    }

    .product-div.custom-specs-table-wrapper .inner-content > * {
        flex: 0 0 50%;
    }
}

.product-long-description h2,
.product-long-descriptionh3 {
    text-transform: none;
    color: var(--text-color);
    font-size: 24px;
    margin: 0 0 0.4em 0;
}

.product-long-description .l-section-h {
    padding-top: 0;
}

/* Masonry layout for custom images */
.custom-images-wrapper {
    column-count: 4;
    column-gap: 20px;
}

.custom-images-wrapper .custom-image {
    /*display: inline-block*/
    margin: 0 0 20px;
    width: 100%;
    break-inside: avoid;
}

.custom-images-wrapper .custom-image a {
    display: block;
    line-height: 0;
}

.custom-images-wrapper .custom-image img {
    border-radius: 5px;
    border: 1px solid var(--text-color);
}

/* Responsive Masonry */
@media (max-width: 992px) {
    .custom-images-wrapper {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .custom-images-wrapper {
        column-count: 1;
    }
}

/* Accordion styles for product page sections */
.product-div summary {
    list-style: none; /* remove default arrow */
    cursor: pointer;
    display: block; /* make it behave like a block element */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1em;
    position: relative;
    padding-right: 30px; /* Space for the icon */
}

.product-div summary.section-title {
    color: var(--pri-color);
    font-size: 38px;
    text-transform: uppercase;
    border-bottom: 2px solid #7ea5a7;
}

.product-div summary::-webkit-details-marker {
    display: none; /* for Chrome/Safari */
}

.product-div summary:focus {
    outline: none;
}

.product-div summary::after {
    content: "+";
    color: var(--pri-color);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.product-div details[open] > summary::after {
    content: "−";
}

.product-div .inner-content {
    padding-bottom: 1em;
}

#all-specs {
    scroll-margin-top: calc(var(--header-height) + 20px);
}
