/* ===== CATEGORY SECTION ===== */
.category-section {
    padding: 20px 0 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: center;
}

.category-box {
    background: var(--white);
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(184, 134, 11, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: var(--brown-dark);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-size: cover !important;
    background-position: center !important;
}

.category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: background 0.3s ease;
}

.category-box:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.category-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(62, 44, 27, 0.12);
    border-color: var(--golden-light);
}

.category-box .cat-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.category-box:hover .cat-image {
    transform: scale(1.08);
}

.category-box .cat-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 15px 25px;
    background: linear-gradient(to top, rgba(62, 44, 27, 0.85) 0%, rgba(62, 44, 27, 0.3) 60%, transparent 100%);
    text-align: center;
    color: white;
}

.category-box .cat-overlay h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.category-box .cat-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.category-box .cat-overlay .shop-now {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 18px;
    background: var(--golden);
    color: white;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-box:hover .cat-overlay .shop-now {
    background: white;
    color: var(--brown-dark);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-items: center;
    }
    .category-box {
        aspect-ratio: 4 / 3;
        min-height: 220px;
        max-width: 350px;
        width: 100%;
    }
    .category-box .cat-overlay {
        padding: 22px 15px 28px;
    }
    .category-box .cat-overlay h3 {
        font-size: 1.6rem;
    }
    .category-box .cat-overlay p {
        font-size: 0.9rem;
    }
    .category-box .cat-overlay .shop-now {
        font-size: 0.8rem;
        padding: 6px 18px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 0 auto;
        justify-items: center;
    }
    .category-box {
        aspect-ratio: 16 / 10;
        min-height: 280px;
        max-height: 380px;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        border-radius: 28px;
    }
    .category-box .cat-overlay {
        padding: 30px 25px 35px;
    }
    .category-box .cat-overlay h3 {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    .category-box .cat-overlay p {
        font-size: 1.05rem;
        margin-top: 8px;
    }
    .category-box .cat-overlay .shop-now {
        font-size: 1rem;
        padding: 10px 28px;
        margin-top: 14px;
    }
}