.categories-header {
    background: #f9f9f9;
    color: black;
    padding: 40px 0;
    text-align: center;
    /* margin-bottom: 30px; */
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    margin-top: -20px;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    color: black;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex: 0 0 auto;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    /* background: rgba(0,0,0,0.5); */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.items-count {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.shop-now-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #333;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background: #b5639f;
    color: white;
}

.category-content {
    padding: 1.5rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.category-description {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-header {
        padding: 25px 0;
        margin-top: 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .category-content {
        padding: 1rem;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 15px;
    }
    
    .categories-header {
        padding: 20px 15px;
        border-radius: 0;
    }
    
    .category-card {
        max-width: 100%;
    }
    
    .category-image {
        aspect-ratio: 16/10;
    }
}