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

/* Shop Header */
.shop-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, var(--accent-50) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
}

.shop-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
    position: relative;
}

.shop-subtitle {
    max-width: 500px;
    margin: 0 auto;
    color: var(--neutral-600);
    font-size: 1.0625rem;
    position: relative;
}

/* Shop Content */
.shop-content {
    padding: var(--space-3xl) 0;
    background: white;
}

.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(13, 148, 136, 0.1);
}

/* 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 */
.products-container {
    margin-bottom: var(--space-2xl);
}

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

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Shop Product Card */
.shop-product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.shop-product-card.list-view {
    flex-direction: row;
    align-items: center;
    padding: var(--space-lg);
}

.shop-product-card.list-view .shop-product-image {
    width: 200px;
    height: 150px;
    margin-right: var(--space-lg);
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

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

.shop-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--neutral-100);
}

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

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

.sale-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

.shop-product-info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.shop-product-category {
    color: var(--primary-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-product-name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.shop-product-rating .icon.empty {
    fill: var(--neutral-300);
}

.shop-product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

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

.shop-sale-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.shop-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    padding: var(--space-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-add-to-cart:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
}

/* 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: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    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: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border-color: var(--primary-600);
    color: white;
}

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

@media (max-width: 768px) {
    .shop-header {
        padding: var(--space-2xl) 0;
    }
    
    .shop-controls {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .shop-product-card.list-view {
        flex-direction: column;
    }
    
    .shop-product-card.list-view .shop-product-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .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(13, 148, 136, 0.3);
}
