/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: 80px 20px;
    background-color: whitesmoke;
}

.categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.categories-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.categories-header p {
    color: #666;
    font-size: 15px;
}

/* GRID */
.categories-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.category-card {
    position: relative;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* OVERLAY */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.1)
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-overlay h3 {
    color: white;
    font-size: 20px;
    font-weight: 500;
}

/* HOVER EFFECT */
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-header h2 {
        font-size: 26px;
    }
}
