/* Category Page Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #dc3545;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.category-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.view-all-btn {
    background-color: #dc3545;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.category-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Category Description */
.category-description {
    background-color: #ffffff;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.description-content .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
}

/* Featured Products Section */
.featured-products {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

/* Products Carousel */
.products-carousel-container {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.products-carousel {
    position: relative;
}

.products-scroll {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
    justify-content: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-50%) scale(1.1);
}

.prev-nav {
    left: -25px;
}

.next-nav {
    right: -25px;
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    min-width: 300px;
    max-width: 300px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    border-color: #dc3545;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.active {
    background-color: #28a745;
}

.status-text {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-action {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.product-action .btn {
    width: 100%;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-action .btn:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}



/* Responsive Design */
@media (max-width: 992px) {
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .category-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-scroll {
        gap: 1rem;
    }
    
    .product-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .products-carousel-container {
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .products-scroll {
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .category-hero {
        padding: 2rem 0;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .product-card {
        min-width: 260px;
        max-width: 260px;
    }
    

}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e9ecef;
    border-top-color: #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}