﻿.sub-category-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(229px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1200px;
    width: 100%;
    justify-self: center;
}
.categorie-cart-custom {
    padding: 1.5rem;
    display: block;
    height: max-content;
    height: 300px;
}

.sub-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .sub-category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .sub-category-card .card-image {
        background: #f9f9f9;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
    }

        .sub-category-card .card-image img {
            max-width: 100%;
            height: auto;
            transition: transform 0.3s ease;
        }

    .sub-category-card:hover .card-image img {
        transform: scale(1.05);
    }

    .sub-category-card .card-body {
        padding: 1rem 1.2rem 1.5rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .sub-category-card h3 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .sub-category-card p {
        font-size: 12px;
        color: #666;
        margin-bottom: 1rem;
    }

@media(max-width:1400px) {
}

@media(max-width:1200px) {
}

@media(max-width:992px) {
    .sub-category-section {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width:768px) {
    .sub-category-section {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:576px) {
    .sub-category-section {
        grid-template-columns: 1fr;
    }
}
