.nav a[aria-current="page"] { color: var(--blue); border-color: var(--cyan); }

.cat-intro { padding-block: 44px 8px; }
.cat-intro h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; }
.cat-intro .lead { margin-top: 14px; max-width: 36em; color: var(--muted); font-size: 15.5px; }

.cat-intro .note {
  margin-top: 14px;
  max-width: 44em;
  font-size: 12.5px;
  color: var(--muted);
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
}

.cat-list { padding-block: 28px 56px; }

.produtos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.produto {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .18s ease;
}
.produto:hover { box-shadow: 0 10px 24px rgba(11, 71, 201, .12); }

.produto .slot {
  aspect-ratio: var(--foto-ratio);
  background: var(--bg-soft);
  border-radius: 0;
  border-width: 0 0 1.5px 0;
  position: relative;
  overflow: hidden;
}

.produto .slot img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.produto .info { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.produto h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.produto .desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

.produto .preco { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; }
.produto .preco.consulte { font-weight: 500; color: var(--muted); }

.produto .btn { width: 100%; justify-content: center; margin-top: 10px; border-radius: 10px; }

.modal {
  position: fixed;
  border: 0;
  padding: 0;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(6, 35, 111, .35);
}
.modal::backdrop { background: rgba(6, 35, 111, .55); }

body:has(.modal[open]) { overflow: hidden; }

.modal-fechar {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(6, 35, 111, .25);
}
.modal-fechar:hover { background: var(--bg-soft); }

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.modal-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  min-height: 260px;
  overflow: hidden;
}
.modal-foto img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(70vh, 560px);
  object-fit: cover;
  object-position: center;
}

.modal-info { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 32px; }
.modal-info h2 { font-size: 1.8rem; font-weight: 600; padding-right: 30px; }
.modal-desc { color: var(--muted); font-size: 15px; line-height: 1.55; }

.modal-opcoes { display: flex; flex-direction: column; gap: 6px; }
.modal-opcoes[hidden] { display: none; }
.modal-opcoes label { font-size: 13px; font-weight: 600; }
.modal-opcoes select {
  width: 100%;
  font: 400 14px var(--font);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.modal-valor { font-size: 1.15rem; font-weight: 700; color: var(--blue); }

.modal-obs, .modal-aviso {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.modal-obs { border-left: 3px solid var(--blue); border-radius: 4px 8px 8px 4px; }

.modal-info .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 720px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-foto { min-height: 220px; }
  .modal-foto img { max-height: 40vh; }
  .modal-info { padding: 22px 20px 24px; }
  .modal-info h2 { font-size: 1.5rem; }
  .modal-info .btn { align-self: stretch; justify-content: center; }
}

@media (max-width: 560px) {
  .produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .produto .info { padding: 12px; }
  .produto h3 { font-size: 14px; }
  .produto .desc { font-size: 12px; }
  .produto .preco { font-size: 12.5px; }
  .produto .btn { font-size: 12px; padding: 12px 10px; }
}

.busca { margin-bottom: 22px; }
.busca input {
  width: 100%;
  max-width: 420px;
  font: 400 14px var(--font);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.busca input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.busca-vazio { color: var(--muted); font-size: 14px; }
.busca-vazio[hidden] { display: none; }
.produto[hidden] { display: none; }