/* =========================================
   VARIÁVEIS (Edite as cores aqui)
   ========================================= */
:root {
    --primary: #007bff;
    /* Azul principal */
    --success: #28a745;
    /* Verde botão */
    --danger: #dc3545;
    /* Vermelho excluir */
    --dark: #333333;
    /* Cinza escuro */
    --light: #f4f4f4;
    /* Fundo padrão */
    --white: #ffffff;
    --text: #333333;
    --border: #dddddd;
    --radius: 8px;
    /* Arredondamento dos cantos */
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================
   LAYOUT E UTILITÁRIOS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Grid Responsivo Simples */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
    min-width: 300px;
    margin-bottom: 20px;
}

.col-50 {
    width: 50%;
    padding: 0 10px;
}

/* Para PC */

@media (max-width: 768px) {

    .col,
    .col-50 {
        width: 100%;
        min-width: 100%;
        display: block;
    }

    .d-flex {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   COMPONENTES
   ========================================= */
/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    border: 1px solid var(--text);
    background: transparent;
}

/* Navbar */
nav.navbar {
    background: var(--dark);
    padding: 15px 0;
    color: var(--white);
    margin-bottom: 30px;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav a {
    color: #ccc;
}

nav a:hover {
    color: var(--white);
}

/* Cards (Produtos) */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card img {
    border-radius: var(--radius);
    margin-bottom: 15px;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.price {
    color: var(--success);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Formulários */
input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: #eee;
    font-weight: bold;
}

/* Botão Whatsapp Flutuante */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   TEMA ESCURO (ADMIN)
   ========================================= */
body.admin-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.admin-theme .card,
body.admin-theme table,
body.admin-theme th {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

body.admin-theme nav.navbar {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
}

body.admin-theme input,
body.admin-theme textarea {
    background-color: #2b2b2b;
    border-color: #444;
    color: white;
}

body.admin-theme label {
    color: #ccc;
}

body.admin-theme td {
    border-bottom: 1px solid #333;
}

