/* ApeMart.lk website loading screen — matched to the mobile app splash */
.apemart-app-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c32 50%, #ffa45b 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.apemart-app-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.apemart-app-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: scale(.7);
    opacity: 0;
    animation: apemartSplashIn 1200ms cubic-bezier(.175, .885, .32, 1.275) forwards;
    padding: 24px;
}

.apemart-app-logo-wrap {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.apemart-app-logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apemart-app-site-name {
    margin-top: 25px;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.apemart-app-tagline {
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 1px;
}

.apemart-app-spinner {
    width: 28px;
    height: 28px;
    margin-top: 35px;
    box-sizing: border-box;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
    animation: apemartSplashSpin 800ms linear infinite;
}

@keyframes apemartSplashIn {
    from {
        opacity: 0;
        transform: scale(.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 480px) {
    .apemart-app-splash-inner { padding: 20px; }
    .apemart-app-logo-wrap { width: 110px; height: 110px; }
    .apemart-app-site-name { font-size: 30px; }
    .apemart-app-tagline { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .apemart-app-splash-inner { animation: none; opacity: 1; transform: none; }
    .apemart-app-spinner { animation-duration: 1600ms; }
}
