/* Tweaks leves — arquivo separado para nao estourar o store-extras.css */

/* ── Feedback marquee ── */
.king-marquee__card {
  width: min(280px, 74vw);
}

@media (min-width: 640px) {
  .king-marquee__card {
    width: 320px;
  }
}

.king-review-card,
.king-feedback-card {
  padding: 0.7rem 0.9rem;
}

.king-review-card__proof {
  max-height: 5.75rem;
  object-fit: contain;
  object-position: center top;
  background: rgba(0, 0, 0, 0.35);
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.06) saturate(1.04);
}

.king-review-card__text {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.4;
}

/* ── Product cards redesign ── */
.king-store-offer-card {
  border-radius: 0.75rem;
  border-color: rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.king-store-offer-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.35);
}

.king-card-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 10, 14, 0.92) 0%,
    rgba(8, 10, 14, 0.55) 45%,
    transparent 100%
  );
}

.king-card-offer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.65rem 0.7rem 0.4rem;
  pointer-events: none;
}

.king-card-offer-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.55rem;
  background: #0e1117;
  padding: 0.55rem 0.7rem 0.65rem;
  border-top: none;
}

.king-card-offer-title {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}

@media (min-width: 640px) {
  .king-card-offer-title {
    font-size: 0.88rem;
  }
}

@media (min-width: 1024px) {
  .king-card-offer-title {
    font-size: 0.92rem;
  }
}

.king-card-offer-pricing {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.king-card-offer-compare {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  line-height: 1;
  margin: 0;
  align-self: center;
}

.king-card-offer-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}

.king-card-offer-price {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

@media (min-width: 640px) {
  .king-card-offer-price {
    font-size: 1.15rem;
  }
}

.king-card-offer-off {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #86efac;
  line-height: 1.2;
  align-self: center;
}

.king-card-offer-platform__icon {
  align-self: center;
  opacity: 0.7;
  width: 0.95rem;
  height: 0.95rem;
  background-color: currentColor;
  color: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.king-card-offer-soldout {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.king-card-offer-soldout__label {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.package-card-steam-key-tag {
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(186, 230, 253, 0.75);
  background: rgba(2, 8, 16, 0.88);
  color: #e0f2fe;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .package-card-steam-key-tag {
    font-size: 0.52rem;
    padding: 0.22rem 0.5rem;
  }
}

.pack-card .pack-card__check {
  z-index: 4;
}

/* Home: sem preco comparativo nos cards */
body.is-home .king-card-offer-compare,
body.is-home .destaque-featured__compare {
  display: none !important;
}

/* ── Top 5 SUPRA polish ── */
.destaque-featured__header {
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.destaque-featured__name {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.destaque-featured__subtitle {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
}

.destaque-featured__cta {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.destaque-featured__card {
  overflow: hidden;
  border-radius: 0.75rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.destaque-featured__item:hover .destaque-featured__card {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.destaque-featured__rank {
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  transition:
    -webkit-text-stroke-color 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
}

.destaque-featured__item:hover .destaque-featured__rank {
  -webkit-text-stroke-color: hsl(var(--primary) / 0.85);
  filter: drop-shadow(0 0 18px hsl(var(--primary) / 0.28));
  transform: translateY(-2px);
}

.destaque-featured__media {
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: none;
  background: #0b0d12;
}

.destaque-featured__media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(14 17 23) 0%,
    rgba(8, 10, 14, 0.45) 50%,
    transparent 100%
  );
}

.destaque-featured__item:hover .destaque-featured__media {
  border-color: hsl(var(--primary) / 0.28);
}

.destaque-featured__badge {
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.55);
  background: rgba(2, 8, 16, 0.88);
  color: #e0f2fe;
  font-family: 'Geist', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.destaque-featured__soldout {
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.destaque-featured__body {
  gap: 0.25rem;
  padding: 0.5rem 0.65rem 0.6rem;
  background: #0e1117;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
}

.destaque-featured__item:hover .destaque-featured__body {
  border-color: hsl(var(--primary) / 0.28);
  box-shadow: none;
}

.destaque-featured__title {
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 640px) {
  .destaque-featured__title {
    font-size: 0.78rem;
  }
}

@media (min-width: 1024px) {
  .destaque-featured__title {
    font-size: 0.8rem;
  }
}

.destaque-featured__pricing {
  gap: 0.35rem;
}

.destaque-featured__price {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .destaque-featured__price {
    font-size: 1.02rem;
  }
}

@media (min-width: 1024px) {
  .destaque-featured__price {
    font-size: 1.05rem;
  }
}

/* ── Category names polish ── */
.king-section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .king-section-title {
    font-size: 1.35rem;
  }
}

.king-section-title::before {
  width: 3px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    hsl(var(--primary)) 0%,
    hsl(var(--primary) / 0.28) 100%
  );
  box-shadow: 0 0 14px hsl(var(--primary) / 0.35);
}

.king-section-heading__kicker {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
}

.king-section-title--franquia {
  font-weight: 600;
}

.king-section-title--franquia::before {
  border-radius: 999px;
}

.king-category-name {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.96);
}

@media (min-width: 640px) {
  .king-category-name {
    font-size: 1.85rem;
  }
}

.king-category-card__name {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
  .king-category-card__name {
    font-size: 1rem;
  }
}

/* Cards horizontais maiores + peek do ultimo */
.category-carousel-rows {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .category-carousel-rows {
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .category-carousel-rows {
    gap: 1rem;
  }

  .category-carousel-rows .category-carousel-viewport {
    scrollbar-width: none;
    padding-bottom: 0;
  }

  .category-carousel-rows .category-carousel-viewport::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .category-carousel-rows .category-carousel-viewport:last-child {
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
  }

  .category-carousel-rows .category-carousel-viewport:last-child::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
}

.category-carousel:not(.category-carousel--vertical) .package-list {
  grid-auto-columns: calc((100% - 0.75rem) / 1.75);
  grid-template-rows: none;
  row-gap: 0;
}

@media (min-width: 640px) {
  .category-carousel:not(.category-carousel--vertical) .package-list {
    gap: 1rem;
    grid-auto-columns: calc((100% - 2rem) / 2.6);
  }
}

@media (min-width: 1024px) {
  .category-carousel:not(.category-carousel--vertical) .package-list {
    grid-auto-columns: calc((100% - 3rem) / 3.45);
  }
}

@media (min-width: 1280px) {
  .category-carousel:not(.category-carousel--vertical) .package-list {
    grid-auto-columns: calc((100% - 4rem) / 4.35);
  }
}
