/* ══════════════════════════════════════════════
   Featured Section Wrapper — Demo Spacing
   ══════════════════════════════════════════════ */
.featured-section {
  padding: 64px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .featured-section {
    padding: 40px 8px;
  }
}

/* ══════════════════════════════════════════════
   Product Card V2 — Portrait Style (Demo Design)
   ══════════════════════════════════════════════ */

/* Card container */
.v2-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: var(--surface);
}
.v2-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--blue-rgb),0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--blue-rgb),0.18);
}

/* Image wrapper */
.v2-card__cover {
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.v2-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s, transform 0.4s ease;
}
.v2-card__img.loaded {
  opacity: 1;
}
.v2-card:hover .v2-card__img {
  transform: scale(1.04);
}

/* Bottom gradient overlay — always visible */
.v2-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 10, 25, 0.96) 0%,
    rgba(5, 10, 25, 0.4) 40%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 1;
}

/* Discount badge — top left */
.v2-card__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--gold);
  color: var(--btn-text);
  z-index: 2;
}

/* Platform badge — top right */
.v2-card__platform {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(102, 192, 244, 0.15);
  color: #66C0F4;
  border: 1px solid rgba(102, 192, 244, 0.25);
  z-index: 2;
}

/* Stock status badge — top left (replaces discount when no discount) */
.v2-card__stock {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  z-index: 2;
}
.v2-card__stock--preorder {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.v2-card__stock--coming-soon {
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
}
.v2-card__stock--out {
  background: rgba(100, 100, 100, 0.9);
  color: #fff;
}

/* Bottom info area */
.v2-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
  z-index: 3;
}
.v2-card__title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-card__genre {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price row */
.v2-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.v2-card__price-old {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: line-through;
}
.v2-card__price-new {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin-left: 5px;
}

/* Buy / Add to Cart button
   Tinted rather than solid so a grid of cards is not a wall of green;
   it fills with the brand colour on hover. Flex keeps the label centred
   for both the <button> and the out-of-stock <span>. */
.v2-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid rgba(var(--btn-rgb), 0.45);
  background: rgba(var(--btn-rgb), 0.14);
  color: var(--btn-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.v2-card__buy:hover {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-text);
  transform: translateY(-1px);
}
.v2-card__buy--disabled,
.v2-card__buy--disabled:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  transform: none;
}

/* Wishlist button overlay — top right area below platform badge */
.v2-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5 !important;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.15s ease, background 0.15s ease;
}
.v2-card:hover .v2-card__wishlist {
  opacity: 1;
}
/* Touch screens have no hover, so the wishlist button must always be visible there */
@media (hover: none) {
  .v2-card__wishlist {
    opacity: 1;
  }
}
.v2-card__wishlist:hover {
  background: rgba(239, 68, 68, 0.6);
  color: #fff;
}
.v2-card__wishlist.active {
  opacity: 1;
  color: #EF4444;
}

/* When platform badge exists, move wishlist below it */
.v2-card__wishlist--below {
  top: 38px;
}

/* PEGI rating — bottom right, above gradient */
.v2-card__pegi {
  position: absolute;
  bottom: 80px;
  right: 10px;
  z-index: 2;
}
.v2-card__pegi img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ══════════════════════════════════════════════
   Top Sellers — Editor's Pick Spotlight Style
   ══════════════════════════════════════════════ */

/* Desktop: 2-column grid — big card left, 2x2 right */
.ep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Large featured card */
.ep-card {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #040814;
  cursor: pointer;
}
.ep-card:hover .ep-card__img {
  transform: scale(1.04);
}

.ep-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s, transform 0.4s;
}
.ep-card__img.loaded {
  opacity: 0.7;
}

/* Large card gradient — diagonal for emphasis */
.ep-card--big .ep-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
/* Small card gradient — bottom fade */
.ep-card--sm .ep-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 60%);
}

/* Purple border glow on big card */
.ep-card--big .ep-card__border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--blue-rgb),0.2);
  border-radius: 18px;
  pointer-events: none;
  transition: border-color 0.3s;
}
.ep-card--big:hover .ep-card__border {
  border-color: rgba(var(--blue-rgb),0.45);
}

/* Big card inner content — height matches 2x2 right grid */
.ep-card--big {
  height: 280px;
}
.ep-card--big .ep-card__body {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Top Seller / Editor's Choice badge */
.ep-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(var(--blue-rgb),0.2);
  color: #A5F3FC;
  border: 1px solid rgba(var(--blue-rgb),0.35);
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
}

/* Rank badge (gold/orange circle) */
.ep-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ep-rank--gold {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
}
.ep-rank--orange {
  background: rgba(var(--btn-rgb), 0.9);
}

.ep-card--big .ep-card__title {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.1;
}
.ep-card--big .ep-card__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

/* Big card price row */
.ep-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-card__price-old {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
}
.ep-card--big .ep-card__price-new {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}
/* Discount tag */
.ep-card__discount-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(245, 166, 35, 0.2);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

/* Small card — 2x2 right grid (must match big card height: 280px) */
.ep-grid__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 280px;
}

.ep-card--sm {
  border-radius: 14px;
}
.ep-card--sm .ep-card__body {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.ep-card--sm .ep-card__title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-card--sm .ep-card__price-new {
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
}

/* Add to cart button overlay — visible on hover for big card */
.ep-card__cart-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.ep-card__cart-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}
.ep-card__cart-btn--disabled {
  background: rgba(100, 100, 100, 0.5);
  cursor: not-allowed;
}

/* ── Mobile: spotlight + 2x2 ── */
.ep-mobile-big {
  aspect-ratio: 3 / 2;
  height: auto;
  margin-bottom: 10px;
  border-radius: 16px;
}
.ep-mobile-big .ep-card__body {
  padding: 20px;
  z-index: 2;
}
.ep-mobile-big .ep-card__title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.1;
}
.ep-mobile-big .ep-badge {
  font-size: 8px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.ep-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ep-mobile-grid .ep-card--sm {
  aspect-ratio: 4 / 3;
  min-height: auto;
  border-radius: 12px;
}
.ep-mobile-grid .ep-card--sm .ep-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 2;
}
.ep-mobile-grid .ep-card--sm .ep-card__title {
  font-size: 11px;
}
.ep-mobile-grid .ep-card--sm .ep-card__price-new {
  font-size: 12px;
}

/* Section header */
.ep-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.ep-section__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67E8F9;
  margin-bottom: 8px;
}
.ep-section__title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin: 0;
}
.ep-section__viewall {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.ep-section__viewall:hover {
  color: var(--blue-hover);
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .v2-card__title {
    font-size: 11px;
  }
  .v2-card__genre {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .v2-card__price-new {
    font-size: 13px;
  }
  .v2-card__price-old {
    font-size: 9px;
  }
  .v2-card__buy {
    height: 24px;
    padding: 0 10px;
    font-size: 10px;
    border-radius: 6px;
  }
  .v2-card__discount,
  .v2-card__platform,
  .v2-card__stock {
    font-size: 8px;
    padding: 2px 7px;
  }
  .v2-card__info {
    padding: 10px 10px 12px;
  }
  .v2-card__wishlist {
    width: 26px;
    height: 26px;
  }
}

/* ══════════════════════════════════════════════
   PUBLISHER CAMPAIGNS — Marquee Slider (Demo Style)
   ══════════════════════════════════════════════ */

/* Strip container */
.pub-strip {
  padding: 52px 0 44px;
  background: var(--surface);
  border-top: 1px solid rgba(var(--blue-rgb),0.18);
  border-bottom: 1px solid rgba(var(--blue-rgb),0.18);
  overflow: hidden;
  position: relative;
}

/* Header label */
.pub-strip__header {
  text-align: center;
  margin-bottom: 32px;
}

.pub-strip__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pub-strip__accent {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  margin: 0 auto;
}

/* Edge fade masks */
.pub-strip__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.pub-strip__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.pub-strip__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

/* Marquee animation */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pub-marquee-track {
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 4px 0;
  animation: marquee 48s linear infinite;
}

.pub-marquee-track:hover {
  animation-play-state: paused;
}

/* Individual publisher item */
.pub-logo-item {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  opacity: 0.68;
  filter: grayscale(0.55);
}

.pub-logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-3px);
  background: rgba(var(--blue-rgb),0.07);
  border-color: rgba(var(--blue-rgb),0.22);
  box-shadow: 0 6px 24px rgba(var(--blue-rgb),0.12);
}

.pub-logo-item img {
  height: 56px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: all 0.25s ease;
}

.pub-logo-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.pub-logo-item:hover span {
  color: var(--blue);
}

/* Mobile: smaller items, faster animation */
@media (max-width: 767px) {
  .pub-strip {
    padding: 36px 0 28px;
  }

  .pub-strip__header {
    margin-bottom: 20px;
  }

  .pub-strip__fade {
    width: 40px;
  }

  .pub-marquee-track {
    animation-duration: 32s;
  }

  .pub-logo-item {
    padding: 8px 16px;
    gap: 6px;
  }

  .pub-logo-item img {
    height: 40px;
    max-width: 88px;
  }

  .pub-logo-item span {
    font-size: 9px;
  }
}
