/* preloader.css */
:root {
    --primary-color: #e67e22;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-color: #fff;
    --background-color: #f8f9fa;
    --progress-bg: #f1f1f1;
    --progress-color: #e67e22;
    --transition: all 0.3s ease;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.store-name h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    animation: fadeInDown 1s ease;
}

.loading-text {
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease 0.3s both;
}

.loading-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dots span {
    opacity: 0;
    animation: loadingDots 1.5s infinite;
    margin-left: 2px;
}

.dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.dots span:nth-child(3) {
    animation-delay: 1s;
}

.progress-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
    animation: fadeIn 1s ease 0.6s both;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--progress-color);
    border-radius: 4px;
    transition: width 0.2s linear;
}

/* Hide main content initially */
body.loading {
    overflow: hidden;
}

body.loading .site,
body.loading #page,
body.loading #content,
body.loading header,
body.loading footer {
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .store-name h1 {
        font-size: 2.5rem;
    }
    
    .loading-text h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .store-name h1 {
        font-size: 2rem;
    }
    
    .preloader-content {
        width: 90%;
    }
}