/* =========================================
   Produto Descomplica Meu DDS - CSS
   Herda o Design System de styles.css
   ========================================= */

/* =========================================
   Hero do Produto
   ========================================= */
.product-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--gradient-blue);
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 106, 0, 0.2);
    border: 1px solid rgba(255, 106, 0, 0.4);
    color: #ffb366;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); }
}

.product-hero h1 {
    font-size: 2.8rem;
    color: white;
    line-height: 1.25;
    margin-bottom: 20px;
}

.product-hero h1 .highlight {
    color: var(--secondary-color);
}

.product-hero .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.7;
}

/* =========================================
   Layout Principal — 2 Colunas
   ========================================= */
.product-main {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

/* =========================================
   Mockup do Livro
   ========================================= */
.book-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-mockup-wrapper::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: rgba(13,37,63,0.15);
    filter: blur(20px);
    border-radius: 50%;
}

.book-mockup {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    box-shadow:
        -8px 8px 0 rgba(0,0,0,0.08),
        -16px 16px 0 rgba(0,0,0,0.05),
        0 30px 60px rgba(13,37,63,0.2);
    transform: perspective(800px) rotateY(6deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    margin: 0 auto;
}

.book-mockup:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-8px);
    box-shadow:
        0 0 0 rgba(0,0,0,0),
        0 0 0 rgba(0,0,0,0),
        0 40px 80px rgba(13,37,63,0.25);
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.author-badge .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--secondary-color);
}

.author-badge .author-info {
    text-align: left;
}

.author-badge .author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: block;
}

.author-badge .author-role {
    font-size: 0.78rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* =========================================
   Copy / Benefícios
   ========================================= */
.product-copy h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-copy .product-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.benefit-list {
    list-style: none;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-list li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.benefit-list li:nth-child(even) {
    border-left-color: var(--primary-color);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-list li:nth-child(even) .benefit-icon {
    background: var(--gradient-blue);
}

.benefit-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

.benefit-text span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =========================================
   Box de Urgência / Oferta
   ========================================= */
.urgency-section {
    padding: 80px 0;
    background: white;
}

.urgency-box {
    background: linear-gradient(135deg, #0d253f 0%, #1e4575 100%);
    border-radius: 24px;
    padding: 50px 50px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(13,37,63,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.urgency-box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.urgency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.urgency-header .fire-icon {
    font-size: 2.5rem;
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    from { transform: scale(1) rotate(-3deg); }
    to { transform: scale(1.1) rotate(3deg); }
}

.urgency-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.urgency-title span {
    color: #ffb366;
}

.urgency-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-top: 6px;
}

/* Timer */
.countdown-wrapper {
    margin-bottom: 36px;
}

.countdown-label {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.timer-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.timer-expired {
    color: #ffb366;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px;
    background: rgba(255,106,0,0.15);
    border-radius: 12px;
    border: 1px solid rgba(255,106,0,0.3);
}

/* Cupom */
.coupon-section {
    margin-bottom: 36px;
}

.coupon-label {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.coupon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-orange);
    border: 3px dashed rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255,106,0,0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    word-break: break-all;
}

.coupon-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255,106,0,0.6);
    border-color: #ffffff;
}

.coupon-code {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.coupon-copy-hint {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Preço */
.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
}

.price-discount-badge {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price-final {
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-final small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.price-installments {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* CTA Button */
.btn-cta-mega {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 22px 36px;
    background: linear-gradient(135deg, #ff6a00, #ff8c00);
    color: white;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(255,106,0,0.45);
    transition: all 0.3s ease;
    animation: cta-glow 2s ease-in-out infinite alternate;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

@keyframes cta-glow {
    from { box-shadow: 0 8px 30px rgba(255,106,0,0.45); }
    to { box-shadow: 0 12px 45px rgba(255,106,0,0.7); }
}

.btn-cta-mega:hover {
    transform: translateY(-3px) scale(1.01);
    color: white;
    box-shadow: 0 16px 50px rgba(255,106,0,0.6);
}

.btn-cta-mega i {
    font-size: 1.3rem;
}

.cta-guarantee-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

/* =========================================
   Seção de Garantia
   ========================================= */
.guarantee-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.guarantee-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 30px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    max-width: 220px;
    transition: transform 0.2s ease;
}

.guarantee-item:hover {
    transform: translateY(-4px);
}

.guarantee-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.guarantee-icon.green {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.guarantee-icon.blue {
    background: rgba(13,37,63,0.08);
    color: var(--primary-color);
}

.guarantee-icon.orange {
    background: rgba(255,106,0,0.1);
    color: var(--secondary-color);
}

.guarantee-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.guarantee-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   POPUP / SPLASH BANNER
   ========================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: overlay-in 0.3s ease;
}

.popup-overlay.hidden {
    display: none;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    position: relative;
    animation: card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-in {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    z-index: 10;
    transition: background 0.2s ease;
}

.popup-close:hover {
    background: rgba(0,0,0,0.3);
}

.popup-header {
    background: var(--gradient-blue);
    padding: 28px 28px 20px;
    position: relative;
    overflow: hidden;
}

.popup-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,0,0.2) 0%, transparent 70%);
}

.popup-launch-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,106,0,0.25);
    border: 1px solid rgba(255,106,0,0.5);
    color: #ffb366;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.popup-header h2 {
    color: white;
    font-size: 1.35rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.popup-header h2 span {
    color: var(--secondary-color);
}

.popup-body {
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.popup-book-img {
    width: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.popup-content-right {
    flex: 1;
}

.popup-coupon-box {
    background: linear-gradient(135deg, rgba(255,106,0,0.08), rgba(255,106,0,0.03));
    border: 1px dashed var(--secondary-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.popup-coupon-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.popup-coupon-code {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
}

.popup-discount {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.popup-discount strong {
    color: #22c55e;
    font-weight: 700;
}

.popup-expiry {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 16px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 28px 28px;
}

.btn-popup-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6a00, #ff8c00);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255,106,0,0.35);
    transition: all 0.3s ease;
}

.btn-popup-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,106,0,0.5);
    color: white;
}

.btn-popup-close-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-popup-close-bottom:hover {
    background: var(--bg-light);
    color: var(--text-main);
}

/* =========================================
   Nav Link "Produtos"
   ========================================= */
.nav-products-link {
    position: relative;
}

.nav-products-link .new-dot {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* =========================================
   Responsividade
   ========================================= */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .book-mockup {
        max-width: 260px;
        transform: none;
    }

    .book-mockup:hover {
        transform: translateY(-6px);
    }

    .product-hero h1 {
        font-size: 2rem;
    }

    .urgency-box {
        padding: 36px 28px 30px;
    }

    .urgency-title {
        font-size: 1.4rem;
    }

    .price-final {
        font-size: 2rem;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .product-hero {
        padding: 120px 0 60px;
    }

    .product-hero h1 {
        font-size: 1.7rem;
    }

    .countdown-timer {
        gap: 8px;
    }

    .timer-unit {
        min-width: 64px;
        padding: 12px 10px;
    }

    .timer-number {
        font-size: 1.8rem;
    }

    .popup-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .popup-book-img {
        width: 90px;
    }

    .guarantee-grid {
        gap: 16px;
    }

    .guarantee-item {
        max-width: 150px;
        padding: 20px 16px;
    }
}

/* Utility */
.ml-2 { margin-left: 0.5rem; }
