.woocommerce .ast-onsale-card {
    display: none ;
}
/* CSS pourcentage promotion WooCommerce */
.pourcentage {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 20%; /* Center horizontally */
    transform: translateX(-50%); /* Center alignment correction */
    background-color: #000000;
    color: #fff;
    padding: .2em .6em;
    font-size: 80%;
    font-weight: bold;
    text-align: center;
    border-radius: .25em;
    z-index: 10; /* Ensure it appears above other elements */
}
.custom-line {
    border-color: #F2DDDC;
    border-width: 10px;
}
.single_variation_wrap {
    display: block;
    width: 100%;
    overflow-x: auto; 
/* Ajoute une barre de défilement horizontale si nécessaire */
    white-space: nowrap; 
/* Empêche les variations de sauter à la ligne */
}
.variation-dropdown {
    display: none; /* Par défaut, masquez le menu défilant */
    overflow-x: auto; /* Activation du défilement horizontal si nécessaire */
    white-space: nowrap; /* Empêche les variations de sauter à la ligne */
}
.product:hover .variation-dropdown {
    display: block; /* Afficher le menu défilant lorsque l'utilisateur survole le produit */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.wc-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
    display: block;
}
.product-image.main-image {
    opacity: 1;
}
.product-image.hover-image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.wc-img-wrapper:hover .main-image {
    opacity: 0;
}
.wc-img-wrapper:hover .hover-image {
    opacity: 1;
}
.woocommerce-product-gallery__image img {
    pointer-events: none; /* This prevents any interaction with the image, disabling zoom */
    transform: none ; /* Ensures that any zoom transform is disabled */
    cursor: default; /* Changes the cursor to default, not zoom */
}
/* Adjust the disount display */
.woocommerce-mini-cart__discount {
    padding-left: 20px; /* Adjust this value to increase or decrease the gap */
    margin-bottom: 10px; /* Adds a bit of space below the discount line */
}
/* Crosses the original price for discounts */
/* Add this CSS to your theme’s Custom CSS area */
.woocommerce-cart .product-subtotal.discounted-item del,
.woocommerce-mini-cart .product-subtotal.discounted-item del {
    text-decoration: line-through;
    color: #000;
    margin-right: 5px;
}

.woocommerce-cart .product-subtotal.discounted-item .discounted-price,
.woocommerce-mini-cart .product-subtotal.discounted-item .discounted-price {
    font-weight: bold;
    color: #000;
}

/* Style the outer container */
.cwginstock-panel-primary {
    background-color: #0000 ; /* Red background for the outer container */
    border: 1px solid #ccc ; /* Fine gray border */
    padding: 0 ; /* Adjust padding */
    border-radius: 0px; /* Round corners */
     overflow: hidden ; /* Prevent content from overflowing */
	box-shadow: none ; /* Remove shadows */
}

/* Style the header area */
.cwginstock-panel-heading {
    background-color: #AB2328 ; /* Slightly darker red for the header */
}
.cwginstock-panel-heading h4{
    background-color: #AB2328 ; /* Slightly darker red for the header */
    font-size: 13px ; /* Smaller font size */
    font-weight: bold ; /* Make the text bold */
    box-shadow: none ; /* Remove any shadow */
}

/* Style the input and button section (keep white background) */
.cwginstock-panel-body {
    background-color: #ffffff ; /* White background for input and button */
    padding: 15px ; /* Add padding for spacing */
    border-radius: 0 0 10px 10px ; /* Round the bottom corners */
}

/* Style the input field */
.cwgstock_email {
    width: 100%; /* Full width */
    padding: 10px; /* Internal padding */
    font-size: 12px; /* Font size */
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 1px ; /* Minimal space below the input */
}

/* Style the submit button */
.cwgstock_submit {
    background-color: #000000; /* Black button */
    color: #ffffff; /* White text */
    padding: 10px 20px; /* Button size */
    border: none; /* No border */
    border-radius: 5px; /* Rounded button corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 18px ; /* Font size */
}

/* Button hover effect */
.cwgstock_submit:hover {
    background-color: #AB2328; /* Slightly lighter black on hover */
}

/* Optional: Ensure form alignment and spacing */
.cwginstock-subscribe-form {
    margin: 10 auto; /* Center the form */
    max-width: 230px; /* Restrict maximum width */
}

/*Remove powered by advanced coupons*/
.acfw-powered-by {
    display: none ;
}
/*ACF DROPDOWN*/
.acf-zodiac-dropdown {
    margin-bottom: 10px;
}

/*change single product layout*/
.reset_variations {
		display: none ;
	}
ul.flex-direction-nav {
	position: absolute;
	top: 30%;
	z-index: 80;
	width: 100%;
	margin: 0;
	padding: 5px; /* Added 'px' to fix syntax */
	list-style: none;
}

/* Keep left and right navigation in place */
.flex-nav-prev {float: left;}
.flex-nav-next {float: right;}
a.flex-prev, a.flex-next {
    color: transparent !important; /* Hides text but keeps the button */
}

/* Add left arrow */
.flex-prev:before {
    content: "<"; /* Left arrow */
    color: grey ; /* Arrow color */
    font-size: 25px ;
    font-weight: bold ;
    visibility: visible ;
}

/* Add right arrow */
.flex-next:after {
    content: ">"; /* Add text */
    display: inline-block;
    font-size: 25px;
    font-weight: bold;
    color: grey; /* Change color if needed */
    text-decoration: none;
    margin-right: 10px;
}

/* General styles for navigation */
ul.flex-direction-nav li a {
    color: #ccc;
}
ul.flex-direction-nav li a:hover {
    text-decoration: none;
}

/* PRODUCT GRID FORMAT EQUAL */
/* Add more space between grid rows (up/down) */
.woocommerce ul.products {
    row-gap: 20px ; /* Properly formatted */
}


/* Reduce space between product image and title */
li.ast-grid-common-col .astra-shop-summary-wrap {
    display: flex ;
    flex-direction: column ;
    justify-content: space-between ;
    align-items: center ;
    text-align: center ;
    flex-grow: 0 ;
    margin-top: -40px ; /* Reduce space between image and text */
}

/* Ensure all product containers have the same height */
li.ast-grid-common-col {
    display: flex ;
    flex-direction: column ;
    justify-content: space-between ;
    height: 100% ;
}

/* Center all content inside product summary */
li.ast-grid-common-col .astra-shop-summary-wrap {
    display: flex ;
    flex-direction: column ;
    justify-content: space-between ; /* Ensures button stays at the bottom */
    align-items: center ; /* Keeps text centered */
    text-align: center ; /* Ensures text inside stays centered */
    flex-grow: 0 ; /* Allows text section to expand evenly */
}

/* Ensure product titles are centered */
li.ast-grid-common-col .astra-shop-summary-wrap .woocommerce-loop-product__title {
    text-align: center ;
    width: 100% ;
}

/* Center the price */
li.ast-grid-common-col .astra-shop-summary-wrap .price {
    text-align: center ;
    width: 100% ;
}

/* Ensure 'Ajouter Au Panier' button stays at the bottom */
li.ast-grid-common-col .astra-shop-summary-wrap .button {
    margin-top: auto ; /* Pushes button to the bottom */
    display: flex ;
    justify-content: center ;
    width: 80% ;
}

/* Pre-order label inside product image */
.preorder-badge {
    position: absolute ;
    top: 0px ; /* Aligns the badge to the same position as 'Out of Stock' */
    left: 50% ;
    transform: translateX(-50%) ;
    background: rgba(255, 255, 255, 0.9) ; /* Match the 'Out of Stock' background */
    color: black ; /* Match text color */
    padding: 2px 8px ;
    font-size: 10px ;
    font-weight: bold ;
    text-align: center ;
    border-radius: 3px ;
    z-index: 10 ;
    text-transform: uppercase ; /* Matches 'Out of Stock' text style */
}

/*Hide read more for out of stock products */
/* Hide 'Read More' button for out-of-stock products */
.woocommerce .outofstock .button {
    display: none ;
}

/* Target WooCommerce shortcodes on the front page */
.home .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100 !important;
}

/* Ensure product titles take equal space */
.home .woocommerce ul.products li.product .woocommerce-loop-product__title {
    text-align: center !important;
    min-height: 30px !important; /* Adjust for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Align "Add to Cart" button to the bottom */
.home .woocommerce ul.products li.product .button {
    margin-top: auto !important; /* Pushes button to bottom */
    display: flex !important;
    justify-content: center !important;
    width: 70% !important;
	  left: 15%
}

/* Fix "Sort By" filter position on mobile */
@media (max-width: 768px) {
    .woocommerce-ordering {
        display: block !important; /* Ensure it takes full width */
        text-align: right !important; /* Align to the right */
        margin-top: 10px !important; /* Add spacing from top */
    }

    .woocommerce-ordering select {
        width: 100% !important; /* Make it responsive */
        max-width: 200px !important; /* Prevent too much stretching */
        margin: 0 auto !important; /* Center it properly */
    }

    /* Ensure "Showing results" text and filter are separated */
    .woocommerce-result-count {
        display: block !important;
        text-align: left !important;
        margin-bottom: 5px !important; /* Add spacing below */
    }
}

/*Bundle selection style */
.bundle-options {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between selections */
}

.bundle-selection {
    display: flex;
    flex-direction: column;
}

.bundle-selection label {
    font-weight: bold;
    margin-bottom: 1px;
}
