/* Carrossel destaque — painel estilo loja (arte | título + grelha + rodapé preços) */

.steam-hero {
  position: relative;
}

.steam-hero__slides {
  position: relative;
  aspect-ratio: 16 / 6.5;
  min-height: 300px;
}

.steam-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 34%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0a0c10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.steam-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.steam-hero__main-media {
  position: relative;
  overflow: hidden;
}

.steam-hero__main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.steam-hero__main-image--base {
  opacity: 1;
}

.steam-hero__main-image--hover {
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.steam-hero__main-media.is-swapping .steam-hero__main-image--hover {
  opacity: 1;
}

.steam-hero__main-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.12) 72%, rgba(8, 10, 16, 0.55) 100%);
  pointer-events: none;
}

.steam-hero__side {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: start;
  max-height: 100%;
  background: linear-gradient(180deg, #12151c 0%, #0d1018 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.steam-hero__side-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.85rem 0.95rem 0.85rem;
  gap: 0.55rem;
}

.steam-hero__title {
  margin: 0;
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(0.9rem, 1.25vw, 1.22rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.steam-hero__thumbs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  align-content: start;
}

.steam-hero__thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
  display: block;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.steam-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 180ms ease;
}

.steam-hero__thumb:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.steam-hero__thumb:hover img {
  transform: scale(1.04);
}

.steam-hero__footer {
  flex: 0 0 auto;
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.steam-hero__platform {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.steam-hero__platform-brand {
  width: 20px;
  height: 20px;
  display: block;
}

.steam-hero__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
  min-width: 0;
}

.steam-hero__compare {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  line-height: 1.2;
}

.steam-hero__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.steam-hero__price {
  color: #fde047;
  font-size: clamp(1.2rem, 1.85vw, 1.68rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.steam-hero__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.42rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0b0f;
  background: #4ade80;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.steam-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 18, 26, 0.88);
  color: #fff;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.steam-hero__arrow:hover {
  background: rgba(28, 31, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.steam-hero__arrow--prev {
  left: -20px;
}

.steam-hero__arrow--next {
  right: -20px;
}

.steam-hero__dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.steam-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.steam-hero__dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.steam-hero__dot.is-active {
  width: 18px;
  background: rgba(96, 165, 250, 0.95);
}

@media (max-width: 1024px) {
  .steam-hero__slides {
    aspect-ratio: 16 / 7.5;
    min-height: 288px;
  }

  .steam-hero__slide {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  }
}

@media (max-width: 820px) {
  .steam-hero__slides {
    aspect-ratio: auto;
    min-height: 0;
  }

  .steam-hero__slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
  }

  .steam-hero__main-media {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .steam-hero__main-media::after {
    background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 16, 0.65) 100%);
  }

  .steam-hero__side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .steam-hero__side-inner {
    padding: 0.78rem 0.85rem 0.85rem;
    gap: 0.55rem;
  }

  .steam-hero__title {
    font-size: 0.78rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
  }

  .steam-hero__thumbs {
    gap: 0.38rem;
  }

  .steam-hero__thumb {
    border-radius: 6px;
  }

  .steam-hero__footer {
    padding-top: 0.45rem;
  }

  .steam-hero__compare {
    font-size: 0.6rem;
  }

  .steam-hero__price {
    font-size: 1.45rem;
  }

  .steam-hero__discount {
    font-size: 0.6rem;
    padding: 0.16rem 0.36rem;
  }

  .steam-hero__platform {
    width: 32px;
    height: 32px;
  }

  .steam-hero__platform-brand {
    width: 17px;
    height: 17px;
  }

  .steam-hero__arrow {
    display: none !important;
  }

  .steam-hero__dots {
    margin-top: 10px;
  }

  .steam-hero__main-image--hover {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .steam-hero__title {
    font-size: 0.72rem;
  }

  .steam-hero__price {
    font-size: 1.32rem;
  }

  .steam-hero__compare {
    font-size: 0.56rem;
  }

  .steam-hero__discount {
    font-size: 0.56rem;
  }
}
