/* ========================================
   PRODUTO DIGITAL - TEMPLATE DINÂMICO
   ======================================== */

:root {
    --efcol-primary: #b21f2a;
    --efcol-primary-dark: #991b25;
    --efcol-primary-light: #d31f1f;
    --efcol-gradient: linear-gradient(135deg, #b21f2a 0%, #991b25 100%);
    --efcol-gradient-reverse: linear-gradient(135deg, #991b25 0%, #b21f2a 100%);
    --gold-accent: #d4af37;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Background Fixo da Página Inteira com Parallax */
.page-background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: background-position;
    filter: brightness(1.1) contrast(1.05);
}

@media (min-width: 769px) {
    .page-background-wrapper {
        background-attachment: fixed;
    }
}

/* Overlay sutil para manter visibilidade da imagem */
.page-background-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    z-index: 1;
}

.produto-digital-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(178, 31, 42, 0.75) 0%, rgba(153, 27, 37, 0.85) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.promo-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--efcol-primary-light) 0%, var(--efcol-primary) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(211, 31, 31, 0.5);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.promo-badge-hero i {
    font-size: 18px;
    animation: fire 1s infinite alternate;
}

@keyframes fire {
    from {
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(5deg);
    }
}

.promo-badge-hero .desconto {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* ========================================
   COUNTDOWN TIMER
   ======================================== */
.countdown-container {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-label {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    background: var(--efcol-gradient);
    padding: 15px 20px;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(178, 31, 42, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-label-small {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* ========================================
   PRICE & CTA SECTION
   ======================================== */
.price-cta-section {
    padding: 60px 0;
    background: rgba(250, 247, 247, 0.9);
    backdrop-filter: blur(10px);
}

/* Showcase dentro da seção de preço */
.price-cta-section .showcase-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(178, 31, 42, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-cta-section .showcase-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(178, 31, 42, 0.3);
}

.price-cta-section .showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.price-cta-section .showcase-wrapper:hover .showcase-image {
    transform: scale(1.05);
}

.price-cta-section .showcase-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    border-radius: 20px;
    z-index: 2;
    transform: skewX(-20deg);
}

.price-cta-section .showcase-wrapper:hover::before {
    left: 150%;
}

.price-cta-section .showcase-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 50%,
        rgba(178, 31, 42, 0.08) 100%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.price-cta-section .showcase-wrapper:hover::after {
    opacity: 0.7;
}

.price-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(178, 31, 42, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(178, 31, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--efcol-gradient);
}

.price-free {
    font-size: 72px;
    font-weight: 900;
    background: var(--efcol-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.price-original {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.price-current {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.price-current .currency {
    font-size: 32px;
    font-weight: 700;
    color: var(--efcol-primary);
}

.price-current .amount {
    font-size: 72px;
    font-weight: 900;
    color: var(--efcol-primary);
    line-height: 1;
}

.economy-badge {
    display: inline-block;
    background: var(--efcol-gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(178, 31, 42, 0.3);
}

/* ========================================
   PAYMENT METHODS
   ======================================== */
.payment-methods {
    margin-top: 30px;
}

.payment-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    border-color: var(--efcol-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(178, 31, 42, 0.2);
}

.payment-icon i {
    font-size: 28px;
    color: var(--efcol-primary);
}

.payment-icon span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-comprar {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--efcol-gradient);
    border: none;
    color: white;
    box-shadow: 0 10px 30px rgba(178, 31, 42, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-comprar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-comprar:hover::before {
    width: 300px;
    height: 300px;
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(178, 31, 42, 0.6);
    color: white;
    background: var(--efcol-gradient-reverse);
}

.btn-whatsapp {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    background: #25D366;
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    color: white;
}

.btn-whatsapp i {
    font-size: 22px;
    margin-right: 10px;
}

.stock-alert {
    color: var(--efcol-primary);
    font-weight: 600;
    font-size: 16px;
    animation: blink 1.5s infinite;
    background: rgba(178, 31, 42, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--efcol-primary);
}

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

.whatsapp-cta {
    padding-top: 30px;
    border-top: 2px dashed #e9ecef;
}

/* ========================================
   DESCRIPTION SECTION
   ======================================== */
.description-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--efcol-gradient);
    border-radius: 2px;
}

.description-content {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--efcol-primary);
    box-shadow: 0 5px 20px rgba(178, 31, 42, 0.08);
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.description-text h1, 
.description-text h2, 
.description-text h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.description-text ul,
.description-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.description-text li {
    margin-bottom: 10px;
}

/* ========================================
   GARANTIA SECTION
   ======================================== */
.garantia-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(178, 31, 42, 0.92) 0%, rgba(153, 27, 37, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: white;
    position: relative;
    overflow: hidden;
}

.garantia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.garantia-item {
    text-align: center;
    padding: 30px;
}

.garantia-item i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.garantia-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.garantia-item p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
    color: white;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .price-cta-section .showcase-wrapper {
        min-height: 350px;
        margin-bottom: 30px;
    }
    
    .price-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .price-cta-section .showcase-wrapper {
        min-height: 300px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .countdown-value {
        font-size: 32px;
        padding: 10px 15px;
        min-width: 60px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-separator {
        font-size: 28px;
    }

    .price-current .amount {
        font-size: 48px;
    }

    .price-current .currency {
        font-size: 24px;
    }

    .price-card {
        padding: 30px 20px;
    }

    .btn-comprar {
        padding: 15px 30px;
        font-size: 16px;
    }

    .payment-icons {
        gap: 10px;
    }

    .payment-icon {
        padding: 10px 15px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .description-content {
        padding: 25px;
    }

    .description-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .price-cta-section .showcase-wrapper {
        min-height: 250px;
    }

    .countdown-display {
        gap: 8px;
    }

    .countdown-value {
        font-size: 24px;
        padding: 8px 10px;
        min-width: 50px;
    }

    .countdown-label-small {
        font-size: 10px;
    }

    .countdown-separator {
        font-size: 20px;
    }

    .price-free {
        font-size: 48px;
    }
}
