/* ===== SHOP PAGE STYLES ===== */

/* Shop Header */
.shop-header {
    margin-top: 80px;
}

.shop-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.shop-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.shop-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.shop-hero-content {
    text-align: center;
    color: var(--accent-white);
    max-width: 800px;
    margin: 0 auto;
}

.shop-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.shop-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-3xl);
    opacity: 0.9;
    line-height: 1.6;
}

.shop-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
}

.shop-stats .stat-item {
    text-align: center;
}

.shop-stats .stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.shop-stats .stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Shop Content */
.shop-content {
    padding: var(--spacing-4xl) 0;
    background: var(--accent-cream);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-3xl);
}

/* Sidebar Filters */
.shop-sidebar {
    background: var(--accent-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    height: fit-content;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: sticky;
    top: 120px;
}

.filter-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

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

.checkmark,
.radiomark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-base);
}

.radiomark {
    border-radius: var(--radius-full);
}

.filter-option input:checked + .checkmark,
.filter-option input:checked + .radiomark {
    border-color: var(--primary-gold);
    background: var(--primary-gold);
}

.filter-option input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-white);
    font-size: 12px;
    font-weight: bold;
}

.filter-option input:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-white);
    border-radius: var(--radius-full);
}

/* Price Range */
.price-range {
    margin-top: var(--spacing-lg);
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: var(--spacing-md);
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--shadow-light);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.clear-filters {
    width: 100%;
    margin-top: var(--spacing-lg);
}

/* Shop Main Content */
.shop-main {
    background: var(--accent-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.shop-results {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-white);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-gold);
    color: var(--accent-white);
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--accent-white);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--primary-gold);
}

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

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

.product-card {
    background: var(--accent-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all var(--transition-base);
    position: relative;
}

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
}

.product-action {
    width: 45px;
    height: 45px;
    background: var(--accent-white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.product-action:hover {
    background: var(--primary-gold);
    color: var(--accent-white);
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--primary-gold);
    color: var(--accent-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.sale {
    background: #ef4444;
}

.product-badge.new {
    background: #22c55e;
}

.product-content {
    padding: var(--spacing-xl);
}

.product-category {
    font-size: var(--font-size-sm);
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.product-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.product-notes {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.product-note {
    background: var(--accent-cream);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.current-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: var(--primary-gold);
    font-size: var(--font-size-sm);
}

.rating-count {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

/* List View Styles */
.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl);
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    margin-right: var(--spacing-xl);
}

.products-grid.list-view .product-content {
    flex: 1;
    padding: 0;
}

.products-grid.list-view .product-footer {
    margin-top: var(--spacing-lg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-gold);
    color: var(--accent-white);
    border-color: var(--primary-gold);
}

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

.pagination-numbers {
    display: flex;
    gap: var(--spacing-xs);
}

.pagination-number {
    width: 40px;
    height: 40px;
    background: var(--accent-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary-gold);
    color: var(--accent-white);
    border-color: var(--primary-gold);
}

.pagination-dots {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-sm);
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .shop-sidebar {
        position: static;
        order: 2;
    }
    
    .shop-main {
        order: 1;
    }
    
    .shop-stats {
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .shop-title {
        font-size: var(--font-size-4xl);
    }
    
    .shop-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: stretch;
    }
    
    .shop-controls {
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        height: 50vh;
    }
    
    .shop-title {
        font-size: var(--font-size-3xl);
    }
    
    .shop-sidebar,
    .shop-main {
        padding: var(--spacing-lg);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}

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

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Filter Toggle for Mobile */
.filter-toggle {
    display: none;
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-gold);
    color: var(--accent-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .filter-toggle {
        display: block;
    }
    
    .shop-sidebar {
        display: none;
    }
    
    .shop-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--accent-white);
        z-index: var(--z-modal);
        overflow-y: auto;
        padding: var(--spacing-2xl);
    }
    
    .shop-sidebar .close-filters {
        display: block;
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
        background: none;
        border: none;
        font-size: var(--font-size-xl);
        cursor: pointer;
    }
}