/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Container */
.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les cartes */
    margin: 0 -15px; /* Compense le padding des colonnes */
}

.gy-4 {
    margin-top: -1.5rem;
}

/* Columns */
.col-6,
.col-md-3 {
    padding: 0 15px;
    margin-top: 1.5rem;
    box-sizing: border-box;
}

/* Version mobile - 1 carte centrée */
.col-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Version tablette - 2 cartes */
@media (min-width: 576px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Version desktop - 4 cartes */
@media (min-width: 992px) {
    .col-md-3 {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

/* Product Card */
.list-product {
    display: block;
    height: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    max-width: 400px; /* Limite la largeur max */
    margin: 0 auto; /* Centre la carte en mobile */
}

.list-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.list-product-image {
    position: relative;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.list-product:hover .img-wrapper img {
    transform: scale(1.03);
}

/* Product Info */
.list-product-info {
    padding: 1rem;
    text-align: center; /* Centre le texte */
}

.list-product-info h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Price */
.list-product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le prix */
}

.list-product-price-regular {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Sold Out */
.product-sold-out-label {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #ffeeee;
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .container {
        width: 85%;
        padding: 1rem 0;
    }

    .list-product {
        max-width: 350px; /* Ajustement pour mobile */
    }

    .list-product-info h3 {
        font-size: 0.9rem;
    }

    .list-product-price-regular {
        font-size: 1rem;
    }
}