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

:root {
    --fundo: #050505;       /* Preto Profundo */
    --card-bg: #0f0f0f;     /* Fundo dos cards */
    --texto: #f5f5f5;       /* Branco Suave */
    --destaque: #b71c1c;    /* Vermelho Luxuria */
    --vermelho-hover: #ff1a1a;
    --verde-zap: #25D366;   /* Verde WhatsApp */
    --dourado: #D4AF37;     /* Detalhes Premium */
    --borda-fina: #222;     /* Cinza muito sutil */
}

html, body {
    width: 100%; max-width: 100vw; overflow-x: hidden;
    background-color: var(--fundo); color: var(--texto);
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.travado { overflow: hidden !important; height: 100vh; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: 'Lato', sans-serif; }
.notranslate { translate: no; }

/* --- 2. HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--borda-fina); 
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(8px);
}

.logo a { 
    font-family: 'Cinzel', serif; font-size: 1.4rem; 
    font-weight: 700; color: var(--destaque); letter-spacing: 2px; 
    text-transform: uppercase; 
}

.icone-btn { font-size: 1.6rem; color: #888; cursor: pointer; transition: color 0.3s; }
.icone-btn:hover { color: white; }

/* Carrinho */
.carrinho-wrapper { 
    position: relative; display: flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; color: #888; transition: 0.3s; 
}
.carrinho-wrapper:hover { color: white; }
.carrinho-wrapper .material-icons { font-size: 1.6rem; }

.contador-carrinho { 
    position: absolute; top: 0; right: 0; 
    background-color: var(--destaque); color: white; 
    font-size: 0.7rem; font-weight: bold; width: 16px; height: 16px; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; 
}

/* --- 3. BARRA DE PESQUISA --- */
.barra-pesquisa-fixa { 
    background-color: var(--fundo); padding: 10px 20px 20px 20px; 
    border-bottom: 1px solid var(--borda-fina); 
}
.input-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }

.input-wrapper input { 
    width: 100%; padding: 10px 10px 10px 40px; 
    background-color: #0a0a0a; border: 1px solid #333; 
    border-radius: 4px; color: white; outline: none; font-size: 0.9rem; transition: 0.3s; 
}
.input-wrapper input:focus { border-color: var(--destaque); background-color: #111; }

.icone-busca-google { 
    position: absolute; left: 10px; top: 50%; 
    transform: translateY(-50%); color: #666; font-size: 1.2rem; 
}

/* --- 4. SLIDER E OPÇÕES DE CORES --- */
.slider { 
    width: 100%; height: 250px; position: relative; overflow: hidden; 
    background-color: #000; margin-bottom: 30px; 
}

.slide { 
    width: 100%; height: 100%; 
    position: absolute; top: 0; left: 0;
    opacity: 0; /* Começa invisível para transição suave */
    transition: opacity 1s ease-in-out; 
    display: flex; align-items: center; justify-content: center; text-align: center; 
    background-size: cover; background-position: center; 
    z-index: 1;
}

/* Slide Ativo */
.slide.ativa { opacity: 1; z-index: 2; }

/* OPÇÕES DE DEGRADÊ (Sem bordas vermelhas) */
.gradiente-padrao, .gradiente-red { background: linear-gradient(135deg, #000000 0%, #2c0404 100%); }
.gradiente-gold { background: linear-gradient(135deg, #050505 0%, #292008 100%); }
.gradiente-purple { background: linear-gradient(135deg, #020005 0%, #1a0524 100%); }
.gradiente-blue { background: linear-gradient(135deg, #000205 0%, #051024 100%); }
.gradiente-carbon { background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%); }

.texto-slide h2 { 
    font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--destaque); 
    margin-bottom: 5px; text-shadow: 0 4px 15px #000; 
}
.texto-slide p { 
    letter-spacing: 3px; color: #ccc; font-size: 0.8rem; text-transform: uppercase; 
    text-shadow: 0 2px 5px #000;
}

/* Ajustes de cor do texto conforme fundo */
.gradiente-gold .texto-slide h2 { color: #D4AF37; }
.gradiente-purple .texto-slide h2 { color: #d687fc; }
.gradiente-blue .texto-slide h2 { color: #64b5f6; }


/* --- 5. VITRINE --- */
#vitrine { padding: 0 20px 60px 20px; max-width: 1200px; margin: 0 auto; }

.titulo-secao { 
    font-family: 'Cinzel', serif; margin-bottom: 30px; font-weight: 400; 
    font-size: 1.4rem; color: #eee; text-align: center; 
    border-bottom: 1px solid #222; padding-bottom: 15px; 
}

.grade-produtos { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; 
}
@media (min-width: 768px) { .grade-produtos { grid-template-columns: repeat(4, 1fr); gap: 30px; } }

.produto-card { 
    position: relative; /* CRUCIAL para o link não "vazar" para outros produtos */
    background: transparent; border: none; cursor: pointer; transition: 0.3s; 
    display: flex; flex-direction: column; 
}
.produto-card:hover { transform: translateY(-5px); }

.link-absoluto { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }

.img-placeholder { 
    width: 100%; aspect-ratio: 1 / 1.2; background-color: #111; 
    border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; 
    position: relative; border: 1px solid #222; 
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.produto-card:hover .img-placeholder img { transform: scale(1.03); }

.info-card { padding: 12px 0 0 0; text-align: left; }
.produto-card h3 { 
    font-size: 0.9rem; margin: 0 0 5px 0; color: #ccc; 
    font-weight: 400; line-height: 1.4; height: 2.8em; overflow: hidden; 
}
.produto-card .preco { color: var(--destaque); font-weight: 700; font-size: 1rem; }
.escondido { display: none !important; }

/* --- 6. SIDEBAR --- */
.overlay-sombra { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8); z-index: 150; display: none; 
    backdrop-filter: blur(3px); 
}
.overlay-sombra.ativo { display: block; }

.sidebar { 
    position: fixed; top: 0; left: 0; width: 280px; height: 100%; 
    background-color: #0a0a0a; z-index: 200; padding: 25px; 
    display: flex; flex-direction: column; 
    box-shadow: 5px 0 20px rgba(0,0,0,0.8); 
    transform: translateX(-100%); transition: transform 0.3s ease; 
    border-right: 1px solid #222; 
}
.sidebar.aberto { transform: translateX(0); }

.fechar-btn { 
    align-self: flex-end; background: none; border: none; 
    color: #666; font-size: 2rem; cursor: pointer; margin-bottom: 20px; 
}

.sidebar nav li { margin-bottom: 15px; }
.sidebar nav a { color: #888; font-size: 0.95rem; display: block; transition: 0.2s; }
.sidebar nav a:hover { color: white; padding-left: 5px; }

/* --- 7. LOGIN E CADASTRO --- */
.login-wrapper {
    display: flex; align-items: center; justify-content: center;
    min-height: 80vh; padding: 20px;
}
.login-card {
    background-color: #0f0f0f !important;
    width: 100%; max-width: 380px;
    padding: 30px 20px !important; 
    text-align: center; border-radius: 8px; border: 1px solid #333;
}
.login-card h2 { 
    color: var(--destaque); font-family: 'Cinzel', serif; 
    font-size: 1.8rem; margin-bottom: 10px; letter-spacing: 2px; 
}
.login-card p { color: #888; font-size: 0.9rem; margin-bottom: 30px; }
.input-group { position: relative; margin-bottom: 20px; text-align: left; width: 100%; }
.input-group .input-icon-left {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #666; font-size: 1.2rem; pointer-events: none; z-index: 2;
}
.input-group input {
    width: 100%; padding: 14px 40px 14px 40px !important; 
    background-color: #0a0a0a !important; border: 1px solid #333 !important;
    border-radius: 6px !important; color: white !important; 
    font-family: 'Lato', sans-serif; font-size: 1rem; outline: none; height: auto !important;
}
.input-group input:focus {
    border-color: var(--destaque) !important; background-color: #111 !important;
    box-shadow: 0 0 8px rgba(183, 28, 28, 0.3);
}
.icone-olho {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #666; cursor: pointer; font-size: 1.2rem; z-index: 3; padding: 5px;
}
.icone-olho:hover { color: var(--destaque); }

/* --- BOTÕES LOGIN (FORÇANDO ESTILO) --- */
.btn-entrar-full {
    display: block !important; width: 100% !important; padding: 15px !important;
    background-color: #b71c1c !important; color: white !important;
    border: none !important; border-radius: 6px !important;
    font-size: 1rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1px !important;
    cursor: pointer !important; margin-top: 20px !important; text-align: center !important;
    transition: all 0.3s ease !important;
}
.btn-entrar-full:hover {
    background-color: #ff1a1a !important;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.4) !important; transform: translateY(-2px);
}
.btn-criar-conta {
    display: block !important; width: 100% !important; padding: 14px !important;
    background-color: transparent !important; border: 1px solid #b71c1c !important;
    color: #b71c1c !important; text-align: center !important;
    border-radius: 6px !important; font-size: 0.95rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1px !important;
    text-decoration: none !important; cursor: pointer !important; transition: all 0.3s ease !important;
}
.btn-criar-conta:hover {
    background-color: rgba(183, 28, 28, 0.1) !important; color: white !important; border-color: white !important;
}
.divisor-login { margin: 25px 0; border-top: 1px solid #222; position: relative; }
.divisor-login span {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: #0f0f0f; padding: 0 10px; color: #444; font-size: 0.8rem;
}

/* --- OUTROS --- */
.overlay-18 { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(5, 5, 5, 0.95); z-index: 999999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-18-box { background: #141414; border: 1px solid var(--destaque); padding: 40px; text-align: center; max-width: 500px; width: 90%; border-radius: 8px; box-shadow: 0 0 30px rgba(183, 28, 28, 0.3); }
.titulo-18 { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--destaque); margin-bottom: 15px; text-transform: uppercase; }
.texto-18 { color: #ccc; font-size: 1rem; line-height: 1.6; margin-bottom: 30px; }
.botoes-18 { display: flex; gap: 15px; justify-content: center; }
.btn-entrar-18 { background: var(--destaque); color: white; border: none; padding: 12px 30px; font-weight: bold; cursor: pointer; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.btn-sair-18 { background: transparent; border: 1px solid #444; color: #888; padding: 12px 30px; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background-color: #1a1a1a; color: white; padding: 15px 20px; border-radius: 4px; border-left: 4px solid var(--verde-zap); box-shadow: 0 4px 12px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; min-width: 250px; font-size: 0.9rem; font-weight: bold; animation: slideIn 0.3s ease; pointer-events: auto; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.container-produto { max-width: 1100px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .container-produto { grid-template-columns: 1fr; margin-top: 20px; } }
.img-principal { width: 100%; background-color: #1a1a1a; border-radius: 8px; border: 1px solid #333; overflow: hidden; }
.img-principal img { width: 100%; height: auto; display: block; }
.produto-info h1 { font-family: 'Cinzel', serif; font-size: 1.8rem; margin-bottom: 10px; color: white; }
.produto-preco { font-size: 2rem; color: var(--destaque); font-weight: bold; margin-bottom: 20px; }
.produto-descricao { line-height: 1.6; color: #ccc; margin-bottom: 30px; font-size: 0.95rem; }
.controle-qtd { display: flex; align-items: center; margin-bottom: 25px; gap: 10px; }
.controle-qtd button { width: 40px; height: 40px; background: #333; border: none; color: white; font-size: 1.2rem; cursor: pointer; border-radius: 4px; transition: 0.2s; }
.controle-qtd input { width: 60px; height: 40px; text-align: center; background: #111; border: 1px solid #333; color: white; border-radius: 4px; }
.botoes-compra { display: flex; flex-direction: column; gap: 15px; }
.btn-comprar { width: 100%; padding: 15px; background-color: var(--verde-zap); color: white; border: none; font-weight: bold; text-transform: uppercase; cursor: pointer; border-radius: 4px; font-size: 1rem; transition: 0.3s; }
.btn-carrinho { width: 100%; padding: 15px; background-color: transparent; border: 2px solid var(--destaque); color: var(--destaque); font-weight: bold; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: 0.3s; }

/* --- 9. RODAPÉ (FOOTER) --- */
footer {
    background-color: #080808;
    border-top: 1px solid #222;
    padding: 60px 20px 20px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    color: #888;
}

.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}

.footer-col h4 {
    color: white; font-family: 'Cinzel', serif; margin-bottom: 20px;
    font-size: 1.1rem; letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #888; transition: 0.3s; }
.footer-col a:hover { color: var(--destaque); padding-left: 5px; }

.social-links { display: flex; gap: 15px; }
.social-links a { 
    display: flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; border-radius: 50%; 
    background: #111; border: 1px solid #333; color: white;
}
.social-links a:hover { background: var(--destaque); border-color: var(--destaque); transform: translateY(-3px); }

.pagamento-icons { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.pag-icon { width: 40px; height: 25px; background: #222; border-radius: 3px; }

.copyright {
    text-align: center; margin-top: 60px; padding-top: 20px;
    border-top: 1px solid #111; font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
}