/* ========================================
   LOADER SECTION
   Fullscreen luxury loader for Vardan Jewellers
   ======================================== */

.loader-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-section.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loader-ring {
    width: 120px;
    height: 120px;
    border: 1.5px solid rgba(197, 168, 128, 0.2);
    border-top: 1.5px solid var(--color-accent);
    border-radius: 50%;
    animation: loader-ring-spin 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 40px;
    position: relative;
}

.loader-ring::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(197, 168, 128, 0.1);
    border-bottom: 1px solid var(--border-medium);
    border-radius: 50%;
    animation: loader-ring-spin 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

@keyframes loader-ring-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-brand {
    text-align: center;
    animation: loader-brand-reveal 1s ease-out 0.3s both;
}

.loader-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    color: #1A1A1A;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.loader-brand-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.6em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 6px 0 0 0;
    line-height: 1.2;
}

@keyframes loader-brand-reveal {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loader-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin-top: 20px;
    animation: loader-line-expand 1.2s ease-out 0.6s both;
}

@keyframes loader-line-expand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 40px;
        opacity: 1;
    }
}
