/* ===================== PRODUCT CATEGORIES ===================== */

#product-categories {
    width: 100%;
    padding: 80px 8%;
}

.categories-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.categories-header h1 {
    color: #00427a;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.categories-header p {
    color: #6B7280;
    font-size: 1.1rem;
    line-height: 1.8;
}

.categories-grid {
    max-width: 1300px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.category-card {
    position: relative;
    background: #f7f7f7;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.category-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(to right,
            #00427a,
            #b0d5ff);
}

.category-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .12);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    line-height: 0;
    background: #ffffff; /* garante que o fundo combine com o card */
    border: 2px solid #f7f7f7;
}   

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 16px; /* respira em volta do copo */
    box-sizing: border-box;
}

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

.category-card h2 {
    color: #00427a;
    font-size: 1.6rem;
    font-weight: 700;

    padding: 20px 25px 10px;
    margin: 0;
}

.category-card p {
    color: #6B7280;

    padding: 0 25px 25px;

    line-height: 1.7;
    margin: 0;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1000px) {

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    #product-categories {
        padding: 60px 5%;
    }

    .categories-header h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

}