/* Awesome CSS Code: Homepage | 14/08/2026 18:35 */

/* --- Code: Custom WooCommerce Promo Badge --- */
/* On desactive le Badge Natif via CSS egalement */
.onsale {
	display: none !important;
}

/* Own Loop Product Promo Badge */
.woocommerce ul.products li.product {
    position: relative; 
}
.woocommerce ul.products li.product .ck-custom-loop-product-promo-badge {
    position: absolute;
    top: 10px;      
    left: 10px; 
    z-index: 99;    
    background-color: #6C2DFF; 
    color: #ffffff;
    font-weight: bold;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Own Single Product Promo Badge */
.woocommerce div.product .woocommerce-product-gallery__image .ck-custom-single-product-promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999; 
    background-color: #6C2DFF;
    color: #ffffff;
    font-weight: bold;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    pointer-events: none;
}

/* --- Code: Homepage --- */
/* Homepage Desktop Header */
.home .ck-custom-desktop-header {
    margin-bottom: 30px;
}

/* Homepage Site Content */
.home .site-content {
    margin-top: 0px;
}

.hentry .entry-content .wp-block-quote, 
.editor-styles-wrapper .wp-block-quote {
    display: none;
}


/*========= HOMEPAGE FEATURED PRODUCTS ===========*/
/* Featured Product Widget */
.ck-homepage-featured {
    margin-bottom: 30px !important;
}
/* Featured Product Widget - Hide Title, Arrow Slider... */
.ck-homepage-featured .vettau-product-widget-header {
    display: none !important;
}

/* Featured Product Widget in Mobile */
@media (max-width: 768px) {
.ck-homepage-featured .vettau-product-widget-items-container .woocommerce ul.products {
	grid-auto-columns: 270px !important;
}}

/*----- Make Product Overlay -----*/
/* 1. On s'assure que le produit est le référentiel pour le positionnement */
.ck-homepage-featured .vettau-product-widget-wrapper li.product {
    position: relative !important;
    overflow: hidden !important;
}

/* 2. Le contenu par-dessus l'image */
.ck-homepage-featured .ck-loop-product-details-container {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 0px 15px !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    
    /* Dégradé noir pour que le texte blanc reste lisible sur n'importe quelle image */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%) !important;
    
    z-index: 2;
    pointer-events: none; /* Permet de cliquer sur l'image à travers le texte */
    transition: all 0.3s ease !important;
}

/* 3. L'image occupe tout l'espace */
.ck-homepage-featured .ck-loop-product-image-container {
    width: 100%;
    display: block;
    overflow: hidden !important;
}
.ck-homepage-featured .ck-loop-product-image-container img {
    width: 100% !important;
    height: auto !important;
	margin-bottom: 0px !important;
    /*transition: transform 0.5s ease !important;*/
}

/* 4. Effet au survol : on fait zoomer légèrement l'image */
.vettau-product-widget-wrapper li.product:hover .ck-loop-product-image-container img {
    transform: scale(1.1);
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}


/* 5. Style du texte sur l'image */
.ck-homepage-featured .ck-loop-product-details-container h2, 
.ck-homepage-featured .ck-loop-product-details-container .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 5. Style du prix sur l'image */
.ck-homepage-featured .ck-loop-product-details-container .price {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 5px !important;
	margin-bottom: 15px !important;
}

/* 6. Masquer les éléments qui polluent l'image (Bouton panier, étoiles) */
.ck-loop-product-details-container .button,
.ck-loop-product-details-container .star-rating {
    display: none !important;
}
/*-----  End Make Product Overlay -----*/
/*========= END HOMEPAGE FEATURED PRODUCTS ===========*/

/* --- Code: Homepage Featured Product By AWPW --- */
/*========= HOMEPAGE FEATURED PRODUCTS ===========*/
/* Featured Product Widget */
.ck-home-featured {
    margin-bottom: 30px !important;
}
/* Featured Product Widget - Hide Title, Arrow Slider... */
.ck-home-featured .awpw-product-widget-header {
    display: none !important;
}

/* Featured Product Widget in Mobile */
@media (max-width: 768px) {
.ck-home-featured .awpw-product-widget-items-container .woocommerce ul.products {
	grid-auto-columns: 270px !important;
}}


/*----- Make Product Overlay -----*/
/* 1. On s'assure que le produit est le référentiel pour le positionnement */
.ck-home-featured .awpw-product-widget-wrapper li.product {
    position: relative !important;
    overflow: hidden !important;
}

/* 2. Le contenu par-dessus l'image */
.ck-home-featured .ck-woocommerce-loop-product-details-container {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 0px 15px !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    
    /* Dégradé noir pour que le texte blanc reste lisible sur n'importe quelle image */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%) !important;
    
    z-index: 2;
    pointer-events: none; /* Permet de cliquer sur l'image à travers le texte */
    transition: all 0.3s ease !important;
}

/* 3. L'image occupe tout l'espace */
.ck-home-featured .ck-woocommerce-loop-product-image-container {
    width: 100%;
    display: block;
    overflow: hidden !important;
}
.ck-home-featured .ck-woocommerce-loop-product-image-container img {
    width: 100% !important;
    height: auto !important;
	margin-bottom: 0px !important;
    /*transition: transform 0.5s ease !important;*/
}

/* 4. Effet au survol : on fait zoomer légèrement l'image */
/*.vettau-product-widget-wrapper li.product:hover .ck-woocommerce-loop-product-image-container img {
    transform: scale(1.1);
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}*/


/* 5. Style du texte sur l'image */
.ck-home-featured .ck-woocommerce-loop-product-details-container h2, 
.ck-home-featured .ck-woocommerce-loop-product-details-container .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 5. Style du prix sur l'image */
.ck-home-featured .ck-woocommerce-loop-product-details-container .price {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 5px !important;
	margin-bottom: 15px !important;
}


.ck-home-featured .ck-woocommerce-loop-product-details-container .woocommerce-loop-product__title {
    min-height: inherit !important;
}

.ck-home-featured .products .product .price {
	font-weight: 600 !important;
}
/*-----  End Make Product Overlay -----*/
/*========= END HOMEPAGE FEATURED PRODUCTS ===========*/

/* --- Code: WooCommerce Loop Product --- */
/* Loop Product Image Container */
.ck-woocommerce-loop-product-image-container {
    width: 100%;
    display: block;
	border-radius: 5px;
    overflow: hidden !important;
}
.ck-woocommerce-loop-product-image-container img {
    width: 100% !important;
    height: auto !important;
    display: block;
	aspect-ratio: 1 / 1;
    transition: transform 0.5s ease !important;
}

/* Loop Product Image */
.products .product img {
    display: block !important;
    margin-top: 0px !important;
    margin-right: auto !important;
    margin-bottom: 0px !important;
    margin-left: auto !important;
}


/* Loop Product Effet Zoom On Hover */
.products .product:hover img {
    transform: scale(1.1);
	width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}


/* Loop Product Details Container */
.ck-woocommerce-loop-product-details-container {
    padding-top: 6px;
}

/* Loop Product Details */
.products .product {
    text-align: left !important;
	font-size: 14px;
	margin-bottom: 20px !important;
}

/* Loop Product Title */
.products .product .woocommerce-loop-product__title, 
.products .product .wc-block-grid__product-title {
    font-size: 14px !important;
	margin-bottom: 0px !important;
}


/* Loop Product Price */
.products .product .price {
    color: #212121 !important;
    font-weight: 400;
	margin-top: 0px;
	font-size: 13.5px;
}
.dark .products .product .price {
	color: #ffffff !important;
}
/* Prix baré */
.products .product .price del {
    opacity: 1;
}
/* Prix Promo */
.products li.product .price ins {
    font-weight: 600 !important;
}


ul.products::before, 
ul.products::after {
    display: none;
}
