/* Vitrine por categoria — estilos dos cards e do carrossel (JS: store-category-carousel.js). */

.store-category {
  position: relative;
  overflow: visible;
  background-color: rgb(var(--background));
}

.store-category__viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  background-color: rgb(var(--background));
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
  scroll-padding-left: 1rem;
  scroll-padding-right: 1rem;
}

/* Tablet/desktop: JS aplica .store-category__viewport--clip (translate no track, sem peek) */
.store-category__viewport.store-category__viewport--clip {
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: none;
  cursor: grab;
  touch-action: pan-y;
}

.store-category__viewport.store-category__viewport--clip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.store-category__viewport.store-category__viewport--clip img {
  -webkit-user-drag: none;
  user-select: none;
}

.store-category__viewport::-webkit-scrollbar {
  display: none;
}

.store-category__track {
  --store-card-w: 11.25rem;
  --pkg-cover-h: calc(var(--store-card-w) * 230 / 402);
  --pkg-body-h: 2.65rem;
  --pkg-card-h: calc(var(--pkg-cover-h) + var(--pkg-body-h));
  --sc-gap: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: var(--sc-gap);
  padding: 0 1rem 1rem;
  width: max-content;
  min-width: 0;
  background-color: rgb(var(--background));
}

/* Largura e altura FIXAS — aspect-ratio 2/3 fazia a altura oscilar com a scrollbar */
.store-category__track > * {
  flex: 0 0 var(--store-card-w) !important;
  width: var(--store-card-w) !important;
  min-width: var(--store-card-w) !important;
  max-width: var(--store-card-w) !important;
  height: var(--pkg-card-h) !important;
  min-height: var(--pkg-card-h) !important;
  max-height: var(--pkg-card-h) !important;
  box-sizing: border-box !important;
  align-self: flex-start !important;
  scroll-snap-align: start;
  overflow: visible;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: none !important;
}

@media (min-width: 640px) {
  .store-category__track {
    --sc-gap: 1.125rem;
  }
}

/* Impede arrasto nativo da imagem e do link */
:is(.store-category, .package-cards-strip) img,
:is(.store-category, .package-cards-strip) a.aaa-card {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-select: none;
}

/* === CARD DE PRODUTO (layout e sombra) === */
.product-card {
  position: relative;
  display: block;
  background: #1A1A1A;
  border-radius: 0.625rem !important; /* 10px */
  border: none;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 7px 16px -5px rgba(0, 0, 0, 0.38);
  transition: none;
  outline: none;
  overflow: visible;
  isolation: isolate;
}

.product-card:hover {
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.26),
    0 9px 20px -6px rgba(0, 0, 0, 0.42);
}

/* === Cards na vitrine (.store-category) e produtos similares (.package-cards-strip / keen-slider) — modelo Apex Storms === */
/* Grid auto + 1fr: com altura igual na linha (stretch), imagem e corpo ficam sempre proporcionais entre si */
:is(.store-category, .package-cards-strip):not(.keys-steam-epic-shelf) .home-carousel-card.product-card {
  background-color: #1c1c1c !important;
  border-radius: 12px !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 7px 16px -5px rgba(0, 0, 0, 0.38) !important;
  isolation: auto !important;
  overflow: hidden !important;
  height: var(--pkg-card-h, 24rem) !important;
  min-height: var(--pkg-card-h, 24rem) !important;
  max-height: var(--pkg-card-h, 24rem) !important;
  align-self: flex-start;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) var(--pkg-body-h, 2.65rem);
  box-sizing: border-box;
  transform: none !important;
  transition: none !important;
}

:is(.store-category, .package-cards-strip) .home-carousel-card > div:first-child {
  grid-row: 1;
  min-width: 0;
  width: 100%;
  height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  min-height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  max-height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  overflow: hidden;
}

:is(.store-category, .package-cards-strip) .home-carousel-card__image {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: unset !important;
  width: 100%;
  height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  min-height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  max-height: var(--pkg-cover-h, calc(var(--store-card-w, 100%) * 230 / 402)) !important;
  flex-shrink: 0;
}

:is(.store-category, .package-cards-strip) .home-carousel-card .aaa-card-image,
:is(.store-category, .package-cards-strip) .home-carousel-card .product-card__img {
  aspect-ratio: unset !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(.store-category, .package-cards-strip):not(.keys-steam-epic-shelf) .home-carousel-card__body {
  grid-row: 2;
  background-color: #1c1c1c !important;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  height: var(--pkg-body-h, 2.65rem) !important;
  min-height: var(--pkg-body-h, 2.65rem) !important;
  max-height: var(--pkg-body-h, 2.65rem) !important;
  padding: 0.7rem 0.75rem 0.75rem !important;
  display: flex !important;
  flex-direction: column !important;
}

:is(.store-category, .package-cards-strip) .home-carousel-card__footer {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: auto;
}

:is(.store-category, .package-cards-strip):not(.keys-steam-epic-shelf) a.aaa-card .home-carousel-card__title {
  text-transform: uppercase;
  letter-spacing: 0.015em !important;
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
  min-height: 2.125rem !important;
  max-height: 2.125rem !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 0 0 auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:is(.store-category, .package-cards-strip):not(.keys-steam-epic-shelf) a.aaa-card .home-carousel-card__price {
  color: #39ff14 !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
  line-height: 1.2 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:is(.store-category, .package-cards-strip) .home-carousel-card__pix {
  color: rgba(255, 255, 255, 0.45) !important;
}

:is(.store-category, .package-cards-strip) .home-carousel-card__discount-row {
  min-height: 1.25rem;
}

/* Keen Slider (produtos similares): esticar card como na vitrine Epic */
.package-cards-strip .keen-slider__slide {
  display: flex;
  align-items: flex-start;
  min-height: 0;
}

.package-cards-strip .keen-slider__slide > .aaa-card.home-carousel-card {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  align-self: flex-start;
}

/* Performance mode: durante o scroll horizontal desliga hovers pesados */
:is(.store-category, .package-cards-strip).is-scrolling .product-card {
  transition: none !important;
}

:is(.store-category, .package-cards-strip).is-scrolling .product-card:hover {
  background: inherit !important;
}

:is(.store-category, .package-cards-strip).is-scrolling .product-card__body,
:is(.store-category, .package-cards-strip).is-scrolling .product-card__cart-btn,
:is(.store-category, .package-cards-strip).is-scrolling .product-card__cart-icon {
  transition: none !important;
}

:is(.store-category, .package-cards-strip).is-scrolling .product-card__cart-btn,
:is(.store-category, .package-cards-strip).is-scrolling .product-card__cart-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Container da imagem e reflexo */
.product-card__image {
  overflow: hidden;
  position: relative;
}

.product-card__image::after {
  content: none;
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

/* Conteúdo do card — altura só pelo conteúdo, nunca px fixo (isso saltava o tamanho) */
.product-card__body {
  background: inherit;
  height: auto;
  min-height: 0;
}

.product-card__title {
  overflow: hidden;
}

.product-card__price {
  color: #39ff14;
  font-weight: 700;
}

.product-card__cart-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card__cart-icon {
  transition: color 0.2s ease;
}

.product-card:hover .product-card__cart-btn {
  background: #3b82f6;
  color: #000000;
}

/* Cabeçalho estilo Epic Games: título + chevron (mobile e PC) */
.store-category__epic-top {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0.35rem;
}

/* Mobile (<768px): scroll no track; esconde só o bloco das setas — “Ver tudo” fica no .store-category__epic-nav-cluster */
@media (max-width: 767px) {
  .store-category__epic-nav {
    display: none !important;
  }
}

.category-section-toolbar--epic {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 0;
}

.category-epic-section-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0.25rem;
}

.category-epic-section-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.category-section-title.category-section-title--epic {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.category-section-title.category-section-title--epic::after {
  display: none !important;
}

.category-epic-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 1;
  color: #ffffff;
  transform: translateX(0);
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.category-epic-section-link:hover .category-epic-chevron {
  transform: translateX(6px) scale(1.12);
}

.category-epic-chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .category-section-title.category-section-title--epic {
    font-size: 1.125rem;
    letter-spacing: -0.035em;
  }

  .category-epic-chevron {
    width: 1.375rem;
    height: 1.375rem;
  }

  .category-epic-section-link {
    gap: 0.5rem;
  }

  .category-epic-chevron svg {
    stroke-width: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-epic-chevron {
    transition: none;
  }

  .category-epic-section-link:hover .category-epic-chevron {
    transform: none;
  }
}

/* store-category-carousel.js: sem overflow — esconde setas */
.store-category.store-category--hide-nav .store-category__nav-btn {
  display: none !important;
}

/* Setas no cabeçalho — estilo Epic (todas as larguras) */
.store-category__epic-nav .store-category__nav-btn {
  position: relative;
  z-index: 10;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  flex-shrink: 0;
  transform: none;
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 640px) {
  .store-category__epic-nav .store-category__nav-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.store-category__epic-nav .store-category__nav-btn svg,
.store-category__epic-nav .store-category__nav-btn [data-lucide] {
  color: #ffffff;
  stroke: #ffffff;
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.store-category__epic-nav .store-category__nav-btn svg {
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-category__epic-nav .store-category__nav-btn:hover:not(:disabled) {
  background: #383838;
  box-shadow: none;
}

.store-category__epic-nav .store-category__nav-btn--prev:hover:not(:disabled) [data-lucide] {
  transform: translateX(-3px) scale(1.08);
}

.store-category__epic-nav .store-category__nav-btn--next:hover:not(:disabled) [data-lucide] {
  transform: translateX(3px) scale(1.08);
}

.store-category__epic-nav .store-category__nav-btn--prev:active:not(:disabled),
.store-category__epic-nav .store-category__nav-btn--next:active:not(:disabled) {
  transform: scale(0.96);
}

.store-category__epic-nav .store-category__nav-btn--prev:active:not(:disabled) [data-lucide],
.store-category__epic-nav .store-category__nav-btn--next:active:not(:disabled) [data-lucide] {
  transform: scale(0.95);
}

.store-category__epic-nav .store-category__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .store-category__epic-nav .store-category__nav-btn [data-lucide] {
    transition: none;
  }

  .store-category__epic-nav .store-category__nav-btn--prev:hover:not(:disabled) [data-lucide],
  .store-category__epic-nav .store-category__nav-btn--next:hover:not(:disabled) [data-lucide] {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .store-category.carousel-no-shadow .product-card,
  .store-category.carousel-no-shadow .store-category__track > * {
    box-shadow: none !important;
  }
}

/* Sem zoom no card nem na capa — o scale fazia o tamanho parecer aumentar/diminuir */
:is(.store-category, .package-cards-strip) .aaa-card:hover .aaa-card-image,
:is(.store-category, .package-cards-strip) .aaa-card:active .aaa-card-image,
:is(.store-category, .package-cards-strip) .aaa-card:hover .product-card__img,
:is(.store-category, .package-cards-strip) .aaa-card:active .product-card__img {
  transform: none !important;
  filter: none !important;
}

:is(.store-category, .package-cards-strip) .aaa-card:hover .aaa-card-title {
  color: #ffffff !important;
}

:is(.store-category, .package-cards-strip) .aaa-card:hover .aaa-card-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.category-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}

.category-section-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.category-section-line {
  width: 60%;
  height: 2px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 640px) {
  .category-section-title {
    font-size: 16px;
  }

  .category-section-line {
    height: 2px;
    margin-top: 5px;
  }
}

.category-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}

.category-section-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Linha base */
.category-section-line {
  position: relative;
  width: 100%;
  height: 2px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

/* Linha animada (brilho passando) */
.category-section-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: line-shine 2.8s ease-in-out infinite;
}

/* Hover premium */
.category-section-header:hover .category-section-line::after {
  animation-duration: 1.4s;
}

/* Keyframes */
@keyframes line-shine {
  0% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .category-section-title {
    font-size: 16px;
  }

  .category-section-line {
    margin-top: 5px;
  }
}

/* ==============================
   Cabeçalho premium (underline)
   (substitui o CSS anterior)
   ============================== */
.category-section-header {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4px;
  width: 100%;
}

.category-section-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
}

/* Sem flex:1 — o traço (::after) acompanha só a largura do texto do título */
.category-section-toolbar .category-section-title {
  flex: 0 1 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.category-section-toolbar--end {
  justify-content: flex-end;
}

.category-section-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
}

/* Traço branco só sob o texto — sem barra cinza em largura total */
.category-section-line {
  display: none !important;
}

.category-section-line-active {
  display: none !important;
}

.category-section-line::before,
.category-section-line::after {
  content: none !important;
  animation: none !important;
  display: none !important;
}

/* underline fina exatamente abaixo do texto */
.category-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  z-index: 2;
}

/* mobile */
@media (max-width: 640px) {
  .category-section-title {
    font-size: 16px;
  }

  .category-section-toolbar .category-section-title {
    max-width: 100%;
  }

  .category-section-title::after {
    top: calc(100% + 6px);
    height: 2px;
  }
}

/* --------------------------------------------------------------------------
   Cards de produto: título e preço mais nítidos (evita texto “desfocado”)
   -------------------------------------------------------------------------- */
a.aaa-card .aaa-card-title {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.38 !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  color: #fafafa !important;
  min-height: calc(1.38em * 2) !important;
}

a.aaa-card .aaa-card-price,
a.aaa-card .product-card__price {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 1.125rem !important; /* 18px */
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  color: #39ff14 !important;
}

a.aaa-card .home-carousel-card__pix,
a.aaa-card .home-carousel-card__from-label {
  -webkit-font-smoothing: antialiased;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

@media (max-width: 767px) {
  a.aaa-card .aaa-card-title {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.36 !important;
    letter-spacing: 0.02em !important;
    min-height: calc(1.36em * 2) !important;
  }

  a.aaa-card .aaa-card-price,
  a.aaa-card .product-card__price {
    font-size: 1rem !important; /* 16px no mobile */
    font-weight: 800 !important;
  }
}

/* === Home — vitrine em faixas (referência tipo nextsystem.site) === */
@keyframes home-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.home-marquee--ltr .home-marquee__track {
  animation: home-marquee-scroll 52s linear infinite;
  will-change: transform;
}

.home-marquee--rtl .home-marquee__track {
  animation: home-marquee-scroll 60s linear infinite reverse;
  will-change: transform;
}

.home-marquee:hover .home-marquee__track {
  animation-play-state: paused;
}

.home-marquee__card.shine-effect {
  position: relative;
}

.home-marquee__card.shine-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.home-marquee__card.shine-effect:hover::after {
  transform: translateX(120%);
}

/* Mesma caixa da prateleira de contas-steam: capa 2:3 da largura + corpo de 10rem. */
.ns-steam-page {
  --ns-page-pad: 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .ns-steam-page {
    --ns-page-pad: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ns-steam-page {
    --ns-page-pad: 2rem;
  }
}

@media (min-width: 1280px) {
  .ns-steam-page {
    --ns-page-pad: 2.5rem;
  }
}

.ns-steam-card-grid {
  --sc-gap: 0.95rem;
  --store-card-w: 11.25rem;
  --pkg-body-h: 2.65rem;
  --pkg-cover-h: calc(var(--store-card-w) * 230 / 402);
  --pkg-card-h: calc(var(--pkg-cover-h) + var(--pkg-body-h));
  display: grid !important;
  grid-template-columns: repeat(auto-fill, var(--store-card-w)) !important;
  gap: var(--sc-gap) !important;
  justify-content: start;
  align-items: start;
  width: 100%;
}

.ns-steam-card-grid > .aaa-card.package {
  --pkg-cover-h: calc(var(--store-card-w) * 230 / 402);
  --pkg-body-h: 2.65rem;
  --pkg-card-h: calc(var(--pkg-cover-h) + var(--pkg-body-h));
  width: var(--store-card-w) !important;
  min-width: var(--store-card-w) !important;
  max-width: var(--store-card-w) !important;
  flex: none !important;
  justify-self: start;
  align-self: start;
}

/* Desktop: a mesma grelha de 3 colunas e o mesmo vão do catálogo de Keys Steam. */
@media (min-width: 1024px) {
  .ns-steam-card-grid {
    gap: 30px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .ns-steam-card-grid > .aaa-card.package {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* No celular a grelha preenche a largura. O computador mantém o card de 11.25rem. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  .ns-steam-page .ns-steam-card-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    justify-items: stretch;
    gap: 0.75rem !important;
  }

  .ns-steam-page .ns-steam-card-grid > .aaa-card.package {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    justify-self: stretch;
  }

  .ns-steam-page .ns-steam-card-grid > .aaa-card.package > div:first-child {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 402 / 230 !important;
  }
}

/* Trava final: o card tem altura e capa fixas. No carrossel e nas grelhas herda a caixa de contas-steam. */
.aaa-card.package {
  --pkg-cover-h: calc(var(--store-card-w, 100%) * 230 / 402);
  --pkg-body-h: 2.65rem;
  --pkg-card-h: calc(var(--pkg-cover-h) + var(--pkg-body-h));
  transform: none !important;
  height: var(--pkg-card-h) !important;
  min-height: var(--pkg-card-h) !important;
  max-height: var(--pkg-card-h) !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: none !important;
}

.aaa-card.package > div:first-child {
  height: var(--pkg-cover-h) !important;
  min-height: var(--pkg-cover-h) !important;
  max-height: var(--pkg-cover-h) !important;
  overflow: hidden;
}

.aaa-card.package .aaa-card__image {
  aspect-ratio: 402 / 230 !important;
  height: var(--pkg-cover-h) !important;
  min-height: var(--pkg-cover-h) !important;
  max-height: var(--pkg-cover-h) !important;
  border-radius: 12px;
}

.aaa-card__image {
  position: relative;
}
.ns-card-discount {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: #7137D4;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.aaa-card.package > div:last-child {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.55rem 0.15rem 0 !important;
  background: transparent !important;
}

.aaa-card.package .home-carousel-card__pix,
.aaa-card.package > div:last-child > p.mb-\[8px\],
.aaa-card.package .home-carousel-card__from-label,
.aaa-card.package .home-carousel-card__discount-row {
  display: none !important;
}

.aaa-card.package .home-carousel-card__footer,
.aaa-card.package > div:last-child > div.mt-auto {
  display: contents !important;
}

.aaa-card.package .aaa-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
  max-height: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block !important;
  -webkit-line-clamp: unset !important;
}

.aaa-card.package .aaa-card-price {
  flex: 0 0 auto;
  margin: 0;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.aaa-card.package > div:last-child {
  height: var(--pkg-body-h) !important;
  min-height: var(--pkg-body-h) !important;
  max-height: var(--pkg-body-h) !important;
  overflow: hidden;
}

.store-category .aaa-card.package {
  --pkg-cover-h: calc(var(--store-card-w) * 230 / 402);
  --pkg-body-h: 2.65rem;
  --pkg-card-h: calc(var(--pkg-cover-h) + var(--pkg-body-h));
}

/* Contas Rockstar: a mesma caixa do catálogo de Keys Steam. */
.ns-rockstar-catalog.ns-steam-page {
  max-width: 1340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
}

.ns-rockstar-catalog .ns-steam-card-grid {
  --pkg-body-h: 2.65rem;
  gap: 30px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
}

.ns-rockstar-catalog .ns-steam-card-grid > .aaa-card.package {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.ns-rockstar-catalog .ns-steam-card-grid .aaa-card.package > div:first-child,
.ns-rockstar-catalog .ns-steam-card-grid .aaa-card.package .aaa-card__image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 402 / 230 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.ns-rockstar-catalog .ns-steam-card-grid .aaa-card-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.ns-rockstar-catalog .ns-steam-card-grid .aaa-card.package > div:last-child {
  height: 2.65rem !important;
  min-height: 2.65rem !important;
  max-height: 2.65rem !important;
  padding: 0.55rem 0.15rem 0 !important;
}

.ns-rockstar-catalog .ns-steam-card-grid .aaa-card-price {
  color: #fff !important;
}

@media (max-width: 1023px) {
  .ns-rockstar-catalog .ns-steam-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 767px) {
  .ns-rockstar-catalog.ns-steam-page {
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.keys-steam-epic-shelf a.aaa-card .home-carousel-card__price,
.keys-steam-epic-shelf a.aaa-card .aaa-card-price,
.keys-steam-epic-shelf a.aaa-card .product-card__price {
  color: #fff !important;
}

#keys-steam-epic-page .keys-steam-epic-shelf .aaa-card,
#keys-steam-epic-page .keys-steam-epic-shelf .aaa-card:hover,
#keys-steam-epic-page .keys-steam-epic-shelf .home-carousel-card.product-card,
#keys-steam-epic-page .keys-steam-epic-shelf .home-carousel-card.product-card:hover,
#keys-steam-epic-page .keys-steam-epic-shelf .home-carousel-card__body,
#keys-steam-epic-page .keys-steam-epic-shelf .product-card__body,
#keys-steam-epic-page .keys-steam-epic-shelf .aaa-card > div:last-child {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Pré-venda e Lançamentos: nome/preço na mesma altura de “Todos os jogos”. */
#keys-steam-epic-page .keys-steam-epic-shelf .aaa-card.package > div:last-child,
#keys-steam-epic-page .keys-steam-epic-shelf .home-carousel-card__body {
  height: 2.65rem !important;
  min-height: 2.65rem !important;
  max-height: 2.65rem !important;
  padding: 0.55rem 0.15rem 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

#keys-steam-epic-page .keys-steam-epic-shelf a.aaa-card .home-carousel-card__title,
#keys-steam-epic-page .keys-steam-epic-shelf a.aaa-card .aaa-card-title {
  flex: 1 1 auto !important;
  align-self: center !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.015em !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

#keys-steam-epic-page .keys-steam-epic-shelf a.aaa-card .home-carousel-card__price,
#keys-steam-epic-page .keys-steam-epic-shelf a.aaa-card .aaa-card-price {
  flex: 0 0 auto !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
}

/* Trailer no hover — cobre a capa e deixa selo de desconto e botões por cima. */
.ns-card-trailer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  background: #111;
  transition: opacity 0.28s ease;
}

.aaa-card.is-ns-trailer .ns-card-trailer {
  opacity: 1;
}

.aaa-card.is-ns-trailer .product-card__image::after,
.aaa-card.is-ns-trailer .aaa-card__image::after {
  animation: none !important;
  opacity: 0 !important;
}

.aaa-card__image .ns-combo-card__add,
.aaa-card__image .ns-combo-card__soldout {
  position: relative;
  z-index: 5;
}