/* Shop Page Styles */
/* Shop Header */
.shop-header {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.shop-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.shop-subtitle {
    max-width: 400px;
    margin: 0 auto;
}

/* Shop Content */
.shop-content {
    padding: 50px 0;
    background-color: white;
}

.shop-layout {
    display: block;
}

/* Sidebar */
.shop-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-title i {
    color: #ffd700;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Price Range */
.price-range {
    position: relative;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-display {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 5px 0;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.filter-option .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked+.checkmark {
    background-color: #ffd700;
    border-color: #ffd700;
}

.filter-option input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-left: 5px;
}

.rating-stars i {
    font-size: 12px;
    color: #ffd700;
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    background-color: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #333;
}

/* Main Content */

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.results-info {
    font-size: 14px;
    color: #666;
}

.sort-view-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-control label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.sort-control select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-control select:focus {
    outline: none;
    border-color: #ffd700;
}

/* View Controls */
.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn.active,
.view-btn:hover {
    border-color: #ffd700;
    background-color: #ffd700;
    color: #000;
}

/* Products Container */
.products-container {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Product Card (Enhanced for Shop) */
.shop-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.shop-product-card.list-view {
    display: flex;
    align-items: center;
    padding: 20px;
}

.shop-product-card.list-view .product-image {
    width: 200px;
    height: 150px;
    margin-right: 20px;
    flex-shrink: 0;
}

.shop-product-card.list-view .product-info {
    flex: 1;
    padding: 0;
}

.shop-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    color: #e74c3c;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #e74c3c;
    z-index: 10;
}

.shop-product-info {
    padding: 20px;
}

.shop-product-category {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.shop-product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.shop-product-rating {
    margin-bottom: 10px;
}

.shop-product-rating i {
    color: #ddd;
    margin-right: 2px;
    font-size: 14px;
}

.shop-product-price {
    margin-bottom: 15px;
}

.shop-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 10px;
}

.shop-sale-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: 700;
}

.shop-add-to-cart {
    width: 100%;
    background-color: #000;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-add-to-cart:hover {
    background-color: #333;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.page-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #000;
}

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

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.page-number.active,
.page-number:hover {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #000;
}

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

@media (max-width: 768px) {
    .shop-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .shop-main {
        padding: 15px;
        margin: 0 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.reset-filters-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}