/* Categories Page Styles */

.categories-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.page-hero {
    background: linear-gradient(135deg, #0A4B3E 0%, #0d5a4a 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.categories-section {
    padding: 40px 0 80px;
}

.category-group {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.category-group:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.main-category-header {
    border-bottom: 2px solid #0A4B3E;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.main-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #0A4B3E;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-category-title i {
    color: #96722E;
    font-size: 1.5rem;
}

.main-category-title a {
    color: #0A4B3E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-category-title a:hover {
    color: #96722E;
}

.main-category-desc {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-count {
    display: inline-block;
    background: #0A4B3E;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.subcategory-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.subcategory-card:hover {
    background: #fff;
    border-color: #96722E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(150, 114, 46, 0.15);
}

.subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.subcategory-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.subcategory-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subcategory-title a:hover {
    color: #0A4B3E;
}

.product-count-small {
    background: #96722E;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list > li {
    margin-bottom: 8px;
}

.subcategory-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subcategory-list a:hover {
    background: #e9ecef;
    color: #0A4B3E;
    padding-left: 16px;
}

.subcategory-list i {
    color: #96722E;
    font-size: 0.875rem;
}

.item-count {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.subcategory-list-nested {
    list-style: none;
    padding-left: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.subcategory-list-nested li {
    margin-bottom: 5px;
}

.subcategory-list-nested a {
    font-size: 0.875rem;
    padding: 6px 10px;
    color: #6c757d;
}

.subcategory-list-nested a:hover {
    background: #f8f9fa;
    color: #96722E;
}

.subcategory-list-nested i {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-hero {
        padding: 40px 0;
    }

    .category-group {
        padding: 20px;
        margin-bottom: 25px;
    }

    .main-category-title {
        font-size: 1.5rem;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subcategory-card {
        padding: 15px;
    }

    .subcategory-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .main-category-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-category-title i {
        font-size: 1.25rem;
    }

    .subcategory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-count-small {
        align-self: flex-start;
    }
}
