/**
 * ------------------------------------------------------------------------
 * V.and The Wolf
 * Component : Product Grid & Card Styles (Vintage High-End Fashion)
 * ------------------------------------------------------------------------
 */

/* =================================================================
   1. Grille de produits principale (CSS Grid pur)
   - Configuration Desktop : 4 colonnes strictement égales
   - Espacements généreux pour laisser respirer les produits
   ================================================================ */
.vtw-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 40px; /* Espacement vertical et horizontal important pour un rendu aéré */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Tablette : 2 colonnes */
@media screen and (max-width: 1024px) {
    .vtw-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

/* Mobile : 1 colonne */
@media screen and (max-width: 576px) {
    .vtw-products-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }
}

/* =================================================================
   2. Produit Individuel (.vtw-product)
   - Absence totale de carte, de fond, de bordure ou d'ombre
   - Le fond beige du site reste intégralement visible
   ================================================================ */
.vtw-product {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* =================================================================
   3. Conteneur Image (.vtw-product__image)
   - Hauteur fixe et identique pour aligner parfaitement les départs
   - Intégrité totale des vêtements/objets grâce à contain
   ================================================================ */
.vtw-product__image {
    position: relative;
    width: 100%;
    height: 380px; /* Boîte d'affichage fixe et uniforme pour toutes les photos */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent; /* Transparence totale pour laisser vivre le fond */
    margin-bottom: 24px;
}

/* Lien de l'image occupant tout l'espace de la boîte */
.vtw-product__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Contraintes strictes sur les balises <img> sans jamais couper les visuels */
.vtw-product__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Respect absolu des proportions (sacs, vestes, toiles) */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom très discret et feutré au survol (esprit vestiaire intemporel) */
.vtw-product:hover .vtw-product__image img {
    transform: scale(1.02);
}

/* =================================================================
   4. Conteneur de contenu (.vtw-product__content)
   - Structure interne épurée et alignée
   ================================================================ */
.vtw-product__content {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
}

/* =================================================================
   5. Titre du produit (.vtw-product__title)
   - Hauteur minimale rigoureuse pour figer l'alignement des prix et liens
   - Typographie soignée, lisible, sans excès de finesse
   ================================================================ */
.vtw-product__title {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500; /* Graisse intermédiaire pour une parfaite lisibilité vintage */
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    min-height: 70px; /* Hauteur fixe garantissant l'alignement des éléments sous-jacents */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vtw-product__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vtw-product__title a:hover {
    color: #555555;
}

/* =================================================================
   6. Prix du produit (.vtw-product__price)
   - Alignement horizontal parfait d'une fiche à l'autre
   ================================================================ */
.vtw-product__price {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.03em;
    margin: 0 0 16px 0;
}

/* Gestion propre des prix promotionnels potentiels */
.vtw-product__price ins {
    text-decoration: none;
    font-weight: 500;
}

.vtw-product__price del {
    color: #888888;
    margin-right: 8px;
    font-weight: 400;
}

/* =================================================================
   7. Lien Découvrir (.vtw-product__discover)
   - Style brut, minimaliste, sans bouton ni fond
   - Apparition progressive et subtile du soulignement au survol
   ================================================================ */
.vtw-product__discover {
    display: inline-block;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    text-decoration: none;
    padding-bottom: 2px;
    position: relative;
    width: fit-content;
    transition: color 0.3s ease;
}

/* Ligne de soulignement invisible par défaut, s'étirant en douceur */
.vtw-product__discover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vtw-product__discover:hover {
    color: #1a1a1a;
}

.vtw-product__discover:hover::after {
    width: 100%;
}