﻿/* Category Menu Section */
.category-menu-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef7f0 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 50%;
        transform: translateX(50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(to left, #8B4513, #D2691E);
        border-radius: 2px;
    }

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

    .category-card:hover,
    .category-card.active {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
        border-color: var(--category-color, #8B4513);
    }

.category-card-inner {
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: white;
}

.category-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-content {
    text-align: center;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 45px;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.product-count {
    color: #8B4513;
    background: #fef7f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.featured-badge {
    color: #D4AF37;
    background: #fff8e1;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.category-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(210, 105, 30, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.category-card:hover .category-hover-overlay {
    opacity: 1;
}

.explore-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Categories Slider */
.featured-categories-slider {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    border-radius: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.slider-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.featured-category-slide {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

    .featured-category-slide:hover {
        transform: translateY(-5px);
    }

.featured-category-content {
    flex: 1;
}

    .featured-category-content h4 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .featured-category-content p {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 1rem;
    }

.featured-btn {
    background: white;
    color: #8B4513;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

    .featured-btn:hover {
        background: #f4f4f4;
        transform: translateY(-2px);
    }

.featured-category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

    .featured-category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Animation for slider */
@keyframes fadeSlide {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(10px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-category-slide {
    animation: fadeSlide 15s infinite;
}

    .featured-category-slide:nth-child(1) {
        animation-delay: 0s;
    }

    .featured-category-slide:nth-child(2) {
        animation-delay: 5s;
    }

    .featured-category-slide:nth-child(3) {
        animation-delay: 10s;
    }

/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-category-slide {
        flex-direction: column;
        text-align: center;
    }

    .featured-category-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .category-card-inner {
        padding: 1.5rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
