/*
Theme Name: Novo Cardapio Filho
Theme URI: https://novocardapio.com.br/
Description: Tema filho personalizado do Hello Elementor
Author: Mario
Author URI: https://novocardapio.com.br/
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* ---------------------- RESET BÁSICO ---------------------- */

html { }
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
}

/* ---------------------- TIPOGRAFIA ---------------------- */
p {
  text-align: left;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.125rem);
  line-height: 1.4;
  margin-bottom: 1rem;
}
h1.home {
  color: #fff;
  text-align: left;
  font-size: 2.5rem !important;
  line-height: 1.3;
}
p.home {
  color: #ffc;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  text-align: center;
  font-weight: 600;
  color: #000;
  margin: 1.2em 0 0.1em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 1.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 1.1rem + 0.8vw, 1.875rem); }
h4 { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 0.9rem + 0.4vw, 1.25rem); }
h6 { font-size: clamp(1rem, 0.85rem + 0.3vw, 1.125rem); font-weight: 500; }

h3, h4, h5 {
  letter-spacing: normal !important;
}

/* ---------------------- MENU DE CATEGORIAS ---------------------- */
#menu-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

#menu-categorias button {
  background-color: orange;
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* ---------------------- SEÇÃO DE CATEGORIA ---------------------- */
.categoria {
  margin: 40px 0;
}

.categoria h2 {
  color: white;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

/* ---------------------- GRID DE CARDS ---------------------- */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* ---------------------- CARD INDIVIDUAL ---------------------- */
.card {
  display: flex;
  flex-direction: row;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 15px;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;	
}

/* ---------------------- ÁREA DA IMAGEM ---------------------- */
.card-img-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  flex-shrink: 0;
}

.card-img-area img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
}

.card-img-area .valor {
  margin-top: 10px;
  font-weight: bold;
  color: #000;
  text-align: center;
  font-size: 16px;
}

/* ---------------------- CONTEÚDO DO CARD ---------------------- */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card-content h3 {
  color: #000;
  font-size: 18px;
  margin: 0 0 5px;
  text-align: center;
}

.card-content p.codigo {
  color: #333;
  font-size: 12px;
  margin: 2px 0;
  text-align: center;
}

.card-content p.descricao {
  color: black;
  font-size: 14px;
  margin: 5px 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-content button {
  align-self: flex-end;
  background-color: orange;
  border: none;
  padding: 6px 12px;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---------------------- SELECT DE VARIAÇÕES ---------------------- */
.card-content select.variacoes {
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.card-content select.variacoes:focus {
  outline: none;
  border-color: orange;
  box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

/* ===============================================
   ESTILO GERAL DO CARRINHO FLUTUANTE E MODAL
   Autor: Mario + GPT
   =============================================== */
/* Ícone do carrinho (bolha fixa) */
#cart-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #FD5C05;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
#cart-icon span { font-weight: 700; }

.cart-hidden { display: none !important; }

/* Modal de fundo */
#cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  padding: 20px;
  overflow-y: auto;
}

/* Caixa do carrinho */
.cart-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 70vh;
}

/* Close button */
.fechar-modal {
  position: absolute;
  top: 14px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #ffc;
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 6px 20px;
  border-bottom: 1px solid #eee;
}
.cart-header h2 {
  margin: 0;
  font-size: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-actions-top { display:flex; gap:8px; align-items:center; }

/* Body */
.cart-body {
  padding: 12px 20px 24px 20px;
  overflow-y: auto;
}

/* Area de itens */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

/* Cart item card */
.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg,#fafafa,#fff);
  border: 1px solid #f0f0f0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}

/* Optional image placeholder */
.cart-item .thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f3f3f3 url('') center/cover no-repeat;
  flex-shrink: 0;
}

/* Content */
.cart-item .info {
  flex: 1;
}
.cart-item .info strong { display:block; font-size:15px; margin-bottom:6px; }
.cart-item .info small { color:#777; display:block; }

/* Controls column (qnt, obs, remove) */
.cart-item .controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 100px;
}

/* Quant control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px;
  background: #f5f5f5;
  border: 1px solid #e7e7e7;
}
.qty-control button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
}
.qty-control .qnt {
  min-width: 26px;
  text-align: center;
  font-weight:700;
}

/* Obs por item (input) */
.obs-item {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  font-size: 13px;
}

/* Remove button */
.remove-item {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

/* Mesa destaque */
.mesa-destaque {
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px;
  margin-top:6px;
  background: linear-gradient(90deg,#fffaf0,#ffffff);
  border-radius: 10px;
  border: 1px solid #ffeecf;
}
.mesa-label { font-weight:600; font-size:14px; color:#444; }
.mesa-destaque input {
  width: 80px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align:center;
  font-weight:700;
}

/* Campos do cliente */
.cliente-campos { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.campo { display:flex; flex-direction:column; gap:6px; }
.campo span { font-size:13px; color:#555; }
.campo input { padding:10px; border-radius:8px; border:1px solid #e6e6e6; }
.campo.full input { width:100%; }

.alerta { color:#c0392b; font-size:12px; margin-top:4px; min-height:16px; }

/* Footer */
.cart-footer {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 12px 18px;
  border-top: 1px solid #eee;
  background: linear-gradient(180deg,#fff,#fbfbfb);
}
.total-wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.total-label { font-size:14px; color:#333; font-weight:700; }
.total-valor { font-size:18px; font-weight:800; color:#111; }

/* Buttons */
.footer-buttons { display:flex; gap:10px; margin-top:6px; }
.btn { padding:10px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:700; }
.btn:disabled { opacity:0.6; cursor:not-allowed; }
.btn-primary { background:#28a745; color:white; }
.btn-outline { background:transparent; border:1px solid #ddd; color:#333; }
.btn-small { padding:6px 8px; border-radius:8px; font-size:13px; }

/* Danger */
.btn-danger { background:#ff6b6b; color:white; border:none; }

/* botao piscante adicionar ao carrinho */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.blinking {
  animation: blink 1s infinite;
}
/* comanda.css */
/* Estilos básicos — adapte cores conforme o tema do seu site */
.comanda-icon {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #ffc107;
  color: #000;
  padding: 10px;
  border-radius: 10%;
  cursor: pointer;
  z-index: 9999;
  font-size: 24px;
}
.comanda-icon span {
  background: red;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 14px;
  vertical-align: top;
  margin-left: 5px;
}
.comanda-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}
.comanda-hidden { display: none; }
.comanda-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 350px;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 18px;
}
.comanda-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.qr-container {
  margin: 15px 0;
  text-align: center;
}
.fechar-btn {
  background: #28a745;
  color: #fff;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Responsivo */
@media (max-width:420px){
	h1.home {
  color: #fff;
  text-align: left;
  font-size: 2.0rem !important;
  line-height: 1.2;
}
  .cart-box { max-width: 420px; margin: 0 6px; border-radius: 12px; }
  .cart-item { padding:10px; gap:8px; }
  .cart-item .thumb { width:54px; height:54px; }
  .controls { min-width: 88px; }
  .total-valor { font-size:16px; }
}
.comanda-panel { width: 96%; }


/* ---------------------- RESPONSIVIDADE ---------------------- */
@media (max-width: 700px) {
		h1.home {
  color: #fff;
  text-align: left;
  font-size: 2.0rem !important;
  line-height: 1.2;
}
  .card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .card-img-area {
    width: 100px;
  }

  .card-img-area img {
    width: 100px;
    height: 100px;
  }

  .card-img-area .valor {
    font-size: 14px;
  }

  .card-content {
    padding-left: 10px;
  }

  .card-content button {
    align-self: flex-end;
  }
}
