:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Glowing Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(139, 92, 246, 0.15); /* Purple */
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 650px;
    height: 650px;
    background: rgba(56, 189, 248, 0.12); /* Blue */
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1); /* Pink */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero {
    width: 100%;
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.banner-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

.banner-wrapper:hover .hero-banner {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.8), transparent 40%);
    pointer-events: none;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Loader */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 5rem;
    transition: opacity 0.3s ease;
}

.loader p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid Layout */
.grid-container {
    display: none; /* Initially hidden, shown by JS */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Glassmorphic Cart Item */
.grid-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-12px) scale(1.03);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(139, 92, 246, 0.2);
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item .image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.grid-item:hover img {
    transform: scale(1.1) translateY(-5px);
}

.grid-item .name {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.2;
    z-index: 1;
}

/* FAB WhatsApp Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab {
    width: 64px;
    height: 64px;
    background: rgba(37, 211, 102, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    animation: pulseGlow 2.5s infinite;
}

.fab:hover {
    transform: scale(1.15) rotate(5deg);
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    animation-play-state: paused;
}

.fab img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.fab-tooltip {
    position: absolute;
    right: 84px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 2rem;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .hero {
        margin-bottom: 2.5rem;
    }
    .fab {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    .fab img {
        width: 30px;
        height: 30px;
    }
    .fab-tooltip {
        display: none; /* Hide on mobile to prioritize tap targets */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .grid-item {
        padding: 1rem;
        border-radius: 16px;
    }
    .grid-item .name {
        font-size: 1.1rem;
    }
    .grid-item .image-container {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
}