/* BIOBEY FR COMMERCE — loaded only in Woo/product-card contexts */

/* =========================================================
   4. WOOCOMMERCE ALGEMEEN
   ========================================================= */

.woocommerce-error {
    background: #fff !important;
    color: #e2401c !important;
}

.single-product span.rank-math-gtin-wrapper,
.single-product time.woocommerce-review__published-date {
    color: #000;
}

.woocommerce div.product div.summary p.in-stock {
    color: #327a09;
}


/* Sidebar productcategorie mobiel/tablet */

@media (max-width: 1025px) {

    body.archive.tax-product_cat .widget-area.sidebar-primary {
        display: none;
    }
}

/* =========================================================
   5. TOEGEVOEGD-AAN-WINKELMAND ICONEN WEG
   ========================================================= */

.woocommerce ul.products li.product a.added_to_cart::before,
.woocommerce ul.products li.product a.added_to_cart::after,
a.added_to_cart.wc-forward::before,
a.added_to_cart.wc-forward::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   6. SALE PRIJZEN
   ========================================================= */

.woocommerce del,
.woocommerce del .amount,
.woocommerce del .woocommerce-Price-amount,
.price del,
.price del .amount,
del .woocommerce-Price-amount,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce div.product div.summary .price del,
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    color: #333 !important;
    opacity: 1 !important;
}

/* =========================================================
   7. STERREN
   ========================================================= */

.woocommerce .star-rating,
.woocommerce .star-rating span:before,
.woocommerce .star-rating:before {
    font-size: 17px !important;
    line-height: 1.2 !important;
}

.woocommerce .star-rating span:before {
    color: #E3B341 !important;
}

.woocommerce .star-rating:before {
    color: #8C8C8C !important;
    opacity: 1 !important;
}

.woocommerce p.stars a:hover:before,
.woocommerce p.stars a:focus:before {
    color: #F58220 !important;
}

/* =========================================================
   9. PRODUCT CARDS / ARCHIVES
   ========================================================= */

.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.woocommerce ul.products li.product .product-inner,
.woocommerce ul.products li.product .woo-entry-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}


/* Producttitel */

.woocommerce ul.products li.product li.title {
    margin-top: 9px;
    margin-bottom: 0;
}

.woocommerce ul.products li.product li.title h2 {
    display: -webkit-box !important;
    overflow: hidden !important;

    min-height: 2.6em;
    max-height: 2.6em !important;

    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.3 !important;

    letter-spacing: 0;

    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.woocommerce ul.products li.product li.title h2 a {
    display: block !important;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;

    text-transform: none;
}


/* Short description uit Biobey snippet */

.archive-product-short-desc {
    display: -webkit-box;
    overflow: hidden;

    min-height: 4.2em;
    max-height: 4.2em;

    margin: 6px 0 8px;

    color: #454545;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0;

    text-align: center;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* Oude description fallback */

.woocommerce ul.products li.product [itemprop="description"] p {
    display: -webkit-box !important;
    overflow: hidden !important;

    margin: 6px 0 8px;

    font-size: 13px;
    line-height: 1.4 !important;

    max-height: 4.2em !important;

    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}


/* Prijs */

.woocommerce ul.products li.product .price {
    margin-top: 5px;
    margin-bottom: 10px;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price .amount {
    font-size: inherit;
    font-weight: inherit;
}


/* Knop altijd zo laag mogelijk */

.woocommerce ul.products li.product li.btn-wrap {
    margin-top: auto !important;
}


/* Productknoppen */

.products .product .button,
.products .product .add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 85% !important;

    box-sizing: border-box !important;

    border-radius: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0;
    text-transform: none;
}

.products .product .added_to_cart {
    display: none !important;
}


/* Out of stock badge weg */

.archive .outofstock-badge,
.post-type-archive-product .outofstock-badge,
.tax-product_cat .outofstock-badge,
.woocommerce-shop .outofstock-badge,
.upsells .outofstock-badge,
.up-sells .outofstock-badge,
.related .outofstock-badge {
    display: none !important;
}


/* Productcards mobiel */

@media (max-width: 600px) {

    .woocommerce ul.products li.product li.title h2 {
        font-size: 15px;
        line-height: 1.3 !important;
    }

    .archive-product-short-desc {
        margin: 5px 0 7px;

        font-size: 12.5px;
        line-height: 1.4;
    }

    .woocommerce ul.products li.product .price {
        font-size: 15px;
    }

    .products .product .button,
    .products .product .add_to_cart_button {
        font-size: 13px;
    }
}

/* =========================================================
   16. FILTERCHECKBOXES
   ========================================================= */

.widget_layered_nav ul li a::before,
.widget_layered_nav_filters ul li a::before,
.woocommerce-widget-layered-nav-list li a::before {
    content: "" !important;

    display: inline-block;

    width: 13px;
    height: 13px;

    margin-right: 9px;

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

    background: #fff;

    vertical-align: -2px;

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif !important;
}

.widget_layered_nav ul li.chosen a::before,
.widget_layered_nav_filters ul li.chosen a::before,
.woocommerce-widget-layered-nav-list li.chosen a::before,
.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item--chosen a::before {
    content: "✓" !important;

    background: #2f6b4f;
    border-color: #2f6b4f;
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    line-height: 12px;
    text-align: center;
}

.widget_layered_nav ul li a:hover::before,
.woocommerce-widget-layered-nav-list li a:hover::before {
    border-color: #2f6b4f;
}

/* =========================================================
   18. PAGINERING
   ========================================================= */

.woocommerce-pagination {
    margin-bottom: 35px;
}

/* =========================================================
   19. SALE BADGE VERBERGEN
   ========================================================= */

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.single-product span.onsale,
.product span.onsale {
    display: none !important;
}

/* =========================================================
   20. PRODUCT OP BESTELLING
   ========================================================= */

.biobey-sur-commande-button {
    pointer-events: none !important;
    cursor: default !important;
    opacity: .85;
    text-align: center;
}

.biobey-sur-commande-box {
    margin-top: 15px;
}

.biobey-sur-commande-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
