/*
 Theme Name: Eroproducts Child
 Theme URI: https://www.eroproducts.nl
 Description: Child theme van Kadence voor Eroproducts
 Author: FG Internet
 Template: kadence
 Version: 1.0
 Text Domain: eroproducts-child
*/


.woocommerce ul.products li.woo-archive-btn-button .button:not(.kb-button),
.woocommerce ul.products.woo-archive-btn-button .button:not(.kb-button) {
    background: #fa6378;
}

/* Productafbeeldingen in categorie-overzicht gelijk maken */
.woocommerce ul.products li.product .woocommerce-loop-image-link {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-image-link img {
    width: 100%;
    height: 100%;
    max-width: 230px;
    max-height: 230px;
    object-fit: contain;
    object-position: center;
}

.woocommerce div.product .product_title {
    font-style: normal;
    font-size: 28px;
    line-height: 1.3;
}

h1 {
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    text-transform: none;
    color: var(--global-palette3);
}



h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    text-transform: none;
    color: var(--global-palette3);
}


h3 {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    text-transform: none;
    color: var(--global-palette3);
}


button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"], .fl-button, .elementor-button-wrapper .elementor-button, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    font-family: Rubik, sans-serif;
    text-transform: none;
    border-radius: 0px;
    padding: 17px 45px 17px 45px;
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
}

.woocommerce ul.products.woo-archive-btn-button .product-action-wrap .button:not(.kb-button), .woocommerce ul.products li.woo-archive-btn-button .button:not(.kb-button), .wc-block-grid__product.woo-archive-btn-button .product-details .wc-block-grid__product-add-to-cart .wp-block-button__link
 {
    border-radius: 16px;
}

.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
    background-color: #fa6378;
    color: var(--global-palette-btn);
    -webkit-font-smoothing: antialiased;
    border-radius: 16px;
}


.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover {
    background-color: #fa6378;
    color: var(--global-palette-btn-hover);
    border-radius: 16px;
}

.archive-extra-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 8px 0 5px;
    color: #555;
}

.eroproducts-mega-menu {
    position: relative;
    z-index: 9999;
}

.eroproducts-mega-top {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eroproducts-mega-item {
    position: static;
    list-style: none;
}

.eroproducts-mega-link {
    display: block;
    padding: 14px 0;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.eroproducts-mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translateX(-40%);
  width: calc(100vw - 60px);
  max-width: 1400px;
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0 0 30px rgba(0,0,0,.15);
  z-index: 99999;
}

.eroproducts-mega-item:hover > .eroproducts-mega-panel {
    display: block;
}

.eroproducts-mega-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 20px;
}

.eroproducts-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
}

.woocommerce div.product span.price, .woocommerce div.product p.price {
    font-size: 1.25em;
    font-weight: 700;
}

.eroproducts-mega-heading {
    color: #111 !important;
    font-weight: 700;
}

.eroproducts-mega-column li a {
    color: #333 !important;
}

.eroproducts-mega-column li a:hover,
.eroproducts-mega-heading:hover {
    color: #fa6378 !important;
}

.eroproducts-mega-panel a {
    text-decoration: none;
}

.eroproducts-mega-panel a:hover {
    text-decoration: none;
}

.eroproducts-mega-link {
    display: block;
    padding: 14px 0;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.inner-link-style-normal a:not(.button), .widget-area.inner-link-style-normal a:not(.button) {
    text-decoration: none;
}

/* Vaste hoogte voor de galerij */
.flex-viewport {
    height: 525px !important;
}

/* Afbeelding netjes centreren */
.woocommerce-product-gallery__image a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Thumbnails */
.flex-control-thumbs img {
    object-fit: contain;
}

/* Thumbnails onder productafbeelding */
.flex-control-thumbs {
    display: flex;
    gap: 12px;              /* Ruimte tussen de afbeeldingen */
    margin-top: 15px;
}

.flex-control-thumbs li {
    margin: 0 !important;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
    transition: all .2s ease;
}

.flex-control-thumbs li img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1 !important;
}

/* Hover */
.flex-control-thumbs li:hover {
    border-color: #fa6378;
}

/* Actieve thumbnail */
.flex-control-thumbs li.flex-active,
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
    border-color: #fa6378;
}

.flex-control-thumbs li.flex-active {
    border: 2px solid #fa6378;
}

.flex-control-thumbs img.flex-active {
    outline: 2px solid #fa6378;
    outline-offset: -2px;
}

/* Aanbiedingsprijs rood */
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce ul.products li.product .price ins {
    color: #e30613;
    text-decoration: none;
    font-weight: 700;
}

.woocommerce div.product p.price ins .amount,
.woocommerce div.product span.price ins .amount,
.woocommerce ul.products li.product .price ins .amount {
    color: #e30613;
}

.woocommerce del,
.woocommerce del .amount {
    color: #999;
}

.woocommerce div.product .stock {
  color: #096;
}

.eroproducts-saving {
    margin-top: -8px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.eroproducts-saving-icon {
    margin-right: 4px;
}

.woocommerce .star-rating {
    float: right;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5em;
    font-family: "star";
    color: #ffc51a;
    letter-spacing: normal;
    word-break: normal;
    white-space: normal;
}

/* Mobiele menuknop */
.eroproducts-mobile-menu-toggle {
    display: none;
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.eroproducts-mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #222;
    display: block;
    position: relative;
}

.eroproducts-mobile-menu-toggle span::before,
.eroproducts-mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #222;
}

.eroproducts-mobile-menu-toggle span::before {
    top: -7px;
}

.eroproducts-mobile-menu-toggle span::after {
    top: 7px;
}

/* Mobiel menu standaard verborgen */
.eroproducts-mobile-menu,
.eroproducts-mobile-menu-overlay {
    display: none;
}

/* Mobiele weergave */
@media (max-width: 991px) {

    .eroproducts-mobile-menu-toggle {
        display: inline-flex !important;
    }

    .eroproducts-mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        z-index: 9998;
        transition: opacity .25s ease;
    }

    .eroproducts-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 98%;
        max-width: 380px;
        height: 100vh;
        background: #fff;
        color: #1a1a1a;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform .25s ease;
        padding: 60px 20px 24px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .eroproducts-mobile-menu * {
        box-sizing: border-box;
    }

    body.mobile-menu-open .eroproducts-mobile-menu {
        transform: translateX(0);
    }

    body.mobile-menu-open .eroproducts-mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .eroproducts-mobile-menu-close {
        position: absolute;
        top: 14px;
        right: 18px;
        z-index: 10000;
        background: transparent;
        border: 0;
        color: #1a1a1a;
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    /* Accordion menu */
    .eroproducts-mobile-accordion ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .eroproducts-mobile-accordion a,
    .eroproducts-mobile-accordion button {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        background: transparent;
        border: 0;
        color: #1a1a1a;
        text-decoration: none;
        padding: 14px 0;
        font-size: 15px;
        font-weight: 700;
        text-align: left;
        border-bottom: 1px solid #e4d6cf;
        cursor: pointer;
    }

    .eroproducts-mobile-accordion .mobile-menu-label {
        display: block;
        flex: 1 1 auto;
        transform: none !important;
        writing-mode: horizontal-tb !important;
    }

    .eroproducts-mobile-accordion .mobile-menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 20px;
        width: 20px;
        transform: none !important;
    }

    .eroproducts-mobile-accordion .mobile-submenu {
        display: none;
        padding-left: 15px;
    }

    .eroproducts-mobile-accordion
    .mobile-cat-item.is-open
    > .mobile-submenu {
        display: block;
    }

    .eroproducts-mobile-accordion .mobile-submenu a {
        font-size: 14px;
        font-weight: 500;
        text-transform: none;
        padding: 10px 0;
    }

    .eroproducts-mobile-accordion .mobile-submenu ul {
        padding-left: 15px;
    }

    .eroproducts-mobile-accordion .mobile-submenu ul a {
        font-size: 15px;
        font-weight: 400;
        border-bottom: 0;
    }

    .eroproducts-mobile-accordion .mobile-grandmenu {
        display: none;
        padding-left: 15px;
    }

    .eroproducts-mobile-accordion
    .mobile-subcat-item.is-open
    > .mobile-grandmenu {
        display: block;
    }

    .eroproducts-mobile-accordion .mobile-subcat-toggle {
        font-size: 15px;
        font-weight: 500;
        padding: 10px 0;
    }

    .eroproducts-mobile-accordion .mobile-grandmenu a {
        font-size: 13px;
        font-weight: 400;
        padding: 8px 0;
        border-bottom: 0;
    }
}

.eroproducts-topbar {
    background: #f65775;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    z-index: 999;
}

.eroproducts-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    gap: 35px;
}

@media (max-width:768px){

    .eroproducts-topbar-inner{
        justify-content:center;
        padding:8px 10px;
    }

    .eroproducts-topbar-inner span{
        display:none;
    }

    .eroproducts-topbar-inner span:first-child{
        display:block;
        font-size:13px;
        text-align:center;
    }

}

.secondary-navigation .secondary-menu-container > ul > li.menu-item > a {
  padding-left: calc(1.2em / 2);
  padding-right: calc(1.2em / 2);
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  color: #1a1a1a;
}

@media (max-width:991px){

.eroproducts-mobile-account{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    color:#222;
    margin-right:8px;
    text-decoration:none;
}

.eroproducts-mobile-account svg{
    width:24px;
    height:24px;
}

.site-header-main-section-right{
    display:flex;
    align-items:center;
}

}

.eroproducts-mobile-account-block {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e4d6cf;
}

.eroproducts-mobile-account-title {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
}

.eroproducts-mobile-account-block a {
    color: #1a1a1a;
    display: block;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 600;
}

.eroproducts-category-seo-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 16px;
    line-height: 1.7;
}

.eroproducts-category-seo-bottom h2 {
    margin: 32px 0 14px;
    font-size: 28px;
    line-height: 1.3;
}

.eroproducts-category-seo-bottom h3 {
    margin: 24px 0 10px;
    font-size: 22px;
    line-height: 1.4;
}

.eroproducts-category-seo-bottom p {
    margin-bottom: 18px;
}

.eroproducts-category-seo-bottom ul {
    margin: 20px 0;
    padding-left: 24px;
}

.eroproducts-category-seo-bottom li {
    margin-bottom: 8px;
}

.eroproducts-category-seo-bottom a {
    text-decoration: underline;
}

.eroproducts-category-seo-bottom strong {
    font-weight: 600;
}

.eroproducts-readmore-content {
    display: none;
}

.eroproducts-readmore-open .eroproducts-readmore-content {
    display: inline;
}

.eroproducts-readmore-toggle {
    background: none;
    border: 0;
    padding: 0;
    color: #fa6378;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.woocommerce span.onsale {
    background-color: #fff;
    color: #fa6378;

    border: 1px solid #fa6378;
}

.woocommerce ul.products li.product {
    position: relative;
}

.eroproducts-popular-badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  background: #fff;
  color: #7b3f61;
  border: 1px solid #7b3f61;
  border-radius: .25rem;
  padding: 6px 12px;
  font-size: .857em;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 10px 0;
}

.woocommerce ul.products li.product .eroproducts-popular-badge {
    width: auto !important;
    display: inline-flex !important;
    align-self: flex-start;
}

.woocommerce ul.products li.product .onsale {
  top: 0px;
  right: auto;
  left: 2px;
  margin: 0;
}

@media (max-width:991px){
.woocommerce ul.products li.product .onsale {
  top: 0px;
  right: 2px;
  left: auto;
  margin: 0;
}
}


.eroproducts-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    margin: 0px 0;
}

.eroproducts-stock-status.in-stock {
    color: #1f8f3b;
}

.eroproducts-stock-status.out-of-stock {
    color: #d63638;
}

.eroproducts-stock-status .stock-icon {
    font-size: 14px;
    line-height: 1;
}


/* Productblok kennisbank */
.fg-knowledgebase-products {
    margin: 40px 0;
    width: 100%;
}

.fg-knowledgebase-products .fg-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.fg-knowledgebase-products .fg-knowledgebase-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 15px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.fg-knowledgebase-products .fg-knowledgebase-product img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin: 0 0 15px;
}

.fg-knowledgebase-products .fg-knowledgebase-product h3 {
    flex-grow: 1;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.fg-knowledgebase-products .fg-knowledgebase-product h3 a {
    color: inherit;
    text-decoration: none;
}

.fg-knowledgebase-products .fg-product-price {
    margin: 10px 0;
    color: #111;
    font-size: 20px;
    font-weight: 700;
}

.fg-knowledgebase-products .fg-product-button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    color: #fff;
    background: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s ease;
}

.fg-knowledgebase-products .fg-product-button:hover {
    color: #fff;
    opacity: .9;
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .fg-knowledgebase-products .fg-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobiel */
@media screen and (max-width: 640px) {
    .fg-knowledgebase-products .fg-product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }

    .fg-knowledgebase-products .fg-knowledgebase-product img {
        height: 180px;
    }
}


@media screen and (max-width: 719px) {

    /* Eén product per rij */
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Horizontale productkaart */
    .woocommerce ul.products li.product.entry {
        display: grid !important;
        grid-template-columns: 48% minmax(0, 52%) !important;
        grid-template-rows: auto !important;
        align-items: start !important;
        column-gap: 14px !important;

        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 18px 0px !important;

        border: 0 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: none !important;
    }

    /* Afbeeldingsgedeelte links */
    .woocommerce ul.products li.product.entry
    > .woocommerce-loop-image-link {
        grid-column: 1 !important;
        grid-row: 1 !important;

        position: relative !important;
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 35px 0 0 !important;
        overflow: visible !important;
    }

    /* Productafbeelding */
    .woocommerce ul.products li.product.entry
    > .woocommerce-loop-image-link img {
        display: block !important;
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;

        margin: 0 auto !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
    }

    /* Aanbiedingsbadge linksboven */
    .woocommerce ul.products li.product.entry .onsale {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;
        line-height: 1 !important;

        margin: 0 !important;
        padding: 7px 9px !important;

        font-size: 11px !important;
        border-radius: 0 !important;
        z-index: 3 !important;
    }

    /* Productinformatie rechts */
    .woocommerce ul.products li.product.entry
    > .product-details {
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: auto !important;
        min-width: 0 !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Titel */
    .woocommerce ul.products li.product.entry
    .woocommerce-loop-product__title {
        margin: 0 0 4px !important;
        padding: 0 !important;

        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        text-align: left !important;
    }

    .woocommerce ul.products li.product.entry
    .woocommerce-loop-product__title a {
        display: -webkit-box;
        color: inherit !important;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Sterren */
    .woocommerce ul.products li.product.entry .star-rating {
        margin: 2px 0 6px !important;
        font-size: 12px !important;
    }

    /* Prijs */
    .woocommerce ul.products li.product.entry .price {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 4px !important;

        margin: 0 0 5px !important;
        padding: 0 !important;

        font-size: 14px !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    .woocommerce ul.products li.product.entry .price del {
        font-size: 12px !important;
        opacity: .55 !important;
    }

    .woocommerce ul.products li.product.entry .price ins {
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    /* Besparing */
    .woocommerce ul.products li.product.entry .eroproducts-saving {
        margin: 0 0 8px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    /* USP-lijst */
    .woocommerce ul.products li.product.entry .archive-extra-text {
        margin: 0 0 8px !important;
    }

    .woocommerce ul.products li.product.entry
    .archive-extra-bullets {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;

        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .woocommerce ul.products li.product.entry
    .archive-extra-bullets li {
        margin: 0 0 2px !important;
        padding: 0 !important;
    }

    /* Voorraadstatus */
    .woocommerce ul.products li.product.entry
    .eroproducts-stock-status {
        margin: 7px 0 10px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* Winkelwagenknop */
    .woocommerce ul.products li.product.entry
    .product-action-wrap {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product.entry
    .product-action-wrap .button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 10px 8px !important;

        font-size: 12px !important;
        line-height: 1 !important;
        text-align: center !important;
        border-radius: 0 !important;
    }

    .archive-extra-bullets {
        overflow: hidden;
        box-shadow: none;
        border: none;
        margin: 0 0 4px;
        line-height: initial;
    }

    .archive-extra-bullets li {
        line-height: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #333;
        overflow: hidden;
        position: relative;
        /* padding-left: 8px; */
        letter-spacing: 0.2px;
    }
}



/* ======================================================
   Desktop categorie-accordion
   ====================================================== */

.eroproducts-category-sidebar {
    width: 100%;
    font-size: 17px;
    line-height: 1.4;
}

.eroproducts-category-list,
.eroproducts-category-children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eroproducts-category-item {
    margin: 0;
    padding: 0;
}

/* Regel met categorienaam en knop */
.eroproducts-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Categorielink */
.eroproducts-category-link {
    display: flex;
    align-items: baseline;
    flex: 1;
    min-width: 0;
    gap: 4px;
    padding: 8px 0;
    color: #111;
    text-decoration: none;
}

.eroproducts-category-link:hover {
    color: #ff5d73;
}

/* Hoofdcategorieën */
.eroproducts-category-parent
> .eroproducts-category-row
> .eroproducts-category-link {
    font-weight: 600;
}

/* Productaantal */
.eroproducts-category-count {
    flex-shrink: 0;
    color: #8b8b8b;
    font-size: 12px;
    font-weight: 400;
    display: none;
}

/* Open- en sluitknop */
.eroproducts-category-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
}

/* Horizontale lijn van het plusje */
.eroproducts-category-toggle span::before,
.eroproducts-category-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

/* Verticale lijn van het plusje */
.eroproducts-category-toggle span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Bij open categorie verandert + in - */
.eroproducts-category-item.is-open
> .eroproducts-category-row
.eroproducts-category-toggle span::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Subcategorieën standaard verbergen */
.eroproducts-category-children {
    display: none;
    padding-left: 14px;
}

/* Alleen de kinderen van de geopende categorie tonen */
.eroproducts-category-item.is-open
> .eroproducts-category-children {
    display: block;
}

/* Subcategorieën */
.eroproducts-category-child
> .eroproducts-category-row
> .eroproducts-category-link {
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: 400;
}

/* Actieve categorie */
.eroproducts-category-item.is-active
> .eroproducts-category-row
> .eroproducts-category-link {
    color: #ff5d73;
    font-weight: 700;
}

/* Eventueel lichte scheiding tussen hoofdcategorieën */
.eroproducts-category-parent {
    border-bottom: 1px solid #eeeeee;
}

.eroproducts-category-parent:last-child {
    border-bottom: 0;
}

.eroproducts-category-toggle {
    visibility: hidden;
}


/* Alleen zichtbaar op grotere schermen */
@media screen and (max-width: 1024px) {
    .eroproducts-category-sidebar {
      display: none;
    }
}


/* ======================================================
   EROPRODUCTS HORIZONTALE FILTERBALK
   ====================================================== */

.eroproducts-filterbar {
    position: relative;
    width: 100%;
    margin: 18px 0 24px;
    z-index: 1;
}

.eroproducts-filterbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;
}

/* Filter */
.eroproducts-filter {
    position: relative;
}

/* Hoofdknop */
.eroproducts-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 44px;
    margin: 0;
    padding: 10px 15px;

    border: 1px solid #cfd3d8;
    border-radius: 0;

    background: #fff;
    color: #111827;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    box-shadow: none;
    cursor: pointer;

    transition:
        border-color .18s ease,
        color .18s ease,
        background-color .18s ease;
}

.eroproducts-filter-button:hover,
.eroproducts-filter.is-open .eroproducts-filter-button {
    border-color: #ff5d73;
    color: #ff5d73;
}

/* Pijltje */
.eroproducts-filter-chevron {
    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.eroproducts-filter.is-open
.eroproducts-filter-chevron {
    transform: rotate(225deg);
}

/* Dropdown */
.eroproducts-filter-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 7px);
    left: 0;

    width: 300px;
    max-width: calc(100vw - 32px);

    padding: 18px;

    border: 1px solid #dfe2e6;
    background: #fff;

    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
    z-index: 100;
}

.eroproducts-filter.is-open
.eroproducts-filter-dropdown {
    display: block;
}

/* Laat dropdowns rechts uitlijnen aan einde */
.eroproducts-filterbar-inner
.eroproducts-filter:nth-last-child(-n+2)
.eroproducts-filter-dropdown {
    right: 0;
    left: auto;
}

/* Formulier */
.eroproducts-filter-form {
    margin: 0;
}

/* Filteropties */
.eroproducts-filter-options,
.eroproducts-rating-options,
.eroproducts-sort-options {
    display: flex;
    flex-direction: column;
    gap: 9px;

    max-height: 310px;
    overflow-y: auto;
}

/* Checkboxregel */
.eroproducts-filter-option,
.eroproducts-rating-option {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    color: #20242b;

    font-size: 13px;
    line-height: 1.3;

    cursor: pointer;
}

.eroproducts-filter-option input,
.eroproducts-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Eigen checkbox */
.eroproducts-filter-checkbox {
    position: relative;

    flex: 0 0 18px;
    width: 18px;
    height: 18px;

    border: 1px solid #b9bec6;
    background: #fff;
}

.eroproducts-filter-option
input:checked + .eroproducts-filter-checkbox {
    border-color: #ff5d73;
    background: #ff5d73;
}

.eroproducts-filter-option
input:checked + .eroproducts-filter-checkbox::after {
    content: "";

    position: absolute;
    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}

.eroproducts-filter-option-name {
    flex: 1;
}

.eroproducts-filter-option-count {
    color: #8b919a;
    font-size: 12px;
}

/* Radio */
.eroproducts-rating-option::before {
    content: "";

    flex: 0 0 17px;
    width: 17px;
    height: 17px;

    border: 1px solid #b9bec6;
    border-radius: 50%;
    background: #fff;
}

.eroproducts-rating-option:has(input:checked)::before {
    border: 5px solid #ff5d73;
}

/* Sterren */
.eroproducts-rating-stars {
    color: #ffb400;
    letter-spacing: 1px;
}

/* Prijsvelden */
.eroproducts-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eroproducts-price-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    font-size: 12px;
    font-weight: 600;
}

.eroproducts-price-fields input {
    width: 100%;
    min-height: 42px;

    margin: 0;
    padding: 8px 10px;

    border: 1px solid #c7cbd1;
    border-radius: 0;

    background: #fff;
    box-shadow: none;
}

/* Actieknoppen */
.eroproducts-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid #eceef0;
}

.eroproducts-filter-clear,
.eroproducts-filter-apply {
    min-height: 39px;
    margin: 0;
    padding: 8px 13px;

    border-radius: 0;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.eroproducts-filter-clear {
    border: 1px solid #cfd3d8;
    background: #fff;
    color: #333;
}

.eroproducts-filter-apply {
    border: 1px solid #ff5d73;
    background: #ff5d73;
    color: #fff;
}

/* Actieve filters */
.eroproducts-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    margin-top: 12px;
}

.eroproducts-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 32px;
    padding: 6px 10px;

    border: 1px solid #d6d9de;
    background: #fff;
    color: #24282f;

    font-size: 12px;
    text-decoration: none;
}

.eroproducts-active-filter:hover {
    border-color: #ff5d73;
    color: #ff5d73;
}

.eroproducts-clear-all {
    margin-left: 5px;

    color: #ff5d73;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}

/* Mobiele knop standaard weg */
.eroproducts-mobile-filter-toggle {
    display: none;
}

/* ======================================================
   MOBIEL
   ====================================================== */

@media screen and (max-width: 719px) {

    .eroproducts-filterbar {
        margin: 14px 0 18px;
    }

    .eroproducts-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;

        width: 100%;
        min-height: 46px;

        margin: 0;
        padding: 10px 15px;

        border: 1px solid #ff5d73;
        border-radius: 0;

        background: #ff5d73;
        color: #fff;

        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
    }

    .eroproducts-filterbar-inner {
        display: none;

        margin-top: 10px;
        padding: 12px;

        border: 1px solid #e0e3e7;
        background: #fff;
    }

    .eroproducts-filterbar.is-mobile-open
    .eroproducts-filterbar-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .eroproducts-filter {
        width: 100%;
    }

    .eroproducts-filter-button {
        width: 100%;
    }

    .eroproducts-filter-dropdown {
        position: static;

        width: 100%;
        max-width: none;

        margin-top: 6px;
        padding: 15px;

        box-shadow: none;
    }

    .eroproducts-active-filters {
        margin-top: 10px;
    }
}

/* Hover en actieve filterknop corrigeren */
.eroproducts-filter-button:hover,
.eroproducts-filter.is-open .eroproducts-filter-button {
    border-color: #ff5d73 !important;
    background: #ff5d73 !important;
    color: #ffffff !important;
}

/* Tekst en pijltje ook wit houden */
.eroproducts-filter-button:hover span,
.eroproducts-filter.is-open .eroproducts-filter-button span {
    color: #ffffff !important;
}

.eroproducts-filter-button:hover .eroproducts-filter-chevron,
.eroproducts-filter.is-open .eroproducts-filter-chevron {
    border-color: #ffffff !important;
}