/* ============================================
   CATALOGUE GRID - 5 colonnes centrées
   ============================================ */

/* Section Catalogue */
.catalogue-section {
    padding: 20px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.catalogue-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
    overflow-x: hidden;
}

/* En-tête Section */
.catalogue-header {
    text-align: center;
    margin-bottom: 24px;
}

.catalogue-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #C62828 0%, #D84315 50%, #E65100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 12px auto;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalogue-subtitle {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Contenu principal centré */
.catalogue-main-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* En-tête du contenu */
.catalogue-content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-count {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Grille Produits - 5 colonnes sur desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    column-gap: 25px !important;
    row-gap: 12px !important;
    margin-bottom: 24px;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Carte Produit Catalogue */
.product-card-catalogue {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.product-card-catalogue:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card-catalogue .product-image-placeholder {
    width: 100%;
    height: 200px;
    background: transparent;
    position: relative;
}

.product-card-catalogue .product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Labels des produits */
.product-card-catalogue .product-labels {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-catalogue .product-label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-card-catalogue .product-label.promo {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
}

.product-card-catalogue .product-label.nouveau {
    background: #10b981;
    color: white;
}

.product-card-catalogue .product-label.top {
    background: #f59e0b;
    color: white;
}

/* Corps de la carte */
.product-card-catalogue .product-card-body {
    padding: 12px;
}

.product-card-catalogue .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.product-card-catalogue .product-stars {
    color: #fbbf24;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.product-card-catalogue .product-reviews {
    font-size: 10px;
    color: #999;
}

.product-card-catalogue .product-name-catalogue {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-card-catalogue .product-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-catalogue .product-price-current {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-catalogue .product-price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

/* Responsive */
@media (min-width: 769px) {
    /* Grille principale - 5 colonnes compactes */
    .products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        column-gap: 25px !important;
        row-gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Toutes les cartes dans la grille principale doivent prendre 100% de largeur */
    .products-grid .product-card,
    .products-grid .product-card-grid,
    .products-grid .product-card-catalogue {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
    
    /* Forcer les containers d'image à hauteur réduite */
    .products-grid .product-image-container,
    .products-grid .product-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Images en absolute pour remplir le container */
    .products-grid .product-image-container img,
    .products-grid .product-image-primary,
    .products-grid .product-image-secondary {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Forcer les infos produit à 100% avec padding réduit */
    .products-grid .product-info {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px !important;
    }
    
    /* Réduire la taille des textes */
    .products-grid .product-name {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .products-grid .price-current {
        font-size: 14px !important;
    }
    
    .products-grid .stars {
        font-size: 10px !important;
    }
    
    .products-grid .rating-count {
        font-size: 9px !important;
    }
    
    .catalogue-container {
        padding: 0 120px !important;
        width: 100% !important;
        max-width: 1400px !important;
        box-sizing: border-box !important;
    }
    
    .catalogue-section {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .catalogue-container {
        padding: 0 80px !important;
    }
}

@media (min-width: 1401px) {
    .catalogue-container {
        padding: 0 150px !important;
    }
}

@media (max-width: 768px) {
    .catalogue-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .catalogue-subtitle {
        font-size: 14px;
    }
    
    .catalogue-header {
        margin-bottom: 24px;
    }
    
    .catalogue-container {
        padding: 0 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        column-gap: 8px !important;
        row-gap: 12px !important;
    }
    
    .product-card-catalogue .product-image-placeholder {
        height: 100px;
    }
    
    .product-card-catalogue .product-card-body {
        padding: 6px;
    }
    
    .product-card-catalogue .product-name-catalogue {
        font-size: 9px !important;
        margin-bottom: 3px !important;
        line-height: 1.2 !important;
    }
    
    .product-card-catalogue .product-price-current {
        font-size: 11px;
    }
    
    .product-card-catalogue .product-price-old {
        font-size: 9px;
    }
    
    .product-card-catalogue .product-stars {
        font-size: 8px;
    }
    
    .product-card-catalogue .product-reviews {
        font-size: 7px;
    }
    
    .product-card-catalogue .product-rating {
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .catalogue-section {
        padding: 20px 0;
    }
    
    .product-card-catalogue .product-image-placeholder {
        height: 120px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
