/* ============================================
   POPUP.SHOPEE.CSS - Popup Comercial
   Estilo Oficial Shopee
   ============================================ */

/* Overlay */
.shopee-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container do Popup */
.shopee-popup-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border: 1px solid rgba(238, 77, 45, 0.2);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botão Fechar */
.shopee-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.09);
    color: rgba(0, 0, 0, 0.54);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.shopee-popup-close:hover {
    background: #ee4d2d;
    color: #fff;
    border-color: #ee4d2d;
    transform: rotate(90deg);
}

/* Conteúdo */
.shopee-popup-content {
    padding: 40px 35px 35px;
    position: relative;
}

/* Badge */
.shopee-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #ee4d2d, #f63);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(238, 77, 45, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.shopee-popup-badge i {
    font-size: 14px;
}

/* Ícone Principal */
.shopee-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff4e5, #ffe8e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid #ee4d2d;
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.shopee-popup-icon i {
    font-size: 40px;
    color: #ee4d2d;
}

/* Título */
.shopee-popup-title {
    font-size: 26px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
}

.shopee-popup-title .highlight {
    color: #ee4d2d;
    position: relative;
    display: inline-block;
}

.shopee-popup-title .highlight::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ee4d2d, #f63);
    border-radius: 3px;
    animation: underlineWidth 1s ease-out;
}

@keyframes underlineWidth {
    from { width: 0; }
    to { width: 100%; }
}

/* Descrição */
.shopee-popup-description {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.54);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Benefícios Grid */
.shopee-popup-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(238, 77, 45, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    border-color: #ee4d2d;
}

.benefit-icon i {
    font-size: 18px;
    color: #ee4d2d;
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text strong {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.54);
}

/* Preço e CTA */
.shopee-popup-pricing {
    text-align: center;
    margin-bottom: 25px;
}

.pricing-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.old-price {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.26);
    text-decoration: line-through;
}

.new-price {
    font-size: 36px;
    font-weight: 700;
    color: #ee4d2d;
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.54);
}

.shopee-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.shopee-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.shopee-popup-cta i {
    font-size: 18px;
}

.guarantee-text {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.54);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.guarantee-text i {
    color: #00bfa5;
}

/* Timer */
.shopee-popup-timer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.shopee-popup-timer span {
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 8px;
}

.shopee-popup-timer span span {
    display: inline;
    font-weight: 600;
    color: #ee4d2d;
}

.timer-bar {
    width: 100%;
    height: 4px;
    background: rgba(238, 77, 45, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.timer-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ee4d2d, #f63);
    animation: timerShrink 15s linear forwards;
}

@keyframes timerShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* Scrollbar personalizada */
.shopee-popup-container::-webkit-scrollbar {
    width: 6px;
}

.shopee-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shopee-popup-container::-webkit-scrollbar-thumb {
    background: #ee4d2d;
    border-radius: 3px;
}

/* Responsivo */
@media (max-width: 768px) {
    .shopee-popup-content {
        padding: 30px 20px;
    }
    
    .shopee-popup-title {
        font-size: 22px;
    }
    
    .shopee-popup-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .new-price {
        font-size: 30px;
    }
    
    .shopee-popup-cta {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .shopee-popup-content {
        padding: 25px 15px;
    }
    
    .shopee-popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .shopee-popup-icon i {
        font-size: 30px;
    }
    
    .shopee-popup-title {
        font-size: 20px;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
    }
    
    .benefit-icon i {
        font-size: 16px;
    }
}
