/* Category Page Custom Styles */

/* Override body padding for category page to account for header height */
body {
    padding-top: 160px !important;
}

/* Account for header height with proper top padding - match actual header height */
/* Only apply to main content container, not header container */
.bg-white .container-fluid {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 160px !important;
    }
    
    .bg-white .container-fluid {
        padding-top: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-top: 160px !important;
    }
    
    .bg-white .container-fluid {
        padding-top: 0 !important;
    }
}

/* Main title section spacing */
.category-title-section {
    margin-bottom: 3rem !important;
}

.category-title-section h2 {
    margin-bottom: 1.5rem !important;
}

.category-title-section p {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Lazy loading styles */
.lazy-carousel {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-carousel.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Category carousel spacing and full width */
.category-carousel-section {
    margin-bottom: 2rem;
    width: 100%;
}

.category-carousel-section:last-child {
    margin-bottom: 1rem;
}

/* Ensure category carousels have full width */
.category-carousel-content {
    width: 100% !important;
    max-width: none !important;
}

/* Override any container constraints for carousels */
.category-carousel-content .featured-carousel-wrapper {
    width: 100% !important;
    max-width: none !important;
}

.category-carousel-content .featured-carousel-container {
    width: 100% !important;
    max-width: none !important;
}

/* Enhanced spacing between carousels */
.category-carousel-spacing {
    margin: 1.5rem 0;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .category-title-section {
        margin-bottom: 2rem !important;
    }
    
    .category-title-section h2 {
        margin-bottom: 1rem !important;
    }
    
    .category-title-section p {
        margin-top: 1rem !important;
    }
    
    .category-carousel-section {
        margin-bottom: 1.5rem;
    }
    
    .category-carousel-spacing {
        margin: 1rem 0;
    }
}


/* Category carousel fade-in animation */
.category-carousel-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Page Loading Indicator */
#category-loading-overlay {
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

#category-loading-overlay .spinner-border {
    border-width: 3px;
    color: #ff6b35 !important;
}

/* Loading indicator responsive adjustments */
@media (max-width: 768px) {
    #category-loading-overlay .spinner-border {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

