/* ===== SHOP PAGE SPECIFIC STYLES ===== */

/* Shop Hero Section */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="white" opacity="0.05"/></svg>') no-repeat center;
    background-size: cover;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.shop-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.shop-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.filters-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-group {
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--spacing-lg);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    user-select: none;
}

.filter-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-header i {
    color: var(--gray-500);
    transition: transform var(--transition-base);
}

.filter-header.active i {
    transform: rotate(180deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 300px;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option label {
    flex: 1;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 0.875rem;
    user-select: none;
}

.filter-option:hover label {
    color: var(--primary-color);
}

.filter-count {
    color: var(--gray-500);
    font-size: 0.75rem;
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* Products Area */
.products-area {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.products-info h2 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.75rem;
    color: var(--dark-color);
}

.products-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-dropdown label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.view-toggle {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--gray-100);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.view-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.mobile-filter-toggle {
    display: none;
}

/* Shop Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.shop-products-grid.list-view {
    grid-template-columns: 1fr;
}

.shop-products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
}

.shop-products-grid.list-view .product-image {
    height: 180px;
}

.shop-products-grid.list-view .product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Shop Product Card (Enhanced) */
.shop-product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.shop-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.shop-product-badges {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 1;
}

.product-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-stock {
    background: var(--success-color);
    color: white;
}

.badge-lowstock {
    background: var(--warning-color);
    color: white;
}

.badge-new {
    background: var(--accent-color);
    color: white;
}

.badge-discount {
    background: var(--danger-color);
    color: white;
}

.shop-product-content {
    padding: var(--spacing-lg);
}

.shop-product-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.shop-product-title {
    font-size: 1.125rem;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
    color: var(--dark-color);
}

.shop-product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.shop-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.shop-product-brand {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.shop-product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--warning-color);
    font-size: 0.875rem;
}

.shop-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.shop-product-price .current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.shop-product-price .original-price {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.shop-product-actions {
    display: flex;
    gap: var(--spacing-md);
}

.shop-product-actions .btn {
    flex: 1;
    padding: var(--spacing-sm);
    font-size: 0.875rem;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.no-products i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.no-products p {
    color: var(--gray-500);
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Load More */
.load-more {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

/* Shop Features */
.shop-features {
    background: var(--gray-50);
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-3xl);
}

/* Quick View Modal */
.quick-view-modal {
    max-width: 900px;
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.quick-view-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-view-details h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.quick-view-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.quick-view-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.quick-view-features {
    margin-bottom: var(--spacing-xl);
}

.quick-view-features h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.quick-view-features ul {
    list-style: none;
    padding: 0;
}

.quick-view-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--gray-600);
}

.quick-view-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

.quick-view-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.active-filter {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1003;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        max-height: 100vh;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .mobile-filter-toggle {
        display: inline-flex;
    }
    
    .products-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .shop-hero-title {
        font-size: 2.5rem;
    }
    
    .shop-hero-stats {
        gap: var(--spacing-xl);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .shop-hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .shop-hero-title {
        font-size: 2rem;
    }
    
    .shop-hero-description {
        font-size: 1.125rem;
    }
    
    .shop-hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }
    
    .products-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .shop-products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
    
    .shop-products-grid.list-view .product-image {
        height: 200px;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .shop-product-actions {
        flex-direction: column;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .shop-hero-title {
        font-size: 1.75rem;
    }
    
    .products-area {
        padding: var(--spacing-lg);
    }
    
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        display: none;
    }
    
    .shop-product-image {
        height: 180px;
    }
    
    .shop-product-actions .btn {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .filters-sidebar,
    .products-area,
    .shop-product-card {
        background-color: var(--gray-100);
        border-color: var(--gray-200);
    }
    
    .filter-option label {
        color: var(--gray-500);
    }
    
    .filter-option:hover label {
        color: var(--primary-color);
    }
    
    .sort-select {
        background-color: var(--gray-100);
        border-color: var(--gray-200);
        color: var(--gray-700);
    }
    
    .active-filter {
        background: var(--primary-color);
    }
}