/* Products List Page Styles */

/* Page Layout */
.products-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #357abd;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* Sidebar Filter */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 2rem;
}

.filter-section h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section h3 i {
    color: #4a90e2;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Filter Dropdown */
.filter-dropdown {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.filter-dropdown:hover {
    border-color: #4a90e2;
    background-color: #f8f9fa;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-dropdown option {
    padding: 0.75rem;
    background-color: white;
    color: #333;
}

.filter-dropdown option:hover {
    background-color: #f0f0f0;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a90e2;
}

.filter-option span {
    font-size: 0.95rem;
    color: #555;
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Price Range Vertical Layout */
.price-range-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-input-full {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-input:focus,
.price-input-full:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
    border-color: #4a90e2;
}

.price-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-tag {
    padding: 0.4rem 0.8rem;
    background: #f0f4f8;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.price-tag:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Clear Filters Button */
.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border: 1px solid #8e44ad;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(142, 68, 173, 0.2);
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #732d91 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.3);
}

/* Main Content */
.products-main {
    min-height: 500px;
}

/* Products Header */
.products-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-title h2 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.products-count {
    font-size: 0.95rem;
    color: #666;
}

.products-count strong {
    color: #4a90e2;
    font-weight: 600;
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-options select:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    min-width: 45px;
    text-align: center;
}

.pagination-number:hover {
    background: #f0f4f8;
    border-color: #4a90e2;
}

.pagination-number.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    font-weight: 600;
}

.pagination-dots {
    color: #999;
    padding: 0 0.5rem;
}

/* No Products */
.no-products {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-products-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.no-products h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.no-products p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}

.mobile-filter-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 1rem 0;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s;
        border-radius: 0;
    }

    .sidebar.mobile-active {
        left: 0;
    }

    .sidebar.mobile-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-options select {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .products-title h2 {
        font-size: 1.5rem;
    }

    .pagination {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .pagination-btn,
    .pagination-number {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-title h2 {
        font-size: 1.25rem;
    }

    .sort-options {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-options label {
        width: 100%;
    }

    .sort-options select {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid > * {
    animation: fadeIn 0.4s ease-out;
}

.products-grid > *:nth-child(1) { animation-delay: 0.05s; }
.products-grid > *:nth-child(2) { animation-delay: 0.1s; }
.products-grid > *:nth-child(3) { animation-delay: 0.15s; }
.products-grid > *:nth-child(4) { animation-delay: 0.2s; }
