/* Shop Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--sand) 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Shop Layout */
.shop-content {
    padding: 60px 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 30px;
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

.filters-header h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--primary-green);
    margin: 0;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--secondary-gold);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.clear-filters:hover {
    color: var(--primary-green);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--primary-green);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #D1D5DB;
    border-radius: 3px;
    appearance: none;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option input[type="checkbox"]:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

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

.filter-option span {
    font-size: 14px;
    color: var(--text-dark);
    flex: 1;
}

.filter-option .count {
    color: var(--text-light);
    font-size: 12px;
    margin-left: auto;
}

/* Price Range Filter */
.price-range {
    margin-top: 15px;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #E8E8E8;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

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

.results-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.results-info span {
    color: var(--primary-green);
    font-weight: 600;
}

.sort-options select {
    padding: 10px 15px;
    border: 2px solid #E8E8E8;
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-gold);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.subscription {
    background: var(--success);
}

.product-badge.bestseller {
    background: var(--warning);
}

.product-badge.new {
    background: var(--error);
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    color: var(--secondary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.benefit-tag {
    background: var(--light-beige);
    color: var(--primary-green);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-current {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-subscription {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.product-rating .stars {
    color: var(--warning);
    font-size: 12px;
}

.product-rating .count {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 4px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px 16px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-add-cart:hover {
    background: #083a2b;
    transform: translateY(-1px);
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    background: var(--light-beige);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: var(--secondary-gold);
    color: white;
}

.btn-wishlist.active {
    background: var(--error);
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 15px;
}

/* Subscription Banner */
.subscription-banner {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0d5d46 100%);
    color: white;
    padding: 60px 0;
    margin-top: 80px;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.banner-text h3 {
    font-family: var(--font-primary);
    font-size: 32px;
    margin-bottom: 12px;
}

.banner-text p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.banner-cta .btn-primary {
    background: var(--secondary-gold);
    color: white;
    border: none;
}

.banner-cta .btn-primary:hover {
    background: var(--light-gold);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    border-radius: var(--border-radius-large);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quick-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0;
    border-bottom: 1px solid #E8E8E8;
}

.quick-view-header h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--primary-green);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.close-modal:hover {
    color: var(--primary-green);
}

.quick-view-body {
    padding: 30px;
}

/* Responsive Shop Styles */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        position: static;
        order: 2;
    }
    
    .products-main {
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .shop-content {
        padding: 40px 0;
    }
    
    .filters-sidebar {
        padding: 20px;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-wishlist {
        align-self: flex-start;
    }
    
    .banner-text h3 {
        font-size: 24px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .filters-sidebar {
        padding: 15px;
    }
    
    .filter-group h4 {
        font-size: 14px;
    }
    
    .filter-option span {
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-benefits {
        gap: 4px;
    }
    
    .benefit-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .quick-view-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .quick-view-header,
    .quick-view-body {
        padding: 20px;
    }
}