/* Catálogo das clientes */
/* Rótulo pequeno: texto café legível + bolinha rosa da marca */
.cor-rosa { color: var(--cafe-2); margin: 0 0 .35rem; display: inline-flex; align-items: center; gap: .45rem; }
.cor-rosa::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rosa); flex: none; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 20;
  /* Vidro: o conteúdo passa por baixo, desfocado */
  background: rgba(250, 247, 245, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(43, 36, 34, .07);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topo { background: var(--creme); }
}
html { scroll-padding-top: 80px; } /* âncoras não ficam escondidas atrás do topo */
.topo-dentro {
  max-width: var(--largura); margin: 0 auto; padding: .55rem 16px;
  display: flex; align-items: center; gap: 1rem;
}
.topo-logo img { width: 112px; height: auto; }
.topo-local { color: var(--cafe-2); flex: 1; }
.btn-pequeno { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }

/* Hero */
.hero {
  background:
    radial-gradient(600px 360px at 12% 20%, rgba(201, 122, 138, .22), transparent 70%),
    var(--cafe);
  color: #F4ECE8;
}
.hero-dentro {
  max-width: var(--largura); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 16px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero-kicker { color: var(--rosa); margin: 0 0 1rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 1rem; text-wrap: balance;
}
.hero h1 em { color: var(--rosa); font-style: italic; }
.hero-sub { font-size: 1.08rem; color: #D9CBC6; max-width: 36ch; margin: 0 0 1.75rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-destaque:empty { display: none; }
.cartao-destaque {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden;
  background: var(--verde); color: #fff; border-radius: 24px; box-shadow: var(--sombra-forte);
  text-decoration: none;
}
.cartao-destaque .foto { aspect-ratio: 4 / 5; background: var(--verde-escuro); }
.cartao-destaque .foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao-destaque .txt { padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; }
.cartao-destaque .rotulo { color: #CFE0CC; }
.cartao-destaque h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; margin: 0 0 .5rem; }
.cartao-destaque .de { color: #CFE0CC; font-size: .9rem; text-decoration: line-through; }
.cartao-destaque .por { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.cartao-destaque .btn { margin-top: 1rem; align-self: flex-start; }

/* Catálogo */
.catalogo-dentro { max-width: var(--largura); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 16px; }
.catalogo-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.catalogo-cabeca h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; line-height: 1.1; }
.contagem { color: var(--suave); margin: 0; white-space: nowrap; }

.filtros { display: grid; gap: .9rem; margin-bottom: 1.75rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 0;
  background: var(--cafe); color: #F4ECE8; font-weight: 500; font-size: .92rem;
  transition: background-color .18s ease;
}
.chip span { opacity: .65; margin-left: .25rem; }
.chip:hover { background: var(--cafe-2); }
.chip[aria-pressed="true"] { background: var(--rosa); color: var(--cafe); font-weight: 600; }

.busca-linha { display: flex; gap: .6rem; }
.busca { position: relative; flex: 1; }
.busca svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--suave); }
.busca input, .ordenar select {
  width: 100%; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--linha);
  background: var(--branco); color: var(--cafe);
}
.busca input { padding: .6rem 1rem .6rem 2.6rem; }
.busca input:focus, .ordenar select:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-claro); }
.ordenar select { padding: .6rem 1rem; appearance: auto; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.carregando { color: var(--suave); }

/* Cartão: a sombra vive num pseudo-elemento e aparece só por opacidade (barato de animar). */
.peca {
  position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--branco);
  border: 1px solid var(--linha); border-radius: var(--raio);
  transition: transform .35s var(--ease);
}
.peca::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 1px 2px rgba(43, 36, 34, .06), 0 14px 32px rgba(43, 36, 34, .10);
  opacity: 0; transition: opacity .35s var(--ease);
}
.peca-foto {
  position: relative; aspect-ratio: 4 / 5; background: var(--creme-2); border: 0; padding: 0; width: 100%;
  display: block; overflow: hidden; border-radius: calc(var(--raio) - 1px) calc(var(--raio) - 1px) 0 0;
}
.peca-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
/* Hover só onde existe mouse: no celular ele "grudava" depois do toque. */
@media (hover: hover) and (pointer: fine) {
  .peca:hover { transform: translateY(-2px); }
  .peca:hover::after { opacity: 1; }
  .peca:hover .peca-foto img { transform: scale(1.03); }
}
/* Contorno sutil: foto clara não "derrete" no fundo branco */
.peca-foto img, .galeria-slide img, .detalhe-foto img, .cartao-destaque .foto img {
  outline: 1px solid rgba(0, 0, 0, .06); outline-offset: -1px;
}
.peca-foto { cursor: pointer; }
.selo { z-index: 2; }

/* Galeria de fotos (até 6): desliza com o dedo, setas no computador */
.galeria { position: relative; width: 100%; height: 100%; }
.galeria-trilho {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.galeria-trilho::-webkit-scrollbar { display: none; }
.galeria-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.galeria-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.peca:hover .galeria-slide img { transform: none; }
.galeria-seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--cafe);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(43, 36, 34, .06), 0 4px 14px rgba(43, 36, 34, .16);
  display: none; place-items: center; opacity: 0;
  transition: opacity .25s var(--ease), transform .35s var(--ease), background-color .18s ease;
}
.galeria-seta svg { width: 20px; height: 20px; }
.galeria-seta.ant { left: 8px; }
.galeria-seta.prox { right: 8px; }
.galeria-seta:hover { background: #fff; }
.galeria-seta:active { transform: translateY(-50%) scale(.92); transition-duration: .1s; }
/* Computador: setas aparecem ao passar o mouse ou ao navegar pelo teclado. Celular: arrastar. */
@media (hover: hover) and (pointer: fine) {
  .galeria-seta { display: grid; }
  .galeria:hover .galeria-seta, .galeria:focus-within .galeria-seta { opacity: 1; }
}
.galeria-pontos {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.galeria-pontos span {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 1px 3px rgba(0, 0, 0, .3);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.galeria-pontos span.ativo { opacity: 1; transform: scale(1.3); }
.cartao-destaque .foto, .detalhe-foto { position: relative; }
.detalhe-foto .galeria { aspect-ratio: 4 / 5; height: auto; }

.sem-foto {
  width: 100%; height: 100%; display: grid; place-content: center; gap: .4rem; text-align: center;
  background: linear-gradient(160deg, var(--creme-2), #EADBD5);
}
.sem-foto b { font-family: var(--serif); font-size: 2.6rem; color: var(--rosa); line-height: 1; }
.sem-foto small { color: var(--suave); letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
.selo {
  position: absolute; top: 12px; left: 12px; background: var(--branco); color: var(--cafe); border: 1.5px solid var(--rosa);
  border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(43, 36, 34, .12);
}
.peca-info { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.peca-cat { color: var(--suave); font-size: .7rem; }
.peca-nome { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; margin: 0; color: var(--verde); }
.peca-det { color: var(--suave); font-size: .9rem; margin: 0; }
.preco { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.preco .de { color: var(--suave); text-decoration: line-through; font-size: .88rem; }
.preco .por { color: var(--rosa); font-weight: 700; font-size: 1.25rem; } /* rosa passa como texto grande em negrito (>= 19px) */
.peca-acoes { margin-top: auto; padding-top: .75rem; display: grid; gap: .5rem; }
.link-detalhe {
  position: relative; background: none; border: 0; padding: .25rem 0; text-align: left; justify-self: start;
  color: var(--cafe-2); font-weight: 500; min-height: 32px;
  text-decoration: underline; text-decoration-color: rgba(74, 58, 55, .35); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .18s ease, transform .35s var(--ease);
}
.link-detalhe::after { content: ""; position: absolute; inset: -6px -10px; } /* área de toque maior, sem mudar o visual */
.link-detalhe:hover { text-decoration-color: currentColor; }
.btn-largo { width: 100%; }

.vazio { text-align: center; padding: 2.5rem 1rem; color: var(--suave); }

/* Rodapé */
.rodape {
  background: var(--cafe); color: #D9CBC6; text-align: center; padding: 3rem 16px 6rem;
  display: grid; justify-items: center; gap: .75rem;
}
.rodape-logo { background: var(--creme); border-radius: 14px; padding: .5rem .9rem; width: 150px; height: auto; }
.rodape p { margin: 0; }

/* Botão flutuante */
.whats-flutuante {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whats); color: #fff;
  box-shadow: 0 2px 4px rgba(37, 211, 102, .20), 0 10px 24px rgba(37, 211, 102, .30);
  transition: transform .35s var(--ease);
}
@media (hover: hover) { .whats-flutuante:hover { transform: translateY(-2px); } }
.whats-flutuante:active { transform: scale(.94); transition-duration: .1s; }
.whats-flutuante svg { width: 28px; height: 28px; }

/* Detalhe (dialog) */
/* Entra "materializando" (escala + opacidade) e sai pelo mesmo caminho. */
.detalhe {
  border: 0; padding: 0; border-radius: var(--raio-grande); width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  background: var(--branco); color: var(--verde); box-shadow: var(--sombra-forte);
  overscroll-behavior: contain;
  opacity: 0; transform: scale(.96);
  transition: opacity .22s ease-out, transform .22s ease-out, overlay .22s allow-discrete, display .22s allow-discrete;
}
.detalhe[open] {
  opacity: 1; transform: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
}
@starting-style { .detalhe[open] { opacity: 0; transform: scale(.96); } }
.detalhe::backdrop {
  background: rgba(23, 16, 20, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease-out, overlay .25s allow-discrete, display .25s allow-discrete;
}
.detalhe[open]::backdrop { opacity: 1; transition-duration: .35s; }
@starting-style { .detalhe[open]::backdrop { opacity: 0; } }
html:has(.detalhe[open]) { overflow: hidden; } /* página não rola por trás */

.detalhe-caixa { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.detalhe-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--cafe);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(43, 36, 34, .06), 0 2px 8px rgba(43, 36, 34, .12);
  transition: transform .35s var(--ease), background-color .18s ease;
}
.detalhe-fechar svg { width: 18px; height: 18px; }
.detalhe-fechar:hover { background: #fff; }
.detalhe-foto { background: var(--creme-2); min-height: 100%; }
.detalhe-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.detalhe-foto .sem-foto { aspect-ratio: 4 / 5; }
.detalhe-info { padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; }
.detalhe-info h3 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.15; margin: 0; }
.detalhe-desc { color: var(--cafe-2); margin: .25rem 0; white-space: pre-line; }
.detalhe-desc:empty { display: none; }
.detalhe-lista { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: .25rem 0 .5rem; }
.detalhe-lista dt { color: var(--suave); font-size: .9rem; }
.detalhe-lista dd { margin: 0; color: var(--cafe); }
.detalhe-escolha { display: grid; gap: .35rem; margin-top: .25rem; font-size: .92rem; color: var(--cafe-2); }
.detalhe-escolha small { color: var(--suave); }
.detalhe-escolha input {
  min-height: 46px; border-radius: var(--raio-campo); border: 1.5px solid var(--linha); padding: .6rem .9rem; background: var(--creme);
}
.detalhe-escolha input:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-claro); }
.detalhe .btn-largo { margin-top: .5rem; min-height: 52px; }

@media (max-width: 860px) {
  .hero-dentro { grid-template-columns: minmax(0, 1fr); }
  .topo-local { display: none; }
  .topo-dentro { justify-content: space-between; }
}
@media (max-width: 640px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .peca-info { padding: .75rem; }
  .peca-nome { font-size: 1rem; }
  .preco .por { font-size: 1.2rem; }
  .peca-acoes .btn { font-size: .8rem; padding: .55rem .6rem; min-height: 42px; }
  .peca-acoes .btn svg { display: none; }
  .busca-linha { flex-direction: column; }
  .catalogo-cabeca { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .cartao-destaque { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .cartao-destaque .txt { padding: 1rem; }
  .cartao-destaque .por { font-size: 1.6rem; }
  .detalhe { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: 100%; }
  .detalhe-caixa { grid-template-columns: 1fr; }
  .detalhe-info { padding: 1.25rem 16px 2rem; }
}

/* ===== Refinamentos (princípios Apple: tipografia, toque, profundidade) ===== */

/* Tipografia: títulos grandes mais justos, números alinhados */
.hero-sub { text-wrap: pretty; }
.catalogo-cabeca h2 { line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.cartao-destaque h3 { letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.cartao-destaque .por { letter-spacing: -.015em; font-variant-numeric: lining-nums tabular-nums; }
.peca-nome { font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.peca-det, .detalhe-desc { text-wrap: pretty; }
.preco .de, .preco .por, .chip span { font-variant-numeric: tabular-nums; }
.detalhe-info h3 { letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }

/* Detalhe: agrupamento mais claro, preço com mais presença, botão ancorado embaixo */
.detalhe .preco { margin-top: .25rem; }
.detalhe .preco .por { font-family: var(--serif); font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.detalhe-lista { margin: .75rem 0 .25rem; }
.detalhe-escolha { margin: .5rem 0 .75rem; }
.detalhe .btn-largo { margin-top: auto; }

/* Filtros: resposta imediata ao toque */
.chip {
  min-height: 44px; padding: .5rem 1rem;
  transition: background-color .18s ease, transform .35s var(--ease);
}
.chip:active { transform: scale(.96); transition-duration: .1s; }
.busca input, .ordenar select { min-height: 44px; transition: border-color .18s ease, box-shadow .18s ease; }
.ordenar select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding: .6rem 2.5rem .6rem 1rem;
  background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6A66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.btn-pequeno { min-height: 44px; }

/* Grade: ao trocar categoria/ordem, as peças entram em cascata curta */
@keyframes peca-entra { from { opacity: 0; transform: translateY(8px); } }
.grade.entrando .peca { animation: peca-entra .4s var(--ease) backwards; }
.grade.entrando .peca:nth-child(2) { animation-delay: .03s; }
.grade.entrando .peca:nth-child(3) { animation-delay: .06s; }
.grade.entrando .peca:nth-child(4) { animation-delay: .09s; }
.grade.entrando .peca:nth-child(n+5) { animation-delay: .12s; }

/* Link "pular para o catálogo": aparece ao navegar pelo teclado */
.pular {
  position: absolute; left: 8px; top: -100px; z-index: 50;
  background: var(--cafe); color: #fff; padding: .75rem 1rem; border-radius: 12px; text-decoration: none;
}
.pular:focus { top: 8px; }

@media (max-width: 640px) {
  .peca-acoes .btn { min-height: 44px; }
  /* No celular o detalhe vira uma folha que sobe e desce pelo mesmo caminho */
  .detalhe { transform: translateY(32px); }
  .detalhe[open] { transform: none; }
  @starting-style { .detalhe[open] { transform: translateY(32px); } }
  /* Botão fechar sempre ao alcance, mesmo rolando até o "Quero pedir" */
  .detalhe-fechar { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .detalhe-info { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .detalhe, .detalhe[open] { transform: none; }
  .grade.entrando .peca { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topo { background: var(--creme); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .detalhe::backdrop { background: rgba(23, 16, 20, .88); backdrop-filter: none; }
  .galeria-seta, .detalhe-fechar { background: #fff; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .topo { background: var(--creme); backdrop-filter: none; border-bottom: 2px solid var(--cafe); }
  .busca input, .ordenar select, .detalhe-escolha input { border-color: var(--cafe-2); }
}
@media (forced-colors: active) {
  .chip[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .galeria-pontos span.ativo { forced-color-adjust: none; background: Highlight; }
}

/* ===== Carrossel de novidades (abaixo dos filtros) ===== */
.novidades {
  --nov-pad: 1.25rem; --nov-gap: .75rem;
  position: relative; margin: .25rem 0 2.25rem; padding: 1.25rem 0 1rem;
  background: linear-gradient(160deg, var(--rosa-claro) 0%, #FFF8F9 100%);
  border: 1px solid #F2D9DF; border-radius: var(--raio-grande);
  box-shadow: 0 1px 0 #fff inset, 0 12px 32px rgba(201, 122, 138, .12);
}
.nov-cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 var(--nov-pad); margin-bottom: 1rem; }
.nov-kicker { margin: 0; color: var(--cafe-2); display: inline-flex; align-items: center; gap: .5rem; }
.nov-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); box-shadow: 0 0 0 4px rgba(201, 122, 138, .2); }
.nov-titulo { margin: .3rem 0 0; font-family: var(--serif); color: var(--cafe); font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.08; letter-spacing: -.015em; }
.nov-setas { display: none; gap: .5rem; }
.nov-seta {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--linha); color: var(--cafe);
  transition: background-color .18s ease, opacity .2s ease, transform .35s var(--ease);
}
.nov-seta svg { width: 20px; height: 20px; }
.nov-seta:hover:not(:disabled) { background: #fff; border-color: var(--rosa); }
.nov-seta:active:not(:disabled) { transform: scale(.94); transition-duration: .1s; }
.nov-seta:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .nov-setas { display: flex; } }

.nov-trilho {
  list-style: none; margin: 0; padding: .25rem var(--nov-pad) .5rem;
  display: grid; grid-auto-flow: column; gap: var(--nov-gap);
  grid-auto-columns: calc((100% - var(--nov-gap)) / 2); /* celular: 2 peças por tela */
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--nov-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nov-trilho::-webkit-scrollbar { display: none; }
/* Encaixa de 2 em 2: cada arrasto passa um par inteiro */
.nov-item { min-width: 0; }
.nov-item:nth-child(2n+1) { scroll-snap-align: start; scroll-snap-stop: always; }

.nov-cartao {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 0 .85rem; text-align: left;
  background: var(--branco); border: 0; border-radius: var(--raio-medio); overflow: hidden; color: inherit;
  box-shadow: 0 1px 2px rgba(43, 36, 34, .06), 0 6px 18px rgba(43, 36, 34, .07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nov-cartao:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) {
  .nov-cartao:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 36, 34, .06), 0 14px 30px rgba(43, 36, 34, .12); }
  .nov-cartao:hover .nov-foto img { transform: scale(1.04); }
}
.nov-foto { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--creme-2); }
.nov-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); -webkit-user-drag: none; }
.nov-foto .sem-foto { height: 100%; }
.nov-nome {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: .65rem .8rem 0; font-weight: 500; font-size: .93rem; line-height: 1.3; color: var(--cafe);
}
.nov-cartao .preco { margin: .2rem .8rem 0; gap: .4rem; }
.nov-cartao .preco .de { font-size: .8rem; }

.nov-pontos { display: flex; justify-content: center; gap: 6px; padding-top: .5rem; min-height: 6px; }
.nov-pontos:empty { display: none; }
.nov-pontos span { width: 6px; height: 6px; border-radius: 99px; background: var(--cafe); opacity: .2; transition: opacity .3s ease, width .35s var(--ease); }
.nov-pontos span.ativo { opacity: .75; width: 18px; }

/* Computador/tablet: mais peças por tela, avança de página em página */
@media (min-width: 700px) {
  .novidades { --nov-pad: 1.75rem; --nov-gap: 1rem; padding: 1.75rem 0 1.25rem; }
  .nov-trilho { grid-auto-columns: calc((100% - 2 * var(--nov-gap)) / 3); }
  .nov-item:nth-child(2n+1) { scroll-snap-align: none; scroll-snap-stop: normal; }
  .nov-item:nth-child(3n+1) { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (min-width: 1000px) {
  .nov-trilho { grid-auto-columns: calc((100% - 3 * var(--nov-gap)) / 4); }
  .nov-item:nth-child(3n+1) { scroll-snap-align: none; scroll-snap-stop: normal; }
  .nov-item:nth-child(4n+1) { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (max-width: 640px) {
  .novidades { margin-inline: -.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nov-cartao:hover, .nov-cartao:active { transform: none; }
  .nov-cartao:hover .nov-foto img { transform: none; }
}
@media (prefers-contrast: more) { .novidades { background: #fff; border-color: var(--cafe); } }
@media (forced-colors: active) { .novidades, .nov-cartao { border: 1px solid CanvasText; } }

/* Categorias logo abaixo do carrossel de novidades */
.chips-categorias { margin: 0 0 1.5rem; }
/* Busca logo abaixo do carrossel, colada nas categorias */
.novidades + .filtros { margin-bottom: 1rem; }
