@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//hydrosan.tn/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.3.5") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//hydrosan.tn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(26,26,26);
	--wd-text-font-size: 15px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-color: rgb(26,26,26);
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: rgb(26,26,26);
	--wd-entities-title-color-hover: rgb(0, 86, 179);
	--wd-alternative-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: rgb(26,26,26);
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: none;
	--wd-primary-color: rgb(217,7,24);
	--wd-alternative-color: rgb(5,17,242);
	--btn-default-transform: none;
	--btn-default-bgcolor: rgb(5,17,242);
	--btn-default-bgcolor-hover: rgb(3,10,140);
	--btn-accented-transform: none;
	--btn-accented-bgcolor: rgb(217,7,24);
	--btn-accented-bgcolor-hover: rgb(184,6,20);
	--wd-form-brd-width: 2px;
	--notices-success-bg: rgb(40,167,69);
	--notices-success-color: #fff;
	--notices-warning-bg: rgb(245,166,35);
	--notices-warning-color: rgb(13,13,13);
	--wd-link-color: rgb(5,17,242);
	--wd-link-color-hover: rgb(3,10,140);
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: url(https://hydrosan.tn/wp-content/uploads/2021/08/promo-popup.jpg);
	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: rgb(13,13,13);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: rgb(245,245,245);
	background-image: none;
}
.single-product .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
	--wd-arrow-gap: 20px;
	--wd-arrow-size: 20px;
	--wd-arrow-icon-size: 16px;
	--wd-arrow-offset-h: 10px;
	--wd-arrow-offset-v: 0px;
	--wd-arrow-color: rgb(13,13,13);
	--wd-arrow-color-hover: rgb(5,17,242);
	--wd-arrow-color-dis: rgb(204,204,204);
	--wd-arrow-bg: rgb(255,255,255);
	--wd-arrow-bg-hover: rgb(245,245,245);
	--wd-arrow-bg-dis: rgb(249,249,249);
	--wd-arrow-brd-color: rgb(232,232,232);
	--wd-arrow-brd: 0px solid;
}
.wd-nav-pagin-wrap:not(.wd-custom-style) {
	--wd-pagin-size: 8px;
	--wd-pagin-bg: rgb(204,204,204);
	--wd-pagin-bg-hover: rgb(10,77,166);
	--wd-pagin-bg-act: rgb(5,17,242);
}
.wd-nav-scroll {
	--wd-nscroll-height: 4px;
	--wd-nscroll-width: 100%;
	--wd-nscroll-bg: rgb(232,232,232);
	--wd-nscroll-drag-bg: rgb(5,17,242);
	--wd-nscroll-drag-bg-hover: rgb(3,10,140);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}

@media (max-width: 1024px) {
	.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
		--wd-arrow-gap: 15px;
	--wd-arrow-size: 15px;
	--wd-arrow-icon-size: 14px;
	--wd-arrow-offset-h: 8px;
	--wd-arrow-offset-v: 0px;
	}
	.wd-nav-pagin-wrap:not(.wd-custom-style) {
		--wd-pagin-size: 7px;
	}
	.wd-nav-scroll {
		--wd-nscroll-height: 3px;
	--wd-nscroll-width: 100%;
	}

}

@media (max-width: 768.98px) {
	.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
		--wd-arrow-gap: 10px;
	--wd-arrow-size: 10px;
	--wd-arrow-icon-size: 12px;
	--wd-arrow-offset-h: 5px;
	--wd-arrow-offset-v: 0px;
	}
	.wd-nav-pagin-wrap:not(.wd-custom-style) {
		--wd-pagin-size: 6px;
	}
	.wd-nav-scroll {
		--wd-nscroll-height: 3px;
	--wd-nscroll-width: 100%;
	}

}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--btn-accented-box-shadow-active: none;
--btn-accented-bottom: 0px;
--wd-brd-radius: 0px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: rgb(0,0,0);
}

/* Masquer Sous-total, Expédition et Total WooCommerce */
.cart-subtotal,
.woocommerce-shipping-totals,
.order-total,
.wc_payment_methods.payment_methods.methods,
.product-subtotal,
.product-total,
.info-btn-wrapper {
    display: none !important;
}

/* Masquer l'onglet Pièce jointe partout */
.wd-accordion-item:has(#tab-item-title-wcpoa_product_tab),
li.tab-title-wcpoa_product_tab,
.woocommerce-tabs .tabs > li:has(a[href="#tab-wcpoa_product_tab"]),
#tab-wcpoa_product_tab {
    display: none !important;
}

/* ===== Animation cartes produits et catégories ===== */

/* Conteneur de l'image (Coins arrondis et masque pour le zoom) */
.product-element-top.wd-quick-shop {
    border-radius: 20px !important;
    overflow: hidden !important;
    /* Réinitialisation de l'animation sur le cadre */
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Annulation de tout survol sur le cadre */
.product-element-top.wd-quick-shop:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Animation fluide appliquée UNIQUEMENT à l'image */
.product-element-top.wd-quick-shop img {
    transition: transform 0.4s ease !important;
}

/* Effet Zoom de l'image au survol de la carte produit */
.product-grid-item:hover .product-element-top.wd-quick-shop img {
    transform: scale(1.05) !important;
}

/* Carte catégorie */
.wd-cat-thumb.category-image-wrapp {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wd-cat-thumb.category-image-wrapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0);
}

/* Image catégorie */
.wd-cat-thumb.category-image-wrapp {
    border-radius: 20px;
    overflow: hidden;
}

.wd-cat-thumb.category-image-wrapp img {
    transition: transform 0.4s ease;
}

.category-grid-item:hover .wd-cat-thumb.category-image-wrapp img {
    transform: scale(1.05);
}

/* Fiche technique sous les boutons d'achat */
.wcpoa_attachment {
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wcpoa_attachment_name {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.wcpoa_attachmentbtn {
    display: inline-block;
    padding: 10px 18px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wcpoa_attachmentbtn:hover {
    background: #e5e5e5;
}

@media (max-width: 767px) {
    .wcpoa_attachment {
        margin-top: 20px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .wcpoa_attachment_name {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        flex: 1;
    }

    .wcpoa_attachmentbtn {
        flex-shrink: 0;
        padding: 9px 14px;
        background: #f1f1f1;
        color: #333;
        text-decoration: none;
        border-radius: 3px;
        white-space: nowrap;
    }
}


/* ==========================================================================
   CARTES PRODUITS - BOUTON "DEMANDER UN DEVIS" (BASE, DESKTOP & 4 COLONNES)
   ========================================================================== */

/* 1. Style et centrage vertical/horizontal du texte du bouton */
.wd-hover-info-alt .wd-add-btn .add-to-cart-loop span,
.product-grid-item .add-to-cart-loop span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    padding: 7px 12px !important; /* Ajusté pour tenir sur 4 produits par ligne */
    margin: 0 !important;
    height: auto !important;
    
    background-color: rgb(217, 7, 24) !important;
    color: #ffffff !important;
    font-family: 'Muli', sans-serif !important;
    font-size: 11.5px !important; /* Réduit légèrement pour éviter les retours à la ligne */
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    
    border: none !important;
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: center !important;
    
    position: relative !important;
    z-index: 20 !important;
    transition: all 0.25s ease-in-out !important;
    white-space: nowrap !important;
}

/* Survol du bouton */
.wd-hover-info-alt:hover .wd-add-btn .add-to-cart-loop span,
.wd-hover-info-alt .wd-add-btn .add-to-cart-loop:hover span,
.product-grid-item .add-to-cart-loop:hover span {
    background-color: rgb(150, 4, 16) !important;
    color: #ffffff !important;
}

/* Suppression des styles natifs WoodMart */
.wd-hover-info-alt .wd-add-btn a,
.wd-hover-info-alt .wd-add-btn .add-to-cart-loop {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wd-hover-info-alt:hover .wd-add-btn .add-to-cart-loop span,
.wd-hover-info-alt .wd-add-btn .add-to-cart-loop span {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wd-hover-info-alt .wd-add-btn .add-to-cart-loop::before,
.wd-hover-info-alt .wd-add-btn .add-to-cart-loop::after {
    display: none !important;
    content: "" !important;
}

/* Ajustement de la taille du titre en mode grille serrée (desktop) pour éviter le décalage */
@media screen and (min-width: 1024px) {
    .wd-hover-info-alt .wd-entities-title,
    .wd-hover-info-alt .product-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}


/* ==========================================
   2. VERSION MOBILE (Espace réduit sous le texte)
   ========================================== */

@media screen and (max-width: 768px) {
    /* Réduction des marges du titre du produit pour le rapprocher */
    .product-grid-item .wd-entities-title,
    .wd-product .wd-entities-title,
    .product-grid-item .product-title {
        margin-bottom: 2px !important;
        padding-bottom: 0 !important;
    }

    /* Rapprochement de l'élément conteneur du bouton */
    .product-grid-item .wd-add-btn {
        margin-top: 2px !important; 
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        text-align: center !important;
    }

    .wd-hover-info-alt .wd-add-btn .add-to-cart-loop span,
    .product-grid-item .add-to-cart-loop span {
        padding: 5px 12px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
}


/* ==========================================================================
   3. OPTIMISATION RESPONSIVE MOBILE ET TABLETTE (<= 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Ajustements Catégories Mobile */
    .wd-cat-content .wd-cat-count.more-products {
        margin-top: 4px !important;
        min-height: 28px;
    }

    .cat-cta-button {
        padding: 6px 12px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        border-radius: 6px !important;
    }

    /* Ajustement Produit Mobile (Rapprochement maximal) */
    .product-grid-item .add-to-cart-loop span {
        background-color: rgb(217, 7, 24) !important;
        color: #ffffff !important;
        font-size: 9.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        border-radius: 6px !important;
        padding: 5px 10px !important;
        display: inline-block;
        white-space: nowrap;
        border: none !important;
        outline: none !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Survol tactile mobile */
    .product-grid-item .add-to-cart-loop:hover span {
        background-color: rgb(150, 4, 16) !important;
    }

    .product-grid-item .wd-add-btn {
        margin-top: 3px !important;
    }
}

@media screen and (max-width: 480px) {
    .cat-cta-button {
        display: block !important;
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
        padding: 7px 10px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
    }
}

/* ==========================================================================
  	Formulaire de contact style
   ========================================================================== */
.form-two-columns {
  display: flex;
  gap: 30px;
}

.form-col-left,
.form-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-col-left label,
.form-col-right label {
  margin-bottom: 15px;
}

/* Style du bouton d'envoi */
.form-col-right input[type="submit"] {
  background-color: #d6001c;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

/* Passage automatique en 1 seule colonne sur mobile */
@media (max-width: 768px) {
  .form-two-columns {
    flex-direction: column;
    gap: 0;
  }
}

/* ===================================================
   Alignement des titres de produits et des categories
   =================================================== */

/* Unification de la hauteur des titres de produits */
.product-grid-item .wd-entities-title,
.product-grid-item .product-title {
    min-height: 2.8em !important; /* Reserve l'espace pour 2 lignes */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

/* Alignement des titres et des boutons de catégories */
.category-grid-item .wd-entities-title,
.product-category .wd-entities-title,
.category-grid-item h3,
.product-category h3 {
    min-height: 2.6em !important; /* Maintient l'espace équivalent à 2 lignes */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

/*------------------------------*/
/* modification de la taille police du titre des articles */
.wd-post-content .wd-post-title a {
    font-size: 15px !important;
    line-height: 1.2; /* Ajuste l'espacement vertical si nécessaire */
}

/*---------------------------------------*/
/* Supprimer le padding supérieur uniquement sur la page d'accueil */
.home .wd-content-layout {
    padding-top: 0 !important;
}