/**
 * Product Card Styles
 *
 * This CSS file is for custom product card styling.
 * Most styling inherits from your theme's WooCommerce/Elementor styles.
 *
 * Classes available:
 * - .av-product-grid__item - Individual product card
 * - .product-thumbnail - Image wrapper
 * - .woocommerce-loop-product__title - Product title
 * - .price - Price display
 * - .sold-by-meta - Vendor/shop name
 * - .add_to_cart_button - Add to cart button
 * - .outofstock / .instock - Stock status classes
 */

/* Example custom styles - uncomment and modify as needed */


.av-product-grid__item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease;
    /*   aspect-ratio: 1 / 1;*/
    overflow: hidden;
    width: 100%;
    display: block;
}

.av-product-grid__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sold-by-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    position: absolute;
    top: 0em;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.05em 1em;
    border-radius: 7px 0px 4px 0;
}

.sold-by-meta a {
    color: #0073aa;
    text-decoration: none;
}

.product-thumbnail {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* margin-bottom: 15px;*/
}

.woocommerce ul.products li.product.av-product-grid__item div.item-bar:before,
.woocommerce ul.products li.product.av-product-grid__item div.item-bar:after {
    display: none;

}


.woocommerce ul.products li.product.av-product-grid__item div.item-bar a.button {
    text-align: center;
    padding: 0 8px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 5px;
    background: #f05025;
    border-color: #f05025;
    color: #fff !important;
    width: 3em;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product.av-product-grid__item div.item-bar a.button.added {
    width: 4em;
}

.woocommerce ul.products li.product.av-product-grid__item div.item-bar .added_to_cart.wc-forward {
    display: none !important;
}

.woocommerce #av-shop-ui-root ul.products .av-product-grid__item.outofstock .product-thumbnail>a:before {
    content: "Rupture de stock";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);
    color: #fff;
    padding: 0.25em 0.5em;
    background: rgba(255, 0, 0, 0.75);
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}


.woocommerce #av-shop-ui-root ul.products:before,
.woocommerce #av-shop-ui-root ul.products:after {
    display: none;
}

.woocommerce #av-shop-ui-root ul.products {
    display: grid;
    margin: 0;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    list-style: none outside;
    clear: both;
}

@media (max-width: 1024px) {
    .woocommerce #av-shop-ui-root ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce #av-shop-ui-root ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.woocommerce #av-shop-ui-root ul.products .av-product-grid__item {
    width: auto;
    margin: 0;
}

.woocommerce ul.products li.product.av-product-grid__item div.item-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    /*   min-height: 48px;*/

}

.av-load-more__button {
    background: #f05025;
    border-color: #f05025;
    color: #fff !important;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.woocommerce ul.products li.product.av-product-grid__item .woocommerce-loop-product__title>a {
    color: #ffffff;
    text-decoration: none;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.add_to_cart_button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add_to_cart_button:hover {
    background: #005a87;
}

.add_to_cart_button.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.outofstock .product-thumbnail {
    /* opacity: 0.6;*/
}