﻿section {
    max-width: 1200px;
    justify-self: center;
    width: 100%;
}

/*#region Category Carts*/

.categorie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(229px, 1fr));
    gap: 1.5rem;
    padding: 20px 0;
}

.categorie-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: max-content;
}

    .categorie-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .categorie-card a {
        padding: 1.5rem;
        display: block;
        height: max-content;
        /* max-height: 300px; */
        /* min-height: 300px; */
        height: 300px;
    }

    .categorie-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.4s ease;
    }

    .categorie-card:hover img {
        transform: scale(1.08);
    }

/*#endregion*/
@media(max-width:1400px) {
}

@media(max-width:1200px) {
    .categorie-card a {
        /* min-height: auto; */
    }
}

@media(max-width:992px) {
}

@media(max-width:800px) {
    .categorie-list {
        grid-template-columns: repeat(auto-fill, minmax(223px, 1fr));
    }
}

@media(max-width:768px) {
    .categorie-card img {
        /* height: 180px; */
    }
}

@media(max-width:576px) {
    section {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }
}
