body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e0e7ef 0%, #f7f7f7 100%);
  min-height: 100vh;
  padding-top: 110px;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: url('https://d1muf25xaso8hp.cloudfront.net/https://img.criativodahora.com.br/2024/01/criativo-65b4471130f0eMjYvMDEvMjAyNCAyMGg1OA==.jpg?w=1000&h=&auto=compress&dpr=1&fit=max') center center/cover no-repeat;
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  filter: sepia(0.18) brightness(1.08) saturate(0.7);
}
header {
  background: linear-gradient(90deg, #2d3a4b 0%, #4e54c8 100%);
  color: #fff;
  padding: 1rem 0 0.5rem 0;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
  border-bottom: 4px solid #f7b32b;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}
.produto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  padding: 1.5rem 1rem 1.2rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #e0e7ef;
  position: relative;
}
.produto:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  border-color: #f7b32b;
}
.produto img {
  max-width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 2px solid #f7b32b;
  background: #f7f7f7;
}
.produto h2 {
  font-size: 1.15rem;
  margin: 0.5rem 0 0.2rem 0;
  color: #2d3a4b;
  font-weight: bold;
}
.produto p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.produto .preco {
  color: #4e54c8;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.produto .categoria {
  background: #f7b32b;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 5px;
  padding: 0.2rem 0.7rem;
  display: inline-block;
  margin-top: 0.2rem;
  letter-spacing: 1px;
}
.footer-content {
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #2d3a4b 0%, #4e54c8 100%);
  padding: 1.2rem 0 1.2rem 0;
  font-size: 1rem;
  margin-top: 2rem;
  letter-spacing: 1px;
  border-top: 4px solid #f7b32b;
}
.footer-content a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-content a:hover {
  color: #f7b32b;
}
footer {
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
}
.btn-agendar {
  margin-left: 2rem;
  background: linear-gradient(90deg, #f7b32b 0%, #4e54c8 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  transition: background 0.2s, color 0.2s;
  position: absolute;
  right: 2rem;
  top: 2rem;
}
.btn-agendar:hover {
  background: linear-gradient(90deg, #4e54c8 0%, #f7b32b 100%);
  color: #fff;
}
.btn-voltar-produtos {
  background: linear-gradient(90deg, #4e54c8 0%, #f7b32b 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 1rem;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-voltar-produtos:hover {
  background: linear-gradient(90deg, #f7b32b 0%, #4e54c8 100%);
  color: #fff;
}
.btn-remover-produto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
  margin-left: 0.3rem;
  height: auto;
  min-width: 0;
  width: 100%; /* NOVO: ocupa todo o espaço disponível do flex */
  max-width: 180px; /* igual ao btn-adicionar-produto */
  background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
  color: #fff;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}
.btn-remover-produto:hover {
  background: linear-gradient(90deg, #c0392b 60%, #e74c3c 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
}
.btn-adicionar-produto {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
  height: auto;
}
@media (max-width: 700px) {
  .btn-adicionar-produto {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    height: auto;
  }
  .btn-remover-produto {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    height: auto;
    max-width: 120px;
  }
}
/* Modal de imagem ampliada */
#img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
#img-modal .modal-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0; top: 0;
  background: transparent;
}
#img-modal .modal-img-content {
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.18);
  border: 2px solid #f7b32b;
}
#img-modal img {
  max-width: 70vw;
  max-height: 60vh;
  border-radius: 8px;
  margin-bottom: 1rem;
}
#img-modal .modal-close {
  color: #f7b32b;
}
#img-modal .modal-caption {
  color: #2d3a4b;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: bold;
}
.paginacao {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem 0;
  flex-wrap: wrap;
}
.btn-pagina {
  background: #fff;
  color: #4e54c8;
  border: 2px solid #f7b32b;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-weight: bold;
}
.btn-pagina.ativo, .btn-pagina:hover {
  background: #f7b32b;
  color: #fff;
  border-color: #4e54c8;
}
.agendamento-section {
  background: #f7f7f799; /* cor sólida com ainda mais transparência (60%) */
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin: 2.5rem auto 1rem auto;
  max-width: 900px;
  border: 2px solid #f7b32b;
  position: relative;
  z-index: 2;
}
.agendamento-section h2 {
  text-align: center;
  color: #2d3a4b;
  margin-bottom: 1.5rem;
  font-weight: bold;
}
.form-agendamento {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 700px;
  margin: 0 auto;
}
.form-agendamento label {
  font-weight: 500;
  color: #2d3a4b;
  font-size: 1.3rem;
}
.form-agendamento input,
.form-agendamento select,
.form-agendamento textarea {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  height: 2.2rem;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  box-sizing: border-box;
  border-radius: 6px;
}
.form-agendamento textarea {
  min-height: 110px;
  height: auto;
}
.form-agendamento button {
  background: linear-gradient(90deg, #f7b32b 0%, #4e54c8 100%);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.8rem 1.5rem;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}
.form-agendamento button:hover {
  background: linear-gradient(90deg, #4e54c8 0%, #f7b32b 100%);
}
@media (max-width: 700px) {
  .form-agendamento button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}
.header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
}
.logo-area {
  display: flex;
  align-items: center;
  min-width: 80px;
}
.logo-img {
  height: 38px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
.titulo-area {
  flex: 1;
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  margin-left: 0.7rem;
}
.produto-qtd, .servico-qtd {
  width: 48px !important;
  min-width: 40px;
  max-width: 60px;
  padding: 0.3rem 0.2rem;
  font-size: 1rem;
  margin-left: 0.3rem;
}
.btn-remover-produto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
  margin-left: 0.3rem;
  height: auto;
  min-width: 0;
  width: 100%; /* NOVO: ocupa todo o espaço disponível do flex */
  max-width: 180px; /* igual ao btn-adicionar-produto */
  background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
  color: #fff;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}
.btn-remover-produto:hover {
  background: linear-gradient(90deg, #c0392b 60%, #e74c3c 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
}
.btn-adicionar-produto {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
  height: auto;
}
@media (max-width: 700px) {
  .btn-adicionar-produto {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    height: auto;
  }
  .btn-remover-produto {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    height: auto;
    max-width: 120px;
  }
}
@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }
  header {
    padding: 0.7rem 0 0.3rem 0;
    font-size: 1.1rem;
  }
  .logo-img {
    height: 28px;
    max-width: 60px;
  }
  .titulo-area {
    font-size: 1rem;
    margin-left: 0.3rem;
  }
  .btn-agendar, .btn-voltar-produtos {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  .produtos {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }
  .agendamento-section {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  header {
    font-size: 1.2rem;
    padding: 1.2rem 0 0.7rem 0;
  }
  .btn-agendar {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    right: 0.5rem;
    top: 1rem;
  }
  .produtos {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .produto {
    padding: 1rem 0.5rem 0.8rem 0.5rem;
  }
  .agendamento-section {
    padding: 1rem 0.2rem;
  }
  .form-agendamento label,
  .form-agendamento input,
  .form-agendamento select,
  .form-agendamento textarea {
    font-size: 0.98rem;
  }
  .form-agendamento button {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .footer-content {
    font-size: 0.95rem;
    padding: 0.7rem 0;
  }
}
@media (max-width: 400px) {
  .container, .agendamento-section {
    padding: 0 0.1rem;
  }
  .form-agendamento label,
  .form-agendamento input,
  .form-agendamento select,
  .form-agendamento textarea {
    font-size: 0.92rem;
  }
}
.linha-produto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.linha-produto .produto-select {
  flex: 2;
  min-width: 0;
}
.linha-produto .produto-qtd {
  flex: 0 0 70px;
  min-width: 48px;
  max-width: 70px;
}
.linha-produto .btn-remover-produto {
  flex: 1 1 150px;
  max-width: 150px;
  min-width: 100px;
  width: 100%;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  height: auto;
  margin-left: 0.3rem;
}
@media (max-width: 700px) {
  .linha-produto .btn-remover-produto {
    max-width: 100px;
    min-width: 70px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}
