/* Categories Page Styles */
.categories-section {
    padding: 3rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #000000;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
}

.category-count {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.no-categories {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Category Search */
.category-search-box {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-results-count {
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.no-search-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.category-card.hidden {
    display: none;
}

/* Category Filter */
.category-filter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.category-filter h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.filter-btn:hover {
    border-color: #000000;
    color: #000000;
    background: #f8f8f8;
}

.filter-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .category-image {
        height: 150px;
    }
    
    .category-info h3 {
        font-size: 1.2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

