/* Shop Page Styles */
.shop-page {
    padding: 60px 0;
}

/* Shop Header */
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-results-count {
    color: var(--color-text, #666);
    font-size: 0.9rem;
}

.shop-sorting select {
    padding: 8px 12px;
    border: 1px solid var(--color-border, #eee);
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
    min-width: 200px;
}

.shop-filter-toggle {
    display: none;
}

/* Shop Content Layout */
.shop-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Shop Sidebar */
.shop-sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-self: start;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-border, #eee);
    padding-bottom: 20px;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-option label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Price Range Slider */
.price-slider {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.price-input .input-wrap {
    position: relative;
}

.price-input .currency {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text, #666);
}

.price-input input {
    width: 100%;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--color-border, #eee);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Loading Animation */
.loading-products {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border, #eee);
    border-top: 3px solid var(--color-primary, #333);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    justify-content: center;
    padding: 30px;
    background-color: var(--color-light, #f9f9f9);
    border-radius: 8px;
}

.no-products-found i {
    font-size: 3rem;
    color: var(--color-border, #ddd);
    margin-bottom: 20px;
}

.no-products-found p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text, #666);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border, #eee);
    border-radius: 4px;
    background-color: #fff;
    color: var(--color-text, #666);
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: var(--color-light, #f9f9f9);
    color: var(--color-dark, #333);
}

.pagination-btn.active {
    background-color: var(--color-primary, #333);
    color: #fff;
    border-color: var(--color-primary, #333);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-content {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        padding: 20px;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .shop-sidebar.active {
        transform: translateX(0);
        display: block;
    }
    
    .shop-filter-toggle {
        display: block;
    }
    
    .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        color: var(--color-text, #666);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-results-count,
    .shop-sorting {
        width: 100%;
    }
    
    .shop-sorting select {
        width: 100%;
    }
}