@import url("../vendor/fontawesome/css/fontawesome.min.css");
@import url("../vendor/fontawesome/css/solid.min.css");
@import url("../vendor/fontawesome/css/regular.min.css");
@import url("header.css");

/* =========================================================
   Componentes: overlays (gaveta do carrinho), toast, palco de produto,
   placeholders, tile, selos, callouts, preço, breadcrumbs, footer.
   Header, busca, navegação, dropdowns e menu mobile: header.css
   (importado acima, junto com os ícones Font Awesome).
   ========================================================= */

/* ---------- logo (header, menu e footer) ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.packmark {
  width: 1.3rem;
  height: 1.7rem;
  flex: none;
  transition: transform var(--t2) var(--ease-out);
}

.packmark__body {
  fill: var(--royal);
}

.packmark__tear {
  fill: none;
  stroke: var(--ground);
  stroke-width: 1.5;
}

.packmark__dot {
  fill: var(--ember);
}

.logo:hover .packmark {
  transform: rotate(-6deg);
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.045em;
}

/* códigos dentro das linhas de metadados: mono um ponto menor que o texto */
.mini__meta .data,
.tile__line .data {
  font-size: 0.6875rem;
}

/* ---------- overlays: menu e gaveta ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(42 23 71 / 0);
  transition: background-color var(--t2) var(--ease-out);
}

.overlay.is-open {
  background: rgb(42 23 71 / 0.5);
}

.overlay__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(26rem, 92vw);
  background: var(--ground);
  box-shadow: var(--shadow-pop);
  transition: transform var(--t3) var(--ease-out);
}

.menu .overlay__panel {
  left: 0;
  transform: translateX(-100%);
}

.drawer .overlay__panel {
  right: 0;
  transform: translateX(100%);
  overflow: hidden;
  border-radius: var(--r-box-lg) 0 0 var(--r-box-lg);
  background: var(--paper);
}

.overlay.is-open .overlay__panel {
  transform: none;
}

.overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 4rem;
  padding: var(--s2) var(--s3) var(--s2) var(--s5);
  border-bottom: 1px solid var(--rule);
}

/* gaveta do carrinho */
.drawer__title {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.drawer__title .num {
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink-3);
}

.drawer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mini {
  flex: 1;
  padding: var(--s2) var(--s5);
}

.mini__item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}

.mini__thumb {
  width: 4rem;
  border-radius: var(--r-ctl);
}

.mini__name {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.mini__name:hover {
  text-decoration: underline;
}

.mini__meta {
  margin-top: var(--s1);
  font-size: 0.75rem;
  font-variant-numeric: lining-nums;
  color: var(--ink-3);
}

.mini__price {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 650;
  font-stretch: 104%;
  font-variant-numeric: tabular-nums;
}

.drawer__foot {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: var(--s3);
  padding: var(--s5);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--fs-small);
}

.drawer__total b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.ship-note {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.meter {
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--field);
}

.meter span {
  display: block;
  height: 100%;
  background: var(--royal);
  transform-origin: left;
  transition: transform var(--t4) var(--ease-out);
}

.empty {
  display: grid;
  justify-items: start;
  gap: var(--s3);
  padding: var(--s7) var(--s5);
  color: var(--ink-2);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r-box);
  background: var(--field);
  color: var(--royal);
}

.empty__icon .icon {
  width: 1.625rem;
  height: 1.625rem;
}

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

.empty__actions .btn {
  margin-top: 0;
}

.empty__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 760;
  font-stretch: 112%;
  color: var(--ink);
}

.empty .btn {
  margin-top: var(--s3);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--s5) + var(--toast-offset, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: max-content;
  max-width: calc(100vw - 2rem);
  min-height: 3rem;
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  /* fio claro: o toast continua legível quando passa sobre o footer navy */
  border: 1px solid var(--rule-on-navy);
  border-radius: var(--r-box);
  background: var(--navy);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 550;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 1rem);
  transition: transform var(--t3) var(--ease-out), opacity var(--t2) var(--ease-out), visibility 0s var(--t3);
}

.toast:not(:has(.toast__action)) {
  padding-right: var(--s5);
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.toast__action {
  flex: none;
  min-height: 2.75rem;
  padding: 0 var(--s4);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--sky);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

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

/* ---------- palco do produto ---------- */

.stage {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-stage);
  background: var(--field);
  color: var(--ink);
}

.stage--sealed {
  background: var(--field);
}

/* singles: campo azul claro, sem fio nem moldura (só a sombra de contato da foto) */
.stage--single {
  background: var(--field-soft);
}

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

/* a única moldura permitida: o fio foil sinaliza raridade */
.stage--highend {
  border: 1px solid transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--foil) border-box;
}

.stage--accessory {
  background: var(--field-2);
}

.stage > .photo {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
}

/* brilho que atravessa o palco escuro no hover (nunca a foto) */
.stage--graded::after,
.stage--highend::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(157 183 255 / 0.16) 48%, transparent 64%);
  transform: translateX(-110%);
  pointer-events: none;
}

/* ---------- slot de foto e placeholders neutros ---------- */

.photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  container-type: size;
}

/* só transform anima (composto); a sombra que alonga no hover é uma camada própria */
.photo__subject {
  transition: transform var(--t3) var(--ease-out);
}

.photo__img {
  position: absolute;
  inset: 8%;
  z-index: 1;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgb(42 23 71 / 0.26)) drop-shadow(0 2px 2px rgb(42 23 71 / 0.12));
}

/* foto real: sombra de chão que aparece quando a foto sobe */
.photo.has-img::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 5%;
  z-index: 0;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(42 23 71 / 0.3), transparent);
  opacity: 0;
  transform: scaleX(0.85);
  transition: opacity var(--t3) var(--ease-out), transform var(--t3) var(--ease-out);
  pointer-events: none;
}

.ph {
  --ar: 0.716;
  --w: 66;
  --h: 76;
  --ph-hi: #f7f9fd;
  --ph-a: #d5dcec;
  --ph-b: #aab5cb;
  --ph-line: rgb(42 23 71 / 0.16);
  --ph-band: rgb(255 255 255 / 0.62);
  --ph-shade: rgb(42 23 71 / 0.07);
  --ph-shadow: rgb(42 23 71 / 0.3);
  --ph-extra: linear-gradient(transparent, transparent);
  --sh-y: 14px;
  --sh-y-lift: 22px;
  --sh-blur: 5.5px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: min(calc(var(--w) * 1cqw), calc(var(--h) * 1cqh * var(--ar)));
  aspect-ratio: var(--ar);
  translate: -50% -50%;
}

/* sombra de contato em camadas próprias (sem filter animado no sujeito):
   ::before = sombra longa e macia, ::after = contato curto */
.ph::before,
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4%;
  pointer-events: none;
}

.ph::before {
  background: var(--ph-shadow);
  filter: blur(var(--sh-blur));
  transform: translateY(var(--sh-y));
  transition: transform var(--t3) var(--ease-out), opacity var(--t3) var(--ease-out);
}

.ph::after {
  background: rgb(42 23 71 / 0.12);
  filter: blur(1px);
  transform: translateY(2px);
}

.ph > i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--ph-r, 2px);
  background: var(--ph-extra),
    radial-gradient(120% 85% at 16% 6%, var(--ph-hi) 0%, transparent 58%),
    linear-gradient(165deg, var(--ph-a), var(--ph-b));
}

/* palcos escuros: silhueta em navy mais claro */
.stage--graded .ph,
.stage--highend .ph,
.photo--navy .ph,
.on-navy .photo:not(.stage *) .ph {
  --ph-hi: #4c66aa;
  --ph-a: #2f4682;
  --ph-b: #1b2d5c;
  --ph-line: rgb(255 255 255 / 0.12);
  --ph-band: rgb(255 255 255 / 0.14);
  --ph-shade: rgb(0 0 0 / 0.14);
  --ph-shadow: rgb(0 0 0 / 0.5);
}

.ph--card {
  --ar: 0.716;
  --w: 66;
  --h: 76;
}

.ph--card > i {
  --ph-r: 4.2% / 3%;
}

.ph--toploader {
  --ar: 0.752;
  --w: 64;
  --h: 76;
}

.ph--toploader > i {
  --ph-r: 2.5% / 1.9%;
}

.ph--pack {
  --ar: 0.58;
  --w: 56;
  --h: 80;
  --cp: 7px;
  --cd: 5px;
}

.ph--pack > i {
  --ph-extra: linear-gradient(90deg, transparent 18%, rgb(255 255 255 / 0.22) 38%, transparent 56%),
    linear-gradient(to bottom, var(--ph-shade) 0 9%, transparent 0 91%, var(--ph-shade) 0);
  -webkit-mask: var(--tooth-up) left top / var(--cp) var(--cd) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--cd) + 2px) no-repeat,
    var(--tooth-down) left bottom / var(--cp) var(--cd) repeat-x;
  mask: var(--tooth-up) left top / var(--cp) var(--cd) repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--cd) + 2px) no-repeat,
    var(--tooth-down) left bottom / var(--cp) var(--cd) repeat-x;
}

.ph--display {
  --ar: 1.1;
  --w: 80;
  --h: 62;
}

.ph--display > i {
  --ph-r: 1.5%;
  --ph-extra: linear-gradient(to bottom, var(--ph-shade) 0 13%, transparent 0);
}

.ph--collection {
  --ar: 1.28;
  --w: 82;
  --h: 58;
}

.ph--collection > i {
  --ph-r: 1.5%;
}

.ph--etb {
  --ar: 0.952;
  --w: 70;
  --h: 68;
}

.ph--etb > i {
  --ph-r: 1.5%;
  --ph-extra: linear-gradient(to bottom, transparent 23.5%, var(--ph-line) 0 calc(23.5% + 1.5px), transparent 0);
}

.ph--tin {
  --ar: 1.28;
  --w: 72;
  --h: 52;
}

.ph--tin > i {
  --ph-r: 14% / 18%;
  --ph-extra: linear-gradient(to bottom, transparent 19%, var(--ph-line) 0 calc(19% + 1.5px), transparent 0);
}

.ph--slab {
  --ar: 0.62;
  --w: 56;
  --h: 80;
}

.ph--slab > i {
  --ph-r: 3% / 2%;
  --ph-extra: linear-gradient(var(--ph-band), var(--ph-band)) center 4.5% / 86% 14% no-repeat;
}

.ph--sleeves {
  --ar: 0.72;
  --w: 42;
  --h: 50;
}

.ph--sleeves > i {
  --ph-r: 2%;
  --ph-extra: linear-gradient(to bottom, var(--ph-shade) 0 16%, transparent 0);
}

.ph--deckbox {
  --ar: 0.78;
  --w: 46;
  --h: 56;
}

.ph--deckbox > i {
  --ph-r: 3%;
  --ph-extra: linear-gradient(to bottom, transparent 29%, var(--ph-line) 0 calc(29% + 1.5px), transparent 0);
}

.ph--binder {
  --ar: 0.8;
  --w: 64;
  --h: 74;
}

.ph--binder > i {
  --ph-r: 2.5%;
  --ph-extra: linear-gradient(90deg, var(--ph-shade) 0 10%, transparent 0);
}

.ph--playmat {
  --ar: 2;
  --w: 88;
  --h: 40;
}

.ph--playmat > i {
  --ph-r: 3% / 6%;
}

/* miniaturas: serrilha menor */
.photo--xs .ph--pack,
.photo--sm .ph--pack {
  --cp: 4px;
  --cd: 3px;
}

.photo--xs .ph {
  --sh-y: 4px;
  --sh-y-lift: 6px;
  --sh-blur: 1.5px;
}

.photo--xs .ph::after {
  display: none;
}

/* ---------- card de produto: "brinquedo na prateleira" ----------
   O mesmo desenho do produto da home (.toy em home.css): foto num quadrado de cor
   chapada, adesivo torto com recorte branco, nome em Fredoka, preço gordinho e
   botão em pílula (.kbtn do kit desenhado). Markup: _ProductCard.cshtml == productCard() do ui.js.
   A cor do quadrado sai do tipo de produto: lacrado = sol, carta = céu,
   acessório = menta, rara de coleção = pêssego, graduada = noite. */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: var(--s7) var(--s5);
  padding-top: var(--s3);
}

.tile {
  --toy-bg: var(--sky-soft);
  --toy-deep: var(--sky-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: var(--navy);
  container: tile / inline-size;
}

.tile--sealed {
  --toy-bg: var(--sun-soft);
  --toy-deep: var(--sun-deep);
}

.tile--accessory {
  --toy-bg: var(--mint);
  --toy-deep: var(--mint-deep);
}

.tile--highend {
  --toy-bg: var(--peach);
  --toy-deep: var(--peach-deep);
}

.tile--graded {
  --toy-bg: var(--navy-2);
  --toy-deep: rgb(0 0 0 / 0.4);
}

.tile__pic {
  position: relative;
}

.tile__stage {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--toy-bg);
  transition: transform var(--t2) var(--ease-out);
}

.tile__stage > .photo {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
}

/* silhueta sem foto com cara de desenho: objeto branco, contorno navy e sombra chapada */
.tile__stage .ph {
  --ph-hi: #ffffff;
  --ph-a: #ffffff;
  --ph-b: #f1f4fb;
  --ph-line: rgb(42 23 71 / 0.22);
  --ph-band: var(--toy-deep);
  --ph-shade: rgb(42 23 71 / 0.06);
  --ph-shadow: var(--toy-deep);
  --sh-blur: 0px;
  --sh-y: 7px;
  --sh-y-lift: 11px;
}

.tile__stage .ph > i {
  box-shadow: inset 0 0 0 2.5px var(--navy);
}

.tile__stage .ph::after {
  display: none;
}

.tile--graded .tile__stage .ph {
  --ph-band: var(--sun);
}

/* adesivos tortos com recorte branco: um em pílula (esgotado, pré-venda, nota ou raridade)
   e o redondo do desconto */
.tile__sticker {
  position: absolute;
  top: -0.625rem;
  left: -0.375rem;
  z-index: 3;
  max-width: calc(100% - 3rem);
  overflow: hidden;
  padding: 0.28rem 0.8rem 0.34rem;
  border: 3px solid #fff;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
  rotate: -5deg;
  box-shadow: 0 3px 8px -3px rgb(42 23 71 / 0.35);
  pointer-events: none;
}

.tile__sticker--grade {
  background: var(--sun);
  color: var(--navy);
}

/* pack (kit montado pela loja): menta, para não sumir no quadradinho amarelo */
.tile__sticker--pack {
  background: var(--mint);
  color: var(--navy);
}

.tile__sticker--rare {
  background: var(--royal);
  color: #fff;
}

.tile__sticker--out {
  background: var(--kid-ink-2);
  color: #fff;
}

/* desconto: adesivo redondo e grande, o primeiro lugar onde o olho cai */
.tile__sticker--sale {
  top: -0.75rem;
  left: -0.625rem;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  max-width: none;
  padding: 0;
  border-width: 4px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  rotate: -10deg;
}

/* com pílula em cima, o desconto desce para o canto de baixo */
.tile__sticker--pill ~ .tile__sticker--sale {
  top: auto;
  left: auto;
  right: -0.5rem;
  bottom: -0.5rem;
  rotate: 9deg;
}

/* favoritar: botão redondo branco no canto do quadrado */
.fav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--navy);
  transition: color var(--t1), background-color var(--t1), transform var(--t2) var(--ease-out);
}

.fav:hover {
  background: #fff;
  color: var(--royal);
}

.fav.is-on {
  color: var(--royal);
}

.fav.is-on .icon {
  fill: currentColor;
}

.fav:active {
  transform: scale(0.9);
}

.tile--graded .fav {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.tile--graded .fav:hover,
.tile--graded .fav.is-on {
  background: #fff;
  color: var(--royal);
}

.tile__meta {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  padding-block: var(--s3);
}

.tile__name {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile__name a {
  color: inherit;
  text-decoration: none;
}

.tile__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* tipo em palavras simples: "Booster · 10 cartas", "Carta graduada · PSA 10" */
.tile__type {
  margin-top: 0.2rem;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--kid-ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* coleção por extenso; sigla e número miudinhos depois (nunca acima do nome) */
.tile__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  margin-top: 0.1rem;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-3);
}

.tile__set {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tile__code {
  flex: none;
  font-size: 0.75rem;
}

.tile .price {
  gap: 0 0.5rem;
  margin-top: var(--s2);
}

.tile .price__now {
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
}

.tile .price__old {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--kid-ink-2);
}

/* o desconto já está no adesivo redondo */
.tile .price__off {
  display: none;
}

.tile__note {
  margin-top: 0.15rem;
}

.tile__note .stock {
  font-size: 0.875rem;
  font-weight: 650;
}

.tile__note .stock::before {
  display: none;
}

.tile__note .stock--low {
  color: #9a3412;
}

.tile__note .stock--pre {
  color: var(--royal-deep);
}

/* .kbtn.tile__add: vence o gap do .kbtn (declarado depois); o mesmo respiro do botão da home */
.kbtn.tile__add {
  gap: 0.28em;
  margin-top: auto;
}

/* esgotado: foto apagada, o quadrado mantém a cor */
.tile.is-sold .photo__subject {
  opacity: 0.5;
  filter: grayscale(1);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__stage {
    transform: translateY(-4px) rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover .tile__stage {
    transform: none;
  }
}

/* coluna estreita: o botão fica só "Adicionar" (o rótulo completo está no aria-label) */
@container tile (max-width: 15rem) {
  .tile__more {
    display: none;
  }
}

/* grade de 2 colunas no celular: tudo um pouco menor, sem perder o jeitão */
@container tile (max-width: 12rem) {
  .tile__stage {
    border-radius: 20px;
  }

  .tile__sticker {
    padding: 0.22rem 0.6rem 0.28rem;
    font-size: 0.8125rem;
    border-width: 2.5px;
  }

  .tile__sticker--sale {
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-size: 0.9375rem;
    border-width: 3px;
  }

  .tile .fav {
    top: 0.25rem;
    right: 0.25rem;
  }

  .tile__name {
    font-size: 1rem;
  }

  .tile__type {
    font-size: 0.8125rem;
  }

  .tile__line {
    font-size: 0.75rem;
  }

  .tile .price__now {
    font-size: 1.25rem;
  }

  .tile .price__old {
    font-size: 0.8125rem;
  }

  .tile__note .stock {
    font-size: 0.8125rem;
  }

  .tile__add {
    --h: 2.75rem;
    padding: 0 0.75rem;
    font-size: 1rem;
  }
}

/* botão de adicionar das linhas (lista do catálogo): a mesma pílula gordinha do .kbtn */
.addbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.75rem;
  padding: 0 1.125rem 0 0.875rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--royal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  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);
}

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

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

.addbtn:active:not(:disabled) {
  transform: translateY(0);
}

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

.addbtn.is-added {
  background: var(--ok);
}

.addbtn.is-added .icon {
  animation: addbtn-pop var(--t3) var(--ease-out);
}

@keyframes addbtn-pop {
  40% {
    transform: scale(1.25) rotate(-8deg);
  }
}

.addbtn:disabled {
  background: var(--field);
  color: var(--ink-3);
  box-shadow: none;
  cursor: not-allowed;
}

/* legado: botão de adicionar das listas antigas */
.btn-add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-size: var(--fs-small);
  font-weight: 650;
  transition: background-color var(--t1), color var(--t1), border-color var(--t1);
}

.btn-add .icon {
  width: 1rem;
  height: 1rem;
}

.btn-add:hover {
  border-color: var(--royal);
  background: var(--royal);
  color: #fff;
}

.btn-add:disabled {
  border-style: dashed;
  border-color: var(--rule-2);
  background: transparent;
  color: var(--ink-3);
}

/* ---------- selo de tinta ---------- */

.seal {
  display: block;
  flex: none;
  overflow: visible;
  --seal-fill: var(--ember);
  --seal-ink: var(--navy);
  --seal-reg: var(--royal);
}

.seal__body {
  fill: var(--seal-fill);
}

.seal__reg {
  fill: none;
  stroke: var(--seal-reg);
  stroke-width: 1.6;
  mix-blend-mode: multiply;
}

.seal__line {
  fill: none;
  stroke: var(--seal-ink);
  stroke-width: 1;
}

.seal__line--dash {
  stroke-width: 1.4;
  stroke-dasharray: 3 3.4;
}

.seal text {
  fill: var(--seal-ink);
  font-family: var(--font-body);
}

.seal__ring-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seal__center {
  font-family: var(--font-display) !important;
  font-weight: 820;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.seal--mini .seal__center {
  font-stretch: 100%;
}

/* data no miolo do selo: Archivo, como o resto do selo (nunca mono) */
.seal__sub {
  font-family: var(--font-display) !important;
  font-weight: 760;
  font-stretch: 108%;
  letter-spacing: -0.01em;
}

.seal--ember {
  --seal-fill: var(--ember);
  --seal-ink: var(--navy);
  --seal-reg: var(--royal);
}

.seal--royal {
  --seal-fill: var(--royal);
  --seal-ink: #fff;
  --seal-reg: var(--ember);
}

.seal--navy {
  --seal-fill: var(--navy);
  --seal-ink: #fff;
  --seal-reg: var(--vivid);
}

.seal--paper {
  --seal-fill: var(--paper);
  --seal-ink: var(--royal);
  --seal-reg: var(--ember);
}

.seal--sale {
  --seal-fill: var(--paper);
  --seal-ink: var(--sale);
  --seal-reg: var(--royal);
}

.seal--royal .seal__reg,
.seal--navy .seal__reg {
  mix-blend-mode: normal;
}

/* ---------- linha de especificação (callout) ---------- */

.callout {
  --len: clamp(3rem, 7vw, 7rem);
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  display: flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  pointer-events: none;
  translate: -4px -50%;
}

.callout--left {
  flex-direction: row-reverse;
  translate: calc(-100% + 4px) -50%;
}

.callout__node {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ember);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.5);
}

.callout__line {
  flex: none;
  width: var(--len);
  height: 2px;
  overflow: visible;
}

.callout__line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--t4) var(--ease-out);
}

.callout--left .callout__line path {
  stroke-dashoffset: 0;
}

/* rótulo em texto; só vira mono quando o rótulo é um código (nota, certificado, número) */
.callout__label {
  padding: 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: opacity var(--t3) var(--ease-out) 380ms;
}

.callout__label .data {
  font-size: 0.92em;
}

.callout--data .callout__label {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 500;
  font-stretch: 87.5%;
  font-variant-numeric: tabular-nums slashed-zero;
}

.on-navy .callout {
  color: #fff;
}

/* estado inicial só quando o ui.js vai desenhar (sem JS a linha já aparece) */
.callout[data-draw="pending"] .callout__line path {
  stroke-dashoffset: 1;
}

.callout--left[data-draw="pending"] .callout__line path {
  stroke-dashoffset: -1;
}

.callout[data-draw="pending"] .callout__label {
  opacity: 0;
}

/* ---------- selo de raridade ---------- */

.rarity {
  --rc: var(--r-comum);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.rarity__seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--rc);
}

.rarity__seal svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rarity--incomum {
  --rc: var(--r-incomum);
}

.rarity--rara {
  --rc: var(--r-rara);
}

.rarity--ultra {
  --rc: var(--r-ultra);
}

.rarity--secreta {
  --rc: var(--r-secreta);
}

.rarity--secreta .rarity__seal,
.rarity--alt .rarity__seal {
  width: 1.125rem;
  height: 1.125rem;
  padding: 2px;
  border-radius: 50%;
  background: var(--foil);
  box-shadow: inset 0 0 0 1px rgb(42 23 71 / 0.3);
  color: var(--navy);
}

.rarity--secreta .rarity__seal {
  box-shadow: inset 0 0 0 1.5px var(--r-secreta);
}

/* ---------- preço e estoque ---------- */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--s2);
  min-width: 0;
  line-height: 1.15;
}

.price__now {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 104%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.price__from {
  margin-right: 0.3em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
}

.price__old {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price__off {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sale);
  white-space: nowrap;
}

.price--lg .price__now {
  font-size: 1.75rem;
  font-weight: 760;
  font-stretch: 110%;
}

.price--xl .price__now {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.price--xl .price__old,
.price--xl .price__off {
  font-size: var(--fs-small);
}

.on-navy .price__off {
  color: #ffb08f;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-micro);
  font-weight: 600;
}

.stock::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stock--in {
  color: var(--ok);
}

.stock--low {
  color: var(--low);
}

.stock--out {
  color: var(--ink-3);
}

.stock--out::before {
  background: var(--out);
}

.stock--pre {
  color: var(--royal);
}

.stock--pre::before {
  border: 1.5px solid currentColor;
  background: none;
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-block: var(--s5) 0;
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--s2);
  color: var(--rule-2);
}

/* página atual: uma linha só, com reticências, em vez de quebrar a trilha */
.crumbs li[aria-current] {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- footer ----------
   Faixa navy de cantos bem redondos; a newsletter é uma ilha amarela com botão
   gordinho; títulos em Fredoka com um adesivo pequeno do lado. */

.footer {
  margin-top: var(--s9);
  padding-top: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
  border-radius: clamp(1.75rem, 1rem + 2.4vw, 3rem) clamp(1.75rem, 1rem + 2.4vw, 3rem) 0 0;
  background: var(--navy);
  color: rgb(255 255 255 / 0.82);
  font-size: var(--fs-small);
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer :focus-visible {
  outline-color: var(--sun);
}

/* ilha da newsletter: texto à esquerda, formulário à direita, adesivo de envelope no canto */
.footer__news {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s5) var(--s6);
  align-items: center;
  color: var(--navy);
}

.footer__news :focus-visible {
  outline-color: var(--navy);
}

.footer__news .island__star--a {
  top: 1rem;
  right: 42%;
  color: #fff;
}

.footer__news .island__star--b {
  top: auto;
  bottom: 1.25rem;
  right: 1.25rem;
}

.footer__news-sticker {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  rotate: 10deg;
  filter: drop-shadow(0 3px 4px rgb(42 23 71 / 0.18));
  pointer-events: none;
}

.footer__intro {
  grid-column: 1 / span 5;
}

.footer__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.625rem);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.012em;
  line-height: 1.02;
  color: var(--navy);
  text-wrap: balance;
}

.footer__intro p {
  max-width: 40ch;
  margin-top: var(--s3);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--kid-ink-2);
}

.newsletter {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s2) var(--s3);
  padding-right: 4.5rem;
}

.newsletter__label {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}

.newsletter__input {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0 1.375rem;
  border: 3px solid #fff;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  caret-color: var(--royal);
  box-shadow: 0 2px 4px rgb(42 23 71 / 0.08);
  transition: border-color var(--t1) var(--ease-out), box-shadow var(--t1) var(--ease-out);
}

.newsletter__input::placeholder {
  color: #66597f;
  opacity: 1;
}

.newsletter__input:hover {
  border-color: var(--sky-soft);
}

.newsletter__input:focus,
.newsletter__input:focus-visible {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgb(33 65 230 / 0.25);
}

.newsletter__input[aria-invalid="true"] {
  border-color: var(--sale);
}

.newsletter__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgb(194 65 12 / 0.25);
}

.newsletter__msg {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.newsletter__msg[data-state="error"] {
  color: #9a3412;
}

.newsletter__msg[data-state="ok"] {
  color: #075c3e;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.35fr;
  gap: var(--s6) var(--s5);
  padding-block: var(--s8) var(--s7);
}

.footer__brand .logo {
  color: #fff;
}

.footer__brand .packmark__body {
  fill: var(--sun);
}

.footer__brand .packmark__tear {
  stroke: var(--navy);
}

.footer__brand .packmark__dot {
  fill: var(--ember);
}

.footer__brand p {
  max-width: 34ch;
  margin-top: var(--s4);
  line-height: 1.55;
}

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

/* Instagram como pílula macia sobre o navy */
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: 0 1rem 0 0.875rem;
  border-radius: var(--r-pill);
  background: var(--navy-2);
  font-weight: 600;
}

.footer__social a:hover {
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}

.footer h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--sun);
}

.footer__sticker {
  flex: none;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  margin-top: -0.25rem;
  rotate: -8deg;
}

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

.footer__contact a {
  text-decoration: underline;
  text-decoration-color: rgb(255 213 61 / 0.7);
  text-underline-offset: 0.2em;
}

.footer__grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.footer address {
  line-height: 1.7;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-block: var(--s5);
  border-top: 2px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-micro);
  color: var(--sky);
}

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
  .footer__news {
    grid-template-columns: 1fr;
  }

  .footer__intro,
  .newsletter {
    grid-column: 1 / -1;
  }

  /* o adesivo fica no canto de cima: o título abre espaço para ele */
  .footer__intro {
    padding-right: 4.5rem;
  }

  .footer__news .island__star--a {
    display: none;
  }

  .newsletter {
    padding-right: 0;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* toque: todo link e botão compartilhado com alvo de 44px */
@media (max-width: 960px), (pointer: coarse) {
  .footer__grid li a,
  .footer address a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .crumbs {
    align-items: center;
    padding-top: var(--s3);
  }

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

@media (max-width: 720px) {
  .logo__name {
    font-size: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter .kbtn {
    justify-self: stretch;
  }

  .footer__base {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6) var(--s3);
  }

  .price__now {
    font-size: 1.125rem;
  }

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

  .mini__thumb {
    width: 3.5rem;
  }
}

@media (max-width: 420px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5) var(--s4);
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Sistema de seções (round 3): cabeçalho de seção, faixas e divisores.
   Markup escrito pelas páginas; ver .impeccable/ux-system-round3.md §1–§2.
   ========================================================= */

/* ---------- cabeçalho de seção (.sec-head) ----------
   <header class="sec-head [sec-head--center] [sec-head--on-dark]">
     <span class="sec-head__icon" aria-hidden="true">…renderIcon…</span>
     <div class="sec-head__text">
       <h2 class="sec-head__title">…</h2>
       <p class="sec-head__sub">…</p>
     </div>
     <a class="sec-head__cta" href="…">Ver todas as ofertas <i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
   </header>
   Sem eyebrow: o ícone fica ao lado do título, nunca acima como rótulo. */

.sec-head {
  --sec-icon-bg: var(--field);
  --sec-icon-ink: var(--royal);
  --sec-cta-bg: var(--field);
  --sec-cta-ink: var(--royal-deep);
  --sec-cta-bg-hover: var(--royal);
  --sec-cta-ink-hover: #fff;
  display: flex;
  align-items: flex-start;
  gap: var(--s3) var(--s4);
  margin-bottom: clamp(2rem, 1.6rem + 1vw, 2.5rem);
  color: var(--ink);
}

.sec-head__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: var(--sec-icon-bg);
  color: var(--sec-icon-ink);
  font-size: 1.25rem;
  line-height: 1;
}

.sec-head__icon > svg,
.sec-head__icon .ni--glyph,
.sec-head__icon .ni--svg,
.sec-head__icon .ni--img {
  width: 1.375rem;
  height: 1.375rem;
}

.sec-head__icon .ni--sticker {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  rotate: -6deg;
}

/* adesivo desenhado: solto ao lado do título, maior e sem caixinha de fundo */
.sec-head__icon--sticker,
.sec-head__icon:has(.ni--sticker) {
  width: 4rem;
  height: 4rem;
  margin-block: -0.5rem;
  border-radius: 0;
  background: none;
}

.sec-head__icon--sticker .ni--sticker,
.sec-head__icon:has(.ni--sticker) .ni--sticker {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 3px 4px rgb(42 23 71 / 0.18));
  transition: transform var(--t2) var(--ease-out);
}

.sec-head:hover .sec-head__icon .ni--sticker {
  animation: wiggle 600ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .sec-head:hover .sec-head__icon .ni--sticker {
    animation: none;
  }
}

.sec-head__text {
  flex: 1 1 auto;
  min-width: 0;
  /* título alinhado ao centro óptico do ícone de 48px */
  padding-top: 0.125rem;
}

/* o mesmo título da home (.khead__title): Fredoka grande e redondinha */
.sec-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.125rem);
  font-weight: 700;
  font-stretch: 102%;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: inherit;
}

.sec-head__sub {
  max-width: 56ch;
  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;
}

.sec-head__cta {
  flex: none;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  margin-left: auto;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--sec-cta-bg);
  color: var(--sec-cta-ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t1) var(--ease-out), color var(--t1) var(--ease-out),
    transform var(--t2) var(--ease-out);
}

.sec-head__cta > i,
.sec-head__cta > .icon,
.sec-head__cta > .ni {
  flex: none;
  font-size: 0.875em;
  transition: transform var(--t2) var(--ease-out);
}

.sec-head__cta:hover {
  background: var(--sec-cta-bg-hover);
  color: var(--sec-cta-ink-hover);
  transform: translateY(-2px);
}

.sec-head__cta:hover > i,
.sec-head__cta:hover > .icon,
.sec-head__cta:hover > .ni {
  transform: translateX(3px);
}

.sec-head__cta:focus-visible {
  outline: 2px solid var(--vivid);
  outline-offset: 3px;
}

/* centralizado: ícone ao lado do título; subtítulo e CTA em linhas próprias, no eixo */
.sec-head--center {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sec-head--center .sec-head__text {
  display: contents;
}

.sec-head--center .sec-head__title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 24ch;
}

/* largura cheia força a quebra de linha; o recuo lateral mantém ~56ch de texto */
.sec-head--center .sec-head__sub {
  flex: 0 0 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(0px, calc(50% - 28ch));
}

.sec-head--center .sec-head__cta {
  align-self: center;
  margin: var(--s1) 0 0;
}

/* sobre fundo escuro (navy/royal): ícone em campo azulado, texto branco */
.sec-head--on-dark,
.band--navy .sec-head,
.band--royal .sec-head,
.on-navy .sec-head {
  --sec-icon-bg: rgb(77 124 255 / 0.24);
  --sec-icon-ink: #fff;
  --sec-cta-bg: rgb(255 255 255 / 0.12);
  --sec-cta-ink: #fff;
  --sec-cta-bg-hover: #fff;
  --sec-cta-ink-hover: var(--navy);
  color: #fff;
}

.sec-head--on-dark .sec-head__sub,
.band--navy .sec-head__sub,
.band--royal .sec-head__sub,
.on-navy .sec-head__sub {
  color: rgb(255 255 255 / 0.84);
}

.band--royal .sec-head {
  --sec-icon-bg: rgb(255 255 255 / 0.16);
}

/* sobre o campo azul, o ícone e o CTA viram papel para não sumir */
.band--field .sec-head:not(.sec-head--on-dark) {
  --sec-icon-bg: var(--paper);
  --sec-cta-bg: var(--paper);
}

@media (max-width: 640px) {
  .sec-head {
    flex-wrap: wrap;
    gap: var(--s3);
    margin-bottom: var(--s6);
  }

  .sec-head__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    font-size: 1.125rem;
  }

  .sec-head__icon--sticker,
  .sec-head__icon:has(.ni--sticker),
  .sec-head__icon--sticker .ni--sticker,
  .sec-head__icon:has(.ni--sticker) .ni--sticker {
    width: 3.25rem;
    height: 3.25rem;
    margin-block: -0.25rem;
  }

  .sec-head__text {
    flex-basis: calc(100% - 2.75rem - var(--s3));
    padding-top: 0;
  }

  .sec-head__sub {
    font-size: 1rem;
  }

  /* CTA vai para baixo do subtítulo, pílula de largura total */
  .sec-head__cta,
  .sec-head--center .sec-head__cta {
    flex: 1 1 100%;
    align-self: stretch;
    margin: var(--s1) 0 0;
    min-height: 3rem;
    white-space: normal;
    text-align: center;
  }

  /* no celular o centralizado vira a mesma leitura do padrão: alinhado à esquerda */
  .sec-head--center {
    justify-content: flex-start;
    text-align: left;
  }

  .sec-head--center .sec-head__title {
    flex: 1 1 calc(100% - 2.75rem - var(--s3));
    max-width: none;
  }

  .sec-head--center .sec-head__sub {
    padding-inline: 0;
  }
}

/* ---------- faixas (.band) ----------
   Seções alternam faixas suaves para o usuário sentir onde uma termina.
   Respiro vertical padrão ≥ 72px (≥ 48px no celular); a página pode
   trocar com --band-pad (ex.: --band-pad: 0 quando a seção já tem padding). */

.band {
  --band-bg: var(--ground);
  position: relative;
  padding-block: var(--band-pad, clamp(3rem, 1.9rem + 3vw, 4.5rem));
  background-color: var(--band-bg);
  color: var(--ink);
}

.band--field {
  --band-bg: var(--field);
}

.band--paper {
  --band-bg: var(--paper);
}

.band--navy {
  --band-bg: var(--navy);
  --ink-2: rgb(255 255 255 / 0.8);
  --ink-3: var(--sky);
  --rule: var(--rule-on-navy);
  --rule-2: rgb(255 255 255 / 0.28);
  color: #fff;
}

.band--royal {
  --band-bg: var(--royal);
  --ink-2: rgb(255 255 255 / 0.9);
  --ink-3: #dbe4ff;
  --rule: rgb(255 255 255 / 0.2);
  --rule-2: rgb(255 255 255 / 0.36);
  color: #fff;
}

.band--navy :focus-visible,
.band--royal :focus-visible {
  outline-color: #fff;
}

/* ---------- divisores (decorativos, sempre aria-hidden) ----------
   <div class="divider divider--wave" style="--from:var(--ground);--to:var(--field)" aria-hidden="true"></div>
   <div class="divider divider--stars" aria-hidden="true"></div>
   <div class="divider divider--crimp" style="--from:var(--navy);--to:var(--ground)" aria-hidden="true"></div>
   --from = cor da faixa de cima, --to = cor da faixa de baixo; .divider--flip espelha. */

.divider {
  --from: var(--ground);
  --to: var(--field);
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

/* onda: uma curva única e macia; a cor de baixo sobe pela máscara SVG */
.divider--wave {
  height: clamp(1.75rem, 0.9rem + 3.4vw, 4rem);
  /* -1px em cima e embaixo: cobre a costura subpixel entre as faixas */
  margin-block: -1px;
  background-color: var(--from);
}

.divider--wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--to);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 46C300 10 640 0 940 16C1160 28 1320 46 1440 40V64H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 46C300 10 640 0 940 16C1160 28 1320 46 1440 40V64H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.divider--wave.divider--flip::before {
  transform: scaleX(-1);
}

/* estrelinhas: linha pontilhada com três estrelas de 4 pontas no centro,
   para separar seções na mesma faixa */
.divider--stars {
  --star-line: var(--rule-2);
  width: min(100% - 2 * var(--gutter), 45rem);
  height: 1.5rem;
  margin-inline: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 24'%3E%3Cg fill='%232141e6'%3E%3Cpath d='M14 7Q14 12 19 12Q14 12 14 17Q14 12 9 12Q14 12 14 7Z'/%3E%3Cpath d='M74 7Q74 12 79 12Q74 12 74 17Q74 12 69 12Q74 12 74 7Z'/%3E%3C/g%3E%3Cpath fill='%23ff6a2b' d='M44 2Q44 12 54 12Q44 12 44 22Q44 12 34 12Q44 12 44 2Z'/%3E%3C/svg%3E")
    50% 50% / 5.5rem 1.5rem no-repeat;
}

.divider--stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--star-line) 1.25px, transparent 1.75px) 0 50% / 10px 10px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 calc(50% - 3.5rem), transparent calc(50% - 3.5rem),
    transparent calc(50% + 3.5rem), #000 calc(50% + 3.5rem), #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 calc(50% - 3.5rem), transparent calc(50% - 3.5rem),
    transparent calc(50% + 3.5rem), #000 calc(50% + 3.5rem), #000 88%, transparent);
}

.band--navy .divider--stars,
.band--royal .divider--stars,
.on-navy .divider--stars {
  --star-line: rgb(255 255 255 / 0.36);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 24'%3E%3Cg fill='%239db7ff'%3E%3Cpath d='M14 7Q14 12 19 12Q14 12 14 17Q14 12 9 12Q14 12 14 7Z'/%3E%3Cpath d='M74 7Q74 12 79 12Q74 12 74 17Q74 12 69 12Q74 12 74 7Z'/%3E%3C/g%3E%3Cpath fill='%23ff6a2b' d='M44 2Q44 12 54 12Q44 12 44 22Q44 12 34 12Q44 12 44 2Z'/%3E%3C/svg%3E");
}

/* serrilha do booster: dentes da cor de cima mordendo a faixa de baixo.
   Reservada à base do hero e à faixa de campanha. */
.divider--crimp {
  height: 0.625rem;
  margin-block: -1px;
  background-color: var(--to);
}

.divider--crimp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--from);
  -webkit-mask: var(--tooth-down) 0 0 / 0.75rem 100% round no-repeat;
  mask: var(--tooth-down) 0 0 / 0.75rem 100% round no-repeat;
}

/* invertida: dentes da cor de baixo subindo na faixa de cima */
.divider--crimp.divider--flip {
  background-color: var(--from);
}

.divider--crimp.divider--flip::before {
  background-color: var(--to);
  -webkit-mask-image: var(--tooth-up);
  mask-image: var(--tooth-up);
}

/* =========================================================
   KIT DESENHADO (vale para o site inteiro)
   O estilo aprovado no topo da home: adesivo torto com recorte branco (.kbadge),
   botão gordinho (.kbtn), ilhas de cor chapada (.island) e estrelinhas.
   Cores em base.css (:root): --sun, --sun-soft, --sky-soft, --mint, --peach, --kid-ink-2.
   Adesivos desenhados: wwwroot/img/icones/ (só esses; nenhum com marca d'água).
   ========================================================= */

/* um balancinho de adesivo: usado no hover dos quadradinhos, da mão do "Venda pra gente" e afins */
@keyframes wiggle {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-7deg) scale(1.06); }
  60% { transform: rotate(4deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ---------- adesivo (o "Pré-venda" do topo, em outras cores) ---------- */

.kbadge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s3);
  padding: 0.3rem 0.95rem 0.36rem;
  border: 3px solid #fff;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  rotate: -4deg;
  box-shadow: 0 3px 8px -3px rgb(42 23 71 / 0.35);
}

.kbadge--ember {
  background: var(--ember);
  color: var(--navy);
}

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

/* ---------- botão gordinho (o "Comprar agora" do topo) ---------- */

.kbtn {
  --h: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--h);
  padding: 0 1.375rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--royal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  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), color var(--t1) var(--ease-out),
    transform var(--t2) var(--ease-out), box-shadow var(--t2) var(--ease-out);
}

.kbtn:hover {
  background: var(--royal-deep);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgb(42 23 71 / 0.14), 0 14px 22px -12px rgb(42 23 71 / 0.5);
}

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

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

.kbtn--lg {
  --h: 3.5rem;
  padding: 0 1.75rem;
  font-size: 1.1875rem;
}

.kbtn--block {
  width: 100%;
}

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

.kbtn--sun:hover {
  background: #e6d6f8;
}

.kbtn--white {
  background: #fff;
  color: var(--royal-deep);
}

.kbtn--white:hover {
  background: var(--field);
}

.kbtn--soft {
  background: var(--field);
  color: var(--royal-deep);
  box-shadow: none;
}

.kbtn--soft:hover {
  background: var(--field-2);
  box-shadow: none;
}

.kbtn:disabled {
  background: var(--field);
  color: var(--ink-3);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* o ui.js marca o botão por um instante depois de adicionar */
.kbtn.is-added {
  background: var(--ok);
  color: #fff;
}

/* ---------- ilhas de cor ---------- */

.island {
  --i-pad: clamp(1.25rem, 0.6rem + 2.4vw, 2.75rem);
  position: relative;
  padding: var(--i-pad);
  border-radius: clamp(1.5rem, 1rem + 1.2vw, 2rem);
  background: var(--i-bg, var(--sun-soft));
  color: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.island--sun {
  --i-bg: var(--sun-soft);
}

.island--sky {
  --i-bg: var(--sky-soft);
}

.island--mint {
  --i-bg: var(--mint);
}

.island--peach {
  --i-bg: var(--peach);
}

.island--night {
  --i-bg: var(--navy);
  --kid-ink-2: rgb(255 255 255 / 0.82);
  color: #fff;
}

.island--royal {
  --i-bg: var(--royal);
  --kid-ink-2: rgb(255 255 255 / 0.9);
  color: #fff;
}

.island--night :focus-visible,
.island--royal :focus-visible {
  outline-color: #fff;
}

/* estrelinhas de 4 pontas e confete: a mesma mão que desenhou o topo */
.island__star,
.buybox__star,
.trade__star {
  position: absolute;
  z-index: -1;
  display: block;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
}

.island__star svg,
.buybox__star svg,
.trade__star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.island__star--a {
  top: 1.25rem;
  right: 2.5rem;
  color: var(--navy);
}

.island__star--b {
  top: 4.5rem;
  right: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ember);
}

.island__star--c {
  top: 2.25rem;
  right: 34%;
  width: 1.125rem;
  height: 1.125rem;
  color: #fff;
}

.island--night .island__star--a,
.island--royal .island__star--a {
  color: var(--sun);
}

.island--royal .island__star--b {
  color: #fff;
}

/* =========================================================
   DESENHOS DE TCG (wwwroot/img/desenhos/)
   Bolinha de captura e símbolos de energia no lugar das estrelinhas brilhantes:
   a decoração agora é coisa de jogo de cartas, não brilho genérico.
   Gerados por Graficos.Motivo(i) (C#) e motivo(i) (graphics.js).
   ========================================================= */

.island__star img,
.buybox__star img,
.trade__star img,
.pdp-shot__star img,
.pdp-404__star img,
.qchip__ic .motivo {
  display: block;
  width: 100%;
  height: 100%;
}

/* um pouco maiores que as estrelas, e tortinhos como adesivo colado à mão */
.island__star,
.buybox__star,
.trade__star {
  width: 2.75rem;
  height: 2.75rem;
  rotate: -12deg;
  filter: drop-shadow(0 3px 4px rgb(42 23 71 / 0.22));
}

.island__star--b,
.buybox__star--b,
.trade__star--b {
  width: 2.125rem;
  height: 2.125rem;
  rotate: 14deg;
}

.island__star--c {
  width: 1.875rem;
  height: 1.875rem;
  rotate: -6deg;
}

img.promo__star {
  width: 3.25rem;
  height: 3.25rem;
  rotate: -14deg;
  filter: drop-shadow(0 4px 5px rgb(42 23 71 / 0.22));
}

img.promo__star--b {
  width: 2.5rem;
  height: 2.5rem;
  rotate: 12deg;
}

img.promo__star--c {
  width: 2.125rem;
  height: 2.125rem;
}

/* =========================================================
   TRAÇO DE DESENHO
   Contorno navy de nanquim nos blocos e nos botões, como num desenho animado:
   é o que tira o jeito de "interface gerada" e deixa tudo com cara de carta e de cartoon.
   ========================================================= */

:root {
  --ink: 2.5px solid var(--navy);
}

.island,
.promo,
.kind,
.perk,
.ev,
.nextup,
.toy__stage,
.tile__stage {
  outline: var(--ink);
  outline-offset: -2.5px;
}

/* botões: contorno + "sombra de tinta" embaixo, que afunda quando aperta */
.kbtn {
  border: var(--ink);
  box-shadow: 0 4px 0 var(--navy);
}

.kbtn:hover {
  box-shadow: 0 6px 0 var(--navy);
}

.kbtn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--navy);
}

.kbtn--soft,
.kbtn--soft:hover {
  box-shadow: 0 3px 0 var(--navy);
}

.kbtn:disabled {
  border-color: rgb(42 23 71 / 0.25);
  box-shadow: none;
}

/* adesivos de texto (pré-venda, 1º lugar, desconto): recorte branco + linha de nanquim por fora */
.kbadge,
.toy__sticker,
.tile__sticker {
  box-shadow: 0 0 0 2px var(--navy), 0 4px 0 2px var(--navy);
}

@media (forced-colors: active) {
  .kbtn {
    box-shadow: none;
  }
}

/* =========================================================
   ESTRELAS DE AVALIAÇÃO
   Estrela de 5 pontas desenhada (Models/ViewModels/Avaliacoes/Estrelas.cs e stars() do ui.js):
   miolo amarelo, contorno de nanquim; cheia, meia ou vazia (branca).
   ========================================================= */

.stars {
  --star: 1.125rem;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.1em;
  line-height: 0;
  vertical-align: middle;
}

.stars__s {
  flex: none;
  width: var(--star);
  height: var(--star);
  overflow: visible;
}

.stars--xs {
  --star: 0.9375rem;
  gap: 1px;
}

.stars--sm {
  --star: 1.125rem;
}

.stars--md {
  --star: 1.5rem;
}

.stars--lg {
  --star: 2.25rem;
  gap: 0.2rem;
}

.stars__fill {
  fill: var(--sun);
}

.stars__bg {
  fill: #fff;
}

.stars__ink {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* pequenininha: traço um pouco mais grosso para não sumir */
.stars--xs .stars__ink {
  stroke-width: 2;
}

/* estrelinhas do card de produto: "★★★★½ 4,5 (2)" */
.tile__rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--kid-ink-2);
}

.tile__rating-n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

@media (forced-colors: active) {
  .stars__fill {
    fill: CanvasText;
  }

  .stars__ink {
    stroke: CanvasText;
  }
}
