/* style.css - Design de Luxo para Rei Designer */
:root {
    --primary: #0a8f2d; /* Volta o Verde */
    --primary-dark: #076d22;
    --accent: #d4af37; /* Dourado como cor de acento */
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* Header */
.topo {
    background: #121212; /* Preto Fosco no Topo */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.logo-texto {
    font-size: 24px;
    font-weight: 800;
    color: white;
    transition: 0.3s;
}

.logo:hover .logo-texto {
    color: var(--accent);
    transform: scale(1.02);
}

.busca input {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    outline: none;
    transition: 0.3s;
}

.busca input:focus {
    background: white;
    color: var(--text);
}

.carrinho-topo {
    background: white;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.balao-carrinho {
    background: #ff4757;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Menu Categorias */
.menu {
    background: #1a1a1a;
    padding: 0 5%;
    display: flex;
    gap: 10px; /* Aumentei o gap um pouco pra mobile */
    border-bottom: 1px solid #333;
    position: relative;
    flex-wrap: wrap; /* Permite quebrar linha no desktop para não cortar o dropdown */
}

@media (max-width: 768px) {
    .menu {
        flex-wrap: nowrap;
        overflow-x: auto; /* Permite rolagem horizontal no mobile */
        -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
        scrollbar-width: none; /* Oculta scroll no Firefox */
    }
    .menu::-webkit-scrollbar {
        display: none; /* Oculta scroll no Chrome/Safari */
    }
}

/* Item do Menu Pai */
.menu-item {
    position: relative;
    padding: 15px 0;
}

.menu-item > a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 50px;
    background: #f1f2f6;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    white-space: nowrap; /* Impede que o texto da tag quebre */
}

.menu-item:hover > a, .menu-item a.active {
    background: var(--accent); /* Dourado no menu preto */
    color: #121212;
}

/* Destaque Pulsante */
.destaque-pulsante > a {
    animation: pulsarDestaque 1.5s infinite;
    font-weight: 800 !important;
    text-transform: uppercase;
}

@keyframes pulsarDestaque {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.8);
        background: #ff4757;
        color: white;
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 71, 87, 0);
        background: #ff6b81;
        color: white;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
        background: #ff4757;
        color: white;
    }
}

/* O Dropdown (Subcategorias) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 12px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid #333;
}

.menu-item:hover .dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.dropdown a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown a:hover {
    background: #252525;
    color: var(--accent);
    padding-left: 25px;
}

/* Grid de Produtos */
.produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixado em 3 colunas para imagens maiores */
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 400px; /* Aumentei para 400px para destacar bem a arte */
    object-fit: contain;
    background: #f8f9fa; /* Fundo cinza bem clarinho para a imagem */
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Modal de Visualização */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    max-width: 1200px; /* Aumentei de 900 para 1200 */
    width: 95%;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Mais espaço para a imagem */
    overflow: hidden;
    position: relative;
    animation: zoomIn 0.3s ease;
    border: none;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-img {
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img img {
    max-width: 100%;
    max-height: 85vh; /* Quase a altura toda da tela */
    object-fit: contain;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-close {
    position: absolute;
    top: 20px; right: 20px;
    background: white;
    color: var(--text);
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

@media (max-width: 768px) {
    .modal-content { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-info { padding: 20px; }
}

.card .nome {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    flex-grow: 1;
}

.card .preco {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.estrelas {
    color: #ffa502;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-comprar {
    background: var(--primary);
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: 0.2s;
    display: block;
}

.btn-comprar:hover {
    background: var(--accent);
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-carrinho {
    background: #f1f2f6;
    color: var(--text);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-carrinho:hover {
    background: #dfe4ea;
}

/* Admin Panel */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .topo { flex-direction: column; gap: 15px; text-align: center; }
    .busca input { width: 100%; }
    .produtos { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 480px) {
    .produtos { grid-template-columns: 1fr; }
}
/* Seção de Avisos e FAQ */
.aviso-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: none;
}

.aviso-container h2 { text-align: center; margin-bottom: 30px; font-weight: 800; }

.alerta-box {
    background: #fff9db;
    border-left: 5px solid var(--primary);
    padding: 20px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.aviso-container h3 {
    margin-top: 30px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
    font-size: 20px;
}

.aviso-container ul { padding-left: 20px; margin: 15px 0; }
.aviso-container li { margin-bottom: 8px; color: #555; }

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-pergunta { font-weight: 700; color: var(--primary); display: block; margin-bottom: 8px; }
.faq-resposta { color: #555; font-size: 14px; }

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* Rodapé Profissional */
.footer {
    background: #121212; /* Preto Fosco */
    color: white;
    padding: 60px 5% 30px;
    margin-top: 50px;
}

.footer-section h4 {
    color: var(--accent) !important; /* Dourado Real Forçado */
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #a4b0be;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a4b0be;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #747d8c;
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* Seção de Estatísticas */
.stats-section {
    background: #121212;
    padding: 25px 5%; /* Reduzi para 25px */
    display: flex;
    justify-content: space-around;
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 32px; /* Reduzi para 32px */
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    color: #a4b0be;
}

/* Seção de Passos */
.steps-section {
    padding: 80px 5%;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.step-card:hover { transform: translateY(-10px); }

.step-num {
    font-size: 48px;
    font-weight: 800;
    color: #3498db; /* Azul conforme o print */
    margin-bottom: 20px;
}

.step-card p {
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-section { flex-direction: column; gap: 40px; }
    .steps-section { grid-template-columns: 1fr; }
}
/* Pix Card Styling */
.pix-card {
    background: #ffffff;
    border: 2px solid #f1f2f6;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
}

.pix-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pix-header img {
    height: 25px;
}

.pix-header span {
    font-weight: 700;
    color: #32bcad; /* Cor oficial do PIX */
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

#pix-qrcode {
    width: 200px;
    height: 200px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
}

.pix-info {
    margin-bottom: 20px;
}

.pix-info p {
    margin: 5px 0;
    font-size: 15px;
    color: #444;
}

.pix-copy-box {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.pix-copy-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: #666;
    font-family: monospace;
}

#btn-copiar-pix {
    background: #121212;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

#btn-copiar-pix:hover {
    background: #32bcad;
}

#pix-loading {
    padding: 40px;
    color: #888;
    font-style: italic;
}
