/* VARIAVEIS CSS GLOBAIS */
:root {
    --baby-blue: #ADD8E6;
    --light-baby-blue: #E0F2F7;
    --white: #FFFFFF;
    --dark-blue: #003366; /* Azul escuro principal */
    --cta-color: #28a745; /* Laranja tomate para CTAs */
    --cta-hover-color: #207a35;
    --text-color: #333333;
    --success-color: #28a745;
    --highlight-color: #FFD700; /* Amarelo dourado para tags de oferta */
    --toast-bg-color: #2C3E50;
    --toast-name-color: #3498DB;
    --toast-product-color: #2ECC71;
    --toast-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --font-sans-serif: 'Helvetica Neue', Arial, sans-serif;
}

/* RESET BÁSICO E ESTILOS GLOBAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    color: var(--dark-blue);
    margin-bottom: 0.8em;
    line-height: 1.2;
    text-align: center;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }
img { max-width: 100%; height: auto; display: block; }

/* CABEÇALHO FIXO */
#sticky-header {
    background-color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--baby-blue);
}

#sticky-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0%;
}

#sticky-header .logo img {
    height: 30px; 
    width: auto;
    display: block;
}

#sticky-header .logo a {
    text-decoration: none;
    display: inline-block;
}

/* BOTÕES CTA */
.cta-button {
    display: inline-block;
    background-color: var(--cta-color);
    color: var(--white) !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--cta-hover-color);
}

.cta-sticky {
    font-size: 0.9rem;
    padding: 10px 10px;
}

.cta-hero {
    font-size: 1.4rem;
    padding: 15px 35px;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

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

/* SEÇÃO HERO */
#hero {
    background-color: var(--light-baby-blue);
    padding: 40px 0;
    text-align: center;
}

#hero .hero-content-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero .hero-text h1 {
    color: var(--dark-blue);
    margin-bottom: 0.5em;
}
#hero .hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}
#hero .hero-text .free-shipping {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 15px;
}
#hero .hero-text .free-shipping strong { /* Mantido para o texto "Frete Grátis para todo o Brasil!" */
    color: var(--success-color);
    font-weight: bold;
}

#hero .hero-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
}

#hero .hero-image img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 350px;
    margin: 0 auto;
}

#hero .hero-offer-price {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

#hero .hero-offer-price .offer-text-highlight {
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 8px;
}
#hero .hero-offer-price .price-current {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--cta-color);
    margin-bottom: 5px;
}
#hero .hero-offer-price .price-original {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}
#hero .hero-offer-price .price-original del {
    color: #999;
}
#hero .hero-offer-price .price-installments {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.urgency-scarcity-hero {
    margin-top: 8px;
    padding: 8px;
    display: inline-block;
}
.timer, .scarcity-badge {
    color: var(--dark-blue);
    font-weight: bold;
    margin: 5px 0;
    font-size: 1rem;
}
.timer #time {
    color: var(--cta-color);
    font-size: 1.2rem;
}
.scarcity-badge #stock-count {
    background-color: var(--cta-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
}

/* SEÇÃO DE OFERTAS/PREÇOS */
#offers {
    padding: 50px 0;
    background-color: var(--white);
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.offer-card {
    background-color: var(--light-baby-blue);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--cta-color);
}

.offer-card .offer-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
    text-align: center;
}
.offer-card .offer-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}
.offer-card .offer-description span {
    font-weight: bold;
    color: var(--cta-color);
    font-size: 1.4rem;
}
.offer-card .offer-image {
    max-width: 200px;
    margin: 0 auto 15px auto;
    border-radius: 8px;
}
.offer-card .offer-price-main {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cta-color);
    margin-bottom: 5px;
}
.offer-card .offer-price-original {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}
.offer-card .offer-savings {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 20px;
}
.offer-card .offer-cta {
    margin-top: auto;
}

/* SEÇÃO DE BENEFÍCIOS */
#benefits {
    padding: 50px 0;
    background-color: var(--white);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.benefit-item {
    background-color: var(--light-baby-blue);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.benefit-item .benefit-icon-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    object-fit: contain;
}
.benefit-item h3 {
    margin-bottom: 10px;
    text-align: center;
}

/* SEÇÃO DE PROVA SOCIAL */
#social-proof {
    padding: 50px 0;
    background-color: var(--light-baby-blue);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.testimonial {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid var(--baby-blue);
    transition: transform 0.3s ease;
}
.testimonial:hover {
    transform: translateY(-5px);
}
.testimonial .testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.testimonial .testimonial-img:hover {
    transform: scale(1.05);
}
.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    clear: right;
    line-height: 1.6;
}
.testimonial h4 {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}
.testimonial .rating {
    text-align: right;
    color: #FFD700;
    font-size: 1.1rem;
}

/* SEÇÃO DE GARANTIA */
#guarantee {
    padding: 40px 0;
    background-color: var(--dark-blue);
    color: var(--white);
}
#guarantee h3, #guarantee p {
    color: var(--white);
}
.guarantee-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.guarantee-seal {
    width: 120px;
    height: auto;
}

/* SEÇÃO DE PRICING (APENAS PARA ANCORAGEM) */
.pricing-anchor {
    padding: 1px 0;
}

/* SEÇÃO DE FAQs */
#faq {
    padding: 50px 0;
    background-color: var(--white);
}
.faq-item {
    background-color: var(--light-baby-blue);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.faq-item h3 {
    margin-bottom: 8px;
}

/* RODAPÉ */
footer {
    background-color: var(--dark-blue);
    color: var(--baby-blue);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer .footer-logo {
    margin-bottom: 20px;
}

footer .footer-logo .logo {
    height: 30px;
    width: auto;
    margin: 0 auto;
}

footer p {
    margin-bottom: 8px;
    color: var(--baby-blue);
    line-height: 1.4;
}

footer a {
    color: var(--baby-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* MODAL DE "LOJA PRÓXIMA" (AGORA GENÉRICO) */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h3 {
    margin-top: 0;
    color: var(--dark-blue);
}
#geolocation-result { /* Ainda usado para a mensagem fixa "loja próxima a 1.1km" */
    margin-top: 15px;
    font-weight: bold;
    color: var(--success-color);
    font-size: 1.1rem;
}
#geolocation-status-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* NOTIFICAÇÃO TOAST */
.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 0.95rem;
    min-width: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateX(-150%);
}

.toast.show {
    transform: translateX(0);
}

.toast .toast-name {
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toast .toast-product {
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Modal de Imagem */
#image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    padding: 20px;
}

#image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

#image-modal .close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#image-modal .close-modal:hover {
    color: #bbb;
}

/* RESPONSIVIDADE */
@media (min-width: 768px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.2rem; }
    

    #hero .hero-image-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
    }

    #hero .hero-image {
        flex: 1;
        max-width: 400px;
    }

    #hero .hero-offer-price {
        flex: 0 0 280px;
    }

    .urgency-scarcity-hero {
        margin-top: 20px;
    }

    .guarantee-content {
        flex-direction: row;
        text-align: left;
        gap: 30px;
    }
    .guarantee-seal {
        margin-bottom: 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
     #hero .hero-text h1 {
        font-size: 2.8rem; 
    }
}

.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo {
    width: 150px;
    height: auto;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.badge-oferta {
    background: #ff4d4d;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.benefits-list {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.benefits-list p {
    margin: 8px 0;
    font-size: 1.1em;
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4d4d;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stock-warning {
    background: #ff4d4d;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 8px 0;
    animation: blink 1s infinite;
}

.guarantee-features {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.guarantee-features p {
    margin: 8px 0;
    font-size: 1.1em;
}

.scarcity-badge {
    background: #ff4d4d;
    color: #ffffff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px 0;
}

.scarcity-badge #stock-count {
    background-color: #000000;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
}

.timer {
    background: #ff4d4d;
    color: #ffffff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px 0;
}

.timer #time {
    background-color: #000000;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.1rem;
}

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

/* BARRA DE PROGRESSO DO SCROLL */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #ff4d4d;
    transition: width 0.2s ease;
    z-index: 1001;
}

/* Botão WhatsApp Flutuante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: #25D366;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-icon {
    width: 24px;
    height: 24px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background: #25D366;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
}

.chat-input button {
    background: #25D366;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #128C7E;
}

/* Contador de Visitantes */
.visitor-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #ff4d4d;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.visitor-counter .counter-icon {
    font-size: 1.1rem;
    color: #ffffff;
}

/* Responsividade para os novos elementos */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100% - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }

    .visitor-counter {
        top: auto;
        bottom: 80px;
        right: 20px;
        font-size: 0.8rem;
    }

    .toast {
        left: 10px;
        right: 10px;
        min-width: auto;
        font-size: 0.85rem;
    }
}

.specs-container {
    background-color: var(--light-baby-blue);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.specs-container h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: left;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.specs-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .specs-container {
        padding: 12px;
    }
    
    .specs-list li {
        font-size: 0.9rem;
    }
}