/* Carrinho -> WhatsApp — estilos Zapi */

/* Botao flutuante contador */
.pedido-fab {
  position: fixed;
  bottom: 116px; /* 2rem WhatsApp + 58px altura + 26px gap */
  right: 2rem;   /* alinhado horizontalmente com WA float */
  z-index: 1040;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDC525, #e0ab0f);
  color: #1a1a2e;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(224, 171, 15, .5);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pedido-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(224, 171, 15, .7);
  color: #1a1a2e;
}
.pedido-fab-icon { font-size: 22px; line-height: 1; }
.pedido-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc3545;
  color: #fff;
  border-radius: 12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Card adicionar-pedido no produto */
.add-pedido-card {
  background: #fff;
  border: 2px solid #FDC525;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}
.add-pedido-titulo {
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-pedido-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.add-pedido-linha label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #3B3D46;
  margin-bottom: 4px;
}
.add-pedido-linha input,
.add-pedido-linha select {
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: .95rem;
  background: #fff;
}
.add-pedido-linha input.add-pedido-qtd { width: 80px; text-align: center; }
.add-pedido-linha select.add-pedido-cor { min-width: 180px; }
.btn-add-pedido {
  background: linear-gradient(135deg, #FDC525, #e0ab0f);
  color: #1a1a2e;
  border: none;
  padding: 10px 22px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 3px 10px rgba(224, 171, 15, .35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-add-pedido:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(224, 171, 15, .5);
}
.add-pedido-nota {
  font-size: .8rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* Pagina /meu-pedido/ */
.pedido-page { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.pedido-page h1 { color: #1a1a2e; margin-bottom: 8px; }
.pedido-page .sub { color: #666; margin-bottom: 24px; }
.pedido-tabela { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pedido-tabela thead { background: #1a1a2e; color: #FDC525; }
.pedido-tabela th, .pedido-tabela td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
.pedido-tabela th { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.pedido-tabela tbody tr:last-child td { border-bottom: none; }
.pedido-item-det { font-size: .8rem; color: #666; margin-top: 2px; }
.pedido-link { color: #e0ab0f; font-weight: 600; text-decoration: none; }
.pedido-link:hover { color: #1a1a2e; text-decoration: underline; }
.pedido-remover {
  background: #dc3545;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.pedido-remover:hover { background: #a02330; }

.pedido-form { background: #fff; border-radius: 8px; padding: 24px; margin-top: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pedido-form h2 { color: #1a1a2e; margin-bottom: 16px; font-size: 1.3rem; }
.pedido-form .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pedido-form .field { flex: 1; min-width: 200px; }
.pedido-form label { display: block; font-weight: 600; color: #3B3D46; margin-bottom: 4px; font-size: .9rem; }
.pedido-form input, .pedido-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.pedido-form textarea { resize: vertical; min-height: 80px; }
.btn-pedido-enviar {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
}
.btn-pedido-enviar:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, .55); }
.btn-pedido-enviar:disabled { background: #999; cursor: not-allowed; box-shadow: none; transform: none; }
.pedido-status { margin-top: 12px; font-weight: 600; color: #1a1a2e; }

@media (max-width: 600px) {
  .add-pedido-linha { flex-direction: column; align-items: stretch; }
  .add-pedido-linha input.add-pedido-qtd { width: 100%; }
  .pedido-tabela { font-size: .9rem; }
  .pedido-tabela th, .pedido-tabela td { padding: 10px 8px; }
  .pedido-fab { bottom: 82px; right: 1rem; width: 50px; height: 50px; } /* 1rem WA + 50px + 16px gap */
  .pedido-fab-icon { font-size: 18px; }
  .pedido-fab-badge { min-width: 18px; height: 18px; font-size: 10px; }
}
