/* Products Page Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--default-color);
    opacity: 0.8;
}

.search-filter-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.form-label {
    color: var(--heading-color);
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.product-filters {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 2rem !important;
}

.product-filters .nav-link {
    color: var(--default-color);
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    background: transparent;
}

.product-filters .nav-link:hover,
.product-filters .nav-link.filter-active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.product-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.category-badge {
    background: var(--accent-color) !important;
    border-radius: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-title {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-outline-primary {
    border-radius: 8px;
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.no-results {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
}

.product-details h6 {
    color: var(--accent-color);
    font-weight: 600;
}

.product-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.isotope-item {
    transition: all 0.3s ease;
}

.isotope-item.filtered-out {
    opacity: 0;
    transform: scale(0.8);
}

.search-results-alert {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .search-filter-container {
        padding: 1.5rem !important;
    }
    
    .product-filters .nav-link {
        margin-bottom: 0.5rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .col-lg-4.col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-label {
        font-size: 0.85rem;
    }
    
    .product-filters {
        text-align: center;
    }
    
    .product-filters .nav-link {
        display: inline-block;
        margin: 0.25rem;
    }
}

/* Loading states */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10 3a7 7 0 00-7 7h2a5 5 0 015-5V3z' fill='%23007bff'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}