/* Shop Page Layout */
.shop-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Sidebar Styles */
.shop-sidebar {
    width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.shop-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 0.8rem;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* Search Input */
#searchInput {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

/* Price Range */
#priceRange {
    width: 100%;
    cursor: pointer;
    accent-color: #2ecc71;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

#priceValue {
    color: #2ecc71;
    font-weight: bold;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    cursor: pointer;
    accent-color: #2ecc71;
}

/* Select Dropdown */
#sortBy {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#sortBy:focus {
    outline: none;
    border-color: #2ecc71;
}

#sortBy option {
    padding: 0.5rem;
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
}

.clear-filters-btn:hover {
    background-color: #c0392b;
}

/* Main Content */
.shop-main {
    flex: 1;
}

.shop-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #2ecc71;
}

.shop-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#resultCount {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.shop-products-grid .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-products-grid .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.shop-products-grid .product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.shop-products-grid .product-info {
    padding: 1rem;
}

.shop-products-grid .product-name {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.shop-products-grid .product-price {
    font-size: 1.3rem;
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.shop-products-grid .product-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.shop-products-grid .add-to-cart {
    width: 100%;
    padding: 0.6rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.shop-products-grid .add-to-cart:hover {
    background-color: #27ae60;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-results p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-container {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .shop-sidebar {
        width: 200px;
    }

    .shop-header h1 {
        font-size: 2rem;
    }

    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .shop-sidebar h3 {
        margin-bottom: 1rem;
    }

    .filter-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .shop-header h1 {
        font-size: 1.8rem;
    }

    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .shop-products-grid .product-image {
        height: 120px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 0.5rem;
    }

    .shop-sidebar {
        padding: 1rem;
    }

    .shop-header h1 {
        font-size: 1.5rem;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .shop-products-grid .product-image {
        height: 100px;
        font-size: 1.5rem;
    }

    .shop-products-grid .product-name {
        font-size: 0.9rem;
    }

    .shop-products-grid .product-price {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}