/* =========================================
   ARQUIVO GLOBAL DE ESTILOS (style.css)
   Padrão Dark Mode Premium
   ========================================= */

:root {
    --bg-color: #121212;
    --card-color: #1e1e1e;
    --text-color: #ffffff;
    --accent-color: #00d35c;
    --secondary-text: #a0a0a0;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    padding-bottom: 90px;
}

.container { padding: 20px; }

/* --- Cabeçalhos --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    font-size: 20px;
}
header a { color: var(--text-color); text-decoration: none; }

/* --- Catálogo: Categorias --- */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}
.categories-scroll::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

.cat-badge {
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #444;
    color: var(--text-color);
    white-space: nowrap;
    font-weight: 500;
}
.cat-badge.active {
    background: var(--text-color);
    color: #000;
}

/* --- Catálogo: Busca --- */
.search-bar {
    background: var(--card-color);
    border-radius: 12px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    margin-left: 10px;
    font-size: 16px;
    outline: none;
}

/* --- Catálogo: Cartão de Produto --- */
.product-card {
    background: var(--card-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    transition: 0.2s;
}
.product-card:active { border-left-color: var(--accent-color); }
.prod-info h3 { margin: 0 0 5px 0; font-size: 16px; text-transform: uppercase; }
.prod-info span { color: var(--accent-color); font-weight: bold; font-size: 16px; }

/* --- Formulários --- */
.form-group {
    background: var(--card-color);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-top: 20px;
}
.form-input, .form-select {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    margin-bottom: 20px;
}
.form-select { appearance: none; }

/* --- Botões Principais --- */
.btn-primary {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* --- Menu Inferior Fixo --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #181818;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #2a2a2a;
    z-index: 1000;
}
.bottom-nav a { color: var(--secondary-text); font-size: 22px; text-decoration: none; }
.bottom-nav a.active { color: var(--accent-color); }

/* --- Botão Flutuante de Cobrar (Carrinho) --- */
.btn-floating-checkout {
    position: fixed;
    bottom: 80px; /* Fica exatamente acima do menu inferior */
    left: 50%;
    transform: translateX(-50%); /* Truque matemático para centralizar perfeitamente */
    width: calc(100% - 40px); /* Ocupa a tela toda deixando margens laterais */
    max-width: 400px;
    background-color: var(--accent-color);
    color: #000;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none !important; /* Remove o sublinhado roxo */
    box-shadow: 0 4px 15px rgba(0, 211, 92, 0.4);
    z-index: 999; /* Garante que fique por cima da lista de produtos */
}

/* --- Switch Toggle (Interruptor) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* Esconde o checkbox original */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* O fundo do switch */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444; /* Cor desativado */
    transition: .4s;
    border-radius: 34px;
}

/* A bolinha branca */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Quando o input está checado, muda o fundo para verde */
input:checked + .slider {
    background-color: var(--accent-color);
}

/* Quando checado, move a bolinha para a direita */
input:checked + .slider:before {
    transform: translateX(24px);
}