:root {
	--wd-text-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(118,118,118);
	--wd-text-font-size: 15px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: #83b735;
	--wd-alternative-color: #fbbc34;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: #83b735;
	--btn-accented-bgcolor-hover: #74a32f;
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
	--wd-popup-padding: 15px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
body[class*="wrapper-boxed"] {
	background-color: rgb(235,244,235);
	background-image: none;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1160px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-default-box-shadow-active: none;
--btn-default-bottom: 0px;
--btn-accented-bottom-active: -1px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--wd-brd-radius: 0px;
}



.wd-page-title {
background-color: #0a0a0a;
}

/* SAF Market - Fix WooCommerce coupon floating label */

.wc-block-components-totals-coupon__input {
    position: relative;
}

/* Input */
.wc-block-components-totals-coupon__input input {
    height: 42px !important;
    padding: 0 12px !important;
    line-height: 42px !important;
}

/* Label displayed like a placeholder */
.wc-block-components-totals-coupon__input label {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1 !important;

    pointer-events: none !important;
    transition: none !important;
}

/* Hide label when user clicks the input */
.wc-block-components-totals-coupon__input:focus-within label {
    opacity: 0 !important;
    visibility: hidden !important;
}
/* SAF Market - All main buttons RED */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wc-block-components-button,
.wd-button-wrapper a,
.single_add_to_cart_button,
button[name="add-to-cart"] {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
}

/* Hover */
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover,
.wd-button-wrapper a:hover,
.single_add_to_cart_button:hover,
button[name="add-to-cart"]:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #FFFFFF !important;
}
/* SAF Market - Prices black everywhere */
.price,
.price ins,
.price del,
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol,
.amount {
    color: #292929 !important;
}
/* SAF Market - Product action bar */
.wd-buttons {
    background-color: #E11B1D !important;
}

/* Icons white */
.wd-buttons .wd-action-btn > a,
.wd-buttons .wd-action-btn > a::before {
    color: #FFFFFF !important;
}

/* Keep red background + white icons on hover */
.wd-buttons .wd-action-btn:hover,
.wd-buttons .wd-action-btn > a:hover {
    background-color: #C81719 !important;
    color: #FFFFFF !important;
}
/* SAF Market - Charger plus de produits */
.wd-load-more {
    background: #E11B1D !important;
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
}

/* Hover */
.wd-load-more:hover {
    background: #C81719 !important;
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #FFFFFF !important;
}
/* Mini-cart - VOIR LE PANIER only */
.cart-widget-side .shopping-cart-widget-footer a:not(.checkout):first-child {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E5E5 !important;
    color: #292929 !important;
}

/* Hover */
.cart-widget-side .shopping-cart-widget-footer a:not(.checkout):first-child:hover {
    background: #F7F5EF !important;
    color: #292929 !important;
}
/* Hide product badges: POPULAIRE + discount percentage */
.product-grid-item .product-labels,
.wd-product .product-labels {
    display: none !important;
}
/* SAF Market - Cart prices black */
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-formatted-money-amount {
    color: #292929 !important;
}
/* Quantity + / - hover: SAF red */
.wc-block-components-quantity-selector__button--plus:hover,
.wc-block-components-quantity-selector__button--minus:hover {
    background: #E11B1D !important;
    color: #FFFFFF !important;
    border-color: #E11B1D !important;
    box-shadow: none !important;
    outline-color: #E11B1D !important;
}
/* SAF Market - Share product button */
.saf-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;
    padding: 10px 18px;

    background: #F7F5EF;
    border: 1px solid #E5E2DA;
    border-radius: 6px;

    color: #292929;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.saf-share-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* SAF red on hover */
.saf-share-button:hover {
    background: #E11B1D;
    border-color: #E11B1D;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Click */
.saf-share-button:active {
    transform: translateY(0);
}
/* SAF Market - Hide all product badges everywhere */
.product-labels {
    display: none !important;
}
/* Product page - UGS → Référence */
.single-product .sku_wrapper {
    font-size: 0;
}

.single-product .sku_wrapper::before {
    content: "Référence : ";
    font-size: 14px;
    font-weight: 600;
    color: #292929;
}

.single-product .sku_wrapper .sku {
    font-size: 14px;
    font-weight: 400;
}
/* Product page quantity +/- ONLY */
.single-product div.quantity button.plus.btn:hover,
.single-product div.quantity button.minus.btn:hover {
    background: #E11B1D !important;
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    outline: none !important;
}
/* Main footer content */
.wp-block-wd-row.wd-5a8188ed {
    background-color: #f2f4f7 !important;
}

/* Footer section containing that row */
footer:has(.wd-5a8188ed) {
    background-color: #f2f4f7 !important;
}

/* Keep bottom copyright area white */
.copyrights-wrapper {
    background-color: #ffffff !important;
}
/* SAF Market - Increase actual header logo image */
.whb-header .site-logo img,
.whb-header .wd-logo img,
.whb-header .wd-logo img[src*="nlogo"] {
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
}
/* "Voir les détails" button */
.popup-quick-view .view-details-btn {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
}

.popup-quick-view .view-details-btn:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #FFFFFF !important;
}


/* Quantity +/- : RED on hover */
.popup-quick-view .quantity button.plus.btn:hover,
.popup-quick-view .quantity button.minus.btn:hover {
    background: #E11B1D !important;
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
}


/* Quantity +/- : RED when clicked/focused */
.popup-quick-view .quantity button.plus.btn:focus,
.popup-quick-view .quantity button.minus.btn:focus,
.popup-quick-view .quantity button.plus.btn:active,
.popup-quick-view .quantity button.minus.btn:active {
    background: #E11B1D !important;
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
}
/* QUICK VIEW - UGS → Référence */

.popup-quick-view .sku_wrapper .meta-label {
    font-size: 0 !important;
}

.popup-quick-view .sku_wrapper .meta-label::before {
    content: "Référence :";
    font-size: 14px !important;
    font-weight: 600;
}

/* All hero carousel buttons */
.wp-block-wd-slider-item .wp-block-wd-button.btn {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #ffffff !important;
}

.wp-block-wd-slider-item .wp-block-wd-button.btn:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #ffffff !important;
}

/* SAF Market - Emballages & Hygiène banner buttons */
.wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #ffffff !important;
}

.wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #ffffff !important;
}

/* SAF Market - Boutique dropdown */
#menu-item-36905 .wd-dropdown-menu .wd-sub-menu > li {
    width: 100% !important;
}

/* Normal state */
#menu-item-36905 .wd-dropdown-menu .wd-sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px !important;
    color: #292929 !important;
}

/* Hover: full green row + white text */
#menu-item-36905 .wd-dropdown-menu .wd-sub-menu > li:hover > a {
    background-color: #63B42E !important;
    color: #ffffff !important;
}
/* Hide "Voir plus" button on Contact page */
.wp-block-wd-button.wd-ade31070 {
    display: none !important;
}

/* No products found message */
.woocommerce-no-products-found .woocommerce-info {
    background-color: #E11B1D !important;
    color: #ffffff !important;
    border-color: #E11B1D !important;
}

/* In case WoodMart uses pseudo-elements/icons */
.woocommerce-no-products-found .woocommerce-info::before,
.woocommerce-no-products-found .woocommerce-info::after {
    color: #ffffff !important;
}

/* Center ONLY the 3 SAF Market categories */
.wd-6a153cae .products.wd-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.wd-6a153cae .category-grid-item {
    flex: 0 0 calc(25% - 23px) !important;
}

/* SAF Market - 4 category banners */
.wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-cover {
    height: 380px !important;
    min-height: 380px !important;
    overflow: hidden;
}

/* Make image fill the reduced banner */
.wp-block-wd-row.wd-6e15cbe2 .wd-block-cover-img {
    height: 100% !important;
}

.wp-block-wd-row.wd-6e15cbe2 .wd-block-cover-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* SAF Market category banners - 2 x 2 grid */
.wp-block-wd-row.wd-6e15cbe2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* Each banner occupies one grid cell */
.wp-block-wd-row.wd-6e15cbe2 > .wp-block-wd-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
}

/* Hide the original button text */
.wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button {
    font-size: 0 !important;
}

/* Replace it with DÉCOUVRIR */
.wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button::after {
    content: "DÉCOUVRIR";
    font-size: 13px !important;
    color: #fff !important;
}

/* MOBILE - Category banners: 1 per row */
@media (max-width: 767px) {

    .wp-block-wd-row.wd-6e15cbe2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .wp-block-wd-row.wd-6e15cbe2 > .wp-block-wd-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }
}

/* MOBILE - Always show banner content and button */
@media (max-width: 767px) {

    /* Always display banner content */
    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-container {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Always display the button */
    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}
/* MOBILE - Center banner content */
@media (max-width: 767px) {

    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-cover {
        position: relative !important;
    }

    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;

        transform: translate(-50%, -50%) !important;

        width: 90% !important;
        max-width: 90% !important;

        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Center all texts */
    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-container p,
    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-container h2 {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center and always show button */
    .wp-block-wd-row.wd-6e15cbe2 .wp-block-wd-button {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================
   SAF MARKET - HOMEPAGE PRODUCT SECTIONS
========================================= */

.saf-home-products {
    margin: 55px 0;
}

.saf-section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.saf-section-heading h2 {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    color: #292929;
}

.saf-section-heading p {
    margin: 0;
    color: #777;
    font-size: 15px;
}


/* Mobile */

@media (max-width: 767px) {

    .saf-home-products {
        margin: 35px 0;
    }

    .saf-section-heading {
        margin-bottom: 22px;
        padding: 0 15px;
    }

    .saf-section-heading h2 {
        font-size: 22px;
    }

    .saf-section-heading p {
        font-size: 14px;
    }
}
/* =========================================
   SAF MARKET - CHECKOUT TOTAL LABELS
========================================= */

/* Sous-total -> Sous-total HT */
.wp-block-woocommerce-checkout-order-summary-subtotal-block
.wc-block-components-totals-item__label {
    font-size: 0 !important;
}

.wp-block-woocommerce-checkout-order-summary-subtotal-block
.wc-block-components-totals-item__label::after {
    content: "Sous-total HT";
    font-size: 14px;
}


/* Taxes -> TVA */
.wp-block-woocommerce-checkout-order-summary-taxes-block
.wc-block-components-totals-item__label {
    font-size: 0 !important;
}

.wp-block-woocommerce-checkout-order-summary-taxes-block
.wc-block-components-totals-item__label::after {
    content: "TVA";
    font-size: 14px;
}

/* =========================================
   SAF MARKET - PANIER
   Masquer Livraison + Frais + Taxes
========================================= */

/* Livraison */
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block,
.woocommerce-cart .wc-block-components-totals-shipping {
    display: none !important;
}

/* Frais */
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-fee-block,
.woocommerce-cart .wc-block-components-totals-fees {
    display: none !important;
}

/* Taxes / TVA */
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-taxes-block,
.woocommerce-cart .wc-block-components-totals-taxes {
    display: none !important;
}

/* SAF Market - Boutons Ajouter au panier des blocs produits */
.wc-block-grid__product-add-to-cart .wp-block-button__link {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #ffffff !important;
}

/* Hover */
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #ffffff !important;
}

/* SAF Market - Continuer vos achats */

.single-product .saf-continue-shopping {
    margin: 18px 0;
}

.single-product .saf-continue-shopping a {
    color: #292929 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.single-product .saf-continue-shopping a:hover {
    color: #E11B1D !important;
}

/* Sans livraison : remplacer "Gratuit" visuellement par "Non inclus" */

.wc-block-components-totals-item:has(
    .wc-block-components-totals-shipping__via
) .wc-block-components-totals-item__value strong {
    font-size: 0;
}

.wc-block-components-totals-item:has(
    .wc-block-components-totals-shipping__via
) .wc-block-components-totals-item__value strong::after {
    content: "Non inclus";
    font-size: 14px;
}

/* Sans livraison : remplacer "Gratuit" par "Non inclus" */
.wc-block-components-radio-control__option-layout:has(
    .wc-block-components-radio-control__label[id*="flat_rate:10"]
)
.wc-block-checkout__shipping-option--free {
    font-size: 0 !important;
}

.wc-block-components-radio-control__option-layout:has(
    .wc-block-components-radio-control__label[id*="flat_rate:10"]
)
.wc-block-checkout__shipping-option--free::after {
    content: "Non inclus";
    font-size: 13px !important;
}

/* SAF Market - préciser que le total final est TTC */
.woocommerce-checkout
.wc-block-components-totals-footer-item-tax-value::after {
    content: " TTC";
    display: inline !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Remove TTC after the price */
.woocommerce-checkout
.wc-block-components-totals-footer-item-tax-value::after {
    content: none !important;
}

/* Add TTC next to "Total" */
.woocommerce-checkout
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label::after {
    content: " TTC" !important;
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}


.saf-checkout-login-message strong {
    display: block;
    margin-bottom: 4px;

    font-size: 15px;
    font-weight: 700;
}

.saf-checkout-login-message span {
    display: block;

    color: #646970;
    font-size: 14px;
}

.woocommerce-order-details__title {
    text-indent: -9999px;
    overflow: hidden;
}

.woocommerce-order-details__title::after {
    content: "Résumé Commande";
    text-indent: 0;
    display: block;
}
/* SAF Market - Masquer navigation précédent / retour / suivant */
.single-product .wd-products-nav {
    display: none !important;
}
/* SAF Market - Bouton panier vide */
.wd-empty-mini-cart .wc-backward {
    background-color: #E11B1D !important;
    color: #fff !important;
    border-color: #E11B1D !important;
}

.wd-empty-mini-cart .wc-backward:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #fff !important;
}
/* SAF Market - Messages d'erreur WooCommerce */
.woocommerce-error {
    background-color: #E11B1D !important;
    color: #fff !important;
    border-color: #E11B1D !important;
}

.woocommerce-error li {
    color: #fff !important;
}

.woocommerce-error::before {
    color: #fff !important;
}

/* SAF Market - Barre d'information WooCommerce en rouge */
.woocommerce-info {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #fff !important;
}

.woocommerce-info,
.woocommerce-info::before {
    color: #fff !important;
}

.woocommerce-info a,
.woocommerce-info .button,
.woocommerce-info .button.wc-forward {
    color: #fff !important;
    background: transparent !important;
    border-color: #fff !important;
}

.woocommerce-info a:hover,
.woocommerce-info .button:hover,
.woocommerce-info .button.wc-forward:hover {
    color: #fff !important;
    opacity: 0.85;
}
/* SAF Market - Bouton Retour à la boutique */
.wd-empty-block-btn {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #fff !important;
}

.wd-empty-block-btn:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #fff !important;
}

/* SAF Market - Corriger taille email top bar */
.whb-y4ro7npestv02kyrww49 h4 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.whb-y4ro7npestv02kyrww49 h4 strong {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
}

.whb-y4ro7npestv02kyrww49 h4 a {
    font-size: inherit !important;
    line-height: inherit !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Centre verticalement le contenu dans la top bar */
.whb-y4ro7npestv02kyrww49 {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
/* SAF Market - WhatsApp top bar */
.saf-whatsapp-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.saf-whatsapp-header i {
    font-size: 15px;
    color: #fff;
}

.saf-whatsapp-header:hover,
.saf-whatsapp-header:hover i {
    color: #fff !important;
    opacity: 0.85;
}

.saf-home-products.saf-best-sellers {
    padding-top: 80px !important;
    clear: both !important;
}

@media (max-width: 767px) {
    .saf-home-products.saf-best-sellers {
        padding-top: 45px !important;
    }
}


/* SAF Market - Contact form submit button */
.wd-1210f7f0 .wpcf7-submit {
    background-color: #E11B1D !important;
    color: #fff !important;
    border-color: #E11B1D !important;
}

.wd-1210f7f0 .wpcf7-submit:hover {
    background-color: #C81719 !important;
    border-color: #C81719 !important;
    color: #fff !important;
}

/* SAF Market - Contact information */
.saf-contact-info {
    margin-top: 28px;
    max-width: 430px;
    border-top: 1px solid #e8e8e8;
}

.saf-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 4px;
    border-bottom: 1px solid #e8e8e8;
    color: #292929 !important;
    text-decoration: none !important;
    transition: all .2s ease;
}

a.saf-contact-item:hover {
    padding-left: 8px;
}

.saf-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f7ed;
    color: #63B42E;
    font-size: 18px;
    font-weight: 600;
}

.saf-contact-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.5;
}

.saf-contact-content strong {
    color: #292929;
    font-size: 14px;
    font-weight: 600;
}

.saf-contact-content > span {
    color: #777;
    font-size: 13px;
}

a.saf-contact-item:hover .saf-contact-content strong {
    color: #63B42E;
}
/* SAF Market - Product section headings aligned left */
.saf-section-heading {
    text-align: left !important;
}

.saf-section-heading h2,
.saf-section-heading p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Space below SAF Market slogan */
.whb-general-header {
    margin-bottom: 18px !important;
}

/* SAF Market - Replace "Connexion / inscription" visually by "CONNEXION" */
body:not(.logged-in) .whb-vssfpylqqax9pvkfnxoz .wd-tools-text {
    font-size: 0 !important;
    white-space: nowrap !important;
}

body:not(.logged-in) .whb-vssfpylqqax9pvkfnxoz .wd-tools-text::after {
    content: "CONNEXION";
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   SAF MARKET - PAGE TITLE TEXT BLACK
   ========================================= */

.page-title,
.page-title .entry-title,
.page-title .title,
.page-title h1,
.page-title h2,
.page-title a,
.page-title .breadcrumbs,
.page-title .breadcrumbs a,
.page-title .breadcrumbs span {
    color: #292929 !important;
}
/* SAF Market - Product count in categories */
.nav-link-count {
    color: #292929 !important;
}

/* ========================================
   SAF MARKET SLOGAN - ALL PAGES
   Fixed position below logo
   ======================================== */

@media (min-width: 1025px) {

    /* Give the header enough real height */
    .whb-general-header-inner {
        min-height: 125px !important;
    }

    /* Desktop logo container */
    .whb-gs8bcnxektjsro21n657 {
        position: relative !important;
        overflow: visible !important;
    }

    /* Slogan */
    .whb-gs8bcnxektjsro21n657::after {
        content: "GROSSISTE • ALIMENTAIRE • EMBALLAGE • HYGIÈNE" !important;

        position: absolute !important;

        /* Put slogan BELOW the logo */
        top: calc(100% + 12px) !important;
        bottom: auto !important;
        left: 0 !important;

        width: max-content !important;
        white-space: nowrap !important;

        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;

        color: #292929 !important;

        z-index: 20 !important;
        pointer-events: none !important;
    }

    /*
     * Reserve actual space underneath.
     * Unlike the old margin-bottom solution,
     * this space belongs to the header row.
     */
    .whb-general-header {
        padding-bottom: 25px !important;
    }


    /* ========================================
       STICKY STATE
       ======================================== */

    /* Hide slogan when WoodMart makes header sticky */
    .whb-sticked .whb-gs8bcnxektjsro21n657::after {
        content: none !important;
        display: none !important;
    }

    /* Sticky header doesn't need slogan space */
    .whb-sticked.whb-general-header {
        padding-bottom: 0 !important;
    }
}


/* ========================================
   SAF MARKET - CHECKOUT LOGIN MESSAGE
   ======================================== */

.saf-checkout-login-message {
    margin: 0 0 30px;
    padding: 16px 20px;

    background: #f1f9ec;
    border-left: 4px solid #63B42E;
    border-radius: 6px;

    color: #292929;
}
/* ========================================
   SAF MARKET - HIDE CATEGORY NAV
   FROM PAGE TITLE / BANNER
   ======================================== */

.wd-page-title .wd-nav-product-cat {
    display: none !important;
}

/* Hide mobile "Catégories" trigger too */
.wd-page-title .wd-btn-show-cat {
    display: none !important;
}
/* =========================================================
   SAF MARKET - DESKTOP SHOP FILTER TOGGLE
   ========================================================= */

@media (min-width: 1025px) {

    /* Toggle button */
    .saf-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 7px;

        margin-bottom: 18px;
        padding: 9px 16px;

        background: #63B42E;
        color: #fff !important;

        border: 0;
        border-radius: 4px;

        font-size: 13px;
        font-weight: 600;
        line-height: 1;

        cursor: pointer;
        transition: background-color .2s ease;
    }

    .saf-filter-toggle:hover {
        background: #4E9625;
    }

    /* Smooth product-area expansion */
    #main-content .wd-content-area {
        transition: width .25s ease;
    }

    /* Hide sidebar */
    body.saf-filters-hidden #main-content .sidebar-container {
        display: none !important;
    }

    /* Products take ALL available width */
    body.saf-filters-hidden #main-content .wd-content-area {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        grid-column: 1 / -1 !important;
        --wd-col-lg: 12 !important;
    }
}

/* =========================================================
   SAF MARKET - SINGLE PRODUCT CLEANUP
   ========================================================= */

/* 1. Remove "Ajouter/Supprimer de la liste de souhaits" */
.single-product .wd-wishlist-btn {
    display: none !important;
}

/* 2. Remove product tags: "Étiquette : test SAF Market" */
.single-product .product_meta .tagged_as {
    display: none !important;
}

/* =========================================================
   SAF MARKET - ADD TO CART + CONTINUER VOS ACHATS SAME ROW
   ========================================================= */

@media (min-width: 769px) {

    /* Product summary container */
    .single-product .summary-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    /* Normal elements before cart keep full width */
    .single-product .summary-inner > .product_title,
    .single-product .summary-inner > .price,
    .single-product .summary-inner > .woocommerce-product-details__short-description,
    .single-product .summary-inner > .stock {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* Add-to-cart form */
    .single-product .summary-inner > form.cart {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-right: 20px !important;
        margin-bottom: 20px !important;
    }

    /* Continue shopping - directly after Add to cart */
    .single-product .summary-inner > .saf-continue-shopping {
        position: static !important;

        flex: 0 0 auto !important;
        width: auto !important;

        margin: 0 0 20px auto !important;
        padding: 0 !important;

        text-align: right !important;
    }

    .single-product .saf-continue-shopping a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        min-height: 42px !important;

        color: #292929 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .single-product .saf-continue-shopping a:hover {
        color: #63B42E !important;
    }

    /* Everything after these buttons returns to full width */
    .single-product .summary-inner > .product_meta,
    .single-product .summary-inner > .product-share {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* ========================================
   SAF MARKET - RÉSUMÉ DE LA COMMANDE
   Bigger and clearer text
   ======================================== */

/* All product information */
.wc-block-components-order-summary-item {
    font-size: 15px !important;
}

/* Product name */
.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__description a {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Quantity number */
.wc-block-components-order-summary-item__quantity {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #292929 !important;
}

/* Prices */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__total-price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #292929 !important;
}

/* Product description / metadata */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata p {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Discount / sale badge */
.wc-block-components-product-badge {
    font-size: 13px !important;
}

/* Totals: subtotal, shipping, taxes, total */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount {
    font-size: 16px !important;
}

/* Final total */
.wc-block-components-totals-footer-item {
    font-size: 18px !important;
    font-weight: 700 !important;
}
/* =========================================================
   SAF MARKET - CHECKOUT "RÉSUMÉ DE LA COMMANDE"
   Bigger + clearer
   ========================================================= */

/* Product name */
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item
.wc-block-components-product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #292929 !important;
}

/* Quantity number on product image */
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item__quantity {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #292929 !important;
}

/* Unit price */
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item__individual-prices,
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item__individual-price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #292929 !important;
}

/* Total price on the right */
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item__total-price,
.wc-block-checkout__sidebar
.wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #292929 !important;
}

/* Product description */
.wc-block-checkout__sidebar
.wc-block-components-product-metadata,
.wc-block-checkout__sidebar
.wc-block-components-product-metadata p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #555 !important;
}

/* Sale / discount badge */
.wc-block-checkout__sidebar
.wc-block-components-product-badge {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Summary title */
.wc-block-components-checkout-order-summary__title-text {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #292929 !important;
}

/* Price beside "Résumé de la commande" */
.wc-block-components-checkout-order-summary__title-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #292929 !important;
}

/* Sous-total / Livraison / Taxes */
.wc-block-checkout__sidebar
.wc-block-components-totals-item__label,
.wc-block-checkout__sidebar
.wc-block-components-totals-item__value {
    font-size: 16px !important;
    color: #292929 !important;
}

/* Final TOTAL */
.wc-block-checkout__sidebar
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label,
.wc-block-checkout__sidebar
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__value,
.wc-block-checkout__sidebar
.wc-block-components-totals-footer-item-tax-value {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #292929 !important;
}
/* ========================================
   SAF MARKET - WOOCOMMERCE ERROR NOTICE RED
   ======================================== */

.wc-block-components-notice-banner.is-error {
    background-color: #E11B1D !important;
    border-color: #E11B1D !important;
    color: #ffffff !important;
}

/* Message text */
.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__content,
.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__content * {
    color: #ffffff !important;
}

/* Error icon */
.wc-block-components-notice-banner.is-error > svg,
.wc-block-components-notice-banner.is-error > svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Close X button */
.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__dismiss {
    color: #ffffff !important;
    background: transparent !important;
}

/* Close X icon */
.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__dismiss svg,
.wc-block-components-notice-banner.is-error
.wc-block-components-notice-banner__dismiss svg path {
    fill: #ffffff !important;
}

/* ========================================
   SAF MARKET - QUANTITÉ DÉTAIL COMMANDE
   ======================================== */

.woocommerce-order-details
.woocommerce-table__product-name > strong {
    font-size: 18px !important;
    font-family: inherit !important;
    color: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
}

/* =========================================================
   SAF MARKET - MOBILE HERO CONTENT CENTER
   ========================================================= */

@media (max-width: 767px) {

    /* Center the content inside every hero slide */
    .wp-block-wd-slider-item .wd-slide-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;

        transform: translate(-50%, -50%) !important;

        width: 90% !important;
        max-width: 90% !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;
        z-index: 5 !important;
    }

    /* Center title */
    .wp-block-wd-slider-item .wd-slide-container .wp-block-wd-title {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    /* Center paragraph */
    .wp-block-wd-slider-item .wd-slide-container .wp-block-wd-paragraph {
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center button */
    .wp-block-wd-slider-item .wd-slide-container .wp-block-wd-button {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* =========================================================
   SAF MARKET - CATEGORY BUTTONS ALWAYS VISIBLE
   Tablet + Mobile only
   ========================================================= */

@media (max-width: 1024px) {

    /* Always show buttons inside category cover cards */
    .wp-block-wd-cover .wp-block-wd-button {
        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
        translate: none !important;

        pointer-events: auto !important;
    }

    /* WoodMart may hide/translate elements until hover */
    .wp-block-wd-cover .wd-transform {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Specifically ensure Acheter button stays displayed */
    .wp-block-wd-cover a.btn {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}
.products .product-element-top {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.products .product-element-top img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
/* =========================================
   SAF MARKET - PRODUCT CATEGORY PAGES ONLY
   No sidebar + 4 products per row
   Boutique remains unchanged
   ========================================= */

body.tax-product_cat .wd-content-layout > .wd-sidebar {
    display: none !important;
}

body.tax-product_cat .wd-content-layout > .wd-content-area {
    --wd-col-lg: 12 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide custom filter button */
body.tax-product_cat .saf-filter-toggle {
    display: none !important;
}

/* Hide WoodMart sidebar button */
body.tax-product_cat .wd-show-sidebar-btn {
    display: none !important;
}
/* =========================================
   SAF MARKET - CHECKOUT SUMMARY
   ========================================= */

/* Quantity number: 1, 2, 3, 6... */
.woocommerce-checkout
.wc-block-components-order-summary-item
.wc-block-components-order-summary-item__quantity {
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 26px !important;
}

.woocommerce-checkout
.wc-block-components-order-summary-item
.wc-block-components-order-summary-item__quantity > span:not(.screen-reader-text) {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 26px !important;
}

/* Remove "Conditionnement : xxx pcs." */
.woocommerce-checkout
.wc-block-components-order-summary-item
.wc-block-components-product-metadata {
    display: none !important;
}
/* SAF Market - Preserve formatting of bank transfer details */
#radio-control-wc-payment-method-options-bacs__content > div {
    white-space: pre-line !important;
    line-height: 1.65 !important;
}
/* SAF Market - Continuer vos achats */
body .saf-continue-shopping > a,
body .saf-continue-shopping > a:link,
body .saf-continue-shopping > a:visited {
    color: #E11B1D !important;
    -webkit-text-fill-color: #E11B1D !important;
}

body .saf-continue-shopping > a:hover,
body .saf-continue-shopping > a:focus,
body .saf-continue-shopping > a:active {
    color: #C81719 !important;
    -webkit-text-fill-color: #C81719 !important;
}
/* SAF Market - Hide category name on product cards */
.wd-product-cats {
    display: none !important;
}
/* SAF Market - Same image area for every product card */
.products .wd-product-thumb {
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.products .wd-product-img-link {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.products .wd-product-img-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}
/* SAF Market - Uniform main product image on product page */
.single-product .wd-gallery-images .woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.single-product .wd-gallery-images .woocommerce-product-gallery__image > a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product .wd-gallery-images .woocommerce-product-gallery__image > a > img.wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
/* SAF Market - Product cards with light grey border */
.products .wd-product-wrapper {
    border: 1px solid #e5e5e5 !important;
    padding: 15px !important;
    height: 100% !important;
    border-radius: 16px;
}
.products .wd-product-wrapper:hover {
    border-color: #d2d2d2 !important;
}
/* SAF Market — equal-height product cards */

/* Make every grid item stretch to its row height */
.products.wd-grid-g {
    align-items: stretch !important;
}

.products.wd-grid-g > .wd-product.wd-col {
    height: 100% !important;
}

/* The bordered card fills the complete grid item */
.products.wd-grid-g > .wd-product.wd-col > .wd-product-wrapper {
    height: 100% !important;
    min-height: 100% !important;

    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;

    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

/* Keep titles natural */
.products .wd-entities-title {
    min-height: 0 !important;
    height: auto !important;
}

/* Price stays at the bottom */
.products .wd-product-wrapper > .price {
    align-self: end !important;
}
/* SAF Market - Equal product cards in WooCommerce blocks */

/* Equal-height cards */
.wc-block-grid__products {
    align-items: stretch !important;
}

.wc-block-grid__product {
    display: flex !important;
    flex-direction: column !important;
}

/* Product link contains image + title */
.wc-block-grid__product-link {
    display: flex !important;
    flex-direction: column !important;
}

/* SAME image area for every product */
.wc-block-grid__product-image {
    width: 100% !important;
    height: 300px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    margin-bottom: 15px !important;
}

/* Keep complete product visible — no cropping */
.wc-block-grid__product-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 300px !important;

    object-fit: contain !important;
    object-position: center !important;
}

/* Keep title natural */
.wc-block-grid__product-title {
    height: auto !important;
    min-height: 0 !important;
}

/* Push price/button to bottom */
.wc-block-grid__product-price {
    margin-top: auto !important;
}

.wc-block-grid__product-add-to-cart {
    margin-top: 15px !important;
}
/* SAF Market - Product action bar */

/* Main bar */
.products .wd-buttons {
    background-color: #63B42E !important;
}

/* All buttons */
.products .wd-buttons .wd-action-btn,
.products .wd-buttons .wd-action-btn > a {
    background-color: #63B42E !important;
}

/* Hover - subtle darker green */
.products .wd-buttons .wd-action-btn:hover,
.products .wd-buttons .wd-action-btn:hover > a {
    background-color: #58A329 !important;
}

/* No background outside the compact bar */
.products .wrapp-buttons {
    background: transparent !important;
}

/* Keep icons dark */
.products .wd-buttons .wd-action-icon {
    color: #292929 !important;
}
.cky-btn-revisit-wrapper {
    display: none !important;
}
/* SAF Market - Checkout totals labels */

/* Hide original text visually */
.wp-block-woocommerce-checkout-order-summary-subtotal-block
.wc-block-components-totals-item__label,

.wp-block-woocommerce-checkout-order-summary-taxes-block
.wc-block-components-totals-item__label,

.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    font-size: 0 !important;
}

/* Sous-total -> Sous-total HT */
.wp-block-woocommerce-checkout-order-summary-subtotal-block
.wc-block-components-totals-item__label::after {
    content: "Sous-total HT";
    font-size: 16px;
}

/* Taxes -> TVA */
.wp-block-woocommerce-checkout-order-summary-taxes-block
.wc-block-components-totals-item__label::after {
    content: "TVA";
    font-size: 16px;
}

/* Total -> Total TTC */
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label::after {
    content: "Total TTC";
    font-size: 20px;
}
/* SAF Market - red trash/remove icon */
.wc-block-cart-item__remove-link svg path {
    fill: #e31e24 !important;
}
.woocommerce-message .button.wc-forward {
    background-color: transparent !important;
    color: #ffffff !important;
}

.woocommerce-message .button.wc-forward:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* =========================================
   SAF MARKET - EMAIL OTP POPUP
   ========================================= */

/* Popup overlay */
#otp-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(20, 25, 20, 0.42) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Center popup */
#otp-popup .otp_popup_inn,
#otp-popup .otp_content,
#otp-popup .cev-authorization-grid__holder,
#otp-popup .cev-authorization-grid__inner {
    height: 100%;
}

#otp-popup .cev-authorization-grid__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main card */
#otp-popup .cev-authorization {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 42px 38px 32px;
    background: #fff !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

/* Back arrow */
#otp-popup .back_btn {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#otp-popup .back_btn svg {
    width: 20px;
    height: 20px;
}

/* Verification illustration */
#otp-popup .popup_image {
    width: 105px !important;
    margin: 0 auto 20px;
}

#otp-popup .popup_image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Heading */
#otp-popup .cev-authorization__heading {
    text-align: center;
}

#otp-popup .cev-authorization__title {
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.25;
}

/* Description */
#otp-popup .cev-authorization__description {
    display: block;
    max-width: 350px;
    margin: 0 auto;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* OTP area */
#otp-popup .otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 24px;
}

/* OTP boxes */
#otp-popup .otp-input {
    width: 54px !important;
    height: 58px !important;
    padding: 0 !important;

    background: #fff !important;
    border: 1.5px solid #dfe5d7 !important;
    border-radius: 12px !important;

    color: #222 !important;
    font-size: 22px !important;
    font-weight: 600;
    text-align: center;

    outline: none !important;
    box-shadow: none !important;

    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Active OTP box */
#otp-popup .otp-input:focus {
    border-color: #b9d58c !important;
    box-shadow: 0 0 0 3px rgba(185, 213, 140, 0.20) !important;
}

/* Footer */
#otp-popup .cev-authorization__footer {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

/* Resend link */
#otp-popup .cev-link-try-again {
    color: #8eaf59 !important;
    font-weight: 600;
    text-decoration: none !important;
}

#otp-popup .cev-link-try-again:hover {
    color: #759646 !important;
    text-decoration: underline !important;
}

/* Success message */
#otp-popup .resend_sucsess {
    margin: 10px 0 !important;
    color: #759646 !important;
    text-align: center;
    font-size: 13px;
}

/* Error */
#otp-popup .error_mesg {
    color: #d63638;
    text-align: center;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 480px) {
    #otp-popup .cev-authorization-grid__inner {
        padding: 16px;
    }

    #otp-popup .cev-authorization {
        padding: 38px 22px 28px;
        border-radius: 16px;
    }

    #otp-popup .popup_image {
        width: 85px !important;
    }

    #otp-popup .cev-authorization__title {
        font-size: 21px !important;
    }

    #otp-popup .otp-container {
        gap: 8px;
    }

    #otp-popup .otp-input {
        width: 48px !important;
        height: 54px !important;
    }
}

/* Fix WooCommerce notice positioning on My Account */
.wd-registration-page #customer_login > .woocommerce-error {
    flex: 0 0 100% !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    align-self: flex-start !important;
}


/* WhatsApp floating button */
.saf-whatsapp-floating {
    position: fixed;
    right: 20px;
    bottom: 80px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #fff !important;
    border-radius: 50%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;

    transition: transform 0.2s ease;
}

.saf-whatsapp-floating svg {
    width: 27px;
    height: 27px;
}

.saf-whatsapp-floating:hover {
    color: #fff !important;
    transform: translateY(-2px);
}


/* WoodMart back-to-top button */
.scrollToTop {
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
}


/* Mobile */
@media (max-width: 768px) {

    .saf-whatsapp-floating {
        right: 15px;
        bottom: 78px;
        width: 50px;
        height: 50px;
    }

    .scrollToTop {
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* SAF Market - Homepage product sections
   Desktop: 4 products
   Tablet: 3 products
   Mobile: 2 products
*/

.saf-home-products .products.wd-products {
    --wd-col-lg: 4 !important;
    --wd-col-md: 3 !important;
    --wd-col-sm: 2 !important;
}

@media (min-width: 1025px) {
    .saf-home-products .products.wd-products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================
   SAF MARKET - ACCOUNT TYPE SELECTOR
   SAF Green: #63B42E
   ========================================================== */

.saf-account-type-field {
    margin: 8px 0 24px;
}

.saf-account-type-title {
    margin-bottom: 12px;
    font-weight: 500;
}

/* Options container */
.saf-account-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Each selectable card */
.saf-account-type-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 15px 16px;
    margin: 0;

    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #ffffff;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

/* SAF Market - Custom green radio */
.saf-account-type-option input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;

    flex: 0 0 auto;

    width: 16px !important;
    height: 16px !important;
    margin: 3px 0 0 !important;

    border: 2px solid #b8b8b8 !important;
    border-radius: 50% !important;
    background: #ffffff !important;

    cursor: pointer;
    position: relative;
    box-shadow: none !important;
}

/* Selected */
.saf-account-type-option input[type="radio"]:checked {
    border-color: #63B42E !important;
    background: #ffffff !important;
}

/* Green center dot */
.saf-account-type-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;

    width: 8px;
    height: 8px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border-radius: 50%;
    background: #63B42E;
}

/* Focus */
.saf-account-type-option input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 180, 46, 0.15) !important;
}

/* Text */
.saf-account-type-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.35;
}

.saf-account-type-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #292929;
}

.saf-account-type-content small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

/* Hover */
.saf-account-type-option:hover {
    border-color: #63B42E;
}

/* Selected card */
.saf-account-type-option:has(input[type="radio"]:checked) {
    border-color: #63B42E;
    background-color: #f1f7ed;
    box-shadow: 0 0 0 1px #63B42E;
}

/* Selected title */
.saf-account-type-option:has(input[type="radio"]:checked)
.saf-account-type-content strong {
    color: #63B42E;
}

/* Mobile */
@media (max-width: 576px) {

    .saf-account-type-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .saf-account-type-option {
        padding: 14px;
    }
}