/* ==========================================================================
   Vendas DIGITECH — stylesheet
   Paleta: amarelo #ffd400 / preto #111111 / branco
   Sem bibliotecas externas. Fonte do sistema = carregamento instantâneo.
   ========================================================================== */

/* ------------------------------ Tokens ---------------------------------- */
:root {
  --yellow: #ffd400;
  --yellow-dark: #f2c200;
  --black: #111111;
  --ink: #1c1c1c;
  --ink-2: #3a3a3a;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --line-2: #f0f0f0;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --green: #00a650;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, .10);
  --shadow-lg: 0 18px 44px rgba(17, 17, 17, .18);
  --header-h: 148px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .25, 1);
}

/* ------------------------------ Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--yellow); color: var(--black); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* hidden do HTML sempre vence os display dos componentes */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  z-index: 200;
  background: var(--black); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.2vw, 44px);
}

.ico {
  width: 1em; height: 1em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -.125em;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ------------------------------ Botões ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn .ico { font-size: 1.05em; }

.btn--accent { background: var(--yellow); color: var(--black); }
.btn--accent:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.btn--outline {
  background: #fff;
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--black);
}
.btn--outline:hover { background: var(--black); color: #fff; }

.btn--ghost {
  background: var(--bg-soft);
  color: var(--black);
}
.btn--ghost:hover { background: #ececec; }

.btn--buy {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  background: var(--yellow);
  color: var(--black);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
}
.btn--buy:hover { background: var(--yellow-dark); }

.btn[aria-disabled="true"],
.btn[disabled] {
  background: #efefef;
  color: #8b8b8b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  white-space: normal;
  font-weight: 600;
  font-size: .82rem;
  padding: 11px 10px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.35rem;
  transition: background-color .18s var(--ease);
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

.lnk {
  border: 0; background: none;
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  padding: 4px;
}
.lnk:hover { color: var(--black); }

.badge-count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--yellow);
  color: var(--black);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.badge-count--dark {
  position: static;
  background: var(--black);
  color: var(--yellow);
  border: 0;
  height: 17px; min-width: 17px;
  font-size: .65rem;
}

/* ------------------------------ Topbar ---------------------------------- */
.topbar {
  background: var(--yellow);
  color: var(--black);
  font-size: .82rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar__trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar__trust .ico { font-size: 1rem; }

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.topbar__note strong { font-weight: 800; }
.topbar__note .ico { font-size: .95rem; opacity: .8; }

/* ------------------------------ Header ---------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line-2), 0 6px 16px rgba(17, 17, 17, .05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 16px;
}

.header__menu { display: none; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--yellow);
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px var(--black);
  color: var(--black);
}
.logo__mark svg {
  width: 26px; height: 26px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__top {
  font-size: .68rem;
  letter-spacing: .26em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.logo__bottom {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--black);
}

/* Busca */
.search {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  max-width: 720px;
  background: #fff;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding-left: 14px;
  transition: box-shadow .18s var(--ease);
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(255, 212, 0, .45); }
.search__ico {
  font-size: 1.15rem;
  color: var(--muted);
  margin-right: 8px;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 13px 0;
  font-size: .95rem;
  outline: none;
}
.search input::placeholder { color: #9a9a9a; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__btn {
  align-self: stretch;
  width: 58px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.25rem;
  transition: background-color .18s var(--ease);
}
.search__btn:hover { background: var(--yellow-dark); }

/* Ações do header */
.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--black);
  font-size: 1.4rem;
  transition: background-color .18s var(--ease);
}
.action:hover { background: var(--bg-soft); }
.action__ico-wrap { position: relative; display: inline-flex; }
.action__text {
  display: flex;
  flex-direction: column;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.action__text small {
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
}
.action[aria-pressed="true"] .ico { fill: var(--black); }
.action[aria-pressed="true"] .action__text { color: var(--black); }

/* ------------------------------ Main nav -------------------------------- */
.mainnav {
  background: var(--black);
  color: #fff;
}
.mainnav__inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-height: 52px;
}
.mainnav__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 4px;
  border: 0;
  background: none;
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mainnav__all:hover { background: rgba(255, 255, 255, .08); }
.mainnav__chev { font-size: .85rem; margin-left: 2px; transition: transform .2s var(--ease); }
.mainnav__all[aria-expanded="true"] .mainnav__chev { transform: rotate(180deg); }

.mainnav__links {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.mainnav__links a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: .84rem;
  font-weight: 600;
  color: #ededed;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.mainnav__links a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.mainnav__links a[aria-current="true"] { color: var(--yellow); border-bottom-color: var(--yellow); }

.mainnav__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 4px 0 14px;
  border: 0;
  background: none;
  color: #ededed;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}
.mainnav__more:hover { color: var(--yellow); }

.cat-panel {
  background: #fff;
  color: var(--ink);
  border-bottom: 3px solid var(--yellow);
  box-shadow: var(--shadow-md);
}
.cat-panel__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 24px;
  padding-block: 14px 18px;
  max-height: min(70vh, 520px);
  overflow: auto;
}
.cat-panel__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  padding: 9px 8px;
  border-radius: 6px;
  font-size: .88rem;
  text-align: left;
}
.cat-panel__list button:hover { background: var(--bg-soft); }
.cat-panel__list button .count {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
  flex: none;
}

/* ------------------------------ Banner ---------------------------------- */
.banner {
  position: relative;
  margin-top: 22px;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0c0c;
  isolation: isolate;
}
.banner__art { position: absolute; inset: 0; z-index: 0; }
.banner__art picture,
.banner__art img { width: 100%; height: 100%; }
.banner__art img {
  object-fit: cover;
  object-position: right center;
}
.banner__art.is-empty { display: none; }

/* Scrim: escurece a esquerda (texto) e preserva a arte a direita */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .97) 0%, rgba(8, 8, 8, .92) 34%, rgba(8, 8, 8, .55) 56%, rgba(8, 8, 8, .05) 78%, rgba(8, 8, 8, 0) 92%),
    radial-gradient(120% 140% at 96% 10%, rgba(255, 212, 0, .16), transparent 55%);
  pointer-events: none;
}

.banner__copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  color: #fff;
}
.banner__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.banner__title {
  font-size: clamp(1.55rem, 3.3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.banner__title em {
  font-style: normal;
  color: var(--yellow);
  display: inline-block;
}
.banner__sub {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 460px;
  margin-bottom: 24px;
  font-size: .95rem;
  color: #e4e4e4;
}
.banner__sub .ico {
  font-size: 1.15rem;
  color: var(--yellow);
  margin-top: 2px;
}
.banner__cta { padding: 14px 26px; font-size: 1rem; }

/* --------------------------- Faixa de categorias -------------------------- */
.cat-strip-wrap { margin-top: 20px; }

.cat-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.cat-strip__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
}
.cat-strip__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 104px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.cat-strip__btn .ico { font-size: 1.85rem; color: var(--black); }
.cat-strip__btn:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cat-strip__btn[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.cat-strip__btn[aria-pressed="true"] .ico { color: var(--yellow); }

/* ------------------------------ Layout ---------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 30px;
}

/* Catálogo ainda sem produtos: esconde o que não serve para nada */
body.no-catalog .layout { grid-template-columns: minmax(0, 1fr); }
body.no-catalog .filters,
body.no-catalog .btn--filter,
body.no-catalog .sort,
body.no-catalog .toolbar,
body.no-catalog .cat-strip-wrap,
body.no-catalog .ranking { display: none !important; }

/* ------------------------------ Filtros --------------------------------- */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-sm);
}
.filters__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filters__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-right: auto;
}
.filters__title .ico { font-size: 1.15rem; }
.filters__close { display: none; }

.filters__block { margin-bottom: 20px; }
.filters__sub {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.filters__cats { display: flex; flex-direction: column; gap: 1px; max-height: 290px; overflow: auto; }
.filters__cats button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: .855rem;
  text-align: left;
  color: var(--ink-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.filters__cats button:hover { background: var(--bg-soft); color: var(--black); }
.filters__cats button .count {
  font-size: .74rem;
  color: var(--muted);
  font-weight: 600;
  flex: none;
}
.filters__cats button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
}
.filters__cats button[aria-pressed="true"] span { color: #5a4b00; }

.price-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.price-range input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .85rem;
  background: #fbfbfb;
  outline: none;
}
.price-range input:focus { border-color: var(--black); background: #fff; }
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range span { color: var(--muted); font-size: .8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .855rem;
  font-weight: 600;
  color: var(--ink-2);
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__box {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  font-size: .85rem;
  transition: all .15s var(--ease);
}
.switch input:checked + .switch__box {
  background: var(--yellow);
  border-color: var(--black);
  color: var(--black);
}
.switch input:checked + .switch__box .ico { stroke: currentColor; fill: currentColor; }
.switch input:focus-visible + .switch__box { outline: 3px solid var(--black); outline-offset: 2px; }

.filters__note {
  display: flex;
  gap: 8px;
  padding: 10px 11px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--muted);
}
.filters__note .ico { font-size: 1rem; margin-top: 1px; flex: none; }

/* ------------------------------ Catálogo -------------------------------- */
.catalog { min-width: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 14px;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-title__ico {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--yellow);
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--black);
}
.section-source {
  font-size: .74rem;
  color: var(--muted);
}
.section-source a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section-source strong { color: var(--ink-2); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.section-link:hover { color: var(--ink-2); }

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--bg-soft);
  border-radius: 8px;
}
.toolbar__count { font-size: .82rem; font-weight: 700; }
.toolbar__count span { color: var(--muted); font-weight: 500; }
.toolbar__right { display: flex; align-items: center; gap: 12px; }

.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.sort select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  max-width: 190px;
}

.btn--filter {
  display: none;
  position: relative;
  gap: 7px;
  padding: 9px 14px;
  background: var(--black);
  color: #fff;
  font-size: .82rem;
}
.btn--filter .ico { font-size: 1.05rem; }

/* Grid de produtos — preenche a largura toda da página.
   auto-fill + minmax calcula as colunas pela largura disponível:
   ~8 no desktop largo, 6 no notebook, 3 na área do catálogo em 1024. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
}
.card__media-link { display: block; height: 100%; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__rank {
  position: absolute;
  top: 9px; left: 9px;
  padding: 3px 9px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.card__rank small { font-weight: 600; opacity: .75; }

.card__fav {
  position: absolute;
  top: 7px; right: 7px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-2);
  font-size: 1.1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  transition: color .15s var(--ease), transform .15s var(--ease), background-color .15s var(--ease);
}
.card__fav:hover { transform: scale(1.08); background: #fff; }
.card__fav[aria-pressed="true"] { color: #e0245e; }
.card__fav[aria-pressed="true"] .ico { fill: currentColor; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  padding: 12px 13px 14px;
}

.card__cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5em;
}
.card__title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.card__price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--black);
}
.card__price small { font-size: .7rem; font-weight: 600; color: var(--muted); display: block; letter-spacing: 0; }

.card__note {
  font-size: .68rem;
  line-height: 1.4;
  color: var(--muted);
}
.card__pricelink {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.card__pricelink:hover { color: var(--black); }

.card__actions { margin-top: 8px; }

.card__wa {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #128c4a;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.card__wa:hover { background: #eafff2; transform: scale(1.08); }
.card__wa[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Estados (vazio / erro) */
.state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fcfcfc;
}
.state__ico { font-size: 2.4rem; color: var(--yellow-dark); }
.state h3 { font-size: 1.05rem; font-weight: 800; }
.state p { font-size: .88rem; color: var(--muted); max-width: 460px; }
.state .btn { margin-top: 10px; }
.state code {
  background: #efefef;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .85em;
}

/* ------------------------------ Ranking --------------------------------- */
.ranking { padding-top: 42px; }

.rank-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.rank-item { min-width: 0; }

.rank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rank-card:hover { border-color: var(--yellow); box-shadow: var(--shadow-sm); }

.rank-card__pos {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--yellow);
  border-radius: 50%;
  font-size: .74rem;
  font-weight: 800;
}
.rank-card__media {
  flex: none;
  width: 54px; height: 54px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
}
.rank-card__media img { width: 100%; height: 100%; object-fit: contain; }
.rank-card__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-card__title {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-card__meta { font-size: .74rem; font-weight: 800; color: var(--ink-2); }
.rank-card__cat {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------ Prose ----------------------------------- */
.prose {
  max-width: 900px;
  padding-top: 48px;
  padding-bottom: 8px;
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.prose__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
.prose p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.disclosure-inline {
  padding: 14px 16px;
  background: #fffbe6;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  color: var(--ink) !important;
  font-size: .86rem !important;
}

.prose__updated { font-size: .78rem !important; color: var(--muted) !important; }

/* ------------------------------ Footer ---------------------------------- */
.footer {
  margin-top: 52px;
  background: var(--black);
  color: #dcdcdc;
  font-size: .85rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr 1.1fr;
  gap: 32px;
  padding-block: 40px 28px;
}
.logo--footer .logo__mark { background: var(--yellow); }
.logo--footer .logo__bottom { color: #fff; }
.logo--footer .logo__top { color: #9a9a9a; }
.footer__tagline { margin-top: 14px; font-weight: 600; color: #fff; }
.footer__small { margin-top: 8px; font-size: .78rem; color: #9a9a9a; line-height: 1.5; max-width: 280px; }

.footer__col h3 {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: #d6d6d6; }
.footer__col a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

.seals { gap: 12px !important; }
.seals li { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.3; }
.seals__ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(255, 212, 0, .14);
  color: var(--yellow);
  border-radius: 8px;
  font-size: 1.05rem;
}
.seals small { color: #9a9a9a; font-size: .72rem; }

.footer__disclosure {
  padding: 14px 18px;
  margin-bottom: 26px;
  border: 1px solid #2c2c2c;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: #181818;
  font-size: .78rem;
  line-height: 1.6;
  color: #c9c9c9;
}

.footer__bottom { border-top: 1px solid #262626; }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 14px 18px;
  font-size: .74rem;
  color: #8f8f8f;
}
.footer__bottom-inner strong { color: #c9c9c9; }

/* ------------------------------ Voltar ao topo --------------------------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 46px; height: 46px;
  display: none;
  place-items: center;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------ Gaveta ---------------------------------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 88;
  width: min(330px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: #f0f0f0;
  transform: translateX(-100%);
  transition: transform .28s var(--ease);
  overflow: hidden;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #262626;
}
.drawer__title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.drawer__head .icon-btn { color: #fff; }
.drawer__head .icon-btn:hover { background: rgba(255, 255, 255, .1); }

.drawer__nav { flex: 1; overflow: auto; padding: 8px 10px 16px; }
.drawer__primary { display: flex; flex-direction: column; }
.drawer__primary a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
}
.drawer__primary a:hover { background: rgba(255, 255, 255, .08); }
.drawer__primary .ico { color: var(--yellow); font-size: 1rem; }

.drawer__label {
  padding: 18px 10px 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8f8f8f;
}
.drawer__cats { display: flex; flex-direction: column; }
.drawer__cats button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #dcdcdc;
  font-size: .88rem;
  text-align: left;
}
.drawer__cats button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.drawer__cats button .count { font-size: .74rem; color: #8f8f8f; flex: none; }
.drawer__cats button[aria-pressed="true"] { background: var(--yellow); color: var(--black); font-weight: 700; }
.drawer__cats button[aria-pressed="true"] .count { color: #5a4b00; }

.drawer__foot { padding: 14px 16px 20px; border-top: 1px solid #262626; }
.drawer__foot .btn { width: 100%; }
.drawer__note { margin-top: 10px; font-size: .7rem; color: #8f8f8f; text-align: center; }

/* Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, .55);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.backdrop.is-open { opacity: 1; }

/* --------------------------- 1100px: ajustes ---------------------------- */
@media (max-width: 1180px) {
  .rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mainnav__links a { padding: 0 10px; font-size: .8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* --------------------------- 1000px: filtros em painel ------------------- */
@media (max-width: 1000px) {
  :root { --header-h: 132px; }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .btn--filter { display: inline-flex; }

  .filters {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 84;
    top: auto;
    max-height: 86vh;
    overflow: auto;
    border: 0;
    border-radius: 18px 18px 0 0;
    padding: 16px 18px 26px;
    box-shadow: var(--shadow-lg);
    transform: translateY(102%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    -webkit-overflow-scrolling: touch;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__close { display: inline-grid; }
  .filters__cats { max-height: none; }

  /* faixa de categorias rolável em telas médias */
  .cat-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip__item { flex: 0 0 auto; max-width: none; }
  .cat-strip__btn { width: 112px; }

  .header__actions .action__text { display: none; }
  .action { font-size: 1.5rem; padding: 8px 10px; }
}

/* --------------------------- 900px: menu gaveta ------------------------- */
@media (max-width: 900px) {
  :root { --header-h: 124px; }

  .header__menu { display: inline-grid; }
  .mainnav { display: none; }
  .header__inner { gap: 12px; }
  .header__actions { gap: 0; }
  .logo__mark { width: 40px; height: 40px; border-radius: 9px; }
  .logo__mark svg { width: 23px; height: 23px; }
  .logo__bottom { font-size: 1.22rem; }
  .logo__top { font-size: .62rem; letter-spacing: .2em; }

  /* busca em linha própria: (menu) (logo) (ações) / (busca) */
  .header__inner { flex-wrap: wrap; padding-block: 12px; }
  .header__menu { order: 1; }
  .logo { order: 2; }
  .header__actions { order: 3; margin-left: auto; }
  .header__inner .search { order: 4; flex-basis: 100%; max-width: none; margin-top: 2px; }
  .search input { padding: 11px 0; font-size: .9rem; }
  .search__btn { width: 52px; }

  .to-top { display: grid; }

  .drawer { overflow-y: auto; }
}

/* --------------------------- 760px: mobile ------------------------------ */
@media (max-width: 760px) {
  .container { padding-inline: 14px; }

  .topbar__trust { display: none; }
  .topbar__inner { justify-content: center; min-height: 34px; }
  .topbar { font-size: .74rem; }

  .banner {
    min-height: 0;
    padding: 26px 20px 28px;
    border-radius: 12px;
    align-items: flex-end;
    margin-top: 14px;
  }
  .banner::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, .35) 0%, rgba(8, 8, 8, .75) 45%, rgba(8, 8, 8, .96) 100%),
      radial-gradient(120% 90% at 90% 0%, rgba(255, 212, 0, .18), transparent 60%);
  }
  .banner__art img { object-position: center top; }
  .banner__copy { max-width: none; }
  .banner__eyebrow { font-size: .64rem; padding: 5px 11px; margin-bottom: 12px; }
  .banner__title { font-size: 1.36rem; margin-bottom: 10px; }
  .banner__sub { font-size: .82rem; margin-bottom: 18px; }
  .banner__cta { width: 100%; padding: 13px 18px; font-size: .92rem; }

  /* categorias em rolagem horizontal */
  .cat-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip__item { flex: 0 0 auto; scroll-snap-align: start; max-width: none; }
  .cat-strip__btn {
    width: 92px;
    min-height: 92px;
    gap: 8px;
    padding: 12px 6px;
    font-size: .72rem;
  }
  .cat-strip__btn .ico { font-size: 1.55rem; }

  .layout { padding-top: 22px; }
  .section-title { font-size: 1.05rem; }
  .section-source { font-size: .7rem; }

  .toolbar { padding: 9px 10px; gap: 8px; }
  .toolbar__count { font-size: .76rem; }
  .sort span { display: none; }
  .sort select { font-size: .76rem; padding: 7px 8px; max-width: 150px; }
  .btn--filter { padding: 8px 12px; font-size: .78rem; }

  /* cards em 2 colunas */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .card__media { padding: 8px; }
  .card__body { padding: 9px 10px 11px; gap: 4px; }
  .card__cat { font-size: .6rem; }
  .card__title { font-size: .78rem; line-height: 1.3; min-height: 4.05em; -webkit-line-clamp: 4; }
  .card__price { font-size: 1.02rem; }
  .card__note { font-size: .62rem; }
  .card__fav { width: 30px; height: 30px; top: 5px; right: 5px; font-size: .98rem; }
  .card__rank { font-size: .6rem; padding: 2px 7px; top: 6px; left: 6px; }
  .card__actions { margin-top: 6px; }
  .card__wa { width: 28px; height: 28px; font-size: .9rem; right: 6px; bottom: 6px; }
  .btn--buy { font-size: .78rem; padding: 9px 6px; min-height: 40px; }

  .rank-list { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .rank-list::-webkit-scrollbar { display: none; }
  .rank-item { flex: 0 0 78%; scroll-snap-align: start; }

  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-block: 32px 22px; }
  .footer__small { max-width: none; }
  .prose { padding-top: 34px; }
  .prose__title { font-size: 1.1rem; }
  .prose p { font-size: .86rem; }
  .footer__bottom-inner { font-size: .7rem; }
}

/* --------------------------- 420px: ajustes finos ----------------------- */
@media (max-width: 420px) {
  .logo__bottom { font-size: 1.08rem; }
  .logo__top { display: none; }
  .card__title { font-size: .74rem; }
  .card__price { font-size: .95rem; }
  .btn--filter { padding: 8px 10px; }
  .toolbar__right { gap: 8px; }
}

/* --------------------------- Acessibilidade ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header, .footer, .to-top, .filters, .toolbar, .banner { display: none !important; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
