body, html {
  width: 100%;
  overflow-x: hidden;
}
/* Top Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  padding: 10px 20px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #3d82f2;
}
.search-input {
  flex: 1;
  margin: 0 20px;
  padding: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.login {
  background: #333;
  color: #fff;
}
.signup {
  background: #3d82f2;
  color: white;
}
.lang-select {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 8px;
  border-radius: 5px;
}

/* Hero */
.hero-banner {
  padding: 20px;
}
.hero-banner .container {
  max-width: 90%;
  max-height: 400px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

/* Main Banner (Swiper) */
.main-banner {
  flex: 2;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.banner-slide {
  height: 100%;
  position: relative;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #3d82f2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}
.swiper-pagination-bullet {
  background: #fff;
}

/* Side Banners */
.side-banners {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-banners img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.side-banners img:hover {
  transform: scale(1.02);
}

/* Platform Promo Section */
.platform-promo {
  margin: 30px auto;
}
.platform-promo .container {
  max-width: 90%;
  margin: 0 auto;
}
.promo-grid {
  display: flex;
  gap: 7px;
  justify-content: space-between;
  align-items: center;
}
.promo-grid img {
  width: 100%;
  max-width: calc(33.333% - 13.333px); /* 3 images with 20px gaps */
  height: 155px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.promo-grid img:hover {
  transform: scale(1.02);
}

/* Product Cards */
.product-slider {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px;
}
.product-card {
  background: #1c1c1c;
  border-radius: 10px;
  min-width: 180px;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: auto;
}
.info {
  padding: 10px;
}
.price {
  color: #3d82f2;
  font-weight: bold;
}

/* Platform Explorer */
.explore-platforms {
  text-align: center;
  padding: 40px 20px;
}
.platforms {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.platform {
  background: #222;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  color: white;
}

/*Product cards*/
.product-slider-wrap {
  position: relative;
  max-width: 90%;
  margin: 10px auto;
}

.section-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  padding-left: 5px;
}

.product-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding: 10px 0 30px 0;
  scroll-behavior: smooth;
}
.product-row::-webkit-scrollbar {
  height: 6px;
}
.product-row::-webkit-scrollbar-thumb {
  background: #3d82f2;
  border-radius: 10px;
}

.product-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 12px;
  background: #1c1c1c;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #2e2e2e;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.scroll-arrow.left {
  left: -30px;
}
.scroll-arrow.right {
  right: -30px;
}
@media (min-width: 768px) {
  .scroll-arrow {
    display: block;
  }
}

.show-all {
  text-align: center;
  margin-top: 10px;
}
.show-all-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
}
/* Product Card Container */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover effect */
.card:hover {
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

/* Product Image */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
  aspect-ratio: 1 / 1;      /* Reserves a 1:1 square space */
  background-color: #2a2a33; /* Placeholder color, matches your dark theme */
}

/* Card Content */
.card-content {
  padding: 10px;
}

/* Product Title */
.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

/* Product Metadata */
.card-meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

/* Price Styling */
.card-price {
  font-size: 14px;
  color: #4a78f0;
  font-weight: bold;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #888;
  font-size: 12px;
  margin-left: 5px;
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.product-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
  scroll-behavior: smooth;
}

.product-row .card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

.product-row {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-x: auto;
}

.product-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.product-row {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.scroll-slider {
  max-width: 90%;
  margin: 40px auto;
  position: relative;
}

.arrow-wrapper {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* hidden by default; JS shows them */
}
.scroll-arrow.left {
  left: 0;
}
.scroll-arrow.right {
  right: 0;
}

@media (min-width: 768px) {
  .scroll-arrow {
    display: block;
  }
}
@media (max-width: 768px) {
  .hero-banner .container {
    flex-direction: column;
    max-height: none;
    gap: 10px;
    max-width: 100%;
  }

  .main-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .side-banners {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;   /* No horizontal scroll */
    flex-wrap: nowrap;  /* Prevent line breaks */
  }

  .side-banners img {
    flex: 1;             /* Share space equally */
    min-width: 0;        /* Allow shrinkage */
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;     /* Prevent overflow */
  }

  .promo-grid {
    flex-direction: column;
    gap: 10px;
  }

  .promo-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .card-title {
    font-size: 13px;
  }

  .card-meta, .card-price, .card-strike {
    font-size: 12px;
  }
  

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #333;
    z-index: 9999;
  }

  .bottom-nav a {
    color: #fff;
    font-size: 12px;
    text-align: center;
    flex: 1;
    text-decoration: none;
  }

  .bottom-nav a i {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
  }

  body {
    padding-bottom: 60px; /* space for nav bar */
  }
}
/* Bottom Navigation Bar */
.bottom-nav {
  height: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 5px;
  border-top: 1px solid #2c2c2c;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
}

.nav-item {
  flex: 1;
  text-align: center;
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item.active,
.nav-item:hover {
  color: #4a90e2;
}

.nav-item.active i,
.nav-item:hover i {
  color: #4a90e2;
}

.nav-item span {
  display: block;
  font-size: 11px;
}

/* Show bottom nav only on small screens */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 5px;
    border-top: 1px solid #2c2c2c;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
  }
  

  .nav-item {
    flex: 1;
    text-align: center;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
  }

  .nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
  }

  .nav-item.active,
  .nav-item:hover {
    color: #4a90e2;
  }

  .nav-item.active i,
  .nav-item:hover i {
    color: #4a90e2;
  }

  .nav-item span {
    display: block;
    font-size: 11px;
  }

  /* Reserve space for nav bar */
  body {
    padding-bottom: 60px;
  }
}

/* Hide on tablet & desktop */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}
.explore-platforms {
  padding: 30px 15px;
}
.explore-platforms h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: white;
}

.platform-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #2a2a2a;
  padding: 15px 10px;
  border-radius: 12px;
  color: white;
  min-width: 110px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 transparent;
}

.platform-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.platform-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

/* Gradient color themes */
.platform-card.steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
}
.platform-card.xbox {
  background: linear-gradient(135deg, #107c10, #185918);
}
.platform-card.Rockstar {
  background: linear-gradient(135deg, #2C135D, #AC0339, #91825e, #2362B4, #2C135D);
}
.platform-card.Window {
  background: linear-gradient(135deg, #0e0e0e, #8d8d8d);
}
.platform-card.epic {
  background: linear-gradient(135deg, #202020, #444);
}
.platform-card.giftcard {
  background: linear-gradient(135deg, #a8450b, #7a1c1c);
}
.platform-card.offline {
  background: linear-gradient(135deg, #062d66, #000000);
}
.platform-scroll {
  display: flex;
  justify-content: center;         /* Center horizontally */
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  flex-wrap: wrap;                 /* Allow wrapping on wider screens */
  text-align: center;
}
@media (max-width: 768px) {
  .platform-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 5px 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .platform-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px;
    min-width: 90px;
    max-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.2s ease;
  }

  .platform-card img {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
  }

  .platform-card:hover {
    transform: scale(1.05);
  }

  .explore-platforms h3 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .side-banners {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    overflow: hidden;
  }

  .side-banners img.responsive-banner {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}
@media (max-width: 1300px) {
  .side-banners {
    display: none;
  }
  .platform-promo
  {
    display: none;
  }
  #homeSearchInput {
    margin-left: 15px;
  }
  #homeSearchBtn {
    margin-right: 15px;
  }
}

.home-search-container {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  display: flex;
  z-index: 1000;
}

#homeSearchInput {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: #c7c6c6;
  color: #000000;
  font-weight: 150;
}

#homeSearchBtn {
  padding: 10px 14px;
  background: #3d82f2;
  color: black;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

#homeSearchSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #101c2b;
  border: 1px solid #263544;
  border-top: none;
  display: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

#homeSearchSuggestions div {
  padding: 10px 14px;
  color: #ccc;
  cursor: pointer;
}

#homeSearchSuggestions div:hover {
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
}
@media (max-width: 768px) {
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 45%;
}

/* Hover effect */
.card:hover {
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

/* Product Image */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
}

/* Card Content */
.card-content {
  padding: 8px;
}

/* Product Title */
.card-title {
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  margin-bottom: 2px;
}

/* Product Metadata */
.card-meta {
  font-size: 10px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 2px;
}

/* Price Styling */
.card-price {
  font-size: 13px;
  font-weight: 570;
  color: #4a78f0;
  font-weight: bold;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #888;
  font-size: 11px;
  margin-left: 3px;
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.show-all-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 30px;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
}
}
.card,
a.card {
  color: inherit; 
  text-decoration: none;
}