/* ===================================
   STORE PAGE - PREMIUM MODERN STYLES
   =================================== */

/* --- Premium Color Palette --- */
:root {
    --store-primary: #4f46e5;
    --store-primary-dark: #4338ca;
    --store-secondary: #ec4899;
    --store-accent: #f59e0b;
    --store-success: #10b981;
    --store-danger: #ef4444;
    --store-bg-light: #f8fafc;
    --store-bg-dark: #0f172a;
    --store-text-primary: #1e293b;
    --store-text-secondary: #64748b;
    --store-border: #e2e8f0;
    --store-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --store-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --store-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --store-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- Smooth Transitions --- */
* {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Premium Product Card Styles --- */
.store-product-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Product Badge Styles --- */
.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    box-shadow: var(--store-shadow-md);
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-low-stock {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
}

.badge-out-stock {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    color: white;
}

/* --- Wishlist Icon --- */
.wishlist-icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: var(--store-shadow-md);
    opacity: 0;
    transform: scale(0.8);
}

.store-product-card:hover .wishlist-icon {
    opacity: 1;
    transform: scale(1);
}

.wishlist-icon:hover {
    background: var(--store-danger);
    color: white;
    transform: scale(1.1);
}

.wishlist-icon.active {
    background: var(--store-danger);
    color: white;
    opacity: 1;
    transform: scale(1);
}

/* --- Image Zoom Effect --- */
.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Quick View Overlay --- */
.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--store-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--store-primary);
    color: white;
    transform: translateY(-2px);
}

/* --- Rating Stars --- */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.rating-stars i {
    font-size: 0.875rem;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- Premium Filter Panel --- */
.filter-panel {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow-sm);
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--store-border);
}

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

.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--store-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* --- Filter Checkboxes --- */
.filter-checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-checkbox-wrapper:hover {
    background: var(--store-bg-light);
}

.filter-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--store-primary);
    cursor: pointer;
}

/* --- Search Bar Styles --- */
.store-search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.store-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--store-border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.store-search-bar input:focus {
    outline: none;
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.store-search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--store-text-secondary);
}

/* --- Skeleton Loading Animation --- */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

/* --- Modal Styles --- */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 56rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--store-shadow-xl);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Comparison Bar --- */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--store-border);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-bar.active {
    transform: translateY(0);
}

/* --- Premium Button Styles --- */
.btn-primary {
    background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-dark) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--store-shadow-md);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--store-shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--store-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--store-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
    transform: translateY(-2px);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .store-product-card {
        border-radius: 0.75rem;
    }
    
    .wishlist-icon {
        opacity: 1;
        transform: scale(1);
    }
    
    .quick-view-overlay {
        opacity: 1;
    }
    
    .quick-view-btn {
        transform: translateY(0);
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* --- Micro-animations --- */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Gradient Text Effects --- */
.gradient-text {
    background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Seller Stats Cards --- */
.stat-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-lg);
}

/* --- Filter Count Badge --- */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    background: var(--store-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}
