/* ========================================================= */
/* 1. RESET, VARIAVEIS E EFEITOS GLOBAIS (GOD MODE + SORA) */
/* ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores Premium GOD MODE */
    --color-primary: #05be58;          /* Azul Profundo (Autoridade) */
    --color-secondary: #161a18;        /* Verde Turquesa (Inovação, CTA) */
    --color-text: #1d3557;             /* Azul Escuro Pólido */
    --color-background: #f0f4f8;       /* Fundo Suave e Claro */
    --color-light: #fff;
    --color-grey-light: #e0e7ee;       /* Cinza para divisões */
    --color-shadow-soft: rgba(0, 0, 0, 0.08); 
    --color-shadow-strong: rgba(0, 77, 153, 0.25); 
    
    /* Tipografia (ALTERADO PARA SORA) */
    --font-primary: 'Sora', sans-serif;
    
    /* Efeitos */
    --transition-speed: 0.4s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

h1, h3, h4 {
    color: var(--color-text);
    font-weight: 700;
}

h2 {
    color: var(--color-light);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight-underline {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}
.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Títulos de Seção com Estilo */
.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-secondary);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================================= */
/* 2. HEADER E NAV (GLASSMORPHISM SUTIL) */
/* ========================================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-grey-light); 
    padding: 12px 0;
    box-shadow: 0 4px 12px var(--color-shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link h1 {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-text);
}
.logo-highlight {
    color: var(--color-primary); 
    font-weight: 900;
}

.main-nav .nav-item {
    color: var(--color-text);
    margin-left: 30px;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
.main-nav .nav-item:hover {
    color: var(--color-secondary);
}
.main-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed);
}
.main-nav .nav-item:hover::after {
    width: 100%;
}

.cart-button {
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.cart-button:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
}
.cart-count {
    top: -8px;
    right: -8px;
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 4px 8px;
    font-size: 0.7em;
    line-height: 1;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
}

/* ========================================================= */
/* 3. HERO SECTION (GRANDE E IMPACTANTE) - VISUAL COM TEXTO LATERAL */
/* ========================================================= */
.hero-section {
    position: relative;
    /* Mantendo o gradiente de azul */
    background: linear-gradient(135deg, #2e4eff 0%, #002679 100%);
    /* Ajuste o padding inferior para evitar corte de conteúdo */
    padding: 100px 0 100px; 
    color: var(--color-light);
    overflow: hidden;
}

/* CURVA INVERTIDA (PARA CIMA) */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px; /* Altura da curva */
    background-color: var(--color-background); /* Cor de fundo da próxima seção */
    
    /* Efeito de curva para cima usando clip-path */
    /* Cria um arco de 180 graus no centro */
    clip-path: ellipse(50% 100% at 50% 100%); 

    /* Alternativa mais complexa para curva suave:
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateY(30px);
    border-radius: 0 0 50% 50% / 0 0 100px 100px; */
    
    z-index: 5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 80px;
    z-index: 10;
    position: relative;
}

/* EFEITO ESFUMAÇADO REMOVIDO: A regra .hero-section::after foi omitida. */

.headline {
    font-size: 2.1em; /* Voltando ao tamanho de impacto */
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.subhead {
    font-size: 1.35em;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary); 
    color: var(--color-light);
    padding: 20px 40px;
    font-size: 1.25em;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(2, 236, 197, 0.5); 
    transition: all var(--transition-speed);
}
.primary-cta:hover {
    background-color: #00b395;
    transform: translateY(-3px);
}

/* CARD VISUAL PRINCIPAL (Glassmorphism e Container 3D) */
.visual-card {
   
    
    position: relative; 
    overflow: visible; /* MUITO IMPORTANTE: permite que os textos fiquem fora do card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px; 
}

/* IMAGEM CENTRAL */
.main-visual-image {
    width: 100%; 
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    
    z-index: 1;
}

.visual-caption {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1em;
    z-index: 1;
    color: var(--color-secondary);
}


/* ========================================================= */
/* 3.1. TEXTOS LATERAIS FLUTUANTES */
/* ========================================================= */

.orbit-text {
    position: absolute;
    /* Estilo do Texto */
    background: #ffffff8c; 
    color: var(--color-text); 
    padding: 8px 15px;
    border-radius: 5px;
    border-width: 1px;
    border-color: #777;
    font-size: 0.85em;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.253);
    z-index: 2; 
    transition: transform 0.3s;
}

.orbit-text:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Posicionamento Específico */
.text-top-left {
    top: 50px;
    left: -80px; /* Posiciona fora do card */
    animation: textOrbitLeft 15s infinite ease-in-out;
}
.text-middle-right {
    top: 180px;
    right: -100px; /* Posiciona fora do card */
    background: var(--color-primary); /* Inverte a cor para contraste */
    color: var(--color-light);
    animation: textOrbitRight 18s infinite linear reverse;
}
.text-bottom-left {
    bottom: 50px;
    left: -50px;
    animation: textOrbitLeft 20s infinite ease-in-out reverse;
}

/* Keyframes para Animação Flutuante */
@keyframes textOrbitLeft {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px) translateX(10px); }
    100% { transform: translateY(0); }
}

@keyframes textOrbitRight {
    0% { transform: translateY(0); }
    50% { transform: translateY(15px) translateX(-10px); }
    100% { transform: translateY(0); }
}


/* ========================================================= */
/* 4. RESPONSIVIDADE (AJUSTES PARA MOBILE) */
/* ========================================================= */

@media (max-width: 1000px) {
    /* Esconde os textos orbitais para não quebrar o layout em telas menores */
    .orbit-text {
        display: none;
    }
    .headline {
        font-size: 3em;
    }
}

@media (max-width: 600px) {
    .headline {
        font-size: 2.2em;
    }
    .visual-card {
        height: 300px;
    }
}


/* ========================================================= */
/* 4. SEÇÃO DE CONFIANÇA E PAGAMENTO (CLEAN) */
/* ========================================================= */
.trust-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.trust-features {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.feature-item {
    max-width: 300px;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--color-shadow-soft);
}
.feature-item i {
    font-size: 3.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.feature-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}
.feature-item p {
    color: #555;
    font-size: 0.95em;
}

/* Pagamento */
.payment-info {
    padding: 40px 0;
    background-color: var(--color-grey-light);
    border-top: 1px solid #d2dce6;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
}
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    color: var(--color-text);
}
.icon-item i {
    font-size: 2.5em;
    color: var(--color-secondary);
    margin-bottom: 8px;
    transition: color 0.2s;
}
.icon-item:hover i {
    color: var(--color-primary);
}


/* ========================================================= */
/* 5. PRODUTOS (CARDS AVANÇADOS) */
/* ========================================================= */
.products-section {
    padding: 80px 0;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--color-shadow-soft);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--color-shadow-strong);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(45deg, var(--color-grey-light) 0%, var(--color-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    color: #777;
    border-bottom: 1px solid #ddd;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.6em;
    margin-bottom: 5px;
    min-height: 48px; 
}

.product-content p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    height: 38px;
    overflow: hidden;
}

.product-price {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.add-to-cart {
    background-color: var(--color-primary);
    padding: 15px;
    font-weight: 600;
    border-radius: 8px;
}
.add-to-cart:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
}


/* ========================================================= */
/* 6. FOOTER (RODAPÉ SÓLIDO) */
/* ========================================================= */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding-top: 50px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 800;
}
.footer-logo .logo-highlight {
    color: var(--color-secondary);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 25px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-social a {
    color: var(--color-light);
    font-size: 1.5em;
    margin-left: 15px;
    opacity: 0.8;
}
.footer-social a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85em;
    opacity: 0.7;
}


/* ========================================================= */
/* 7. WHATSAPP FLOAT E ANIMAÇÕES */
/* ========================================================= */
.whatsapp-float {
    background-color: var(--color-primary);
    border: 0px solid var(--color-light); 
    color:#ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #25d366;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 201, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0); }
}
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Animações de Entrada (CSS PURE) */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animated-text-entry {
    animation: fadeInSlideUp 0.8s var(--transition-speed) backwards;
}
.animated-text-entry-delay {
    animation: fadeInSlideUp 1s var(--transition-speed) 0.2s backwards;
}
.animated-fade-in-up {
    animation: fadeInSlideUp 1.2s var(--transition-speed) 0.5s backwards;
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.animated-scale-up { animation: scaleUp 0.6s ease-out 0.8s backwards; }
.animated-scale-up-delay { animation: scaleUp 0.6s ease-out 1s backwards; }
.animated-scale-up-delay-2 { animation: scaleUp 0.6s ease-out 1.2s backwards; }


/* ========================================================= */
/* 8. CARRINHO (REFINADO) */
/* ========================================================= */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--color-light);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(100%); 
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-light);
}

.close-button {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--color-grey-light);
    text-align: center;
}
.cart-footer p {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-button {
    width: 100%;
    background-color: var(--color-text);
    color: var(--color-light);
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 700;
    transition: background-color var(--transition-speed), transform 0.2s;
}
.checkout-button:hover {
    background-color: #00b395;
    transform: scale(1.01);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}
.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    align-items: center;
}
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 1em; color: var(--color-primary); margin-bottom: 5px; }
.cart-item-details p { font-size: 0.9em; color: #666; }

.remove-item {
    background: none;
    border: none;
    color: red;
    font-size: 1.2em;
    cursor: pointer;
    line-height: 1;
}

/* ========================================================= */
/* 9. RESPONSIVIDADE (MOBILE FIRST ADJUSTMENTS) */
/* ========================================================= */
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .headline {
        font-size: 1em;
    }
    .hero-visual {
        order: -1; 
        margin-bottom: 40px;
    }
    .visual-card {
        max-width: 300px;
        margin: 0 auto;
    }
    .trust-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    .feature-item {
        max-width: 45%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-links a {
        margin: 0;
    }
}

@media (max-width: 600px) {
    .headline {
        font-size: 1.5em;
    }
    .subhead {
        font-size: 1.1em;
    }
    .main-nav {
        display: none;
    }
    .header-content {
        justify-content: space-around;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .trust-features {
        flex-direction: column;
        align-items: center;
    }
    .feature-item {
        max-width: 90%;
    }
    .product-list {
        gap: 20px;
    }
    .cart-sidebar {
        width: 100%;
    }
}


/* ========================================================= */
/* 2.1. ESTILO DO LOGO (IMAGEM) */
/* ========================================================= */

.logo-link {
    /* Garante que o link do logo seja um bloco flexível para alinhamento */
    display: flex;
    align-items: center;
    height: 100%; /* Ocupa a altura do cabeçalho */
}

.site-logo {
    /* Define a altura máxima do logotipo para que ele se encaixe na header */
    height: 60px; /* Altura padrão para desktop (pode ser ajustada) */
    width: auto;
    transition: transform 0.3s ease-in-out;
}

.site-logo:hover {
    transform: scale(1.05); /* Pequena animação no hover */
}

/* Se você optou por remover o H1, o resto do CSS do header permanece o mesmo. */
/* Se por algum motivo o logotipo não carregar, o texto alternativo será exibido. */


/* Ajuste para Mobile */
@media (max-width: 600px) {
    .site-logo {
        height: 55px; /* Reduz um pouco o tamanho do logo no mobile */
    }
}

/* ========================================================= */
/* 3.2. FAIXA ROLANTE DE LOGOS (MARQUEE) */
/* ========================================================= */
.trust-marquee {
    background-color: var(--color-light); /* Fundo branco/claro */
    padding: 30px 0;
    overflow: hidden; /* CRÍTICO: Esconde o conteúdo extra para manter a faixa reta */
    border-bottom: 1px solid var(--color-grey-light);
    border-top: 1px solid var(--color-grey-light);
    margin-top: -1px; /* Ajuste fino para encaixar */
}

.marquee-title-container {
    text-align: center;
    margin-bottom: 20px;
}
.marquee-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.8;
}

.marquee-wrapper {
    display: flex;
    width: 200%; /* Duplica a largura para acomodar o loop contínuo */
    animation: marquee-roll 40s linear infinite; /* Aplica a animação */
}
/* Pausa a animação ao passar o mouse */
.marquee-wrapper:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%; /* Cada bloco ocupa 100% da largura original */
    min-width: 100%; /* Garante que não encolha */
}

.marquee-logo {
    height: 50px; /* Altura padrão para todos os logos */
    margin: 0 40px;
    opacity: 0.4; /* Deixa os logos mais discretos e profissionais */
    filter: grayscale(100%); /* Transforma em cinza para um visual limpo */
    transition: opacity 0.3s, filter 0.3s;
}
.marquee-logo:hover {
    opacity: 0.8;
    filter: grayscale(0%); /* Colore o logo ao passar o mouse */
}

/* -------------------------------- */
/* DEFINIÇÃO DA ANIMAÇÃO DE ROLAGEM */
/* -------------------------------- */
@keyframes marquee-roll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move a faixa pela metade de sua largura (um bloco) */
}

/* Responsividade: Ajustes para telas menores */
@media (max-width: 768px) {
    .marquee-logo {
        height: 40px;
        margin: 0 20px;
    }
    .marquee-wrapper {
        animation-duration: 30s; /* Rolagem mais rápida no mobile */
    }
}

/* ========================================================= */
/* 10. PÁGINA DE DETALHES DO PRODUTO */
/* ========================================================= */

.product-details-section {
    padding: 60px 0;
    background-color: var(--color-light);
}

.product-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* 60/40 para galeria e info */
    gap: 60px;
    align-items: flex-start;
}

/* --- Galeria --- */
.main-product-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--color-shadow-soft);
    border: 1px solid var(--color-grey-light);
}
.image-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}
.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--color-secondary);
}

/* --- Informações --- */
.product-title {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--color-text);
}

.product-category {
    font-size: 1em;
    color: #777;
    margin-bottom: 15px;
}
.category-tag {
    font-weight: 600;
    color: var(--color-primary);
}

.rating {
    color: gold; /* Cor das estrelas */
    margin-bottom: 20px;
}
.rating i {
    font-size: 1.2em;
}
.review-count {
    font-size: 0.9em;
    color: #777;
    margin-left: 8px;
}

/* --- Preços --- */
.product-price-block {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid var(--color-grey-light);
    border-bottom: 1px solid var(--color-grey-light);
}
.original-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 1.1em;
}
.current-price {
    font-size: 3em;
    font-weight: 800;
    color: var(--color-secondary);
    margin-right: 15px;
}
.discount-tag {
    display: inline-block;
    background-color: red;
    color: var(--color-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9em;
}

/* --- CTAs (Botões) --- */
.add-to-cart-button {
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding: 18px 0;
    background-color: #2e4eff;
    color: var(--color-light);
    text-align: center;
    align-items: center;
    display: block;
    border-width: 0px;
    font-family: sora;

}
.add-to-cart-button:hover {
    background-color: #00b395;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 201, 167, 0.4);
}

.whatsapp-cta {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #25d366;
    color: var(--color-light);
    padding: 15px 0;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.5);
}
.whatsapp-cta:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

.guarantee-box {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border: 2px dashed var(--color-primary);
    border-radius: 10px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1em;
}
.guarantee-box i {
    margin-right: 10px;
}

/* --- Descrição e Especificações --- */
.product-description-section {
    padding: 50px 0 80px;
    background-color: var(--color-background);
}

.description-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Conteúdo e Sidebar de Especificações */
    gap: 40px;
}

.description-content h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8em;
}
.description-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: var(--color-text);
}
.description-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
}
.description-content ul {
    list-style: none;
    padding-left: 0;
}
.description-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eef;
    color: var(--color-text);
}
.description-content ul li::before {
    content: "✅";
    margin-right: 10px;
}

.specifications-box {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow-soft);
    border-left: 4px solid var(--color-secondary);
}
.specifications-box h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--color-secondary);
}
.specs-list {
    list-style: none;
    padding: 0;
}
.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95em;
}
.specs-list li strong {
    color: var(--color-primary);
    font-weight: 700;
}

.download-sample {
    display: block;
    margin-top: 25px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding: 12px;
    border-radius: 8px;
}
.download-sample:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* --- FAQ --- */
.faq-container {
    margin-top: 50px;
}
.faq-item {
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    font-weight: 600;
    padding: 15px 20px;
    background-color: var(--color-light);
    cursor: pointer;
    border-bottom: 1px solid var(--color-grey-light);
    color: var(--color-primary);
}
.faq-answer {
    padding: 15px 20px;
    background-color: #f7f9fb;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}


/* --- Responsividade da Página de Produto --- */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-details-section {
        padding: 40px 0;
    }
    .product-title {
        font-size: 2em;
    }
    .description-grid {
        grid-template-columns: 1fr;
    }
    .specifications-box {
        order: -1; /* Coloca especificações acima da descrição no mobile */
    }
}
@media (max-width: 600px) {
    .current-price {
        font-size: 2.5em;
    }
    .original-price {
        display: inline;
        margin-left: 10px;
    }
    .discount-tag {
        margin-top: 10px;
    }
}

/* ========================================================= */
/* 11. PÁGINA MEUS PEDIDOS (ORDER HISTORY) */
/* ========================================================= */

.orders-section {
    padding: 60px 0 100px;
    background-color: var(--color-background);
}

.orders-title {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 40px;
    text-align: center;
}

.order-card {
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow-soft);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s;
    border-left: 5px solid transparent; /* Para indicação de status */
}
.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-shadow-soft);
}

/* Status Colors (Barra Lateral) */
.order-card.complete { border-left-color: var(--color-secondary); }
.order-card.processing { border-left-color: var(--color-primary); }
.order-card.cancelled { border-left-color: #e74c3c; }


.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--color-grey-light);
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-text);
}

.order-id {
    font-weight: 800;
}
.order-date {
    color: #555;
}

/* Status Badges */
.order-status {
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9em;
}
.order-status i {
    margin-right: 5px;
}

.completed { 
    background-color: #e6fffb; 
    color: var(--color-secondary); 
    border: 1px solid var(--color-secondary);
}
.processing-text { 
    background-color: #e3f2fd; 
    color: var(--color-primary); 
    border: 1px solid var(--color-primary);
}
.cancelled-text { 
    background-color: #fcebeb; 
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.order-details {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.order-items-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
    margin-right: 20px;
}
.order-items-list li {
    padding: 5px 0;
    font-size: 1em;
    color: #444;
}

.order-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.order-total {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 10px;
}

.download-button {
    /* Reutilizando primary-cta para o botão de download */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 8px;
    min-width: 200px;
}
.download-button i {
    margin-right: 8px;
}

.disabled-cta {
    background-color: var(--color-grey-light) !important;
    color: #999 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.order-message {
    color: #e74c3c;
    font-size: 0.9em;
}

.no-orders-message {
    text-align: center;
    padding: 50px;
    border: 2px dashed var(--color-grey-light);
    border-radius: 12px;
    margin-top: 50px;
    background-color: var(--color-light);
}
.no-orders-message h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
}


/* --- Responsividade da Página de Pedidos --- */
@media (max-width: 700px) {
    .orders-title {
        font-size: 2em;
    }
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .order-items-list {
        margin-right: 0;
        width: 100%;
    }
    .order-summary {
        align-items: flex-start;
        width: 100%;
        border-top: 1px solid var(--color-grey-light);
        padding-top: 15px;
    }
    .download-button {
        width: 100%;
    }
}

/* ========================================================= */
/* 12. PÁGINA DE CHECKOUT */
/* ========================================================= */

/* --- Ajustes do Header para Checkout --- */
.checkout-header {
    background-color: var(--color-light); /* Fundo branco/claro */
    border-bottom: 3px solid var(--color-secondary); /* Borda de destaque */
}
.secure-checkout-tag {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary);
}
.secure-checkout-tag i {
    color: var(--color-secondary);
    margin-right: 8px;
}
/* Oculta o nav no checkout para evitar distrações */
.checkout-header .main-nav, 
.checkout-header .cart-button {
    display: none;
}

/* --- Seção Principal --- */
.checkout-section {
    padding: 50px 0 80px;
    background-color: var(--color-background);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr; /* Colunas para formulário e resumo */
    gap: 40px;
    align-items: flex-start;
}

.checkout-title {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 30px;
}
.checkout-title i {
    margin-right: 10px;
    color: var(--color-secondary);
}

/* --- Formulário (Coluna Esquerda) --- */
.form-section {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow-soft);
    margin-bottom: 30px;
}
.form-section h2 {
    font-size: 1.5em;
    color: var(--color-text);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-grey-light);
    padding-bottom: 10px;
}
.form-info-text {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
    outline: none;
}

/* --- Opções de Pagamento --- */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--color-grey-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--color-text);
}
.payment-option:hover {
    border-color: var(--color-secondary);
}
.payment-option.active {
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(0, 201, 167, 0.5);
    background-color: #f6fffd;
}
.payment-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--color-secondary);
    width: 18px;
    height: 18px;
}
.payment-option i {
    margin-right: 10px;
    color: var(--color-primary);
}

.payment-details {
    padding: 15px;
    border-radius: 8px;
    background-color: #e3f2fd;
    color: var(--color-primary);
    font-size: 0.95em;
    font-weight: 500;
    display: none;
}
.payment-details.active-details {
    display: block;
}
.payment-details i {
    margin-right: 8px;
}

/* --- Resumo (Coluna Direita) --- */
.order-summary-box {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--color-shadow-soft);
}
.order-summary-box h2 {
    font-size: 1.6em;
    color: var(--color-secondary);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-grey-light);
    padding-bottom: 10px;
}

.summary-items {
    margin-bottom: 25px;
}
.item-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1em;
    color: #555;
}
.subtotal-line {
    border-top: 1px solid var(--color-grey-light);
    margin-top: 10px;
    font-weight: 600;
    color: var(--color-text);
}
.total-line {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--color-secondary);
    padding-top: 10px;
    border-top: 2px solid var(--color-secondary);
    margin-top: 15px;
}

.finish-purchase-button {
    width: 100%;
    font-size: 1.3em;
    padding: 18px 0;
    background-color: var(--color-secondary);
    color: var(--color-text);
    margin-bottom: 20px;
}
.finish-purchase-button:hover {
    background-color: #00b395;
    transform: translateY(-2px);
}

.security-info {
    text-align: center;
    font-size: 0.85em;
    color: #777;
    padding-top: 10px;
    border-top: 1px solid var(--color-grey-light);
}
.security-info i {
    color: var(--color-primary);
    margin-right: 5px;
}

.guarantee-checkout-box {
    background-color: #e6fffb;
    border: 2px dashed var(--color-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--color-secondary);
}
.guarantee-checkout-box i {
    font-size: 1.2em;
    margin-right: 8px;
}

/* --- Footer Minimalista --- */
.minimal-footer {
    padding: 20px 0;
    background-color: var(--color-primary);
}
.minimal-footer .footer-bottom {
    border-top: none;
    padding: 0;
    opacity: 1;
}
.minimal-footer a {
    color: var(--color-light);
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Responsividade do Checkout --- */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .checkout-summary-area {
        order: -1; /* Coloca o resumo acima do formulário no mobile */
    }
    .checkout-title {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .form-section, .order-summary-box {
        padding: 20px;
    }
    .payment-option {
        font-size: 0.9em;
    }
}

/* ========================================================= */
/* 13. PÁGINA DE CONFIRMAÇÃO DE PEDIDO (AGRADECIMENTO) */
/* ========================================================= */

.order-confirmation-section {
    padding: 60px 0 100px;
    background-color: var(--color-background);
}

.confirmation-box {
    text-align: center;
    padding: 40px;
    background-color: var(--color-light);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-top: 5px solid var(--color-secondary);
}

.success-icon {
    font-size: 4em;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.confirmation-subtitle {
    font-size: 1.2em;
    color: #555;
}

/* --- Resumo dos Dados (Meta Info) --- */
.order-meta-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.info-block {
    text-align: center;
}
.info-block i {
    font-size: 1.5em;
    color: var(--color-secondary);
    margin-bottom: 8px;
}
.info-block h3 {
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}
.info-block p {
    font-size: 1.4em;
    font-weight: 700;
}
.total-paid {
    color: var(--color-secondary);
}

/* --- Área de Downloads --- */
.download-access-area {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow-soft);
    margin-bottom: 30px;
}
.download-access-area h2 {
    color: var(--color-primary);
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.access-instruction {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 25px;
    font-weight: 600;
}

.purchased-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-grey-light);
}
.purchased-item-card:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.item-info h4 {
    font-size: 1.15em;
    color: var(--color-text);
    margin-bottom: 5px;
}
.item-info p {
    font-size: 0.9em;
    color: #777;
}

.download-now-btn {
    /* Reutiliza o primary-cta para o botão de download */
    padding: 10px 20px;
    font-size: 1em;
    min-width: 220px;
}

.my-orders-link {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed var(--color-grey-light);
    font-size: 0.95em;
    color: #666;
}
.my-orders-link a {
    color: var(--color-secondary);
    font-weight: 600;
}
.my-orders-link i {
    margin-right: 5px;
    color: var(--color-primary);
}

/* --- Contato de Suporte --- */
.support-contact-box {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background-color: #e6fffb; /* Cor suave de sucesso/suporte */
    border: 1px solid var(--color-secondary);
}
.support-contact-box h2 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.whatsapp-support-cta {
    display: inline-block;
    background-color: #25d366;
    color: var(--color-light);
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}
.whatsapp-support-cta:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}
.whatsapp-support-cta i {
    margin-right: 10px;
}


/* --- Responsividade da Página de Confirmação --- */
@media (max-width: 800px) {
    .order-meta-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .info-block {
        width: 45%;
    }
    .purchased-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }
    .download-now-btn {
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 500px) {
    .confirmation-title {
        font-size: 2em;
    }
    .info-block {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }
    .info-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ========================================================= */
/* 14. PÁGINA DE LOGIN */
/* ========================================================= */

.login-section {
    padding: 80px 0 100px;
    background-color: var(--color-background);
    min-height: 80vh; /* Garante que ocupe a altura da tela */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-primary);
    text-align: center;
}

.login-title {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}
/* Reutilizando estilos de form-group do checkout, se já estiverem no style.css */
/* Se não estiverem, as classes form-group, label e input definidas para o checkout já funcionarão aqui */

.login-button {
    width: 100%;
    padding: 15px 0;
    font-size: 1.1em;
    margin-top: 20px;
    background-color: var(--color-secondary);
    color: var(--color-text);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.login-button:hover {
    background-color: #00b395;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 201, 167, 0.4);
}
.login-button i {
    margin-right: 8px;
}

.login-footer-links {
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
}
.login-footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.login-footer-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}
.separator {
    margin: 0 10px;
    color: var(--color-grey-light);
}

.login-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--color-grey-light);
}
.login-help p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
.login-help a {
    color: #25d366;
    font-weight: 700;
    text-decoration: none;
}
.login-help a i {
    margin-right: 5px;
}
.login-help a:hover {
    text-decoration: underline;
}

/* --- Responsividade --- */
@media (max-width: 600px) {
    .login-section {
        padding: 40px 0;
    }
    .login-container-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
    .login-title {
        font-size: 1.8em;
    }
}

/* ========================================================= */
/* 15. PÁGINA DE CADASTRO */
/* ========================================================= */

/* Os estilos principais da .login-section e .login-container-card são herdados do Login */

.social-login-button {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}
.social-login-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Estilo específico para o Google */
.google-button {
    background-color: #ffffff;
    color: #444;
    border: 1px solid var(--color-grey-light);
}
.google-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    transform: translateY(-1px);
}
.google-button i {
    color: #DB4437; /* Cor do Google */
}


/* Separador "ou" */
.or-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
    font-size: 0.9em;
    color: #999;
}
.or-separator::before,
.or-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--color-grey-light);
}
.or-separator::before {
    left: 0;
}
.or-separator::after {
    right: 0;
}
.or-separator span {
    background: var(--color-light);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

/* Checkbox de Termos */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    margin-bottom: 25px;
}
.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    accent-color: var(--color-secondary);
    min-width: 16px;
    min-height: 16px;
}
.terms-checkbox label {
    font-weight: 400; /* Redefine o peso do label */
    color: #666;
}
.terms-checkbox label a {
    color: var(--color-primary);
    font-weight: 600;
}
.terms-checkbox label a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Ajuste no rodapé de links */
.login-footer-links p {
    margin: 0;
    font-size: 1em;
}
.login-footer-links {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Responsividade do botão social */
@media (max-width: 600px) {
    .social-login-button {
        font-size: 1em;
    }
}


:root {
    /* Paleta Moderna - Estilo Dashboard Pro */
    --admin-bg: #f8fafc;
    --sidebar-bg: #0f172a; /* Azul Slate Profundo */
    --sidebar-hover: #1e293b;
    --accent-color: #3b82f6; /* Azul Royal Vibrante */
    --accent-light: rgba(59, 130, 246, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Status Dinâmicos */
    --status-success: #10b981;
    --status-success-bg: #ecfdf5;
    --status-warning: #f59e0b;
    --status-warning-bg: #fffbeb;
    --status-danger: #ef4444;
    --status-danger-bg: #fef2f2;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --radius: 16px;
}

.admin-body {
    margin: 0;
    font-family: 'Inter', 'Sora', sans-serif; /* Inter é mais moderna para dados */
    background-color: var(--admin-bg);
    color: var(--text-main);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.sidebar-logo {

    width: 200px; /* Ajuste o tamanho do seu logo */

    

}

.sidebar-nav .nav-item {
    margin-bottom: 8px;
}

.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-nav .nav-item a i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.sidebar-nav .nav-item:hover a {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-nav .nav-item.active a {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}


/* --- Conteúdo Principal (Main Content) --- */
.admin-main-content {
    flex-grow: 1;
}

.admin-topbar {
    background-color: var(--color-light);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    color: var(--color-text);
}
.user-profile .username {
    margin-right: 10px;
    font-weight: 600;
}
.user-profile i {
    font-size: 1.5em;
    color: #95a5a6;
}

.admin-content-area {
    padding: 30px 40px;
    /* Adapta a classe container para ocupar 100% da largura do admin-main-content */
    max-width: none; 
}


/* --- Cards de Estatísticas --- */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stat-card .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* Exemplo de cores para ícones */
.icon-sales { background: var(--accent-light); color: var(--accent-color); }
.icon-users { background: var(--status-success-bg); color: var(--status-success); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}


/* --- Seções de Dados --- */
.admin-data-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Espaço entre linhas */
}

.data-table th {
    background: transparent;
    color: var(--text-muted);
    text-transform: none;
    font-weight: 600;
    padding: 16px;
    border-bottom: 2px solid var(--admin-bg);
}

.data-table td {
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid #f1f5f9;
}

/* Badges de Status Modernos */
.badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed { background: var(--status-success-bg); color: var(--status-success); }
.status-pending { background: var(--status-warning-bg); color: var(--status-warning); }
.status-cancelled { background: var(--status-danger-bg); color: var(--status-danger); }

.admin-topbar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px); /* Efeito vidro */
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-bar-admin {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    width: 300px;
    outline: none;
    transition: 0.3s;
}

.search-bar-admin:focus {
    background: #e2e8f0;
    width: 350px;
}



/* Placeholder para Gráfico */
.chart-placeholder {
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}


/* --- Responsividade do Painel Admin --- */
@media (max-width: 1200px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column; /* Sidebar no topo */
    }
    .admin-sidebar {
        width: 100%;
        padding: 10px 0;
        height: auto;
    }
    .sidebar-header {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px 20px;
    }
    .sidebar-logo {
        width: 100px;
    }
    .admin-title-text {
        margin-top: 0;
    }
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .sidebar-nav .nav-item {
        width: 45%; /* Itens em duas colunas */
    }
    .sidebar-nav .nav-item a {
        padding: 10px;
        justify-content: center;
    }
    .sidebar-nav .nav-item a i {
        margin-right: 5px;
    }
    
    .admin-topbar {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    .page-title {
        margin-bottom: 10px;
    }

    .admin-content-area {
        padding: 20px;
    }
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
    .data-table {
        font-size: 0.9em;
    }
}


/* ========================================================= */
/* 17. ESTILOS DOS MODAIS ADMINISTRATIVOS (POPUPS) */
/* ========================================================= */

/* Impede o scroll do corpo quando o modal está aberto */
.modal-open {
    overflow: hidden;
}

/* Fundo escurecido (Backdrop) */
.admin-modal {
    display: none; /* Inicia oculto */
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Preto semi-transparente */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Conteúdo do Modal (O Popup em si) */
.modal-content {
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 30px;
    animation: fadeIn 0.3s ease-out;
}
.modal-content.medium {
    max-width: 600px;
    width: 90%;
}
.modal-content.large {
    max-width: 900px;
    width: 95%;
}

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

/* Botão de Fechar (X) */
.close-modal-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--color-status-cancelled);
    text-decoration: none;
}

.modal-title {
    color: var(--color-primary);
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}
.modal-title i {
    color: var(--color-secondary);
    margin-right: 10px;
}

/* Controles dentro do Modal (Novo/Buscar) */
.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-controls .primary-cta {
    padding: 10px 15px;
    font-size: 0.95em;
}

.search-box {
    display: flex;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    overflow: hidden;
}
.search-box input {
    border: none;
    padding: 10px 15px;
    flex-grow: 1;
    font-size: 1em;
    outline: none;
}
.search-box button {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-box button:hover {
    background-color: var(--color-secondary);
}

/* Tabela dentro do Modal */
.modal-table {
    margin-top: 15px;
}
.modal-table th {
    background-color: #eaf6ff;
}
.modal-table td {
    vertical-align: middle;
}

/* Botões de Ação na Tabela */
.action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: opacity 0.2s;
    border: 1px solid transparent;
}
.edit-btn {
    background-color: var(--color-status-info);
    color: var(--color-light);
}
.edit-btn:hover {
    opacity: 0.9;
}

/* Paginação */
.pagination-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--color-grey-light);
}
.pagination-footer span {
    margin-right: 20px;
    color: #555;
    font-size: 0.9em;
}
.prev-next {
    background-color: var(--color-light);
    border: 1px solid var(--color-grey-light);
    color: var(--color-text);
    margin-left: 10px;
}
.prev-next:hover {
    background-color: var(--color-grey-light);
}


/* --- Responsividade do Modal --- */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
    .modal-controls {
        flex-direction: column;
        gap: 15px;
    }
    .modal-controls button, .search-box {
        width: 100%;
    }
    .search-box input {
        padding: 8px 10px;
    }
    .modal-title {
        font-size: 1.5em;
    }
    /* Tornar tabela responsiva (pode ser necessário JS ou CSS mais complexo em produção) */
    .modal-table, .modal-table thead, .modal-table tbody, .modal-table th, .modal-table td, .modal-table tr { 
        display: block; 
    }
    .modal-table thead { 
        display: none; 
    }
    .modal-table tr { 
        margin-bottom: 10px; 
        border: 1px solid var(--color-grey-light);
        border-radius: 8px;
    }
    .modal-table td { 
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    .modal-table td::before { 
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: 700;
        text-align: left;
        color: var(--color-primary);
    }
}

/* ========================================================= */
/* 18. PÁGINA DE CADASTRO/EDIÇÃO DE PRODUTO */
/* ========================================================= */

.product-form {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas em telas grandes */
    gap: 30px;
    margin-bottom: 30px;
}

.form-section {
    padding: 20px;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
}

.form-section h2 {
    font-size: 1.4em;
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-grey-light);
}

/* Reutilizando estilos de form-group, label e input/select/textarea do checkout/login */

.form-group label {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.form-group input:not([type="checkbox"]), 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-grey-light);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Garante que o padding não aumente o width total */
    margin-top: 5px;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #888;
}

/* Ações do Formulário (Botões) */
.form-actions {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid var(--color-grey-light);
}

.submit-button {
    background-color: var(--color-secondary);
    color: var(--color-text);
    font-weight: 700;
    padding: 12px 25px;
    font-size: 1.1em;
    margin-left: 15px;
}
.submit-button:hover {
    background-color: #00b395;
}

.reset-button {
    background-color: #ecf0f1;
    color: var(--color-text);
    border: 1px solid #bdc3c7;
    padding: 12px 25px;
    font-size: 1.1em;
}
.reset-button:hover {
    background-color: #dcdde1;
}


/* --- Responsividade --- */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr; /* Coluna única em tablets e celulares */
        gap: 20px;
    }
    .form-actions {
        text-align: center;
    }
    .submit-button, .reset-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* ========================================================= */
/* 19. ESTILOS DE ABAS (TABS) E GRADES NO CADASTRO DE PRODUTO */
/* ========================================================= */

.product-form {
    /* Mantido o padding e background da versão anterior */
    padding: 30px;
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Navegação das Abas --- */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--color-grey-light);
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #777;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-right: 5px;
}

.tab-button:hover {
    color: var(--color-primary);
    background-color: #f9f9f9;
}

.tab-button.active {
    color: var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
    background-color: #fff;
}

.tab-button i {
    margin-right: 8px;
}

/* --- Conteúdo das Abas --- */
.tab-content-wrapper {
    min-height: 400px; /* Garante espaço suficiente */
}

.tab-pane {
    display: none; /* Oculta todos os painéis por padrão */
    animation: fadeContent 0.4s;
}

.tab-pane.active {
    display: block; /* Exibe o painel ativo */
}

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

/* --- Estrutura de Grades (dentro do formulário) --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* Título de Seção dentro da Aba */
.form-section h2 {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.form-section {
    padding: 0;
    border: none;
}

/* Prévia de Imagem Placeholder */
.image-preview-placeholder {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.9em;
    border-radius: 6px;
    margin-top: 10px;
}

/* Ajuste para o botão voltar nas Ações */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}


/* --- Responsividade --- */
@media (max-width: 900px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    .tab-button {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column-reverse;
        text-align: center;
    }
    .form-actions .submit-button, .form-actions .reset-button {
        width: 100%;
        margin-left: 0;
    }
}

/* Container da Galeria de Capas */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
}

/* Estilo de cada capa */
.selectable-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    filter: grayscale(40%);
}

.selectable-cover:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Estilo da capa selecionada */
.selectable-cover.selected {
    border-color: #28a745;
    filter: grayscale(0%);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Status de Upload */
#upload-status {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar do Carrinho */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Escondido */
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0; /* Mostra */
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.cart-overlay.show {
    display: block;
}

/* Itens no Carrinho */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    font-weight: bold;
    color: #2563eb;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
}

.remove-item:hover {
    text-decoration: underline;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha o texto à direita ao lado da foto */
}

.username {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

#admin-photo {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#admin-photo:hover {
    transform: scale(1.1);
}

.status-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Inter Tight', sans-serif;
}
.status-tag.pago, .status-tag.success, .status-tag.approved { background: #dcfce7; color: #166534; }
.status-tag.pending { background: #fef9c3; color: #854d0e; }
.status-tag.cancelled { background: #fee2e2; color: #991b1b; }

.chart-placeholder {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card {
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); }