/* Loading Screen Styles - Premium Enhanced */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

/* Animated Background Particles */
#loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

/* Radial Glow Effect */
#loading-screen::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: 4rem;
    position: relative;
    animation: logoEntrance 1.5s ease-out;
}

/* Glowing Ring Around Logo */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: ringExpand 3s ease-out infinite;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 50%;
    animation: ringExpand 3s ease-out infinite 0.5s;
}

.loading-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.3));
    animation: logoGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Enhanced Loading Bar Container */
.loading-bar {
    width: 350px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: visible;
    margin: 0 auto 2.5rem;
    position: relative;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.1);
}

/* Glowing Trail Effect */
.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 10px;
    animation: barShimmer 2s ease-in-out infinite;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, 
        #FFD700 0%, 
        #FFA500 25%,
        #FFD700 50%,
        #FFA500 75%,
        #FFD700 100%
    );
    background-size: 200% 100%;
    border-radius: 10px;
    animation: 
        loadingProgress 2s ease-in-out forwards,
        gradientShift 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 165, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Sparkle Effect on Progress Bar */
.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    border-radius: 10px;
    animation: sparkle 1s ease-in-out infinite;
}

.loading-text {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    animation: textPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Decorative Dots */
.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}


/* Animations */

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 75%;
    }
    100% {
        width: 100%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    60% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5)) 
                drop-shadow(0 0 60px rgba(255, 215, 0, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.7)) 
                drop-shadow(0 0 80px rgba(255, 215, 0, 0.4));
        transform: scale(1.05);
    }
}

@keyframes ringExpand {
    0% {
        width: 150px;
        height: 150px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.7;
        letter-spacing: 4px;
    }
    50% {
        opacity: 1;
        letter-spacing: 5px;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes barShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatParticle1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px);
        opacity: 0.6;
    }
    50% {
        transform: translate(60px, -20px);
        opacity: 0.4;
    }
    75% {
        transform: translate(30px, -60px);
        opacity: 0.5;
    }
}

@keyframes floatParticle2 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    33% {
        transform: translate(-40px, 30px);
        opacity: 0.6;
    }
    66% {
        transform: translate(-20px, -30px);
        opacity: 0.3;
    }
}

@keyframes floatParticle3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50px, 40px) scale(1.3);
        opacity: 0.7;
    }
}

@keyframes floatParticle4 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    40% {
        transform: translate(40px, -30px);
        opacity: 0.3;
    }
    80% {
        transform: translate(20px, 20px);
        opacity: 0.6;
    }
}

@keyframes floatParticle5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(30px, 50px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Floating Decorative Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
}

.particle-1 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700, transparent);
    top: 20%;
    left: 15%;
    animation: floatParticle1 6s ease-in-out infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FFA500, transparent);
    top: 70%;
    right: 20%;
    animation: floatParticle2 8s ease-in-out infinite;
}

.particle-3 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FFD700, transparent);
    top: 40%;
    right: 10%;
    animation: floatParticle3 7s ease-in-out infinite;
}

.particle-4 {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #FFA500, transparent);
    bottom: 25%;
    left: 25%;
    animation: floatParticle4 9s ease-in-out infinite;
}

.particle-5 {
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, #FFD700, transparent);
    top: 15%;
    right: 30%;
    animation: floatParticle5 10s ease-in-out infinite;
}

/* Products Loading Animation */
.products-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.products-loading p {
    color: #999;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}