/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffd862;
  /* mostarda */
}

/* =========================
   LOGO
========================= */
.logo {
  text-align: center;
  padding: 20px 0 8px;
}

.logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* =========================
   TÍTULO
========================= */
h1 {
  text-align: center;
  color: #fff;
  margin: 8px 0 16px;
  font-size: 22px;
}

/* =========================
   CONTAINERS
========================= */
.menu,
.cliente,
.footer {
  background: #ffffff;
  border-radius: 16px;
  padding: 15px;
  margin: 12px auto;
  max-width: 600px;
}

/* =========================
   ITEM DO CARDÁPIO
========================= */
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #fff;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}


.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* =========================
   FOTO DO PRODUTO
========================= */
.foto-produto {
  min-width: 85px;
  min-height: 85px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* =========================
   INFORMAÇÕES DO ITEM
========================= */
.info {
  flex: 1;
}

.info h3 {
  font-size: 15px;
  margin: 0;
  font-weight: bold;
}

.info .descricao {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}

.info strong {
  color: #e67e22;
  font-size: 16px;
  margin: 4px 0;
  font-weight: bold;
}

.preco-dinamico {
  font-size: 13px;
  font-weight: bold;
  margin-top: 4px;
}


/* =========================
   CONTROLE DE QUANTIDADE
========================= */
.qtd.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qtd.vertical button {
  width: 34px;
  height: 34px;
  border: none;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.qtd.vertical button:active {
  transform: scale(0.9);
}

.qtd.vertical button:first-child {
  background: #25D366;
  color: #fff;
}

.qtd.vertical button:last-child {
  background: #e74c3c;
  color: #fff;
}

.valor {
  font-weight: bold;
  font-size: 14px;
}

/* =========================
   CLIENTE
========================= */
.cliente input,
.cliente textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.cliente textarea {
  resize: none;
  height: 80px;
}

/* =========================
   FOOTER / TOTAL
========================= */
.footer {
  position: sticky;
  bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.footer p {
  font-weight: 700;
  color: #222;
  font-size: 20px;
  text-align: center;
}

/* BOTÃO FINALIZAR */
.footer button {
  width: 100%;
  padding: 15px;
  background: #25D366;
  border: none;
  color: #fff;
  font-size: 17px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* BOTÃO LIMPAR */
.btn-limpar {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  background: #e74c3c;
  border: none;
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-limpar:hover {
  background: #c0392b;
}

/* =========================
   RESPONSIVO (CELULAR)
========================= */
@media (max-width: 480px) {

  h1 {
    font-size: 20px;
  }

  .item {
    align-items: flex-start;
  }

  .foto-produto {
    width: 70px;
    height: 70px;
  }

  .info h3 {
    font-size: 14px;
  }

  .info .descricao {
    font-size: 12px;
  }

  .footer button {
    font-size: 16px;
  }

  .credito {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
    color: #555;
    opacity: 0.8;
  }

  .pagamento {
    text-align: center;
    font-size: 16;
  }

  .cliente {
    text-align: center;
    font-size: 16;
  }

  .pagamento label {
    transform: scale(1.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px;
  }

  .categoria {
    margin-top: 18px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-left: 6px solid #ff9800;
    border-radius: 10px;
    font-weight: 600;
  }


  .promo {
    margin-top: 15px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    animation: pulse 1.5s infinite;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

}


.aviso {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ff0000f8;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 90%;
  text-align: center;
}


.aviso.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================
   AVISO HORÁRIO DE FUNCIONAMENTO
========================= */
.aviso-horario {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 16px 20px;
  margin: 12px auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
  animation: slideInDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.aviso-horario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

.aviso-conteudo {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.aviso-icon {
  font-size: 28px;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}

.aviso-texto {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aviso-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.aviso-detalhes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.aviso-horario-info {
  color: rgba(255, 255, 255, 0.95);
}

.aviso-horario-info strong {
  font-weight: 700;
  color: #ffffff;
}

.aviso-dias-info {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

@media (max-width: 480px) {
  .aviso-horario {
    margin: 10px 8px;
    padding: 14px 12px;
  }

  .aviso-conteudo {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .aviso-icon {
    font-size: 24px;
  }

  .aviso-titulo {
    font-size: 14px;
  }

  .aviso-detalhes {
    gap: 3px;
    font-size: 11px;
  }
}

.menu-topo {
  position: sticky;
  top: 0;
  background: #ffffff;
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  z-index: 9999;
}

.menu-topo a {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #ffb703;
  color: #000;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
}

.menu-topo a:hover,
.menu-topo a.ativo {
  background: #fb8500;
  color: #fff;
}


html {
  scroll-behavior: smooth;
}

.destaques {
  margin: 15px;
}

/* accessibility helper: visually hidden but available to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ensure product images cover box and avoid inline gap */
.foto-produto {
  display: block;
  object-fit: cover;
}

/* focus styles for keyboard users */
:focus {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

/* fix missing unit */
.pagamento {
  text-align: center;
  font-size: 16px;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 95%;
  max-height: 90%;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  display: block;
}

/* =========================
   PASTEL CUSTOMIZADO (ABA COMPACTA)
========================= */
.custom-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 15px auto;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.base-info {
  background: #fff3cd;
  border-left: 4px solid #ffb703;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.base-info p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

/* Toggle para Monte Seu Pastel */
.toggle-custom {
  cursor: pointer;
  user-select: none;
  padding: 12px;
  margin: 0 -15px;
  background: #f8f9fa;
  border-radius: 14px 14px 0 0;
  transition: background 0.3s ease;
  text-align: center;
  animation: pulsarSuave 2s ease-in-out infinite;
}

.toggle-custom:hover {
  background: #e9ecef;
  animation: none;
}

/* Subtítulo de clique */
.subtitulo-clique {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: -8px 0 12px 0;
  font-style: italic;
}

/* Lista de itens do carrinho (exibida abaixo do total) */
.cart-list {
  list-style: none;
  margin: 8px 0 12px 0;
  padding: 6px 10px;
  max-height: 140px;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cart-list li {
  font-size: 13px;
  color: #333;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #eee;
}

.cart-list li.empty {
  color: #777;
  text-align: center;
  border-bottom: none;
}

.cart-list .name {
  flex: 1;
}

.cart-list .subtotal {
  white-space: nowrap;
  color: #555;
}

/* Animação de pulsada suave */
@keyframes pulsarSuave {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.custom-card-hidden {
  display: none;
}

.custom-card-visible {
  display: flex;
}

.custom-base,
.custom-toppings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-base label,
.custom-toppings label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.base-options {
  display: flex;
  gap: 12px;
}

.base-options .option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f9f9f9;
}

.base-options .option input {
  cursor: pointer;
  accent-color: #25D366;
}

.base-options .option input:checked~span:first-of-type {
  font-weight: bold;
  color: #25D366;
}

.base-options .option:has(input:checked) {
  border-color: #25D366;
  background: #e8f5e9;
}

.option span:first-of-type {
  font-size: 13px;
}

.option .price {
  font-size: 12px;
  color: #e67e22;
  font-weight: bold;
}

.toppings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topping {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 12px;
}

.topping:hover {
  background: #f0f0f0;
}

.topping input {
  cursor: pointer;
  accent-color: #25D366;
}

.topping input:checked~span:first-of-type {
  font-weight: bold;
  color: #25D366;
}

.topping .price {
  margin-left: auto;
  font-size: 11px;
  color: #e67e22;
  font-weight: bold;
}

.custom-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eee;
  gap: 12px;
}

.price-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.price-display strong {
  font-size: 16px;
  color: #e67e22;
  font-weight: bold;
}

.btn-add-custom {
  padding: 8px 16px;
  background: #25D366;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-add-custom:hover {
  background: #20b856;
}

.btn-add-custom:active {
  transform: scale(0.95);
}

.clique-aqui {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-top: -6px;
}
/* =========================
   LOJA FECHADA - MODAL MINIMALISTA
========================= */
#loja-fechada {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

#loja-fechada.show {
  opacity: 1;
  visibility: visible;
}

#loja-fechada .modal-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#loja-fechada .icon-fechada {
  font-size: 80px;
  margin-bottom: 20px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

#loja-fechada h2 {
  font-size: 28px;
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 700;
}

#loja-fechada .subtitulo {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  font-weight: 500;
}

#loja-fechada .horario-info {
  background: linear-gradient(135deg, #fff8f0 0%, #fffbf7 100%);
  padding: 25px;
  border-radius: 14px;
  border: 2px solid #ff9800;
  margin: 25px 0;
}

#loja-fechada .horario-titulo {
  font-size: 11px;
  color: #ff9800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

#loja-fechada .horario-detalhe {
  font-size: 32px;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 15px;
}

#loja-fechada .dias-funcionamento {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  line-height: 1.8;
}

#loja-fechada .mensagem-volta {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
  font-style: italic;
  line-height: 1.6;
}

#loja-fechada .btn-fechar-modal {
  margin-top: 30px;
  padding: 12px 32px;
  background: #ff9800;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

#loja-fechada .btn-fechar-modal:hover {
  background: #fb8500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

#loja-fechada .btn-fechar-modal:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  #loja-fechada .modal-content {
    padding: 40px 25px;
  }

  #loja-fechada h2 {
    font-size: 24px;
  }

  #loja-fechada .icon-fechada {
    font-size: 64px;
  }

  #loja-fechada .horario-detalhe {
    font-size: 28px;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@media (max-width: 480px) {
  #loja-fechada {
    padding: 30px 15px;
    margin: 15px 8px;
  }

  #loja-fechada h2 {
    font-size: 26px;
  }

  #loja-fechada .icon-fechada {
    font-size: 48px;
  }

  #loja-fechada .horario-detalhe {
    font-size: 20px;
  }
}