/* Home Categories Module CSS - PrestaShop 8.2 Compatible */

.home-categories {
    margin-bottom: 30px;
    padding: 20px 0;
}

.home-categories h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    padding: 10px;
    border-radius: 5px;
}

.second-line {
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.category-item {
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.category-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item h3 {
    margin: 15px 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.custom-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.custom-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design - Breakpoints gérés dynamiquement par le template */
@media (max-width: 480px) {
    .category-list {
        gap: 15px;
    }
    
    .home-categories {
        padding: 15px 0;
    }
    
    .category-item img {
        height: 150px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .category-list {
        gap: 18px;
    }
    
    .category-item img {
        height: 180px;
    }
}

/* PrestaShop 8.2 specific compatibility */
.home-categories .img-responsive {
    max-width: 100%;
    height: auto;
}

/* Bootstrap 5 compatibility for PrestaShop 8.2 */
.home-categories .container-fluid {
    padding: 0;
}
