.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
@media (min-width: 900px) { .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; } }

.catalog-filters { overflow: hidden; border: 1px solid rgb(var(--border)); border-radius: 16px; background: rgb(var(--card)); }
@media (min-width: 900px) { .catalog-filters { position: sticky; top: calc(92px + var(--promo-h, 0px)); max-height: calc(100vh - 108px - var(--promo-h, 0px)); overflow-y: auto; } }
.cf-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid rgb(var(--border)); }
.cf-head > span { display: inline-flex; align-items: center; gap: 8px; font-family: 'Sora', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: rgb(var(--foreground)); }
.cf-clear { font-size: 13px; font-weight: 700; color: hsl(var(--primary)); background: none; border: 0; cursor: pointer; }
.cf-group { padding: 15px 18px; border-bottom: 1px solid rgb(var(--border)); }
.cf-group:last-child { border-bottom: 0; }
.cf-label { display: block; margin-bottom: 10px; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--fg3)); }
.cf-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid rgb(var(--border)); border-radius: 12px; background: rgb(var(--bg2)); }
.cf-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: rgb(var(--foreground)); font-size: 14px; }
.cf-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: rgb(var(--fg2)); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.cf-opt:hover { background: rgb(255 255 255 / 0.04); color: rgb(var(--foreground)); }
.cf-opt[data-active="true"] { border-color: hsl(var(--primary) / 0.4); background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.cf-opt svg { width: 16px; height: 16px; flex: none; }
.cf-price { display: flex; align-items: center; gap: 8px; }
.cf-price input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid rgb(var(--border)); border-radius: 12px; background: rgb(var(--bg2)); color: rgb(var(--foreground)); font-size: 14px; outline: none; }
.cf-price span { color: rgb(var(--fg3)); font-size: 12px; }

.catalog-count { margin-bottom: 14px; font-size: 13px; color: rgb(var(--fg2)); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-grid > * { min-width: 0; }
.catalog-empty { padding: 24px; color: rgb(var(--fg2)); font-size: 14px; }
.catalog-skel { aspect-ratio: 2 / 3; border-radius: 12px; background: rgb(255 255 255 / 0.05); animation: catalog-skel-pulse 1.8s ease-in-out infinite; }
@keyframes catalog-skel-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.catalog-skel-row { display: contents; }
.catalog-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.catalog-more-wrap[hidden] { display: none; }
.catalog-more-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border: 1px solid hsl(var(--primary) / 0.35); border-radius: 999px; background: rgb(var(--bg2)); color: rgb(var(--foreground)); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.catalog-more-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.catalog-more-btn:disabled { opacity: 0.6; cursor: wait; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Barra de rolagem do painel de filtros */
.catalog-filters { scrollbar-width: thin; scrollbar-color: rgb(137 90 246 / 0.55) transparent; }
.catalog-filters::-webkit-scrollbar { width: 8px; }
.catalog-filters::-webkit-scrollbar-track { margin: 10px 0; background: transparent; }
.catalog-filters::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: linear-gradient(180deg, #9a6bff, #6d3fd6) padding-box; }
.catalog-filters::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f2c14e, #d99a2b) padding-box; border: 2px solid transparent; }
.cf-group--scroll { max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(137 90 246 / 0.55) transparent; }
.cf-group--scroll::-webkit-scrollbar { width: 6px; }
.cf-group--scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: rgb(137 90 246 / 0.55); }
.cf-group--scroll::-webkit-scrollbar-thumb:hover { background: #f2c14e; }

/* Celular: filtros recolhidos atrás do botão "Filtros" para os jogos aparecerem logo */
.cf-chev { display: none; margin-left: 2px; transition: transform 0.25s ease; }
@media (max-width: 899px) {
  .cf-title { cursor: pointer; }
  .cf-chev { display: inline-block; }
  .catalog-filters[data-open="false"] .cf-group { display: none; }
  .catalog-filters[data-open="false"] .cf-head { border-bottom: 0; }
  .catalog-filters[data-open="true"] .cf-chev { transform: rotate(180deg); }
  .catalog-filters .cf-group { animation: cf-open 0.3s ease both; }
}
@keyframes cf-open { from { opacity: 0; transform: translateY(-6px); } }
