﻿/* ===== PERFUME LOADER (ULTRA PREMIUM) ===== */
.perfume-loader {
    position: fixed;
    inset: 0;
    /* Glass transparent background */
    background: linear-gradient( 135deg, rgba(255,255,255,0.12), rgba(243, 232, 239, 0.25) );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Bottle */
.bottle {
    position: relative;
    width: 90px;
    height: 150px;
    animation: float 3s ease-in-out infinite;
}

    /* Glow behind bottle */
    .bottle::before {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(255,215,0,0.25), transparent);
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        filter: blur(25px);
        z-index: -1;
    }

/* Cap */
.cap {
    width: 36px;
    height: 20px;
    background: linear-gradient(180deg, #3e2723, #1b1b1b);
    border-radius: 8px;
    margin: 0 auto;
}

/* Glass body */
.body {
    position: relative;
    width: 90px;
    height: 120px;
    margin-top: 8px;
    border-radius: 26px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), inset 0 0 20px rgba(255,255,255,0.2);
}

/* Liquid (gold oil) */
.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(180deg, #ffd700, #ffb300);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    animation: liquidMove 3s ease-in-out infinite;
}

/* Wave */
.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    top: 0;
    left: -50%;
    border-radius: 40%;
    animation: waveMove 4s linear infinite;
}

/* Glow inside liquid */
.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent);
}

/* Glass shine */
.shine {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 18px;
    height: 80px;
    background: rgba(255,255,255,0.5);
    border-radius: 50px;
}

/* Mist spray */
.mist {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255,255,255,0.7), transparent);
    border-radius: 50%;
    animation: mist 2s infinite;
    opacity: 0;
}

.mist1 {
    animation-delay: 0s;
}

.mist2 {
    animation-delay: 0.3s;
}

.mist3 {
    animation-delay: 0.6s;
}

/* Text */
.loader-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #4a2c2a;
    letter-spacing: 1px;
    animation: fade 2s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes liquidMove {
    0% {
        height: 75%;
    }

    40% {
        height: 35%;
    }

    70% {
        height: 20%;
    }

    100% {
        height: 75%;
    }
}

@keyframes waveMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes mist {
    0% {
        opacity: 0;
        transform: translate(-50%,0) scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-40px) scale(1.5);
    }
}

@keyframes fade {
    0%,100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}
