.categories {
    padding: 120px 8%;
    background: linear-gradient(135deg, #fdf6ec, #fffaf3);
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: auto;
    margin-bottom: 60px;
}

.section-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-header p {
    margin-top: 15px;
    color: #6b4f3a;
}

/* Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Card */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.category-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.6s ease;
}

/* Overlay */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: 0.4s ease;
}

.category-overlay h4 {
    color: white;
    font-size: 18px;
}

/* Hover Effects */
.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(193,154,107,0.3);
}

/* DARK MODE FIX */

body.dark .categories {
    background: linear-gradient(135deg, #1f1813, #14100d);
}

body.dark .section-label {
    color: #c19a6b;
}

body.dark .section-header h2 {
    color: #f5e9dc;
}

body.dark .section-header p {
    color: #d6c3b0;
}

body.dark .category-card {
    background: #2a1e18;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

body.dark .category-overlay {
    background: linear-gradient(to top, rgba(193,154,107,0.9), transparent);
}