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

/* Shop Header - Left-aligned, clinical */
.shop-header {
    background: var(--neutral-50);
    padding: var(--space-2xl) 0;
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--neutral-200);
}

.shop-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 4px solid var(--primary-600);
    line-height: 1.3;
}

.shop-subtitle {
    max-width: 560px;
    margin: var(--space-md) 0 0;
    margin-left: calc(var(--space-md) + 4px);
    color: var(--neutral-600);
    font-size: 1rem;
}

/* Shop Content */
.shop-content {
    padding: var(--space-3xl) 0;
    background: white;
    border-top: 1px solid var(--neutral-200);
}

.shop-layout {
    display: block;
}

/* Sidebar (for future filtering) */
.shop-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid var(--neutral-200);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--neutral-100);
}

.filter-title .icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-600);
}

.filter-group {
    margin-bottom: var(--space-xl);
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.price-display {
    text-align: center;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 14px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--neutral-600);
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

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

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

.filter-option .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-option:hover .checkmark {
    border-color: var(--primary-400);
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border-color: var(--primary-600);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-left: var(--space-xs);
}

.rating-stars .icon {
    width: 14px;
    height: 14px;
    fill: var(--accent-400);
}

/* Clear Filters Button */
.clear-filters-btn {
    width: 100%;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border: 1px solid var(--neutral-300);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.clear-filters-btn:hover {
    background: var(--neutral-200);
    color: var(--neutral-800);
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
}

.results-info {
    font-size: 14px;
    color: var(--neutral-500);
}

.sort-view-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-control label {
    font-size: 14px;
    color: var(--neutral-600);
    font-weight: 500;
}

.sort-control select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--neutral-700);
}

.sort-control select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* View Controls */
.view-controls {
    display: flex;
    gap: var(--space-xs);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--neutral-300);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--neutral-500);
}

.view-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

/* Products Container - Same grid as home page */
.products-container {
    margin-bottom: var(--space-2xl);
}

/* Match home page: 4 cols → 3 → 2 → 1 (same as styles.css) */
.shop-content .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    min-width: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--neutral-200);
}

.page-btn {
    background: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

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

.page-numbers {
    display: flex;
    gap: var(--space-xs);
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--neutral-600);
    transition: all var(--transition-fast);
    background: white;
}

.page-number.active,
.page-number:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* Responsive - Same breakpoints as home page */
@media (max-width: 1024px) {
    .shop-content .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: var(--space-xl) 0;
    }
    
    .shop-header .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .shop-title {
        font-size: 1.5rem;
    }
    
    .shop-subtitle {
        margin-left: calc(var(--space-md) + 4px);
    }
    
    .shop-controls {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .shop-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .shop-content .product-card {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: var(--space-lg) 0;
    }
    
    .shop-title {
        font-size: 1.35rem;
    }
    
    .shop-content .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .shop-content .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: var(--space-md);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--neutral-500);
    position: relative;
}

.loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: var(--space-md) auto;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    color: var(--neutral-500);
}

.no-results .icon {
    width: 64px;
    height: 64px;
    fill: var(--neutral-300);
    margin-bottom: var(--space-lg);
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.reset-filters-btn {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}
