/* Products Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #ff6b35;
}

.breadcrumb-nav .separator {
    color: #adb5bd;
}

.breadcrumb-nav .current {
    color: #495057;
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filters */
.filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    background: white;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    transition: all 0.3s ease;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid.list-view .product-content {
    flex: 1;
    padding: 0;
}

.products-grid.list-view .product-actions {
    flex-direction: column;
    min-width: 150px;
}

/* Enhanced Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: #28a745;
    color: white;
}

.product-badge.discount {
    background: #dc3545;
    color: white;
}

.product-badge.bestseller {
    background: #ffc107;
    color: #212529;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 600;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-specs span {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.product-specs i {
    margin-right: 0.25rem;
    color: #ff6b35;
}

.product-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

.original-price {
    font-size: 1rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.discount-percentage {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #ff6b35;
    color: white;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 4rem 0;
    color: #6c757d;
}

.no-products p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-section {
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination button,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination .ellipsis {
    border: none;
    background: none;
    cursor: default;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Count */
.product-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Advanced Filters */
.advanced-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: none;
}

.advanced-filters.show {
    display: block;
}

.advanced-filters h4 {
    margin-bottom: 1rem;
    color: #495057;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-row {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .products-grid.list-view .product-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .filters {
        padding: 1rem 0;
    }
    
    .product-card {
        margin: 0 -10px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .view-toggle {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

/* Animation for product loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Hover effects for interactive elements */
.filter-group select:hover {
    border-color: #adb5bd;
}

.product-specs span:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Active navigation link */
.nav-list a.active {
    color: #ff6b35;
    font-weight: 600;
}
