:root {
    --winkelman-purple: #5b123f;
    --winkelman-purple-dark: #3d0c2b;
    --winkelman-soft: #fbf5f9;
    --winkelman-border: #e4d7df;
    --winkelman-text: #2b1c29;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Duidelijke variatiekeuzes voor inhoud, maat en uitvoering. */
.single-product .variations_form .variations {
    width: 100%;
    margin: 18px 0 8px;
    border: 0;
}

.single-product .variations_form .variations tbody,
.single-product .variations_form .variations tr,
.single-product .variations_form .variations th,
.single-product .variations_form .variations td {
    display: block;
    width: 100%;
}

.single-product .variations_form .variations tr {
    margin: 0 0 22px;
}

.single-product .variations_form .variations th,
.single-product .variations_form .variations td {
    padding: 0 !important;
    background: transparent !important;
    text-align: left;
}

.single-product .variations_form .variations th label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    color: var(--winkelman-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.winkelman-choice-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--winkelman-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.single-product .variations_form .variations select.winkelman-original-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.winkelman-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    width: 100%;
}

.winkelman-choice-button {
    position: relative;
    min-height: 58px;
    padding: 12px 14px;
    border: 2px solid var(--winkelman-border);
    border-radius: 8px;
    background: #fff;
    color: var(--winkelman-text);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.winkelman-choice-button::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 9px -2px 0;
    border: 2px solid #b99cac;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.winkelman-choice-button:hover,
.winkelman-choice-button:focus-visible {
    border-color: var(--winkelman-purple);
    box-shadow: 0 5px 16px rgba(91, 18, 63, .14);
    outline: none;
    transform: translateY(-1px);
}

.winkelman-choice-button.is-selected {
    border-color: var(--winkelman-purple);
    background: var(--winkelman-soft);
    color: var(--winkelman-purple);
    box-shadow: 0 0 0 1px var(--winkelman-purple);
}

.winkelman-choice-button.is-selected::before {
    border: 4px solid var(--winkelman-purple);
}

.winkelman-choice-button.is-unavailable,
.winkelman-choice-button:disabled {
    border-color: #e6e6e6;
    background: #f5f5f5;
    color: #969696;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .75;
    text-decoration: line-through;
    transform: none;
}

.single-product .variations_form .reset_variations {
    display: inline-block !important;
    margin-top: 10px;
    color: var(--winkelman-purple);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}

.single-product .woocommerce-variation-price {
    margin: 8px 0 14px;
    color: var(--winkelman-text);
    font-size: 22px;
    font-weight: 800;
}

/* Filters boven de winkel. */
.winkelman-shop-filters {
    clear: both;
    margin: 0 0 26px;
    padding: 20px;
    border: 1px solid var(--winkelman-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(54, 28, 46, .07);
}

.winkelman-shop-filters__heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.winkelman-shop-filters__heading strong {
    color: var(--winkelman-text);
    font-size: 18px;
}

.winkelman-shop-filters__heading span {
    color: #6c6268;
    font-size: 14px;
}

.winkelman-shop-filters form {
    display: grid;
    grid-template-columns: minmax(210px, 1.6fr) repeat(4, minmax(120px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.winkelman-shop-filters label,
.winkelman-shop-filters__actions {
    min-width: 0;
}

.winkelman-shop-filters label > span {
    display: block;
    margin-bottom: 5px;
    color: var(--winkelman-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.winkelman-shop-filters input,
.winkelman-shop-filters select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cfc4ca;
    border-radius: 6px;
    background: #fff;
    color: var(--winkelman-text);
}

.winkelman-shop-filters input:focus,
.winkelman-shop-filters select:focus {
    border-color: var(--winkelman-purple);
    box-shadow: 0 0 0 2px rgba(91, 18, 63, .12);
    outline: none;
}

.winkelman-shop-filters__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.winkelman-shop-filters__actions button {
    min-height: 44px;
    padding: 9px 17px;
    border: 0;
    border-radius: 6px;
    background: var(--winkelman-purple);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.winkelman-shop-filters__actions button:hover,
.winkelman-shop-filters__actions button:focus-visible {
    background: var(--winkelman-purple-dark);
}

.winkelman-shop-filters__actions a {
    color: var(--winkelman-purple);
    font-weight: 700;
    text-decoration: underline;
}

.winkelman-loop-action {
    margin-top: 12px;
}

.winkelman-loop-action .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px !important;
    border-radius: 6px;
    background: var(--winkelman-purple) !important;
    color: #fff !important;
    font-weight: 800;
    text-align: center;
}

.winkelman-loop-action .button:hover,
.winkelman-loop-action .button:focus-visible {
    background: var(--winkelman-purple-dark) !important;
}

.winkelman-loop-action .button::after {
    display: none !important;
    content: none !important;
}

/* De belangrijkste homepageknoppen blijven goed leesbaar en aanklikbaar. */
.page-id-9 .et_pb_button,
.home .et_pb_button {
    min-height: 44px;
    line-height: 1.25 !important;
}

@media (max-width: 1100px) {
    .winkelman-shop-filters form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .winkelman-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .page-id-9 .et_pb_fullwidth_slider_0 .et_pb_container {
        height: 470px !important;
        min-height: 470px !important;
    }

    .page-id-9 .et_pb_fullwidth_slider_0 .et_pb_slide_description {
        padding: 88px 20px 54px !important;
    }

    body.page-id-9 .et_pb_section .et_pb_fullwidth_slider_0 .et_pb_slide .et_pb_slide_title {
        font-size: clamp(34px, 10vw, 48px) !important;
        line-height: 1.05 !important;
    }

    body.page-id-9 .et_pb_section .et_pb_button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px !important;
    }

    .winkelman-shop-filters {
        margin: 0 0 20px;
        padding: 16px;
        border-radius: 9px;
    }

    .winkelman-shop-filters__heading {
        display: block;
    }

    .winkelman-shop-filters__heading span {
        display: block;
        margin-top: 4px;
    }

    .winkelman-shop-filters form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .winkelman-filter-search,
    .winkelman-shop-filters__actions {
        grid-column: 1 / -1;
    }

    .winkelman-shop-filters__actions button {
        flex: 1;
    }

    body.woocommerce-shop .et_pb_section .et_pb_row_0_tb_body,
    body.tax-product_cat .et_pb_section .et_pb_row_0_tb_body,
    body.tax-product_brand .et_pb_section .et_pb_row_0_tb_body {
        width: 100% !important;
        max-width: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.woocommerce-shop .et_pb_section .et_pb_shop_0_tb_body,
    body.tax-product_cat .et_pb_section .et_pb_shop_0_tb_body,
    body.tax-product_brand .et_pb_section .et_pb_shop_0_tb_body,
    body.woocommerce-shop .et_pb_section .et_pb_shop .woocommerce,
    body.tax-product_cat .et_pb_section .et_pb_shop .woocommerce,
    body.tax-product_brand .et_pb_section .et_pb_shop .woocommerce {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_brand ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px !important;
    }

    body.woocommerce-shop ul.products::before,
    body.woocommerce-shop ul.products::after,
    body.tax-product_cat ul.products::before,
    body.tax-product_cat ul.products::after,
    body.tax-product_brand ul.products::before,
    body.tax-product_brand ul.products::after {
        display: none !important;
    }

    body.woocommerce-shop ul.products li.product,
    body.tax-product_cat ul.products li.product,
    body.tax-product_brand ul.products li.product,
    body.woocommerce-shop .et_pb_section .et_pb_shop .woocommerce ul.products li.product,
    body.tax-product_cat .et_pb_section .et_pb_shop .woocommerce ul.products li.product,
    body.tax-product_brand .et_pb_section .et_pb_shop .woocommerce ul.products li.product {
        float: none !important;
        clear: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        border: 1px solid #ece5e9;
        border-radius: 9px;
        background: #fff;
    }

    ul.products li.product a img {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        margin-bottom: 10px !important;
    }

    ul.products li.product .woocommerce-loop-product__title {
        min-height: 3.9em;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    ul.products li.product .price {
        min-height: 2.8em;
        font-size: 14px !important;
        line-height: 1.35;
    }

    ul.products li.product .button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin-top: 9px !important;
        padding: 8px !important;
        text-align: center;
    }

    .winkelman-loop-action .button {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    ul.products li.product .onsale {
        min-width: 42px;
        min-height: 42px;
        padding: 6px;
        font-size: 11px;
        line-height: 30px;
    }

    .winkelman-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .winkelman-choice-button {
        min-height: 54px;
        padding: 10px 11px;
        font-size: 14px;
    }

    .single-product .wkrv {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 360px) {
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_brand ul.products,
    .winkelman-shop-filters form,
    .winkelman-choice-grid {
        grid-template-columns: 1fr !important;
    }

    .winkelman-filter-search,
    .winkelman-shop-filters__actions {
        grid-column: auto;
    }
}
