

.products-grid,
.lw-land-popular__grid,
.lw-grid--games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  justify-content: stretch;
  justify-items: stretch;
}

.lw-catalog-view--category .lw-land-popular__grid,
.landing-section--catalog-games .lw-grid--games {
  justify-content: stretch;
  max-width: 1160px;
}

.products-grid > .product-card,
.lw-land-popular__grid > .product-card,
.lw-catalog-view--category .lw-land-popular__grid > .product-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
}

.product-card,
.lw-game-card {
  width: 100%;
  max-width: 350px;
  min-width: 0;
  height: 500px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.lw-game-card {
  height: 420px;
  max-width: 320px;
}

.product-card:hover,
.lw-game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.6);
}

.product-card::before,
.lw-game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: radial-gradient(circle at 50% 50%,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, 0.35) 46%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.35) 54%,
    transparent 68%,
    transparent 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: lw-card-shine 14s linear infinite;
}

@keyframes lw-card-shine {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.product-image,
.lw-game-card__media {
  position: relative;
  flex: 1;
  --card-glow-rgb: 74, 158, 255;
  background: #0b0e17;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  isolation: isolate;
}

.product-image img,
.lw-game-card__media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image--media .product-image__blur {
  display: none;
}

.product-card:hover .product-image__photo,
.product-card:hover .product-image img,
.lw-game-card:hover .lw-game-card__media img:not(.product-image__blur) {
  transform: scale(1.04);
}

.product-image::after,
.lw-game-card__media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 15, 0.55), transparent);
}

.product-placeholder,
.lw-game-card__placeholder {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.product-placeholder svg,
.lw-game-card__placeholder svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255, 255, 255, 0.4);
}

/* Text-only image area — replaces the video thumbnail in list cards */
.product-image--text {
  background:
    radial-gradient(ellipse 85% 60% at 50% 42%,
      rgba(var(--card-glow-rgb, 74, 158, 255), 0.4) 0%,
      rgba(var(--card-glow-rgb, 74, 158, 255), 0.16) 34%,
      transparent 62%),
    radial-gradient(ellipse 140% 90% at 50% 105%,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 55%),
    linear-gradient(180deg, #0b0e17 0%, #05070c 100%);
}
.product-image--text::after {
  display: none;
}
.product-image--text::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, #000 25%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 80% at center, #000 25%, transparent 90%);
  opacity: 0.85;
}

.product-placeholder-brand {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 3;
  font-family: var(--lw-font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding-left: 0.44em;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.product-placeholder-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: rgb(var(--card-glow-rgb, 74, 158, 255));
  filter:
    drop-shadow(0 0 26px rgba(var(--card-glow-rgb, 74, 158, 255), 0.6))
    drop-shadow(0 0 8px rgba(var(--card-glow-rgb, 74, 158, 255), 0.35));
  pointer-events: none;
}
.product-placeholder-mark svg {
  width: clamp(140px, 58%, 220px);
  height: auto;
  display: block;
  overflow: visible;
}

/* Legacy text placeholders — no longer rendered but kept for cache-safety. */
.product-placeholder-text,
.product-placeholder-caption,
.product-placeholder-title,
.product-placeholder-sub { display: none; }

@media (max-width: 768px) {
  .product-placeholder-brand { font-size: 0.62rem; letter-spacing: 0.36em; }
  .product-placeholder-mark svg { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .product-placeholder-mark svg * { animation: none !important; }
  .product-image--media .product-image__blur,
  .lw-yt-facade-thumb--blur {
    filter: none;
  }
}

/* Legacy top-left label — hidden inside text-only cards to avoid duplication. */
.product-image--text .product-label { display: none; }

.product-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  max-width: calc(100% - 110px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-badge.popular {
  border-color: rgba(255, 105, 180, 0.55);
  color: #ff8fcf;
}

.product-badge.new {
  border-color: rgba(74, 158, 255, 0.55);
  color: #8bc0ff;
}

.product-badge.updated {
  border-color: rgba(139, 92, 246, 0.55);
  color: #b794f6;
}

.product-badge.coming-soon {
  border-color: rgba(255, 160, 80, 0.5);
  color: #ffb877;
}

.product-badge.exclusive {
  border-color: rgba(0, 212, 170, 0.55);
  color: #4fe6c8;
}

.product-badge.undetected {
  border-color: rgba(74, 222, 128, 0.55);
  color: #86efac;
}

.product-badge.risk {
  border-color: rgba(212, 122, 124, 0.55);
  color: #e8a0a2;
}

.product-info,
.lw-game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(8, 10, 16, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.lw-game-card__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.product-details {
  flex: 1;
  min-width: 0;
}

.product-name,
.lw-game-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-price,
.lw-game-card__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.product-price span,
.lw-game-card__price {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.lw-game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lw-game-card__count {
  color: rgba(255, 255, 255, 0.45);
}

.btn-buy {
  position: relative;
  padding: 11px 22px;
  background: radial-gradient(ellipse 150% 135% at 30% 0%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.035) 58%,
    rgba(255, 255, 255, 0.012) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.btn-buy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
  padding: 1px;
  background: radial-gradient(circle at 50% 50%,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, 0.35) 46%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.35) 54%,
    transparent 68%,
    transparent 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  animation: lw-btn-shine 9s linear infinite;
}

@keyframes lw-btn-shine {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.btn-buy:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18), inset 0 0 8px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn-buy.coming-soon {
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: default;
  pointer-events: none;
}

.btn-buy.coming-soon::before {
  display: none;
}

.product-price-was {
  text-decoration: line-through;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.product-price-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff8fcf;
}

.product-sale-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

.product-sale-timer__label {
  font-weight: 600;
}

.product-sale-timer__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ff8fcf;
}

.products-hero-title {
  font-family: var(--lw-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.products-hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
}

@media (max-width: 1100px) {
  .products-grid,
  .lw-land-popular__grid,
  .lw-grid--games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 744px;
  }

  .product-card {
    height: 480px;
  }
}

@media (max-width: 900px) {
  .lw-home-popular__grid,
  .products-grid,
  .lw-land-popular__grid,
  .lw-grid--games {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .product-card,
  .lw-game-card {
    max-width: none;
    min-width: 0;
    height: 420px;
  }

  .lw-game-card {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card::before,
  .lw-game-card::before,
  .btn-buy::before {
    animation: none;
  }

  .product-card:hover,
  .lw-game-card:hover {
    transform: none;
  }
}
