
/* --- Styles pour la grille de produits (copié de shop.css) --- */
.product-grid {
    display: grid;
    /* 4 colonnes sur grand écran */
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; /* Espace entre les cartes */
    
    /* Reset style <ul> */
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden; /* Pour les coins arrondis de l'image */
    display: flex;
    flex-direction: column; /* Organise le contenu verticalement */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-item-card:hover img{
    transform: scale(1.1);
}

/* --- Image (Lien 1) --- */
.product-image-link {
    display: block; /* Nécessaire pour le conteneur d'image */
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 220px; /* Hauteur fixe pour aligner les cartes */
    object-fit: cover; /* Recadre l'image proprement */
    display: block;
    background-color: var(--ilo-light-grey);
	transition-duration: 250ms;
}

/* Style pour l'image placeholder */
.placeholder-image {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--ilo-extra-large);
    color: var(--ilo-grey);
    background-color: var(--ilo-white);
}

/* --- Infos (Titre, Prix, Bouton) --- */
.product-info-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fait en sorte que toutes les cartes aient la même hauteur */
}

/* --- Titre/Prix (Lien 2) --- */
.product-info-link {
    text-decoration: none;
    color: var(--ilo-black);
}

.product-name {
    font-family: 'poppins', 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'IBM Plex Sans JP', 'IBM Plex Sans KR', sans-serif;
    font-size: var(--ilo-light);
    margin: 0 0 8px 0;
    min-height: 44px; /* Évite les sauts de ligne (2 lignes) */
}

.product-price {
    font-size: var(--ilo-medium);
    font-weight: 700;
    color: var(--ilo-blue);
    margin: 0 0 16px 0;
}

/* --- Bouton "Ajouter au panier" --- */
.product-item-card .btn-add {
    background-color: var(--ilo-blue);
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 7px;
    font-size: var(--ilo-extra-extra-light);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: auto; /* Pousse le bouton en bas de la carte */
    box-sizing: border-box;
}

.product-item-card .btn-add:hover {
    background-color: var(--ilo-blue-hover);
}

/* --- Responsive pour la grille --- */
@media only screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
