
/* Shared homepage section heading */

.home-section {
    padding: 70px 0;
}

.home-section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 10px;
}

.home-section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Category cards */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    display: block;
    text-align: center;
}

.category-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: var(--pink);
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.04);
}

.category-card h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 15px 0 0;
    color: var(--text);
}

/* Mobile */

@media (max-width: 768px) {
    .home-section {
        padding: 50px 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .category-card h3 {
        font-size: 15px;
    }
}
