/* Category Page Styles - Responsive & Modern */
.category-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Assets/pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.category-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.category-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin: 2rem 0;
    font-size: 1rem;
    color: #666;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: #9b59b6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #8e44ad;
    text-decoration: underline;
}

.breadcrumb span {
    color: #2c3e50;
    font-weight: 600;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.filter-count {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#total-products {
    background: #9b59b6;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

#filtered-count {
    background: #e67e22;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
    color: #2c3e50;
}

.filter-btn.active {
    background: #9b59b6;
    color: white;
    border-color: #9b59b6;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* Products Grid - Always Visible */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #9b59b6;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #3498db);
    z-index: 2;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #9b59b6;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    color: #666;
    font-weight: 600;
    margin-left: 0.5rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-specs {
    margin: 1rem 0;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #e0e0e0;
}

.spec-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-item span:first-child {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.spec-item span:last-child {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: 2px solid #2c3e50;
    text-align: center;
    gap: 0.5rem;
}

.product-link:hover {
    background: #9b59b6;
    border-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.no-products-message i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.no-products-message h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-products-message p {
    color: #666;
    font-size: 1.1rem;
}

/* Back to Products Link */
.back-to-products {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #9b59b6;
}

.back-link:hover {
    background: white;
    color: #9b59b6;
    transform: translateX(-5px);
}

/* Category Footer */
.category-footer {
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    background: #2c3e50;
    color: white;
    border-radius: 12px 12px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    opacity: 1;
    color: #9b59b6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .category-header h1 {
        font-size: 2.3rem;
    }
    
    .category-header p {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .category-main {
        padding: 1rem;
    }
    
    .category-header {
        padding: 2rem 1rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .products-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-count {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .category-header p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .back-link {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for product cards */
.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Coming Soon Section */
.coming-soon-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px dashed #9b59b6;
    position: relative;
    overflow: hidden;
}

.coming-soon-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-content i {
    font-size: 3.5rem;
    color: #9b59b6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.coming-soon-content h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.coming-soon-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coming-soon-badge {
    display: inline-block;
    background: #9b59b6;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
    }
}

/* Responsive Design for Coming Soon Section */
@media (max-width: 768px) {
    .coming-soon-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .coming-soon-content h3 {
        font-size: 1.7rem;
    }
    
    .coming-soon-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .coming-soon-content i {
        font-size: 2.8rem;
    }
    
    .coming-soon-content h3 {
        font-size: 1.5rem;
    }
    
    .coming-soon-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}