.categories-section {
    background-color: #ffffff;
    padding: 40px;

    display: flex;
    justify-content: center;
    gap: 30px;

    flex-wrap: nowrap;
    max-width: 1400px;
    margin: auto;
}

/* CARD */

.category-card {
    width: 317px;
    height: 500px;
    border-radius: 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;

    transition: transform 0.35s ease;
}

/* zoom do card */

.category-card:hover {
    transform: scale(1.03);
}

/* OVERLAY */

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.45)
    );

    z-index: 1;
    transition: 0.3s ease;
}

/* overlay mais escuro no hover */

.category-card:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.65)
    );
}

/* BOTÃO */

.category-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 26px;
    border-radius: 30px;

    text-decoration: none;

    transition: all 0.3s ease;

    position: relative;
    z-index: 2;

    backdrop-filter: blur(4px);
}

/* efeito hover do botão */

.category-name:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.06);
    cursor: pointer;
}

/* remove sublinhado do link */

.category-card a,
.category-card a:visited,
.category-card a:hover,
.category-card a:active {
    text-decoration: none;
    color: inherit;
}

/* categorias (CORRIGIDO AQUI 🔥) */

.casual {
    background-image: url('../images/products/upcasual.png');
}

.esporte {
    background-image: url('../images/products/upesporte.png');
}

.moderno {
    background-image: url('../images/products/upmoderno.png');
}

.futurista {
    background-image: url('../images/products/upfuturista.png');
}

/* =========================
   RESPONSIVIDADE
========================= */

/* TABLET GRANDE */
@media (max-width: 1200px) {
    .categories-section {
        flex-wrap: wrap; /* quebra corretamente */
        gap: 25px;
        padding: 30px;
    }

    .category-card {
        width: 45%; /* 2 por linha */
        height: 420px;
    }
}

/* TABLET */
@media (max-width: 768px) {
    .categories-section {
        gap: 20px;
        padding: 25px 20px;
    }

    .category-card {
        width: 100%; /* 1 por linha */
        height: 380px;
    }

    .category-name {
        font-size: 0.9rem;
        padding: 10px 22px;
    }
}

/* MOBILE */
@media (max-width: 500px) {
    .categories-section {
        padding: 20px 15px;
        gap: 15px;
    }

    .category-card {
        height: 320px;
        border-radius: 12px;
    }

    .category-name {
        font-size: 0.85rem;
        padding: 9px 18px;
    }
}

/* MOBILE PEQUENO */
@media (max-width: 360px) {
    .category-card {
        height: 280px;
    }

    .category-name {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}