/* ==========================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS (MANTIDO)
   ========================================================== */
:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #f1c40f;
    --bg-light: #f4f7f6;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==========================================================
   2. HEADER E NAVEGAÇÃO (MANTIDO)
   ========================================================== */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img { height: 50px; }

nav { display: flex; align-items: center; gap: 20px; }

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    position: relative;
}

nav a:hover { color: var(--primary); }

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
}

/* ==========================================================
   3. FILTROS E VITRINE (MANTIDO)
   ========================================================== */
.filtros-container {
    background: #fff;
    padding: 12px 5%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px; 
    z-index: 998;
}

.btn-filtro {
    padding: 8px 22px;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    white-space: nowrap;
    background: #fff;
    transition: 0.3s;
}

.btn-filtro.active, .btn-filtro:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vitrine {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.card-produto {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card-produto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* ==========================================================
   4. BOTÕES (LOJA E FINANCIAMENTO) (MANTIDO)
   ========================================================== */
.btn-comprar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-comprar:hover { background: var(--primary-hover); }

.btn-financiamento {
    display: block;
    text-align: center;
    border: 2px solid var(--success);
    color: var(--success);
    font-weight: bold;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 5px;
}

.btn-financiamento:hover {
    background: var(--success);
    color: #fff;
}

/* ==========================================================
   5. PAINEL ADMINISTRATIVO (MANTIDO)
   ========================================================== */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
}

.admin-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.btn-edit { background: var(--warning); color: #000; padding: 5px 10px; border-radius: 4px; border: none; cursor: pointer; }
.btn-delete { background: var(--danger); color: white; padding: 8px 15px; border-radius: 6px; text-decoration: none; font-weight: bold; }

/* ==========================================================
   6. NOVAS PÁGINAS: LOGIN, CARRINHO E CHECKOUT (MANTIDO)
   ========================================================== */
.login-box {
    text-align: center;
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.login-box h2 { margin-bottom: 20px; color: var(--primary); }

.cart-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img { width: 80px; height: 80px; object-fit: contain; }

.btn-checkout {
    background: var(--success);
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-checkout:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ==========================================================
   7. DIVERSOS E RESPONSIVIDADE (MANTIDO)
   ========================================================== */
.whatsapp-btn {
    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;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

@media (max-width: 768px) {
    header img { height: 40px; }
    .vitrine { grid-template-columns: 1fr; }
    nav a span { display: none; }
    .admin-container { margin: 10px; padding: 15px; overflow-x: auto; }
    .admin-table { font-size: 0.75rem; }
    .admin-grid { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; text-align: center; }
}

/* ==========================================================
   8. ESTILO PÁGINA DE CADASTRO (ADICIONADO - SEM REMOVER NADA)
   ========================================================== */
.cadastro-container {
    max-width: 650px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cadastro-container h2 {
    color: var(--primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.cadastro-container h4 {
    margin: 20px 0 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cadastro-final {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 20px;
}

.btn-cadastro-final:hover {
    background: var(--primary-hover);
}