/**
* Theme Name: Autozpro Child
* Description: This is a child theme of Autozpro, generated by Merlin WP.
* Author: <a href="https://themelexus.com/">ThemeLexus</a>
* Template: autozpro
* Version: 1.0.9
*/
/* Change WooCommerce large product image background to white */

.col-full {
    max-width: 1400px;
}

h2, .beta {
    font-size: 24px;
    line-height: initial;
}

#page {
	background-color: #fff;
}

#content {
	background-color: #fff;
}

table td, table th {
    word-break: normal;
}

/** 
* STYLE CATÉGORIES PRODUITS
**/
ul.products { border: none !important; grid-column-gap: 0px; grid-row-gap: 0px; }
ul.products li { text-align: center; border: none !important; }
ul.products li h2 { display: block; font-size: 10px !important; }
ul.products li img { padding: 5px; }
ul.products li:hover img { opacity: 0.5; filter: grayscale(60%); }
ul.products li .count { display: none; }
ul.products li.product:last-child:after { border: none !important; }

[class^="columns-"] {
    display: flex; flex: 0 0 auto; /* Permet de gérer la largeur */
}

/* Largeurs de colummns */
ul.products.columns-1 > li { width: 100% !important; display: flex; flex: 0 0 auto !important; } 
ul.products.columns-2 > li { width: 50% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-3 > li { width: 33.33% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-4 > li { width: 25% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-5 > li { width: 20% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-6 > li { width: 16.66% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-7 > li { width: 14.28% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-8 > li { width: 12.5% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-9 > li { width: 11.11% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-10 > li { width: 10% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-11 > li { width: 9.09% !important; display: flex; flex: 0 0 auto !important; }
ul.products.columns-12 > li { width: 8.33% !important; display: flex; flex: 0 0 auto !important; } 

/* RESPONSIVE : Adaptation pour tablettes */
@media (max-width: 1024px) {
  ul.products.columns-1 > li,
  ul.products.columns-2 > li,
  ul.products.columns-3 > li,
  ul.products.columns-4 > li,
  ul.products.columns-5 > li,
  ul.products.columns-6 > li { width: 50% !important; display: flex; flex: 0 0 auto !important; } 

  ul.products.columns-7 > li,
  ul.products.columns-8 > li,
  ul.products.columns-9 > li,
  ul.products.columns-10 > li,
  ul.products.columns-11 > li,
  ul.products.columns-12 > li { width: 25% !important; display: flex; flex: 0 0 auto !important; }
}

/* RESPONSIVE : Adaptation pour mobiles */
@media (max-width: 768px) {
  [class^="columns-"] > div { width: 100% !important; display: flex; flex: 0 0 auto !important; } 
}

@media (min-width: 767px) {
    .product-image {
		aspect-ratio: 1 / 1;
		overflow: hidden;
	}
    .product-image img { 
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}


/**
* STYLE PRODUCT
**/

.woocommerce-product-gallery__wrapper a {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
    }

/* Ajout de la loupe avec Font Awesome */
.woocommerce-product-gallery__wrapper a::after {
    content: "\f002"; /* Unicode de l'icône loupe fa-search */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Au survol, afficher la loupe */
.woocommerce-product-gallery__wrapper a:hover::after {
    opacity: 1;
}

.woocommerce-page.single-product.autozpro-sidebar-left .content-area {
    width: 100% !important;
}


/**
* STYLE FILTRE & SEARCH
**/

#secondary .widget {
	padding: 0;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 400px !important;
}

.select2-search__field
{
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z' fill='%23aaaaaa'/%3E%3C/svg%3E") no-repeat 9px center;
	background-size: 14px;
	padding-left: 30px !important;
}

.select2-results__option[aria-selected] {
    list-style: none;
    font-size: 12px !important;
    margin-bottom: 0 !important;
    color: #000000;
    line-height: 1 !important;
}

.is-form-style.is-form-style-3 input.is-search-input {
	height: 48px;
}

.is-form-style input.is-search-submit, .is-search-icon
{
	height: 48px;
}

.is-form-style button.is-search-submit {
	height: 48px;
	width: 48px;
}

.is-search-icon {
	width: 48px;
	padding-top: 12px !important;
}
.is-form-style.is-form-style-3 label {
    width: calc(100% - 48px) !important;
}

.wpt_table_body .select2-container--open .select2-dropdown {
    top: 2px;
}
  
.wpc-filters-scroll-container .widget-title {
    text-transform: initial;
}

.wpc-filter-set-widget-title .widget-title{
    text-transform: uppercase;
    background-color: #d81920;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;

}
.filter-toggle {
    text-transform: uppercase;
    background-color: #d81920;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
}

.wpc-filters-range-min {
    padding: 0px 0px 0px 16px !important;
    background-color: transparent !important;
    color: #000000 !important;
}
.wpc-filters-range-max {
    padding: 0px 0px 0px 16px !important;
    background-color: transparent !important;
    text-align: right !important;
    color: #000000 !important;
}

.wpc-term-item-content-wrapper a, .wpc-filter-link {
    text-transform: lowercase !important;
}

.wpc-term-item-content-wrapper a::first-letter, .wpc-term-item-content-wrapper a span::first-letter{
    text-transform: uppercase;
}     

.wpc-filters-widget-containers-wrapper {
    background-color: #e6e6e6 !important;
    box-sizing: border-box; 
}

.wpc-filters-widget-containers-wrapper .wpc-filters-scroll-container {
	padding: 0 10px;
}

.wpc-filters-scroll-container .widget-title { 
	padding: 0;
	margin-bottom: 0px
}

.wpc-filter-search-form .wpc-search-field, .wpc-filters-range-wrapper input[type=number] {
	padding: 3px 5px 3px 34px;
}

.wpc-filters-section {
	margin-bottom: 1.2em;
}

.select2.select2-container.select2-container--default {
	width: 100% !important;
}

.wpc-filter-everything-dropdown .select2-results__option>span {
    font-size: 12px !important;
}

.wpc-filters-ul-list{
	background-color:#ffffff;
	padding:10px !important;
	border: 1px solid #aaa;
}

.wpc-term-count {
	display:none;
}

/**
* STYLE WOOCOMMERCE
**/

div.wc-block-cart, div.wc-block-checkout {
	padding: 20px !important;
}

.wc-block-cart__submit-button {
	background-color: var(--primary);
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
}

.wc-block-cart__submit-button:hover {
	background-color: var(--primary_hover);
	color: #fff;
}

#shipping_method li > label {
    display: block;
}
#shipping_method li > p.shipping-method-description {
    padding-right: 20px;
    font-size: 11px;
}

.is-large.wc-block-cart .wc-block-cart-items th {
	padding: 8px 16px 8px 8px !important;
}

table.wc-block-cart-items .wc-block-cart-items__header, table.wc-block-cart-items th, table.shop_table thead
{
	background: #212121 !important;
}

table.wc-block-cart-items .wc-block-cart-items__header th span, table.shop_table thead th {
	color: #fff !important;
    padding: 1em !important;
}

.upsell-products h4 {
    font-size: 20px;
		text-align: center;
    margin-bottom: 20px;
}

ul.products li.product .price, ul.products li.product .count-review, ul.products li.product .product-caption-bottom {
    justify-content: center;
}

.woocommerce-info, .woocommerce-noreviews, p.no-comments, .woocommerce-message, .woocommerce-error, .woocommerce-info {
    background-color: #f1b43e;
}

.update_cart_button {
    display: flex !important;
    float: left !important;
}

.clear-cart-button {
    background-color: #212121 !important;
    color: white;
    border-radius: 5px;
    display: inline-block !important;
    width: fit-content !important;
    margin-left: 20px;
}
.clear-cart-button:hover {
    background-color: #000 !important;
}


@media (min-width: 768px) {
    table.cart td.actions .coupon {
        width: 50%; 
    }
}

/**
* STYLE FORM
**/

input[type=text], input[type=number], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], textarea, .input-text {
    padding: 0.929em 1.25em;
    background-color: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-color: #ccd0dc;
}

/**
* STYLE MENU
**/

.vertical-navigation .vertical-menu {
	padding-bottom: 0;
}


.woocommerce-product-gallery__image a {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}
  

/* Désactiver le zoom des images produits */
.woocommerce-product-gallery__image img {
    cursor: default !important;
    transform: none !important;
    transition: none !important;
}

.woocommerce-product-gallery__image:hover img {
    transform: none !important;
}

/* Désactiver le curseur de zoom */
.woocommerce-product-gallery__image {
    cursor: default !important;
}

/* Désactiver l'effet de zoom au survol */
.woocommerce-product-gallery__image:hover {
    transform: none !important;
} 

span[aria-hidden="true"] {
    display: none !important;
}

.woosq-popup {
    max-height: 580px !important;
}

.woosq-product > .product > div {
    height: 580px !important;
    max-height: 580px !important;
    overflow-x: hidden;
}

.woosq-product .thumbnails img {
    margin-top: 30px;
    margin-bottom: 30px;
}


ul.products li.product .product-caption-bottom .right > *:first-child {
    margin-right: 8px;
    margin-left: 8px;
}