@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

/* RESET */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
}

/* FUNDO */
body {
  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

/* CONTAINER */
.container {
  max-width: 520px;
  margin: auto;
  padding: 20px;
}

/* TÍTULOS */
h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.sub {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* CARDS */
.card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}

/* TEXTO */
.card b {
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* PREÇO */
.preco {
  font-weight: 800;
  margin: 8px 0;
}

/* INPUTS */
input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

/* BOTÕES */
button {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn {
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  width: 100%;
}

/* BOTÃO PADRÃO */
.btn-add {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* BOTÃO WHATSAPP */
.btn-whats {
  background: #25d366;
  color: #000;
  margin-top: 10px;
}

/* ============================= */
/* ===== CATEGORIAS (CARROSSEL) */
/* ============================= */

.categorias-carousel {
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.categorias-carousel::-webkit-scrollbar {
  display: none;
}

#categorias {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

#categorias .btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.25);
  white-space: nowrap;
}

#categorias .btn.active {
  background: #ffb703;
  color: #000;
}

/* TOTAL */
.total {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ========================= */
/* ===== BOTÕES ADM ======= */
/* ========================= */

.acoes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn.editar {
  background: #ffb703;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn.excluir {
  background: #e63946;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn.editar:hover,
.btn.excluir:hover,
.btn-add:hover,
.btn-whats:hover {
  opacity: 0.85;
}

/* ========================= */
/* ===== IMPRESSÃO ======== */
/* ========================= */

@media print {
  body * {
    visibility: hidden;
  }

  #area-impressao,
  #area-impressao * {
    visibility: visible;
  }

  #area-impressao {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    font-family: monospace;

    /* 🔥 AUMENTO FORTE PARA TM-T20 */
    font-size: 28px;
    font-weight: 900;
    line-height: 1.7;
    letter-spacing: 1px;
    color: #000;
  }

  #area-impressao h2,
  #area-impressao h3 {
    font-size: 28px;
    font-weight: 900;
  }
}
@media print {
  html, body {
    font-size: 28px !important;
  }

  #area-impressao {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.7 !important;
    width: 80mm !important;
    color: #000 !important;
  }

  #area-impressao * {
    font-size: 28px !important;
    font-weight: 900 !important;
  }
}
