/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --primary-blue: #2563eb;
    --accent-indigo: #4f46e5;
    --dark-bg: #0f172a;
    --glass-white: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 1. Ultra-Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-indigo));
    border-radius: 20px;
}

/* 2. Glassmorphism 2.0 */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 3. Product Card - Advanced Interaction */
.product-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

/* 4. Shimmer Effect (Loading/Button) */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

/* 5. Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 6. Checkout Button - Glow & Shimmer */
.btn-premium {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

/* 7. Image Mask for Better Display */
.img-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- FIX 8: VISIBILITY SAFETY (MOST IMPORTANT) --- */
/* Isse JS crash hone par bhi products hide nahi honge */
.product-card {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-grid {
    min-height: 400px; /* Layout shift rokne ke liye */
    display: grid !important; 
}