/* ===== RESET E VARIÁVEIS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --primary-gold: #d4af37;
    --dark-red: #8b0000;
    --light-gold: #f4e4c1;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #1a1a1a; /* Novo cinza escuro para fundos */
    --gray-dark: #cccccc; /* Novo cinza claro para texto */
    --black-friday-bg: #0a0a0a; /* Fundo principal Black */
    --black-friday-card: #1c1c1c; /* Fundo de cards */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Nunito', sans-serif;
    color: var(--gray-dark);
    background-color: var(--black-friday-bg); /* Fundo Black */
    overflow-x: hidden;
}

/* ===== EFEITO DE NEVE CAINDO ===== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10vh;
    z-index: 1;
    user-select: none;
    cursor: default;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 15s; animation-delay: 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 0.8s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 14s; animation-delay: 1.2s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 13s; animation-delay: 1.8s; }
.snowflake:nth-child(11) { left: 35%; animation-duration: 15s; animation-delay: 0.3s; }
.snowflake:nth-child(12) { left: 55%; animation-duration: 12s; animation-delay: 2.2s; }
.snowflake:nth-child(13) { left: 75%; animation-duration: 14s; animation-delay: 1.1s; }
.snowflake:nth-child(14) { left: 85%; animation-duration: 13s; animation-delay: 1.9s; }
.snowflake:nth-child(15) { left: 25%; animation-duration: 11s; animation-delay: 0.6s; }

@keyframes snowfall {
    to {
        transform: translateY(100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--black-friday-card) 0%, var(--black) 100%); /* Header escuro */
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    border-bottom: 4px solid var(--primary-gold);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2.5em;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-in;
}

.dynamic-phrase {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--light-gold);
    animation: fadeIn 1s ease-in 0.2s both;
}

#city {
    font-weight: 700;
    color: var(--white);
}

/* ===== BANNER PRINCIPAL ===== */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../img/fundo_natal.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    max-width: 800px;
    animation: slideInDown 0.8s ease-out;
}

.banner-title {
    font-size: 3em;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--light-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#city-banner {
    font-weight: 700;
    color: var(--white);
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c9a961 100%);
    color: var(--black);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6);
}

/* ===== SEÇÃO DE URGÊNCIA ===== */
.urgency-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-gold);
    border-bottom: 4px solid var(--primary-gold);
}

.urgency-content {
    max-width: 1200px;
    margin: 0 auto;
}

.urgency-content h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

#city-urgency {
    font-weight: 800;
    color: var(--light-gold);
}

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

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    backdrop-filter: blur(10px);
}

.timer-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-gold);
}

.timer-label {
    display: block;
    font-size: 0.9em;
    color: var(--light-gold);
    margin-top: 5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== SEÇÃO DE PRODUTOS ===== */
.products {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-red);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-gold));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Suporte a 4 colunas no desktop */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--black-friday-card); /* Card escuro */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--gray-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

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

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--white); /* Título branco */
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.product-description {
    color: var(--gray-dark); /* Descrição cinza claro */
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.95em;
}

.sale-price {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SELOS DE CONFIANÇA ===== */
.trust-seals {
    background: var(--black-friday-bg); /* Fundo Black */
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-gold);
}

.trust-seals .section-title {
    color: var(--primary-red);
}

.seals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.seal-item {
    background: var(--black-friday-card); /* Item escuro */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.seal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.seal-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.seal-item h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.seal-item p {
    color: var(--gray-dark); /* Texto cinza claro */
    font-size: 0.95em;
    line-height: 1.5;
}

#city-express {
    font-weight: 700;
    color: var(--primary-red);
}

/* ===== RODAPÉ ===== */
.footer {
    background: linear-gradient(135deg, var(--gray-dark) 0%, #1a1a1a 100%);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary-gold);
}

.footer p {
    margin: 5px 0;
    font-size: 0.95em;
}

.footer-contact {
    margin-top: 10px;
    color: var(--light-gold);
    font-weight: 600;
}

/* ===== MODAL DE CHECKOUT ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--black-friday-card); /* Modal escuro */
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-hover);
    animation: slideInDown 0.3s ease;
}

.close {
    color: var(--white); /* Ícone branco */
    float: right;
    font-size: 2em;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-red);
}

.modal-content h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.checkout-info {
    background: var(--black); /* Fundo preto para destaque */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-gold);
}

.checkout-info p {
    margin: 10px 0;
    color: var(--white); /* Texto branco */
}

.checkout-info strong {
    color: var(--primary-red);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .logo {
        font-size: 2em;
    }

    .dynamic-phrase {
        font-size: 1em;
    }

    .banner-title {
        font-size: 2em;
    }

    .banner-subtitle {
        font-size: 1em;
    }

    .banner {
        padding: 50px 20px;
        min-height: 300px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 15px;
    }

    .timer-item {
        padding: 15px 20px;
    }

    .timer-number {
        font-size: 2em;
    }

    .seals-grid {
        grid-template-columns: 1fr;
    }

    .urgency-content h2 {
        font-size: 1.5em;
    }

    .modal-content {
        width: 95%;
        margin: 30% auto;
    }

    .header {
        padding: 30px 20px;
    }

    .products {
        margin: 40px auto;
    }

    .trust-seals {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .banner-title {
        font-size: 1.5em;
    }

    .banner-subtitle {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .product-title {
        font-size: 1.1em;
    }

    .sale-price {
        font-size: 1.5em;
    }

    .timer-number {
        font-size: 1.5em;
    }

    .timer-label {
        font-size: 0.8em;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9em;
    }

    .modal-content {
        margin: 50% auto;
        padding: 20px;
    }
}

/* ===== PROVA SOCIAL POPUP ===== */
.social-proof-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--black-friday-card);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    border-left: 5px solid var(--primary-gold);
    max-width: 300px;
}

.social-proof-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-text {
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.4;
}

.popup-icon {
    margin-right: 5px;
    color: var(--primary-red);
    font-size: 1.2em;
}

#popup-name {
    color: var(--primary-gold);
}

#popup-product {
    font-weight: 700;
}

@media (max-width: 768px) {
    .social-proof-popup {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        max-width: 90%;
    }
}

/* ===== INDICADOR DE ESTOQUE BAIXO ===== */
.stock-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 5px 0;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    animation: blink 1.5s infinite;
}

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

/* ===== SEÇÃO DE AVALIAÇÕES ===== */
.reviews-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--black-friday-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: left;
    border-left: 5px solid var(--primary-red);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-stars {
    color: var(--primary-gold);
    font-size: 1.2em;
}

.review-name {
    font-weight: 700;
    color: var(--white);
    font-size: 0.9em;
}

.review-text {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ===== SEÇÃO DE FAQS ===== */
.faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    background: var(--black-friday-card);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid var(--gray-light);
}

.faq-question {
    font-size: 1.1em;
    color: var(--primary-gold);
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    color: var(--gray-dark);
    font-size: 0.95em;
    line-height: 1.5;
}

/* ===== UPSELL NO CHECKOUT ===== */
.upsell-offer {
    background: var(--primary-red);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.upsell-offer h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.upsell-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-red);
    padding: 10px;
    border-radius: 5px;
}

.upsell-item p {
    margin: 0;
    font-size: 1em;
}

.upsell-price {
    font-weight: 700;
    color: var(--light-gold);
}

.btn-upsell {
    background: var(--primary-gold);
    color: var(--black);
    border: none;
    padding: 8px 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-upsell:hover {
    background: var(--white);
}

.btn-secondary {
    background: none;
    color: var(--gray-dark);
    border: 1px solid var(--gray-dark);
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}
