/* =========================================================
   Catálogo, no estilo desenhado da home (topo aprovado):
   ilha de cor chapada com título em Fredoka, adesivos tortos e estrelinhas →
   etiquetas gordinhas de tipo → filtros em blocos de cor suaves (lateral no
   desktop, gaveta até 960px) com caixinhas grandes e redondinhas →
   "Encontramos N produtos" + filtros escolhidos → grade ou lista →
   "Carregar mais produtos" → estado vazio com a lupa desenhada.
   Kit global em components.css (KIT DESENHADO): .kbtn, .island, .island__star.
   Sem bordas finas, sem sombra em painéis; raios de 20 a 32px.
   ========================================================= */

.page-catalog {
  --cx-radius: 24px;
  --blk-radius: 22px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.page-catalog main {
  overflow-x: clip;
}

/* ---------- primeira pintura ----------
   O servidor (Views/Catalogo/Index.cshtml) entrega a página pronta: ela pinta direto, sem esperar o JS.
   Só quem prefere a lista (localStorage) espera o catalog.js trocar a grade pela lista
   (classe posta por um script no <head>); se o script falhar, a grade aparece depois de 2s. */

.cat-pending .results__list,
.cat-pending .more {
  visibility: hidden;
  animation: catalog-show 0s linear 2s forwards;
}

@keyframes catalog-show {
  to {
    visibility: visible;
  }
}

/* sem JS, chips, atalhos e "carregar mais" são links: mesmo visual dos botões */
.qchip,
.cx__set,
.chip,
.chips__clear,
.facets__clear,
.facets__close,
.toolbar__filters,
.void__fix,
.more__btn {
  text-decoration: none;
}

/* sem JS: "Aplicar filtros" no fim do formulário (o <noscript> do Index.cshtml mostra) */
.facets__go {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: var(--s3) 0 var(--s1);
  background: var(--ground);
}

.results__note {
  padding: var(--s5);
  border-radius: var(--blk-radius);
  background: var(--sky-soft);
  font-size: 1.0625rem;
  color: var(--kid-ink-2);
}

/* =========================================================
   "Você está em": trilha + ilha de cor
   ========================================================= */

.cx {
  position: relative;
  padding-bottom: var(--s5);
}

.cx__trail {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0 var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s1);
  font-size: 0.875rem;
}

.cx__here {
  flex: none;
  font-weight: 600;
  color: var(--kid-ink-2);
  line-height: 2.75rem;
}

.cx .crumbs {
  flex: 1 1 0;
  flex-wrap: wrap;
  column-gap: var(--s2);
  row-gap: 0;
  min-width: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--kid-ink-2);
}

.cx .crumbs a {
  color: var(--royal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(33 65 230 / 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.cx .crumbs a:hover {
  color: var(--royal);
  text-decoration-color: currentColor;
}

.cx .crumbs a,
.cx .crumbs li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.cx .crumbs li[aria-current] {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 2rem;
  line-height: 2.75rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- a ilha ---------- */

.cx__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(11rem, 5rem + 14vw, 18rem);
  align-items: center;
  gap: var(--s5);
  min-height: clamp(13rem, 10rem + 6vw, 16.5rem);
}

/* tudo = amarelo-sol chapado, como o banner da home */
.cx__card.island--sun {
  --i-bg: var(--sun);
}

.cx__main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cx__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.cx__title--long {
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.625rem);
}

.cx__title:focus {
  outline: none;
}

.cx__title:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 8px;
}

.cx__sub {
  max-width: 54ch;
  margin-top: var(--s2);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.45;
  color: var(--kid-ink-2);
  text-wrap: pretty;
}

/* estrelinhas desenhadas em volta dos adesivos */
.cx__star--a {
  top: 1.25rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--navy);
}

.cx__star--b {
  top: auto;
  bottom: 1.5rem;
  right: clamp(12rem, 6rem + 14vw, 19rem);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ember);
}

.cx__star--c {
  top: 1.75rem;
  right: clamp(10rem, 5rem + 12vw, 16rem);
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.cx--dark .cx__star--a {
  color: var(--sun);
}

.cx--sun .cx__star--b {
  color: var(--royal);
}

/* ---------- adesivos à direita ---------- */

.cx__art {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 11rem;
}

.cx__sticker {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 4px 6px rgb(42 23 71 / 0.16));
  transition: transform var(--t2) var(--ease-out);
}

.cx__sticker--a {
  top: 50%;
  left: 50%;
  width: 62%;
  translate: -50% -52%;
  rotate: -7deg;
}

.cx__sticker--b {
  right: 0;
  bottom: 2%;
  width: 40%;
  rotate: 10deg;
}

.cx__sticker--c {
  left: 0;
  bottom: 0;
  width: 36%;
  rotate: -12deg;
}

/* com dois ou três adesivos, o maior sobe um pouco */
.cx__art:has(.cx__sticker--b) .cx__sticker--a {
  top: 44%;
  width: 56%;
}

.cx__card:hover .cx__sticker--a {
  animation: wiggle 0.6s var(--ease-out);
}

/* jogo: a imagem do jogo vira um adesivo com recorte branco */
.cx__game {
  position: absolute;
  top: 50%;
  left: 46%;
  display: grid;
  place-items: center;
  width: min(72%, 11rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--royal);
  color: #fff;
  translate: -50% -50%;
  rotate: -6deg;
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.45);
}

.cx__game > * {
  width: 100%;
  height: 100%;
}

.cx__game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx__game > svg,
.cx__game > .glyph {
  width: 60%;
  height: 60%;
}

.cx--dark .cx__sticker--b {
  width: 34%;
  bottom: 0;
}

/* ---------- jogo / coleção: ilha navy ---------- */

.cx--dark .cx__card :focus-visible {
  outline-color: var(--sun);
}

.cx__facts,
.cx__blurb,
.cx__sets {
  position: relative;
  z-index: 1;
}

.cx__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.cx__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.14);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.cx__fact .glyph {
  width: 1rem;
  height: 1rem;
  color: var(--sun);
}

.cx__fact .setcode {
  color: var(--sun);
}

.cx__blurb {
  max-width: 62ch;
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--kid-ink-2);
  text-wrap: pretty;
}

.cx__sets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
}

.cx__sets-h {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--kid-ink-2);
}

.cx__sets ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.cx__set {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--t1) var(--ease-out), color var(--t1) var(--ease-out);
}

.cx__set span {
  white-space: nowrap;
}

.cx__set time {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sun);
  white-space: nowrap;
}

.cx__set:hover {
  background: #fff;
  color: var(--navy);
}

.cx__set:hover time {
  color: var(--royal-deep);
}

/* ---------- etiquetas de tipo (gordinhas, com o adesivo) ---------- */

.cx__quick {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) 0.625rem;
  margin-top: var(--s5);
}

.qchip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.25rem 0.5rem 0.25rem 0.4rem;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 rgb(42 23 71 / 0.1);
  transition: background-color var(--t1) var(--ease-out), color var(--t1) var(--ease-out),
    transform var(--t2) var(--ease-out);
}

.qchip__ic {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--royal);
  font-size: 1.125rem;
}

.qchip__ic .ni--sticker {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  rotate: -6deg;
}

.qchip__ic > svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: currentColor;
}

.qchip__n {
  min-width: 1.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--field);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--royal-deep);
}

.qchip:hover {
  transform: translateY(-2px);
}

.qchip:hover .qchip__ic {
  animation: wiggle 0.6s var(--ease-out);
}

.qchip:active {
  transform: translateY(0);
}

.qchip:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.qchip.is-on {
  background: var(--navy);
  color: #fff;
}

.qchip.is-on .qchip__ic {
  color: var(--sun);
}

.qchip.is-on .qchip__n {
  background: var(--sun);
  color: var(--navy);
}

.cx--dark .qchip.is-on {
  background: var(--sun);
  color: var(--navy);
}

.cx--dark .qchip.is-on .qchip__ic {
  color: var(--royal);
}

.cx--dark .qchip.is-on .qchip__n {
  background: #fff;
}

.cx--dark .qchip:focus-visible {
  outline-color: var(--sun);
}

/* =========================================================
   grade da página
   ========================================================= */

.catalog {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
  padding-top: var(--s3);
  padding-bottom: var(--s8);
}

/* =========================================================
   filtros (desktop: coluna de blocos de cor, com rolagem própria)
   ========================================================= */

/* a coluna estica até o fim da grade: só assim o painel tem espaço para grudar */
.facets {
  align-self: stretch;
}

.facets__panel {
  position: sticky;
  top: calc(var(--head-h) + var(--s4));
  max-height: calc(100vh - var(--head-h) - var(--s6));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 4px var(--s4);
  scrollbar-width: thin;
  scrollbar-color: var(--field-2) transparent;
}

.facets__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s3);
  min-height: 3rem;
  padding-bottom: var(--s2);
}

.facets__title {
  flex: 1 0 auto;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.facets__title:focus {
  outline: none;
}

.facets__title:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 8px;
}

.facets__t-mob {
  display: none;
}

.facets__count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--kid-ink-2);
}

/* "Limpar filtros": pílula de texto */
.facets__clear,
.chips__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--royal-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t1) var(--ease-out);
}

.facets__clear {
  order: 3;
  margin: calc(var(--s1) * -1) 0 0 -1rem;
}

.chips__clear .icon {
  width: 1rem;
  height: 1rem;
}

.facets__clear:hover,
.chips__clear:hover {
  background: var(--field);
}

/* "Você escolheu", "Ordenar por" (gaveta; e na lateral sem JS) */
.facets__label {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}

/* só existem na gaveta */
.facets__close,
.facets__applied,
.facets__sort,
.facets__foot {
  display: none;
}

/* ---------- caixinhas grandes e redondinhas ---------- */

.facets .check {
  font-size: 0.9375rem;
  color: var(--navy);
}

.facets .check > input[type="checkbox"] {
  width: 1.625rem;
  height: 1.625rem;
  border: 2.5px solid var(--kid-ink-2);
  border-radius: 9px;
  background: #fff;
  transition: background-color var(--t1) var(--ease-out), border-color var(--t1) var(--ease-out),
    transform var(--t2) var(--ease-out);
}

/* o "v" desenhado, em vez do recorte do base.css */
.facets .check > input[type="checkbox"]::after {
  width: 1.125rem;
  height: 1.125rem;
  background: var(--tick) center / contain no-repeat;
  clip-path: none;
}

.facets .check > input[type="checkbox"]:hover {
  border-color: var(--royal);
}

.facets .check > input[type="checkbox"]:checked {
  border-color: var(--royal);
  background: var(--royal);
  transform: rotate(-6deg);
}

.facets .check > input[type="checkbox"]:checked:hover {
  border-color: var(--royal-deep);
  background: var(--royal-deep);
}

.facets .check > input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.facets .check > input:disabled,
.facets .check > input:disabled:hover {
  border-color: rgb(54 64 95 / 0.3);
  background: rgb(255 255 255 / 0.6);
}

/* atalhos do topo dos filtros: bloco amarelo com o adesivo de oferta */
.facets__quick {
  display: grid;
  gap: 2px;
  margin-bottom: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--blk-radius);
  background: var(--sun-soft);
}

.fswitch {
  gap: var(--s3);
  min-height: 3rem;
}

.fswitch > span {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}

.fswitch__art {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  rotate: 8deg;
}

.fswitch__art + small {
  margin-left: 0 !important;
}

/* ---------- grupos recolhíveis em blocos de cor ---------- */

.facet {
  --fc: var(--sky-soft);
  margin-bottom: 0.625rem;
  padding: 0 0.875rem;
  border-radius: var(--blk-radius);
  background: color-mix(in srgb, var(--fc) 62%, #fff);
}

.facet[data-facet="cat"],
.facet[data-facet="cond"],
.facet[data-facet="disp"] {
  --fc: var(--mint);
}

.facet[data-facet="set"],
.facet[data-facet="rar"],
.facet[data-facet="preco"] {
  --fc: var(--peach);
}

.facet[data-facet="tipo"],
.facet[data-facet="grading"] {
  --fc: var(--sun-soft);
}

.facet__sum {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3.5rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.facet__sum::-webkit-details-marker {
  display: none;
}

.facet__sum:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -1px;
  border-radius: 14px;
}

/* a cor do bloco já identifica o grupo: sem ícone de painel */
.facet__ic {
  display: none;
}

.facet__title {
  flex: 1;
  min-width: 0;
}

/* contagem de marcados */
.facet__n,
.toolbar__n {
  display: inline-grid;
  place-items: center;
  min-width: 1.625rem;
  height: 1.625rem;
  padding: 0 0.45rem;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.facet__chev {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  stroke-width: 2.4;
  transition: transform var(--t2) var(--ease-out);
}

.facet__sum:hover .facet__chev {
  transform: translateY(2px);
}

.facet[open] > .facet__sum .facet__chev {
  transform: rotate(180deg);
}

.facet__body {
  padding-bottom: var(--s3);
}

.facet[open] > .facet__body {
  animation: facet-in var(--t2) var(--ease-out);
}

@keyframes facet-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.facet__note {
  margin: 0 0 var(--s2);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--kid-ink-2);
  text-wrap: pretty;
}

.facet__sub {
  margin: var(--s3) 0 var(--s1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.fopts {
  display: grid;
  gap: 2px;
}

.fopts--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s1);
}

/* linha de opção: caixa + nome (+ dica) + contagem; a marcada ganha um fundo branco */
.fopt,
.fopt-esg {
  gap: 0.625rem;
  margin-inline: -0.5rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 14px;
  transition: background-color var(--t1) var(--ease-out);
}

.fopt:hover,
.fopt-esg:hover {
  background: rgb(255 255 255 / 0.55);
}

.fopt:has(input:checked),
.fopt-esg:has(input:checked) {
  background: #fff;
}

.fopt__label {
  display: grid;
  flex: 1;
  gap: 0.0625rem;
  min-width: 0;
  line-height: 1.3;
}

.fopt__name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
  min-width: 0;
  font-weight: 600;
}

.fopt__hint {
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.35;
  color: var(--kid-ink-2);
}

.fopt__name .glyph {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--kid-ink-2);
}

.fopt input:checked + .fopt__label .fopt__name {
  font-weight: 700;
}

.fopt input:checked + .fopt__label .glyph {
  color: var(--royal);
}

.fopt__code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--kid-ink-2);
}

/* sigla de idioma e de condição */
.fopt__abbr {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kid-ink-2);
}

.fopt__abbr--lead {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 1.5rem;
  border-radius: var(--r-pill);
  background: #fff;
  font-weight: 700;
  color: var(--royal-deep);
}

.fopt:has(input:checked) .fopt__abbr--lead {
  background: var(--field);
}

.fopts--sets .fopt__name > span:first-child {
  overflow-wrap: anywhere;
}

.check.fopt > small,
.fswitch > small,
.fopt-esg > small {
  flex: none;
  min-width: 1.75rem;
  margin-left: auto;
  padding: 0.125rem 0.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--kid-ink-2);
}

.check.fopt:has(input:checked) > small {
  background: var(--field);
  color: var(--royal-deep);
}

.check.fopt:has(input:disabled) {
  opacity: 0.6;
}

.facet__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: var(--s2);
  padding: 0 1.125rem;
  border: 0;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--royal-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t2) var(--ease-out);
}

.facet__more:hover {
  transform: translateY(-2px);
}

/* preço: faixas em pílulas gordinhas */
.pricepre {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}

.pricepre .choice > span {
  min-height: 3rem;
  padding: var(--s2) var(--s3);
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform var(--t2) var(--ease-out), background-color var(--t1) var(--ease-out);
}

.pricepre .choice:hover > span {
  transform: translateY(-2px);
}

.pricepre .choice > input:checked + span {
  border: 0;
  background: var(--royal);
  box-shadow: none;
  color: #fff;
}

.pricepre .choice small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--kid-ink-2);
}

.pricepre .choice > input:checked + span small {
  color: rgb(255 255 255 / 0.9);
}

.pricepre .choice > input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.pricepre .choice > input:disabled + span {
  opacity: 0.55;
  transform: none;
}

.range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s2);
}

.range__field {
  position: relative;
  display: block;
}

.range__pre {
  position: absolute;
  top: 50%;
  left: var(--s3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--kid-ink-2);
  translate: 0 -50%;
  pointer-events: none;
}

.range .input {
  min-height: 3rem;
  padding-left: 2.25rem;
  padding-right: var(--s2);
  border: 0;
  border-radius: var(--r-pill);
  background: #fff;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.range .input:focus {
  outline: 3px solid var(--royal);
  outline-offset: 1px;
}

.range .input::-webkit-inner-spin-button,
.range .input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range__to {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--kid-ink-2);
}

/* desktop com mouse: lista um pouco mais densa */
@media (min-width: 961px) and (pointer: fine) {
  .fopts .check {
    min-height: 2.5rem;
  }
}

/* =========================================================
   resultados: frase, ordenação, filtros escolhidos e grade
   ========================================================= */

.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title tools"
    "chips chips"
    "list list"
    "more more";
  align-items: center;
  gap: var(--s3) var(--s5);
  min-width: 0;
}

.results__title {
  grid-area: title;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* o número vira um adesivo amarelo torto */
.results__title b {
  display: inline-block;
  padding: 0 0.4em;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--navy);
  font-weight: 700;
  rotate: -3deg;
}

.results__title q {
  color: var(--royal-deep);
}

.results__title:focus {
  outline: none;
}

.results__title:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 8px;
}

.toolbar {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  min-height: 3rem;
}

.toolbar__filters {
  display: none;
}

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--kid-ink-2);
  white-space: nowrap;
}

.toolbar__sort .select,
.facets__sort .select {
  width: auto;
  min-height: 3rem;
  padding-left: 1.125rem;
  padding-right: 2.75rem;
  border: 0;
  border-radius: var(--r-pill);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 0 rgb(42 23 71 / 0.1);
}

.facets__sort .select {
  width: 100%;
  background-color: var(--sky-soft);
  box-shadow: none;
}

.toolbar__sort .select:hover,
.facets__sort .select:hover {
  background-color: var(--field);
}

.toolbar__sort .select:focus,
.facets__sort .select:focus {
  outline: 3px solid var(--royal);
  outline-offset: 2px;
}

/* grade | lista: pílula gordinha com dois botões */
.view {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 2px 0 rgb(42 23 71 / 0.1);
}

.view > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--kid-ink-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t1) var(--ease-out), color var(--t1) var(--ease-out);
}

.view > button:hover {
  background: var(--sky-soft);
  color: var(--navy);
}

.view > button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.view > button:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 1px;
}

.view .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* filtros escolhidos: etiquetas amarelas com "x" redondo */
.chips {
  /* relative: os textos .sr-only (absolutos) ficam presos à linha que rola, sem alargar a página */
  position: relative;
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
}

.chips__lead {
  margin-right: var(--s1);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--kid-ink-2);
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0 0.375rem 0 1rem;
  border-radius: var(--r-pill);
  background: var(--sun-soft);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--t1) var(--ease-out), transform var(--t2) var(--ease-out);
}

.chip__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chip__x {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: background-color var(--t1) var(--ease-out), color var(--t1) var(--ease-out);
}

.chip__x .icon,
.chip__x i {
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.875rem;
  stroke-width: 2.6;
}

.chip:hover {
  background: var(--sun);
}

.chip:hover .chip__x {
  background: var(--navy);
  color: #fff;
}

.chip--search {
  background: var(--sky-soft);
}

.chip--search:hover {
  background: var(--sky-deep);
}

.results__list {
  grid-area: list;
  min-width: 0;
  padding-top: var(--s4);
}

/* grade uniforme: 4 / 3 / 2 colunas.
   Um bloco por página de 12 (12 fecha linhas de 4, 3 e 2): os blocos seguidos parecem uma grade só,
   e o "Carregar mais" sem JS rola até #pagina-N. */
.cgrid {
  --cgrid-gy: var(--s7);
  --cgrid-gx: var(--s5);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cgrid-gy) var(--cgrid-gx);
  padding-top: var(--s3);
}

.cgrid + .cgrid {
  margin-top: var(--cgrid-gy);
  padding-top: 0;
  scroll-margin-top: calc(var(--head-h) + var(--s5));
}

/* ---------- lista: linhas compactas ---------- */

.ledger {
  display: grid;
  gap: var(--s2);
}

.lrow {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(8rem, auto) auto;
  grid-template-areas: "thumb main price add";
  align-items: center;
  gap: var(--s2) var(--s5);
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  border-radius: var(--blk-radius);
  background: var(--paper);
  transition: background-color var(--t1) var(--ease-out);
}

@media (hover: hover) {
  .lrow:hover {
    background: color-mix(in srgb, var(--sky-soft) 40%, #fff);
  }
}

.lrow__thumb {
  grid-area: thumb;
  width: 4.5rem;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.lrow__thumb.stage--highend {
  background: var(--navy);
}

.lrow__main {
  grid-area: main;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.lrow__line {
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--kid-ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lrow__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

.lrow__name a {
  text-decoration: none;
}

.lrow__name a:hover {
  text-decoration: underline;
}

/* a linha inteira leva ao produto (alvo de toque amplo); o botão fica por cima */
.lrow__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--blk-radius);
}

.lrow__fact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem var(--s4);
  font-size: 0.875rem;
  color: var(--kid-ink-2);
}

.lrow__price {
  grid-area: price;
  justify-self: end;
}

.lrow__price .price {
  justify-content: flex-end;
}

/* botão com rótulo visível (addbtn--label de components.css), por cima do link esticado */
.lrow__add {
  z-index: 1;
  grid-area: add;
  min-width: 8rem;
  min-height: 2.75rem;
  margin: 0;
}

.lrow__add .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.lrow.is-sold .photo__subject {
  opacity: 0.5;
  filter: grayscale(1);
}

/* ---------- carregar mais ---------- */

.more {
  grid-area: more;
  display: grid;
  justify-items: center;
  gap: var(--s3);
  padding-top: var(--s8);
}

.more:empty {
  display: none;
}

.more__count {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--kid-ink-2);
}

.more__count b {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.more__meter {
  display: block;
  width: 15rem;
  max-width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--sky-soft);
}

.more__meter > span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--royal);
  transform-origin: left;
  transition: transform var(--t3) var(--ease-out);
}

.more__btn {
  margin-top: var(--s2);
}

.more__btn .icon {
  stroke-width: 2.4;
}

/* =========================================================
   estado vazio: lupa desenhada + ideias simples
   ========================================================= */

.void {
  position: relative;
  display: grid;
  gap: var(--s5);
  padding: clamp(1.25rem, 0.6rem + 2.4vw, 2.5rem);
  border-radius: clamp(1.5rem, 1rem + 1.2vw, 2rem);
  background: var(--sky-soft);
  color: var(--navy);
}

.void__top {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.void__art {
  flex: none;
  width: clamp(5.5rem, 4rem + 4vw, 8rem);
  height: auto;
  rotate: -8deg;
  filter: drop-shadow(0 4px 6px rgb(42 23 71 / 0.16));
}

.void:hover .void__art {
  animation: wiggle 0.6s var(--ease-out);
}

.void__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.void__title:focus {
  outline: none;
}

.void__text {
  margin-top: var(--s2);
  font-size: 1.125rem;
  color: var(--kid-ink-2);
}

/* ideias numeradas, cada uma num bloco branco */
.void__tries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: var(--s3);
  counter-reset: try;
}

.void__try {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s5);
  border-radius: var(--blk-radius);
  background: #fff;
}

.void__try::before {
  counter-increment: try;
  content: counter(try);
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--s1);
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  rotate: -8deg;
}

.void__h {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.void__p {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--kid-ink-2);
  text-wrap: pretty;
}

.void__try > .kbtn {
  margin-top: auto;
}

.void__fixes {
  display: grid;
  gap: var(--s2);
  width: 100%;
  margin-top: var(--s1);
}

.void__fix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--s2);
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 24px;
  background: var(--sun-soft);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: background-color var(--t1) var(--ease-out);
}

.void__fix > .icon,
.void__fix > i {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 0.875rem;
  stroke-width: 2.6;
}

.void__fix > span:nth-child(2) {
  overflow-wrap: anywhere;
}

.void__n {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kid-ink-2);
  white-space: nowrap;
}

.void__fix:hover {
  background: var(--sun);
}

.void__search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  width: 100%;
  margin-top: auto;
}

.void__search .input {
  flex: 1 1 10rem;
  min-width: 0;
  min-height: 3rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--field);
}

.void__search .input:focus {
  outline: 3px solid var(--royal);
  outline-offset: 1px;
}

.void__search .kbtn {
  flex: 1 0 auto;
}

/* coleções sugeridas */
.void__sets {
  padding: var(--s4) var(--s5);
  border-radius: var(--blk-radius);
  background: #fff;
}

.void__sets .void__h {
  margin-bottom: var(--s2);
}

.void__sets ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s1) var(--s4);
}

.void__sets a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  min-height: 3.25rem;
  padding: var(--s2) var(--s3);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.void__sets a:hover {
  background: var(--sky-soft);
}

.void__sets a .glyph {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--royal);
}

.void__sets small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  color: var(--kid-ink-2);
}

.void__sets a > .icon {
  width: 1rem;
  height: 1rem;
  color: var(--kid-ink-2);
}

.void__best {
  padding-top: var(--s7);
}

.void__head {
  margin-bottom: var(--s5);
}

.void__head .sec-head__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

/* =========================================================
   até 1240px
   ========================================================= */

@media (max-width: 1240px) {
  .catalog {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--s5);
  }

  .cgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cgrid--strip > :nth-child(n + 4) {
    display: none;
  }
}

/* ---------- até 1100px: frase e barra em linhas próprias ---------- */

@media (max-width: 1100px) {
  .results {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "tools"
      "chips"
      "list"
      "more";
  }

  .toolbar {
    justify-content: space-between;
  }

  .lrow {
    grid-template-columns: 4rem minmax(0, 1fr) auto auto;
  }

  .lrow__thumb {
    width: 4rem;
  }
}

/* =========================================================
   até 960px: gaveta de filtros e barra fixa
   ========================================================= */

@media (max-width: 960px) {
  .catalog {
    display: block;
    padding-top: 0;
  }

  .results {
    grid-template-areas:
      "tools"
      "title"
      "chips"
      "list"
      "more";
  }

  .cx__trail {
    padding-top: var(--s2);
  }

  /* barra fixa logo abaixo do masthead (acima dos cards, que isolam o empilhamento) */
  .toolbar {
    position: sticky;
    top: var(--head-h);
    z-index: 30;
    min-height: 4.25rem;
    padding-block: var(--s2);
    background: var(--ground);
    box-shadow: 0 0 0 100vmax var(--ground);
    clip-path: inset(0 -100vmax);
  }

  .toolbar__filters {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    min-height: 3.25rem;
    padding: 0 1.25rem 0 0.5rem;
    border-radius: var(--r-pill);
    background: var(--royal);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgb(42 23 71 / 0.12), 0 8px 16px -10px rgb(42 23 71 / 0.45);
    transition: background-color var(--t1) var(--ease-out), transform var(--t2) var(--ease-out);
  }

  .toolbar__filters:hover {
    background: var(--royal-deep);
    transform: translateY(-2px);
  }

  .toolbar__filters:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
  }

  .toolbar__fi {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.2);
    font-size: 0.9375rem;
  }

  .toolbar__filters .toolbar__n {
    background: var(--sun);
    color: var(--navy);
  }

  .toolbar__sort {
    margin-left: auto;
  }

  .results__title {
    padding-top: var(--s2);
  }

  .results__list {
    padding-top: var(--s2);
  }

  /* raiz da gaveta: cobre a tela; escondida até abrir */
  .facets {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgb(42 23 71 / 0);
    visibility: hidden;
    transition: background-color var(--t2) var(--ease-out), visibility 0s linear var(--t3);
  }

  .facets.is-open {
    background: rgb(42 23 71 / 0.5);
    visibility: visible;
    transition: background-color var(--t2) var(--ease-out);
  }

  .facets__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(28rem, 100%);
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0 28px 28px 0;
    background: var(--paper);
    box-shadow: var(--shadow-pop);
    transform: translateX(-100%);
    transition: transform var(--t3) var(--ease-out);
  }

  .facets.is-open .facets__panel {
    transform: none;
  }

  /* topo da gaveta em amarelo-sol, como o banner */
  .facets__head {
    flex: none;
    min-height: 4.5rem;
    padding: var(--s2) var(--s3) var(--s2) var(--s5);
    background: var(--sun);
  }

  .facets__t-desk {
    display: none;
  }

  .facets__t-mob {
    display: inline;
  }

  /* na gaveta, "Limpar" fica no rodapé */
  .facets__head .facets__clear {
    display: none !important;
  }

  .facets__close {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    margin-left: auto;
    padding: 0 1.125rem 0 0.875rem;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
  }

  .facets__close:hover {
    background: var(--sun-soft);
  }

  .facets__close .icon {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2.4;
  }

  .facets__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s4) var(--s4) var(--s6);
  }

  .facets__applied:not([hidden]) {
    display: block;
    padding-bottom: var(--s4);
  }

  .facets__sort {
    display: grid;
    padding-bottom: var(--s4);
  }

  .facets__foot {
    display: grid;
    flex: none;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s3);
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
    background: var(--sky-soft);
  }

  .facets__foot .kbtn {
    --h: 3.25rem;
  }

  .cgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --cgrid-gx: var(--s4);
  }

  /* abaixo do masthead e da barra fixa de filtros */
  .cgrid + .cgrid {
    scroll-margin-top: calc(var(--head-h) + 4.25rem + var(--s4));
  }

  .more {
    padding-top: var(--s7);
  }
}

/* =========================================================
   até 720px
   ========================================================= */

@media (max-width: 720px) {
  .cx {
    padding-bottom: var(--s3);
  }

  /* trilha corrida como texto: quando quebra, a segunda linha volta para a margem */
  .cx__trail {
    display: block;
  }

  .cx__here {
    margin-right: var(--s2);
  }

  .cx .crumbs {
    display: inline;
  }

  .cx .crumbs li {
    vertical-align: top;
  }

  .cx .crumbs li + li::before {
    margin-left: var(--s2);
  }

  .cx .crumbs li[aria-current] {
    display: inline-block;
    max-width: 100%;
  }

  /* ilha: uma coluna, um adesivo no canto de cima */
  .cx__card {
    display: block;
    min-height: 0;
  }

  .cx__title,
  .cx__sub {
    padding-right: 5.25rem;
  }

  .cx__title,
  .cx__title--long {
    font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.25rem);
  }

  .cx__sub {
    font-size: 1rem;
  }

  .cx__art {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    width: 6rem;
    height: 6rem;
    min-height: 0;
  }

  .cx__sticker--a,
  .cx__art:has(.cx__sticker--b) .cx__sticker--a {
    top: 50%;
    width: 86%;
  }

  .cx__sticker--b,
  .cx__sticker--c {
    display: none;
  }

  .cx__game {
    top: 50%;
    left: 50%;
    width: 4.75rem;
    border-width: 4px;
    border-radius: 20px;
  }

  .cx__star--a {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    width: 2rem;
    height: 2rem;
  }

  .cx__star--b {
    bottom: auto;
    top: 6.75rem;
    right: 1.25rem;
  }

  .cx__star--c {
    top: 0.75rem;
    right: 6.5rem;
  }

  /* etiquetas de tipo rolam de lado, até a borda da ilha */
  .cx__quick {
    flex-wrap: nowrap;
    margin-inline: calc(var(--i-pad) * -1);
    padding: 4px var(--i-pad);
    overflow-x: auto;
    scrollbar-width: none;
    /* a borda direita esmaece: dá para ver que a fila continua de lado */
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }

  .cx__sets {
    display: block;
  }

  .cx__sets ul {
    flex-wrap: nowrap;
    margin: var(--s2) calc(var(--i-pad) * -1) 0;
    padding: 2px var(--i-pad);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cx__sets ul::-webkit-scrollbar,
  .cx__quick::-webkit-scrollbar {
    display: none;
  }

  .cx__set,
  .qchip {
    flex: none;
  }

  /* a ordenação vai para a gaveta */
  .toolbar__sort {
    display: none;
  }

  /* filtros escolhidos numa linha que rola de lado */
  .chips {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip,
  .chips__clear,
  .chips__lead {
    flex: none;
  }

  .chips--drawer {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: visible;
    mask-image: none;
  }

  .lrow {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb main main"
      "thumb price add";
    gap: var(--s2) var(--s3);
    padding: var(--s3);
  }

  .lrow__thumb {
    width: 3.5rem;
    align-self: start;
  }

  .lrow__price {
    justify-self: start;
  }

  .lrow__price .price {
    justify-content: flex-start;
  }

  .lrow__name {
    font-size: 1rem;
  }

  .lrow__add {
    min-width: 0;
  }

  .void__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }

  .void__try {
    padding: var(--s4);
  }
}

/* ---------- até 600px: duas colunas ---------- */

@media (max-width: 600px) {
  .cgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --cgrid-gy: var(--s6);
    --cgrid-gx: var(--s3);
  }

  .cgrid--strip > :nth-child(n + 4) {
    display: flex;
  }

  .facets__panel {
    width: 100%;
    border-radius: 0;
  }

  .pricepre .choice > span {
    padding-inline: var(--s2);
  }
}

/* ---------- até 480px: grade | lista só com ícone (o nome segue para leitores de tela) ---------- */

@media (max-width: 480px) {
  .view .view__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .view > button {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx__card:hover .cx__sticker--a,
  .qchip:hover .qchip__ic,
  .void:hover .void__art {
    animation: none;
  }
}

/* "Limpar tudo" branco sobre o rodapé azul-céu da gaveta */
.facets__foot .kbtn--soft {
  background: #fff;
}
