/* --- Fix de zoom em inputs iOS (iPhone Safari) --- */
input,
select,
textarea {
    font-size: 16px !important;
}
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Badge "Somente hoje" com pulse + shine --- */
.lv-today {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 2px 10px -3px color-mix(in srgb, var(--pann-primary) 70%, transparent);
    animation: lvTodayPulse 2.6s ease-in-out infinite;
    will-change: transform;
}
.lv-today::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    animation: lvTodayShine 3.6s ease-in-out infinite;
}
.lv-today-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: lvTodayDot 1.8s ease-out infinite;
}
.lv-today-txt {
    position: relative;
    z-index: 1;
}

@keyframes lvTodayPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035);
    }
}
@keyframes lvTodayShine {
    0% {
        left: -60%;
    }
    55%,
    100% {
        left: 130%;
    }
}
@keyframes lvTodayDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- Animações do estoque limitado (pulse + ping) --- */
@keyframes pann-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
@keyframes pann-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* --- Carrossel: scroll suave, setas, dots --- */
#lv-carousel {
    scroll-behavior: smooth;
}
.lv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: none;
    cursor: pointer;
}
.lv-arrow.prev {
    left: 8px;
}
.lv-arrow.next {
    right: 8px;
}
.lv-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}
.lv-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}
.lv-dot.active {
    background: #111;
    width: 16px;
}

/* --- Modal de Proteção do Cliente --- */
#lv-prot {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}
#lv-prot.is-open {
    display: block;
}
#lv-prot .lv-prot-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
#lv-prot.is-open .lv-prot-bg {
    opacity: 1;
}
#lv-prot .lv-prot-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    width: calc(100% - 32px);
    max-width: 400px;
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px 20px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
    transition:
        transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1),
        opacity 0.22s ease;
    max-height: 90vh; /* fallback para browsers sem dvh */
    max-height: 90dvh;
    overflow: auto;
}
#lv-prot.is-open .lv-prot-box {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
#lv-prot .lv-prot-shield {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow:
        0 0 0 8px rgba(16, 185, 129, 0.12),
        0 10px 24px -8px rgba(5, 150, 105, 0.55);
    animation: lvProtGlow 2.8s ease-in-out infinite;
}
@keyframes lvProtGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 8px rgba(16, 185, 129, 0.12),
            0 10px 24px -8px rgba(5, 150, 105, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 14px rgba(16, 185, 129, 0.06),
            0 10px 28px -8px rgba(5, 150, 105, 0.65);
    }
}
#lv-prot .lv-prot-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lv-prot .lv-prot-x:active {
    transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
    .lv-today,
    .lv-today::after,
    .lv-today-dot,
    #lv-prot .lv-prot-shield {
        animation: none;
    }
}

/* --- Lightbox de vídeo: dimensões com fallback vh → dvh (iOS Safari) --- */
#lv-vidbox-player {
    max-width: min(340px, 82vw);
    max-height: min(600px, 68vh); /* fallback */
    max-height: min(600px, 68dvh);
}

/* --- Modal de cor: bottom sheet com altura dinâmica (iOS Safari) --- */
.lv-color-sheet {
    max-height: 92vh; /* fallback */
    max-height: 92dvh;
}
