body, html {
  width: 100%;
  overflow-x: hidden;
}

/* --- LIQUID GLASS BOTTOM NAV --- */
:root {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;
  --saturation: 150%;
  --nav-bg: #1b1b1d; /* Shoppy Dark Theme Background */
}
/* 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: 5;
  width: 40px;
  height: 40px;
  background: rgba(18, 21, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.scroll-arrow:hover {
  background: #3d67a8;
  border-color: #4675BD;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(70, 117, 189, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .scroll-arrow:hover {
    background: color-mix(in srgb, #4675BD 45%, rgba(18, 21, 28, 0.6));
    backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .scroll-arrow:hover {
      -webkit-backdrop-filter: blur(14px) saturate(170%);
      backdrop-filter: blur(14px) saturate(170%);
    }
  }
}
.scroll-arrow.left {
  left: -30px;
}
.scroll-arrow.right {
  right: -30px;
}
@media (min-width: 768px) {
  .scroll-arrow {
    display: flex;
  }
}

.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;
}

/* ============================================
   PROMO STRIP — banner below Best Selling.
   Background image left blank on purpose — see chat notes for size.
   Recommended background image: 1600x220px (or similar ~7:1 ratio),
   JPG/WEBP, dark/moody art with clear space to let text stay readable.
   ============================================ */
.promo-strip {
  position: relative;
  max-width: 90%;
  margin: 10px auto 40px;
  min-height: 90px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #0d1420 0%, #101a2c 55%, #142035 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
}
.promo-strip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%, black 78%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.promo-strip > * {
  position: relative;
  z-index: 1;
}

.promo-strip__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.promo-strip__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4675BD, #2d4d82);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex: 0 0 auto;
}
.promo-strip__left-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: nowrap;
}
.promo-strip__left-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.promo-strip__left-text span {
  font-size: 11px;
  color: #9aa4b2;
}

.promo-strip__center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  cursor: pointer;
}
.promo-strip__center span {
  font-size: 14px;
  font-weight: 600;
  color: #eef1f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-strip__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #4675BD;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 200ms ease, transform 200ms ease;
}
.promo-strip__center:hover .promo-strip__arrow {
  background: #3d67a8;
  transform: scale(1.08) translateX(2px);
}

.promo-strip__badges {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}
.promo-strip__badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #c8d0dc;
  white-space: nowrap;
}
.promo-strip__badge i {
  color: #4675BD;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .promo-strip__badges {
    gap: 14px;
  }
  .promo-strip__badge span {
    display: none; /* icons only once things get tight */
  }
}
@media (max-width: 860px) {
  .promo-strip {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 14px 16px;
  }
  .promo-strip__center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .promo-strip__badges {
    order: 4;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .promo-strip {
    padding: 12px;
    gap: 10px;
  }
  .promo-strip__left-text strong {
    font-size: 12px;
  }
  .promo-strip__center span {
    white-space: normal;
    font-size: 13px;
  }
}

/* Product Card Container */
.card {
  position: relative;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  flex-direction: column;
}

/* Lift + border glow on hover — hover-capable pointer devices only,
   so touch/mobile never gets a "stuck" hover state */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(70, 117, 189, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  }
}

/* Image area wrapper (holds image, badge, and hover action panel) */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  background-color: #1b202b;
}

/* Product Image */
.card-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;      /* Reserves a 1:1 square space */
  background-color: #1b202b; /* Placeholder color, matches your dark theme */
  transition: transform 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-image-wrap img {
    transform: scale(1.06);
  }
}

/* Subtle dark gradient revealed behind the hover actions — not a glow,
   just enough contrast for the buttons to read clearly over artwork */
.card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 12, 0.88) 0%, rgba(6, 8, 12, 0.15) 55%, rgba(6, 8, 12, 0) 100%);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-image-wrap::after {
    opacity: 1;
  }
}

/* Hover action panel: "Add to Cart" + "View Details" — desktop/hover only.
   On touch devices this never renders; the always-visible cart icon in
   .card-price-row is the tap equivalent instead. */
.card-hover-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .card-hover-actions {
    display: flex;
  }
  .card:hover .card-hover-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* "Add to Wishlist" — solid brand CTA with the same glossy top edge used on
   the site's other primary buttons (e.g. #homeSearchBtn) */
.card-action-wishlist {
  background: #4675BD;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .card-action-wishlist:hover {
    background: color-mix(in srgb, #4675BD 55%, rgba(18, 21, 28, 0.55));
    backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px rgba(70, 117, 189, 0.45);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .card-action-wishlist:hover {
      -webkit-backdrop-filter: blur(14px) saturate(170%);
      backdrop-filter: blur(14px) saturate(170%);
    }
  }
}
/* Low-perf / touch fallback — same tint, no filter cost */
.card-action-wishlist:hover {
  background: #3d67a8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 12px rgba(70, 117, 189, 0.45);
}
/* Already-in-wishlist state (filled heart) */
.card-action-wishlist.in-wishlist {
  background: #e0455c;
}
.card-action-wishlist.in-wishlist:hover {
  background: #c93a4e;
}

/* Heart that flies from the card up to the header wishlist/account icon */
.wishlist-fly-heart {
  position: fixed;
  font-size: 18px;
  color: #ff4d6d;
  z-index: 999999;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform, opacity;
}
.wishlist-fly-heart.fly {
  animation: flyToWishlist 700ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes flyToWishlist {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  30% { transform: translate(calc(-50% + (var(--fly-x)) * 0.3), calc(-50% + (var(--fly-y)) * 0.3 - 40px)) scale(1.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(0.25); opacity: 0; }
}
.wishlist-target-pulse {
  animation: wishlistPulse 400ms ease;
}
@keyframes wishlistPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* "View Details" — real liquid glass, the same heavy-liquid SVG turbulence
   filter used on the bottom-nav / search bar. This button sits directly over
   product artwork, which is exactly where that distortion actually reads. */
.card-action-view {
  background: color-mix(in srgb, var(--c-glass, #bbb) 18%, rgba(18, 21, 28, 0.55));
  backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
  -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
  color: #f2f4f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 0 12px rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.35);
}
.card-action-view:hover {
  background: color-mix(in srgb, var(--c-glass, #bbb) 26%, rgba(18, 21, 28, 0.65));
  border-color: rgba(255, 255, 255, 0.28);
}

/* iOS/Safari: SVG turbulence filters render unreliably, so fall back to a
   clean standard blur — same fix already applied to #homeSearchSuggestions */
@supports (-webkit-touch-callout: none) {
  .card-action-view {
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }
}

/* Card Content */
.card-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background-color 250ms ease, backdrop-filter 250ms ease;
}

/* On hover, convert the name/price area to the same liquid glass used on
   the site header / flash-sale notif — hover-capable, non-low-perf only */
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .card:hover .card-content {
    background-color: color-mix(in srgb, #000 60%, transparent);
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(0, 102, 255, 0.15),
      0 4px 20px rgba(0, 0, 0, 0.6);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .card:hover .card-content {
      background: rgba(15, 22, 35, 0.4);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      backdrop-filter: blur(20px) saturate(160%);
    }
  }
}

/* Product Title */
.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #f5f6f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

/* Product Metadata */
.card-meta {
  font-size: 12px;
  color: #8b93a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

/* Price row: price on the left, quick add-to-cart icon on the right */
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

/* Price Styling */
.card-price {
  font-size: 15px;
  color: #4675BD;
  font-weight: 700;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #767c88;
  font-size: 12px;
  margin-left: 5px;
  font-weight: 400;
}

/* Always-visible quick add-to-cart icon — works with no hover needed,
   so it doubles as the tap equivalent on mobile */
.card-quick-cart {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.card-quick-cart:hover {
  background: #4675BD;
  border-color: #4675BD;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .card-quick-cart:hover {
    background: color-mix(in srgb, #4675BD 65%, rgba(18, 21, 28, 0.5));
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .card-quick-cart:hover {
      -webkit-backdrop-filter: blur(12px) saturate(170%);
      backdrop-filter: blur(12px) saturate(170%);
    }
  }
}
.card-quick-cart:active {
  transform: scale(0.92);
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d9433a;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Small confirmation toast for quick add-to-cart */
.quick-add-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f6f8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 99999;
}
.quick-add-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.quick-add-toast i {
  color: #4675BD;
}
.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;
}

@media (min-width: 768px) {
  .scroll-arrow {
    display: flex;
  }
}
@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 */
/* --- BOTTOM NAVIGATION (Liquid Glass Bar) --- */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    
    /* Dark Glass Background for the main bar */
    background: rgba(15, 15, 20, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0; 
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  }

  /* The Sliding Liquid Bubble */
  .nav-lens {
    position: absolute;
    top: 50%;
    left: 0; 
    transform: translateY(-50%);
    width: 65px; 
    height: 55px; 
    border-radius: 25px; 
    
    /* GLASS EFFECT */
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 
      inset 0 0 15px rgba(255, 255, 255, 0.1), 
      0 4px 15px rgba(0, 0, 0, 0.3), 
      0 0 20px rgba(70, 117, 189, 0.2); 
      
    backdrop-filter: blur(5px) brightness(1.2); 
    -webkit-backdrop-filter: blur(5px) brightness(1.2);
    
    z-index: 1; 
    transition: left 0.4s cubic-bezier(0.25, 1.5, 0.5, 1); 
    pointer-events: none; 
  }

  .nav-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #888;
    z-index: 2; 
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-item span {
    font-size: 11px;
    font-weight: 500;
  }

  /* Active State */
  .nav-item.active {
    color: #fff; 
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
  }

  .nav-item.active i {
    transform: translateY(-3px) scale(1.1); 
    color: #4675bd; 
    filter: drop-shadow(0 0 8px rgba(70, 117, 189, 0.6)); 
  }

  body {
    padding-bottom: 70px;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .bottom-nav {
      background: rgba(15, 22, 35, 0.4); 
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      backdrop-filter: blur(20px) saturate(160%);
    }
    .nav-lens {
      background-color: rgba(255, 255, 255, 0.15);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
}

@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);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .platform-card:hover {
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .platform-card:hover {
      -webkit-backdrop-filter: blur(12px) saturate(170%);
      backdrop-filter: blur(12px) saturate(170%);
    }
  }
}
.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;
  }
}

/* --- SEARCH CONTAINER --- */
.home-search-container {
  position: relative;
  max-width: 800px;
  margin: 30px auto; /* Slightly more space */
  display: flex;
  z-index: 1000;
  
  /* Floating Shadow */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

/* Hover Effect: Floats up slightly */
.home-search-container:hover {
  transform: translateY(-2px);
}

/* --- INPUT FIELD (Liquid Glass) --- */
#homeSearchInput {
  flex: 1;
  padding: 16px 20px; /* Taller, comfortable click area */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none; /* Connect to button */
  border-radius: 12px 0 0 12px; /* Rounder corners */
  
  /* Dark Glass Background */
  background: color-mix(in srgb, #0f1623 80%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  
  /* Smooth transition for focus */
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); /* Inner depth */
}

#homeSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Focus State (Neon Glow) */
#homeSearchInput:focus {
  outline: none;
  background: color-mix(in srgb, #0f1623 95%, transparent); /* Darker on focus */
  border-color: #3d82f2;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 0 15px rgba(61, 130, 242, 0.3); /* Blue Glow */
}

/* --- SEARCH BUTTON --- */
#homeSearchBtn {
  padding: 0 24px;
  
  /* Shoppy Blue Gradient */
  background: linear-gradient(135deg, #3d82f2, #2a5db0);
  
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 12px 12px 0;
  
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  
  /* Subtle inner light at top */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#homeSearchBtn:hover {
  /* Brighter Gradient */
  background: linear-gradient(135deg, #4d92ff, #3a6dc0);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 15px rgba(61, 130, 242, 0.6); /* Stronger Glow */
}

#homeSearchBtn:active {
  transform: scale(0.96); /* Press effect */
}

/* --- MOBILE ADJUSTMENT --- */
@media (max-width: 600px) {
  .home-search-container {
    margin: 20px 15px;
  }
  
  #homeSearchInput {
    /* FIX: Font size MUST be 16px or higher to prevent auto-zoom on iPhone */
    font-size: 16px !important; 
    padding: 12px 16px;
  }
}

@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;
}

@media (max-width: 768px) {
  
  /* --- 1. MAIN NAVIGATION BAR --- */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    
    /* Layout */
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* --- LIQUID GLASS EFFECT (Glitch-Free) --- */
    /* Dark Transparent Background */
    background-color: color-mix(in srgb, #000 60%, transparent);
    
    /* Use the #heavy-liquid filter (Fixes the ghost blob issue) */
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    
    /* Premium Shadows */
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      inset 0 0 20px rgba(255, 255, 255, 0.05),
      0 -10px 30px rgba(0, 0, 0, 0.5);
  }

  /* --- 2. THE MOVING LENS (Bubble) --- */
  .nav-lens {
    position: absolute;
    top: 50%;
    left: 0; 
    transform: translateY(-50%);
    width: 75px; 
    height: 50px;
    border-radius: 99em; 
    
    /* Glassy Look */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    
    /* Keep existing filter for the small pill (it works fine on small shapes) */
    /* Or change to url(#heavy-liquid) if you want it to match perfectly */
    backdrop-filter: blur(8px) url(#heavy-liquid) saturate(150%);
    -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(150%);
    
    /* Complex 3D Lighting Shadows */
    box-shadow: 
      inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
      inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent), 
      inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent), 
      inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent), 
      inset -0.3px -1px 4px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 12%), transparent), 
      inset -1.5px 2.5px 0px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
      inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
      inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
      0px 1px 5px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
      0px 6px 16px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
      
    z-index: 1; 
    transition: left 0.4s cubic-bezier(1, 0.0, 0.4, 1), width 0.4s cubic-bezier(1, 0.0, 0.4, 1);
    pointer-events: none;
  }
  
  .nav-lens.squeezing {
    animation: scaleToggle 440ms ease; 
  }

  /* --- 3. ICONS --- */
  .nav-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #666;
    z-index: 2;
    transition: color 0.3s ease;
  }

  .nav-item i { font-size: 20px; margin-bottom: 4px; }
  .nav-item span { font-size: 11px; font-weight: 600; }

  .nav-item.active {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  body { padding-bottom: 70px; }
}

/* --- 4. APPLE FIX (Prevents Invisible Nav on iOS) --- */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .bottom-nav, .nav-lens {
      /* Darker solid glass for visibility */
      background-color: rgba(15, 22, 35, 0.4);
      
      /* Remove SVG URL to prevent glitch */
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      backdrop-filter: blur(20px) saturate(160%);
    }
    
    /* Adjust lens transparency slightly for iOS */
    .nav-lens {
       background-color: rgba(255, 255, 255, 0.15);
    }
  }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}


@media (max-width: 768px) {
  
.card {
  position: relative;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  flex-direction: column;
  max-width: 45%;
}

/* Image area wrapper */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  background-color: #1b202b;
}

/* Product Image */
.card-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  background-color: #1b202b;
}

/* Card Content */
.card-content {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Product Title */
.card-title {
  font-weight: 500;
  font-size: 11px;
  color: #f5f6f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

/* Product Metadata */
.card-meta {
  font-size: 10px;
  font-weight: 500;
  color: #8b93a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

/* Price row: price + always-visible quick add-to-cart tap target */
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
}

/* Price Styling */
.card-price {
  font-size: 13px;
  color: #4675BD;
  font-weight: 700;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #767c88;
  font-size: 11px;
  margin-left: 3px;
  font-weight: 400;
}

/* Quick add-to-cart tap target — the mobile equivalent of the desktop
   hover actions, always visible since touch devices have no hover */
.card-quick-cart {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.card-quick-cart:active {
  background: #4675BD;
  border-color: #4675BD;
  color: #fff;
  transform: scale(0.92);
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #d9433a;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.show-all-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 30px;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
}
}

#homeSearchSuggestions div:hover {
  /* Highlight effect inside the glass */
  background-color: color-mix(in srgb, #fff 10%, transparent); /* White tint */
  color: #fff;
  padding-left: 18px; /* Small slide animation */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ============================================
   CHAT BUTTON — desktop upgrade (mobile keeps the original simple pill).
   Avatar image: leave src blank for a real photo. Recommended size:
   square, min 80x80px (96x96px for retina), JPG/PNG/WEBP — shown as a
   40x40 circle so keep the subject centered.
   ============================================ */
.chat-button__mobile-label {
  display: inline;
}
.chat-button__desktop {
  display: none;
}

@media (min-width: 769px) {
  .chat-button__mobile-label {
    display: none;
  }
  .chat-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: 30px;
    
    /* Liquid Glass styling */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: radial-gradient(circle at 50% 0%, rgba(70, 117, 189, 0.25) 0%, rgba(18, 21, 28, 0.65) 75%) !important;
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(150%) !important;
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(150%) !important;
    
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.3),
      inset 0 0 20px rgba(70, 117, 189, 0.2),
      0 8px 25px rgba(0, 0, 0, 0.5) !important;
      
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  }

  .chat-button:hover {
    transform: translateY(-3px);
    background: radial-gradient(circle at 50% 0%, rgba(70, 117, 189, 0.35) 0%, rgba(18, 21, 28, 0.75) 75%) !important;
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
      inset 0 0 25px rgba(70, 117, 189, 0.3),
      0 12px 30px rgba(0, 0, 0, 0.6) !important;
  }
  .chat-button__desktop {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .chat-button__avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }
  .chat-button__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.15); /* visible placeholder until an image is set */
    border: 2px solid rgba(255, 255, 255, 0.4);
  }
  .chat-button__status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #34d058;
    border: 2px solid #1c3a63;
  }

  .chat-button__msg-track {
    position: relative;
    height: 18px;
    min-width: 130px;
    overflow: hidden;
  }
  .chat-button__msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
    pointer-events: none;
  }
  .chat-button__msg.is-active {
    opacity: 1;
    transform: translateY(0);
  }
  .chat-button__msg i {
    font-size: 13px;
    color: #fff;
    width: 14px;
    text-align: center;
  }
}

/* Icon micro-animations cycling inside the chat button */
.chat-anim-bounce {
  animation: chatBounce 1.2s ease-in-out infinite;
}
@keyframes chatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.chat-anim-pulse {
  animation: chatPulse 1.1s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.chat-anim-shake {
  animation: chatShake 1.4s ease-in-out infinite;
}
@keyframes chatShake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
}
.chat-anim-typing {
  display: inline-flex;
  gap: 2px;
}
.chat-anim-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  animation: chatTypingDot 1s infinite ease-in-out;
}
.chat-anim-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-anim-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
/* Low-perf devices: keep the cycling text, drop the constant micro-motion */
body.low-perf .chat-anim-bounce,
body.low-perf .chat-anim-pulse,
body.low-perf .chat-anim-shake,
body.low-perf .chat-anim-typing i {
  animation: none;
}

/* =========================================
   LOW PERFORMANCE MODE (No Liquid/Glass)
   ========================================= */

/* 1. Disable the heavy floating background animation */
body.low-perf .stage {
  display: none !important;
}

/* 2. Global Reset for Glass Elements */
body.low-perf .bottom-nav,
body.low-perf .nav-lens,
body.low-perf .site-header__wrapper.scrolled,
body.low-perf .flash-sale-notif,
body.low-perf .chat-button,
body.low-perf #homeSearchInput,
body.low-perf #homeSearchSuggestions,
body.low-perf .account-popup {
  /* KILL THE LAG: Remove filters and transparency */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* 3. Bottom Navigation (Solid Dark) */
body.low-perf .bottom-nav {
  background-color: #0f0f13 !important; /* Solid dark background */
  border-top: 1px solid #333;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.5) !important;
}

/* 4. The Nav Lens Bubble (Simple Pill) */
body.low-perf .nav-lens {
  background-color: #1c1c1c !important; /* Lighter grey pill */
  border: 1px solid #444;
  box-shadow: none !important; /* Remove the complex 10-layer shadow */
}

/* 5. Sticky Header (Solid) */
body.low-perf .site-header__wrapper.scrolled {
  background-color: #0f0f13 !important;
  border-bottom: 1px solid #333;
}

/* 6. Flash Sale Notification (Solid Card) */
body.low-perf .flash-sale-notif {
  background-color: #1f2937 !important; /* Solid slate color */
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

body.low-perf .chat-button {
  background: #1e2638 !important;
  border: 1px solid #324460 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
body.low-perf .chat-button:hover {
  background: #27344c !important;
  border-color: #4675BD !important;
}

/* 7. Search Input (Solid) */
body.low-perf #homeSearchInput {
  background-color: #121212 !important;
  border: 1px solid #333;
}
body.low-perf #homeSearchSuggestions {
  background-color: #121212 !important;
  border: 1px solid #333;
}

/* 8. Account Popup (Solid) */
body.low-perf .account-popup {
  background-color: #0c0c0c !important;
}

/* 9. Button/panel hover liquid glass — fall back to flat, no filter cost */
body.low-perf .card-content,
body.low-perf .checkout-btn:hover,
body.low-perf .platform-card:hover,
body.low-perf .btn--outline:hover {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Header buttons — brand color + real liquid glass hover (overrides styles.css,
   which loads first) */
.btn--outline {
  border-color: #4675BD;
  color: #cfd6e2;
  transition: background 200ms ease, color 200ms ease, backdrop-filter 200ms ease;
}
.btn--outline:hover {
  background: #3d67a8;
  color: #fff;
}
.icon-btn:hover {
  color: #4675BD;
}
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .btn--outline:hover {
    background: color-mix(in srgb, #4675BD 55%, rgba(18, 21, 28, 0.55));
    backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(160%);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .btn--outline:hover {
      -webkit-backdrop-filter: blur(14px) saturate(170%);
      backdrop-filter: blur(14px) saturate(170%);
    }
  }
}

/* =========================================
   DYNAMIC MEGA MENU (DESKTOP)
   ========================================= */
/* The main trigger link in navbar */
.nav-item-dynamic {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* The container for the massive dropdown */
.g2a-mega-dropdown {
    position: absolute;
    top: 100%;
    left: -150px; /* Adjust to center relative to trigger */
    width: 900px; /* Fixed wide width like G2A */
    background: rgba(20, 20, 25, 0.98); /* Deeper dark for contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 25px;
    
    /* Hiding initially */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10000;
    
    /* G2A Layout: Grid splitting left links vs right banners */
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts links, 1 part banners */
    gap: 30px;
}

/* Show on hover */
.nav-item-dynamic:hover .g2a-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LEFT SIDE: Link Columns Area */
.g2a-links-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns of category links */
    gap: 20px;
}

.g2a-column h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(60, 130, 246, 0.3); /* Subtle blue line */
}

.g2a-column a {
    display: block;
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.g2a-column a:hover {
    color: #3b82f6; /* Shoppy Blue */
    transform: translateX(5px);
}

/* RIGHT SIDE: Featured Banners Area */
.g2a-featured-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 25px;
}

/* The Featured Card Style */
.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9; /* Cinematic banner shape */
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dark gradient overlay so text is readable */
.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.featured-card h5 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.featured-card span {
    color: #3b82f6;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-card:hover img {
    transform: scale(1.05);
}

/* =========================================
   MOBILE MENU FIXES (SCROLL & ACCORDION)
   ========================================= */

/* 1. Fix the Container Layout for Scrolling */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of screen */
    background: #121212; /* Dark background */
    width: 85%; /* Sidebar width */
    max-width: 320px;
}

.mobile-header {
    flex-shrink: 0; /* Header stays at top */
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The Scrollable Area */
.mobile-nav-links {
    flex: 1; /* Takes remaining space */
    overflow-y: auto; /* ENABLE SCROLLING */
    padding-bottom: 50px; /* Space for bottom content */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* 2. Fix the Accordion (Hide items by default) */
.mobile-dropdown-wrapper {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-drop-header {
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    transition: background 0.2s;
}

.mobile-drop-header:active {
    background: rgba(255,255,255,0.05);
}

/* Chevron Rotation */
.mobile-drop-header .arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.mobile-dropdown-wrapper.active > .mobile-drop-header .arrow {
    transform: rotate(90deg);
    color: #3b82f6; /* Blue when active */
}

/* 3. The Logic to Hide/Show Sub-menus */
.mobile-sub-menu {
    /* HIDDEN BY DEFAULT */
    display: none; 
    background: #000; /* Darker background for nested items */
    padding: 5px 0;
}

/* SHOW when Parent has .active class */
.mobile-dropdown-wrapper.active > .mobile-sub-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Nested Sub-Menus (Indentations) */
.mobile-sub-menu .mobile-drop-header {
    padding-left: 35px; /* Level 2 Header Indent */
    font-size: 13px;
    color: #ccc;
    font-weight: normal;
}

.mobile-sub-menu .mobile-sub-menu a {
    padding: 12px 20px 12px 50px; /* Level 3 Link Indent */
    display: block;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.mobile-sub-menu .mobile-sub-menu a:hover {
    color: white;
    border-left: 2px solid #3b82f6;
    background: rgba(255,255,255,0.05);
}

/* Animation for smooth opening */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Static links in mobile menu */
.static-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-item-dynamic{position:static!important}.g2a-mega-dropdown{width:90vw!important;left:5vw!important;transform:none!important;max-height:80vh;overflow-y:auto;grid-template-columns:1fr 300px!important}.g2a-links-area{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important}

/* =========================================
   PREMIUM GLASSMORPHISM HERO & PROMO UI
   ========================================= */

/* Base Glass Panel Style (Reusable) */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

/* --- HERO SPLIT LAYOUT --- */
.premium-hero-section {
  padding: 15px 20px;
}
/* --- HERO SPLIT LAYOUT --- */
.hero-split-layout {
  display: flex;
  flex-direction: row; /* Force row layout */
  flex-wrap: nowrap;   /* Prevent wrapping on desktop */
  align-items: stretch; /* Make both sides match height */
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Main Banner (Left) */
.main-glass-banner {
  flex: 2.5; 
  min-width: 0; /* CRITICAL FIX: Prevents flex items from overflowing container on back navigation */
  border-radius: 20px;
  padding: 40px 50px;
  display: flex;
  flex-direction: row; /* Force text and image wrapper to stay side-by-side */
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  min-height: 320px;
  box-sizing: border-box;
  
  /* Added a fallback solid color in case the blur fails on back-cache */
  background-color: rgba(25, 25, 35, 0.5); 
}

/* Side Banners (Right) */
.side-glass-banners {
  flex: 1;
  min-width: 0; /* CRITICAL FIX */
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

.side-glass-card {
  flex: 1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-glass-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.side-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.side-content span {
  color: #8a8a93;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Adjust Images to float nicely */
.side-img, .promo-img {
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); /* Adds depth to transparent PNGs */
  transition: transform 0.3s ease;
}

.side-glass-card:hover .side-img, 
.promo-glass-card:hover .promo-img {
  transform: scale(1.1) rotate(-3deg);
}

/* --- MAIN BANNER INNER STYLES --- */
.hero-content { z-index: 2; max-width: 55%; }
.hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  background: linear-gradient(to right, #ffffff, #a3bdff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 0.9rem;
  color: #b0b0b5;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* 3D Floating Cards */
.hero-image-wrapper { position: relative; width: 40%; height: 200px; z-index: 1; perspective: 1000px; }
.card-mockup {
  position: absolute; width: 200px; height: 120px; border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.3);
}
.card-back { background: linear-gradient(135deg, #2a205c, #140e33); right: 5%; bottom: 10px; transform: rotate(15deg) translateZ(-50px); opacity: 0.8; }
.card-front { background: linear-gradient(135deg, #3d82f2, #1a3c7a); left: 0%; top: 10px; transform: rotate(5deg) translateZ(20px); backdrop-filter: blur(5px); }

/* Navigation & Dots */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: white;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 3;
  display: flex; justify-content: center; align-items: center; transition: all 0.2s ease;
}
.nav-arrow:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-50%) scale(1.1); }
.left-arrow { left: 15px; } .right-arrow { right: 15px; }
.carousel-indicators { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.dot { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { width: 18px; border-radius: 10px; background: #ffffff; }


/* --- BOTTOM PROMO SECTION (3 Grid) --- */
.premium-promo-section {
  padding: 10px 20px 30px;
}
.promo-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.promo-glass-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Subtle underlying color glows for different categories */
.steam-glow { background: linear-gradient(135deg, rgba(27, 40, 56, 0.6), rgba(255,255,255,0.02)); }
.action-glow { background: linear-gradient(135deg, rgba(163, 44, 44, 0.4), rgba(255,255,255,0.02)); }
.best-glow { background: linear-gradient(135deg, rgba(46, 125, 50, 0.4), rgba(255,255,255,0.02)); }

.promo-glass-card:hover { transform: translateY(-5px); }

.promo-text h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.promo-text p { color: #8a8a93; font-size: 0.85rem; font-weight: 500; }
.promo-img { max-height: 90px; }


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .hero-split-layout { flex-direction: column; }
  .main-glass-banner { flex: none; width: 100%; min-height: 280px; }
  .side-glass-banners { flex-direction: row; }
  .promo-glass-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-split-layout { max-width: 100%; gap: 10px; }
  .main-glass-banner { padding: 30px 20px; flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; margin-bottom: 30px; }
  .hero-image-wrapper { width: 100%; height: 160px; display: flex; justify-content: center; }
  .card-front { left: 10%; } .card-back { right: 10%; }
  
  .side-glass-banners { flex-direction: row; overflow: hidden; }
  .side-content h4 { font-size: 0.9rem; }
  .side-content span { display: none; /* Hide subtitle on mobile to save space */ }
  .side-img { max-height: 50px; }

  .promo-glass-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px;}
  .promo-glass-card { padding: 16px; }
  .promo-img { max-height: 70px; }
  .nav-arrow { display: none; }
}

/* =========================================
   TRUE CONTINUOUS SLIDING TRACK
   ========================================= */
.hero-inner-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  /* The track that moves the entire cards */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(0%);
}

/* The individual slide card */
.hero-slide-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0; /* Prevents the slides from squishing together */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ensure mobile layout applies to the new slide item */
@media (max-width: 768px) {
  .hero-slide-item {
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
}
/* =========================================
   DYNAMIC HERO TEMPLATE STYLES
   ========================================= */

/* Common Helpers */
.tpl-left { max-width: 50%; }
.tpl-right { width: 45%; }
.tpl-center { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mt-4 { margin-top: 24px; }

/* TPL-2: Showcase */
.showcase-img-wrap { width: 100%; display: flex; justify-content: center; }
.showcase-img { max-height: 140px; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); }

/* TPL-3: Box Art */
.box-art-img {
  max-height: 240px;
  border-radius: 12px;
  transform: perspective(800px) rotateY(-15deg);
  transition: transform 0.3s ease;
}
.box-art-img:hover { transform: perspective(800px) rotateY(0deg) scale(1.05); }

/* TPL-4: Compare Layout */
.compare-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 55%;
}
.compare-card {
  width: 45%;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.compare-card img { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.compare-card h6 { font-size: 0.85rem; color: #fff; margin-bottom: 4px; letter-spacing: 1px;}
.compare-price { font-size: 1.1rem; font-weight: bold; color: #4a90e2; }
.compare-card.premium-glow { border: 1px solid rgba(255, 145, 0, 0.5); box-shadow: 0 0 20px rgba(255, 145, 0, 0.15); }
.compare-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3d82f2, #1a3c7a);
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid #0f0f13;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.pill-text { font-size: 0.75rem; font-weight: bold; color: white; white-space: nowrap; }

/* TPL-5: Minimalist Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}
.min-badge {
  padding: 20px 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}
.min-badge:hover { transform: translateY(-5px); }
.min-badge i { font-size: 1.8rem; color: #4a90e2; }
.min-badge span { font-size: 0.85rem; color: #ccc; font-weight: 500; }
.gradient-text-alt {
  background: linear-gradient(to right, #ffffff, #ff9100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Animation Utility */
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.floating-anim { animation: floatAnim 4s ease-in-out infinite; }

/* Responsive adjustments for new templates */
@media (max-width: 768px) {
  .tpl-left, .tpl-right, .compare-layout { max-width: 100%; width: 100%; }
  .box-art-img { max-height: 180px; transform: rotateY(0deg); }
  .compare-layout { margin-top: 20px; }
  .compare-card img { height: 100px; object-fit: cover; }
  .badge-grid { margin-top: 20px; }
}


/* =========================================
   PRE-MADE HOVER EFFECTS FOR DYNAMIC JSON
   ========================================= */

/* 1. Button Hover Effect */
.cta-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.cta-button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
}

/* 2. Cyberpunk Box Art 3D Hover */
.box-art-img {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.box-art-img:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.05) !important;
}

/* 3. Compare Cards Hover */
.compare-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.compare-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Minimalist Badge Hover */
.min-badge {
  transition: transform 0.2s ease, background 0.2s ease !important;
}
.min-badge:hover {
  transform: translateY(-5px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 5. Classic 3D Cards Hover */
.card-mockup {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.hero-image-wrapper:hover .card-front {
  transform: rotate(0deg) translateZ(30px) scale(1.05) !important;
}
.hero-image-wrapper:hover .card-back {
  transform: rotate(10deg) translateZ(-40px) translateX(20px) !important;
}

/* =========================================
   3D FANNED CARD STACK (STEAM STYLE)
   ========================================= */

/* CRITICAL: Override hidden overflow so cards can pop out! */
.stack-parent {
  overflow: visible !important; 
}

/* Wrapper to hold the cards and apply 3D perspective */
.card-stack-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* Adjust margins if they hit the text */
  margin-right: 15px;
}

/* Base sizes for different sections */
.side-stack { width: 70px; height: 80px; }
.promo-stack { width: 90px; height: 90px; }

/* The individual cards inside the stack */
.layer-card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1), filter 0.4s ease, box-shadow 0.4s ease;
}

/* Side banner specific card sizes */
.side-stack .layer-card { width: 50px; height: 70px; }

/* Promo grid specific card sizes */
.promo-stack .layer-card { width: 65px; height: 90px; }

/* --- DEFAULT POSITIONS (The Fan Spread) --- */
.left-card {
  transform: rotate(-15deg) translateX(-18px) translateY(5px) translateZ(-10px);
  z-index: 1;
  filter: brightness(0.6);
}

.right-card {
  transform: rotate(15deg) translateX(18px) translateY(5px) translateZ(-10px);
  z-index: 1;
  filter: brightness(0.6);
}

.center-card {
  transform: rotate(0deg) translateX(0) translateY(0) translateZ(0);
  z-index: 2;
  filter: brightness(0.9);
}

/* --- HOVER ANIMATIONS (Triggered by hovering over the parent box) --- */
.stack-parent:hover .left-card {
  transform: rotate(-25deg) translateX(-35px) translateY(5px) translateZ(5px);
  filter: brightness(0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.stack-parent:hover .right-card {
  transform: rotate(25deg) translateX(35px) translateY(5px) translateZ(5px);
  filter: brightness(0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.stack-parent:hover .center-card {
  /* Pops out towards the user and scales up */
  transform: rotate(0deg) translateX(0) translateY(-15px) translateZ(30px) scale(1.15);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
  z-index: 3;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .card-stack-wrapper {
    margin-right: 10px;
    margin-top: 10px;
  }
  .side-stack { width: 50px; height: 60px; }
  .side-stack .layer-card { width: 40px; height: 55px; }
  
  .promo-stack { width: 60px; height: 70px; }
  .promo-stack .layer-card { width: 45px; height: 65px; }

  /* Reduce hover spread slightly on mobile so it doesn't break the screen width */
  .stack-parent:hover .left-card { transform: rotate(-20deg) translateX(-20px) translateY(5px); }
  .stack-parent:hover .right-card { transform: rotate(20deg) translateX(20px) translateY(5px); }
}

/* =========================================
   MOBILE "APP ICON" PERFECT SQUARES (Max 768px)
   ========================================= */
@media (max-width: 768px) {
  
  /* Hide the now-empty side banner container on mobile */
  .side-glass-banners {
    display: none !important;
  }
  
  /* The unified swiping row (Holds all 5 cards) */
  .promo-glass-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px; 
    scrollbar-width: none; 
  }
  
  .promo-glass-grid::-webkit-scrollbar { 
    display: none; 
  }

  /* Force ALL cards into perfect 120x120 squares */
  .side-glass-card,
  .promo-glass-card {
    flex: 0 0 auto;
    width: 120px !important;
    height: 120px !important; 
    flex-direction: column-reverse !important; /* 3D Cards top, text bottom */
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 10px !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  /* Text adjustments to fit the square */
  .side-content h4,
  .promo-text h3 {
    font-size: 0.8rem !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  
  /* Hide all subtext */
  .side-content span,
  .promo-text p {
    display: none !important; 
  }

  /* Standardize the 3D stack size for all squares */
  .card-stack-wrapper.side-stack,
  .card-stack-wrapper.promo-stack {
    margin: 0 auto !important; 
    width: 50px !important;
    height: 65px !important;
  }
  
  .side-stack .layer-card,
  .promo-stack .layer-card { 
    width: 40px !important; 
    height: 55px !important; 
  }

  /* Restrain hover animations on mobile so they don't pop out of the screen */
  .stack-parent:hover .left-card { transform: rotate(-15deg) translateX(-15px) translateY(2px) !important; }
  .stack-parent:hover .right-card { transform: rotate(15deg) translateX(15px) translateY(2px) !important; }
  .stack-parent:hover .center-card { transform: scale(1.05) translateZ(15px) !important; }
}

/* =========================================
   DYNAMIC HERO BANNER - MASTER CSS
   (Fixes overlapping, gaps, and window effect)
   ========================================= */

/* 1. The Outer Track (Completely Invisible, No Padding) */
.main-glass-banner {
  flex: 2.5;
  min-width: 0;
  position: relative;
  width: 100%;

  /* Strip everything to make it a naked track */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;

  /* Locked Desktop Height */
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;

  /* Let JS toggle this to 'hidden' during animation, otherwise visible for 3D hover */
  overflow: visible;
}

/* 2. The Sliding Wrapper */
.hero-inner-wrapper {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  gap: 0 !important; /* CRITICAL: Prevents gaps between slides during animation */
  margin: 0 !important;
  padding: 0 !important;
  /* JS controls transform and transition */
}

/* 3. The Actual Card (Holds ALL the Glass Style) */
.hero-slide-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;

  /* --- PREMIUM GLASS STYLES --- */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 4. Inner Layouts */
.layout-split { flex-direction: row; justify-content: space-between; text-align: left; }
.layout-center { flex-direction: column; justify-content: center; text-align: center; }

.dyn-content-area { display: flex; flex-direction: column; justify-content: center; height: 100%; z-index: 2; }
.layout-split .dyn-content-area { width: 50%; align-items: flex-start; }
.layout-center .dyn-content-area { width: 100%; align-items: center; }

.dyn-visual-area { display: flex; justify-content: center; align-items: center; height: 100%; z-index: 1; }
.layout-split .dyn-visual-area { width: 45%; }
.layout-center .dyn-visual-area { width: 100%; margin-top: 20px; }

/* =========================================
   🚀 MASTER HERO SLIDER (CLEANED) 🚀
   ========================================= */

/* 1. DESKTOP LAYOUT */
.main-glass-banner {
  flex: 2.5;
  min-width: 0;
  position: relative;
  
  /* The Invisible Track */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  
  /* CRITICAL: Permanently hide overflow to stop bleeding over other banners! */
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
  overflow: hidden !important; 
  border-radius: 24px !important;
}

.hero-inner-wrapper {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  /* JS controls transform */
}

.hero-slide-item {
  width: 100% !important;
  height: 100% !important;
  flex: 0 0 100% !important; /* Forces exact width of parent, stops squishing */
  box-sizing: border-box !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  /* Premium Glass applied to the SLIDE, not the track */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 40px 50px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 2. TABLET LAYOUT */
@media (max-width: 1024px) {
  .main-glass-banner { 
    height: 280px !important; 
    min-height: 280px !important; 
    max-height: 280px !important; 
  }
  .hero-slide-item { padding: 30px 40px !important; }
}

/* 3. MOBILE LAYOUT */
@media (max-width: 768px) {
  .main-glass-banner {
    height: 180px !important; 
    min-height: 180px !important; 
    max-height: 180px !important; 
  }
  
  .hero-slide-item {
    flex-direction: row !important; 
    padding: 15px 15px 25px 15px !important; 
    border-radius: 12px !important;
  }
  
  .hero-inner-wrapper, .layout-split {
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  /* Left Side: Text Area */
  .layout-split .dyn-content-area { 
    width: 50% !important; 
    align-items: flex-start !important; 
    text-align: left !important; 
    padding-right: 10px !important; 
  }
  
  /* Right Side: Visuals Area */
  .layout-split .dyn-visual-area { 
    width: 50% !important; 
    margin-top: 0 !important; 
  }

  /* Miniature scaling */
  .dyn-content-area h1 { font-size: 1.1rem !important; line-height: 1.1 !important; margin-bottom: 6px !important; }
  .dyn-content-area p { font-size: 0.65rem !important; margin-bottom: 10px !important; line-height: 1.2 !important; }
  .dyn-content-area .cta-button { padding: 6px 12px !important; font-size: 0.65rem !important; border-radius: 50px !important; }
  .dyn-content-area div[style*="background"] { font-size: 0.55rem !important; padding: 3px 6px !important; margin-bottom: 6px !important; }

  .hero-image-wrapper { height: 100px !important; perspective: 500px !important; }
  .card-mockup { width: 90px !important; height: 55px !important; font-size: 1.2rem !important; border-radius: 6px !important; }
  .card-front { left: 0 !important; transform: rotate(5deg) translateZ(10px) !important; }
  .card-back { right: 0 !important; bottom: 10px !important; transform: rotate(15deg) translateZ(-20px) !important; }

  .compare-layout { width: 100% !important; }
  .compare-card { padding: 5px !important; border-radius: 6px !important; }
  .compare-card img { height: 50px !important; margin-bottom: 4px !important; border-radius: 4px !important;}
  .compare-card h6 { font-size: 0.5rem !important; margin-bottom: 2px !important; }
  .compare-price { font-size: 0.6rem !important; }
  .compare-pill { padding: 2px 6px !important; border: 1px solid #0f0f13 !important; }
  .pill-text { font-size: 0.5rem !important; }

  .box-art-img { max-height: 110px !important; border-radius: 6px !important; }
  .badge-grid { gap: 6px !important; }
  .min-badge { padding: 8px 5px !important; border-radius: 8px !important; }
  .min-badge i { font-size: 0.9rem !important; margin-bottom: 4px !important; }
  .min-badge span { font-size: 0.5rem !important; }

  /* Hide Arrows / Place Dots neatly inside card */
  .main-glass-banner .nav-arrow { display: none !important; }
  .carousel-indicators { bottom: 10px !important; z-index: 10;}
  .dot { width: 4px !important; height: 4px !important; margin: 0 2px !important; }
  .dot.active { width: 12px !important; }
}

/* =========================================
   LAYOUT 6: HALF-BACKGROUND FADE
   ========================================= */
.layout-half-fade {
  position: relative;
  justify-content: flex-start !important; /* Locks text to the left */
  overflow: hidden !important; /* Keeps the background image contained strictly inside the card */
}

.layout-half-fade .dyn-content-area {
  width: 50% !important;
  position: relative;
  z-index: 2; /* Keeps your text safely above the image */
}

.layout-half-fade .dyn-visual-area {
  position: absolute !important;
  top: 0;
  right: 0;
  width: 70% !important; /* Stretches the image slightly past the middle */
  height: 100% !important;
  margin: 0 !important;
  z-index: 1; /* Sends the image to the background */
}

.layout-half-fade .dyn-visual-area img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  animation: none !important; /* Stops the image from bobbing up and down */
  
  /* 🚀 THE MAGIC: Fades out the left side of the image into total transparency */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .layout-half-fade .dyn-content-area {
    width: 100% !important;
    text-align: left !important;
    align-items: flex-start !important;
    padding-right: 20px !important;
  }
  .layout-half-fade .dyn-visual-area {
    width: 100% !important; /* Image takes the full width on small screens */
  }
  .layout-half-fade .dyn-visual-area img {
    /* Dim the image and push the fade further right so text is perfectly readable */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80%);
    mask-image: linear-gradient(to right, transparent 0%, black 80%);
    opacity: 0.6 !important; 
  }
}

/* =========================================
   LAYOUT 7: FULL SCREEN IMAGE + BUTTON
   ========================================= */
.layout-full-image {
  padding: 0 !important; 
  position: relative;
  overflow: hidden !important;
  justify-content: center !important;
}

/* 1. Send the image to the absolute background */
.layout-full-image .dyn-visual-area {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 1;
}

.layout-full-image .dyn-visual-area img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; 
  animation: none !important; 
  border-radius: 24px; 
}

/* 2. Float the Button container over the image */
.layout-full-image .dyn-content-area {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: flex-end !important; /* Pushes button to the bottom */
  padding-bottom: 45px !important; /* Perfect spacing above the dots */
  
  /* Adds a cinematic dark shadow at the bottom so the button pops */
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  border-radius: 24px;
}

/* 3. Hide all text/headings, ONLY show the button */
.layout-full-image .dyn-content-area h1,
.layout-full-image .dyn-content-area p,
.layout-full-image .dyn-content-area div[style*="background"] {
  display: none !important; 
}

.layout-full-image .dyn-content-area .cta-button {
  display: inline-block !important; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; /* Give button 3D depth */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .layout-full-image .dyn-visual-area img,
  .layout-full-image .dyn-content-area {
    border-radius: 12px; 
  }
  .layout-full-image .dyn-content-area {
    padding-bottom: 35px !important; /* Tighter fit on phone screens */
  }
}

/* =========================================
   LAYOUT 8: CHARACTER SPLIT (Glow Edition)
   Inspired by gaming aesthetic provided by user.
   ========================================= */

/* 1. Container Positioning */
.layout-char-split {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important; /* Pushes content area to the right half */
  padding: 0 60px 0 0 !important; /* No left padding for img, large right padding for text */
  position: relative;
  overflow: hidden !important;
}

/* 2. Left Side: The Massive Image (Character) */
.layout-char-split .dyn-visual-area {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important; /* Full width for track, img handles positioning */
  height: 100% !important;
  z-index: 1;
  margin: 0 !important;
  justify-content: flex-start !important; /* Align img container to left */
  display: flex;
}

.layout-char-split .dyn-visual-area img {
  height: 140% !important; /* Scaled huge like in reference image to cut off */
  width: auto !important;
  object-fit: contain !important;
  /* Position left and slightly up/down for dynamic cut-off */
  transform: translateX(-15%) translateY(-10%) !important; 
  /* Subtle glow that matches the character image theme */
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4)) drop-shadow(0 0 10px rgba(255, 0, 255, 0.3)); 
  animation: none !important; /* No floating animation */
}

/* 3. Right Side: The Text Area */
.layout-char-split .dyn-content-area {
  position: relative;
  z-index: 2; /* Sits above the scaled image */
  width: 50% !important; /* Occupies exactly right half */
  align-items: flex-start !important;
  text-align: left !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 15px; /* List-like vertical spacing similar to reference image */
  padding: 40px 0 !important;
}

/* 4. Layout 8 Specific Typography & Color Palettes (Inspired by Reference) */
.layout-char-split h1 {
  font-family: 'Space Mono', monospace; /* Tech/Game style font */
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.1;
  /* Pink/Magenta glow from image */
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.7), 0 0 20px rgba(255, 0, 255, 0.4); 
}

.layout-char-split p {
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent box for readability over image */
  padding: 15px;
  /* Cyan accent line on the left from image */
  border-left: 3px solid #0ff; 
  border-radius: 4px;
  color: #c0c0ff;
  font-size: 0.95rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Glowing Yellow Button Inspired by Reference Image CTA */
.layout-char-split .cta-button {
  align-self: flex-start; /* Don't stretch */
  margin-top: 10px;
  border: 2px solid #fcee0a !important; /* Distinct Yellow */
  color: #fcee0a !important;
  background: transparent !important;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 30px !important;
  border-radius: 4px !important; /* Angular shape */
  /* Heavy yellow glow effect */
  box-shadow: 0 0 15px rgba(252, 238, 10, 0.5), inset 0 0 5px rgba(252, 238, 10, 0.3) !important;
  transition: all 0.3s ease;
}

.layout-char-split .cta-button:hover {
  background: #fcee0a !important;
  color: #000 !important;
  box-shadow: 0 0 25px rgba(252, 238, 10, 0.8) !important;
}

/* =========================================
   RESPONSIVE Adjustments for Layout 8
   ========================================= */
@media (max-width: 1024px) {
  .layout-char-split { padding-right: 30px !important; }
  .layout-char-split .dyn-content-area { width: 55% !important; }
}

@media (max-width: 768px) {
  /* Keep exact layout on mobile, just scale typography down further */
  .layout-char-split {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 15px 15px 25px 15px !important; /* Bottom padding for dots */
    border-radius: 12px !important;
  }

  .layout-char-split .dyn-visual-area img {
    height: 120% !important; /* Still huge but scaled down slightly */
    transform: translateX(-10%) translateY(-5%) !important; /* Tighter crop */
  }

  .layout-char-split .dyn-content-area {
    width: 60% !important; /* Give text area slightly more room on tiny screens */
    gap: 10px;
    padding: 0 !important;
  }

  /* Extreme Typography Scaling for Mobile Split */
  .layout-char-split h1 { font-size: 1.2rem !important; margin-bottom: 5px !important; }
  .layout-char-split p { font-size: 0.7rem !important; padding: 10px !important; line-height: 1.3 !important; }
  .layout-char-split .cta-button { padding: 8px 18px !important; font-size: 0.75rem !important; border-width: 1px !important;}
}

/* =========================================
   LAYOUT 9: FLASH SALE — TILTED MESH GRID
   ⚠️  ALL colors/fonts come from JSON via
       CSS custom properties set inline on
       .hero-slide-item.  NO hardcoded theme
       values live here.
   ========================================= */

/* ── 1. Container ─────────────────────────── */
.layout-flash-sale {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: var(--fs-bg, #1b2838) !important;
  border-radius: 16px;
}

/* Scanline texture — uses theme accent at low opacity */
.layout-flash-sale::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    var(--fs-stripe-angle, -55deg),
    var(--fs-stripe-color, rgba(103,193,245,0.03)) 0px,
    var(--fs-stripe-color, rgba(103,193,245,0.03)) 1px,
    transparent 1px,
    transparent 28px
  );
  z-index: 0;
  pointer-events: none;
}

/* Corner glow */
.layout-flash-sale::after {
  content: '';
  position: absolute;
  top: -60px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--fs-glow, rgba(103,193,245,0.12)) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

/* Bottom accent bar */
.layout-flash-sale .fs-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--fs-accent, #67c1f5) 0%,
    var(--fs-accent2, #1a9fff) 40%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── 2. Left — Content area ───────────────── */
.layout-flash-sale .dyn-content-area {
  position: relative;
  z-index: 4;
  width: 45% !important;
  min-width: 45%;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 32px 16px 32px 30px !important;
}

.layout-flash-sale .dyn-content-area h1 {
  font-family: var(--fs-font-heading, 'Arial Black', Impact, sans-serif) !important;
  font-weight: 900 !important;
  font-size: var(--fs-title-size, 1.9rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.0 !important;
  color: var(--fs-title-color, #ffffff) !important;
  margin: 0 0 8px 0 !important;
  text-shadow: var(--fs-title-shadow, none) !important;
}

.layout-flash-sale .dyn-content-area p {
  color: var(--fs-text-color, rgba(255,255,255,0.6)) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
  max-width: 250px;
}

.layout-flash-sale .dyn-content-area .cta-button {
  background: var(--fs-btn-bg, linear-gradient(180deg,#47bfff 0%,#1a9fff 50%,#147abf 100%)) !important;
  color: var(--fs-btn-color, #fff) !important;
  font-family: var(--fs-font-heading, 'Arial Black', sans-serif) !important;
  font-weight: 900 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 11px 24px !important;
  border-radius: var(--fs-btn-radius, 3px) !important;
  border: var(--fs-btn-border, none) !important;
  box-shadow: var(--fs-btn-shadow, 0 1px 0 rgba(0,0,0,0.5)) !important;
  transition: filter 0.15s !important;
  width: max-content;
  cursor: pointer;
}
.layout-flash-sale .dyn-content-area .cta-button:hover {
  filter: brightness(1.15) !important;
  transform: none !important;
}

/* ── 3. Countdown ─────────────────────────── */
.flash-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.flash-countdown-wrap .cd-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--fs-accent, #67c1f5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 4px;
}
.flash-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--fs-cd-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--fs-cd-border, rgba(103,193,245,0.25));
  border-radius: 4px;
  padding: 4px 9px;
  min-width: 38px;
}
.flash-cd-block .cd-num {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--fs-accent, #67c1f5);
  line-height: 1;
}
.flash-cd-block .cd-unit {
  font-size: 8px;
  color: var(--fs-cd-unit-color, rgba(255,255,255,0.35));
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.flash-cd-sep {
  color: var(--fs-cd-sep-color, rgba(255,255,255,0.3));
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ── 4. Right — Tilted mesh visual ───────── */
.layout-flash-sale .dyn-visual-area {
  position: absolute !important;
  top: 0; right: 0;
  width: 60% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 3;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

/* Left fade */
.layout-flash-sale .dyn-visual-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 42%; height: 100%;
  background: linear-gradient(to right,
    var(--fs-bg, #1b2838) 0%, transparent 100%
  );
  z-index: 6;
  pointer-events: none;
}
/* Right fade */
.layout-flash-sale .dyn-visual-area::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12%; height: 100%;
  background: linear-gradient(to left,
    var(--fs-bg, #1b2838) 0%, transparent 100%
  );
  z-index: 6;
  pointer-events: none;
}

.flash-mesh-grid {
  display: grid;
  grid-template-columns: repeat(3, 105px);
  grid-template-rows: repeat(2, 128px);
  gap: 10px;
  transform: rotate(-11deg) translateX(22px) translateY(8px);
  position: relative;
  z-index: 4;
}

.flash-mesh-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--fs-card-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--fs-card-border, rgba(255,255,255,0.08));
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flash-mesh-card:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.9),
              0 0 16px var(--fs-card-glow, rgba(103,193,245,0.2));
  z-index: 10;
}
.flash-mesh-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flash-mesh-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  pointer-events: none;
}

/* Price chip — colors from theme vars */
.flash-mesh-card .mesh-price {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  background: var(--fs-price-bg, rgba(255,69,0,0.9));
  color: var(--fs-price-color, #fff);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--fs-price-radius, 20px);
  z-index: 6;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

/* HOT badge */
.flash-mesh-card .mesh-hot {
  position: absolute;
  top: 5px; right: 5px;
  background: var(--fs-hot-bg, #c2242a);
  color: var(--fs-hot-color, #fff);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--fs-hot-radius, 2px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 6;
}

/* Discount badge */
.flash-mesh-card .mesh-discount {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--fs-discount-bg, #4c7a00);
  color: var(--fs-discount-color, #a4d007);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: var(--fs-discount-radius, 2px);
  z-index: 6;
  font-family: 'Courier New', monospace;
}

/* ── 5. Mobile Responsiveness for Flash Sale ── */
@media (max-width: 768px) {
  .layout-flash-sale {
    flex-direction: row !important; /* CRITICAL: Keep it side-by-side to fit the 180px height */
    padding: 0 !important;
    border-radius: 12px !important;
  }
  
  /* Left Side: Text & Countdown */
  .layout-flash-sale .dyn-content-area {
    width: 50% !important;
    min-width: 50% !important;
    padding: 15px 5px 25px 15px !important; /* Bottom padding for the navigation dots */
    justify-content: center !important;
    z-index: 5;
  }
  
  .layout-flash-sale .dyn-content-area h1 {
    font-size: 1.05rem !important; /* Miniature heading */
    margin-bottom: 4px !important;
  }
  
  .layout-flash-sale .dyn-content-area p {
    font-size: 0.6rem !important; /* Miniature subtext */
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }
  
  .layout-flash-sale .dyn-content-area .cta-button {
    font-size: 0.55rem !important;
    padding: 6px 10px !important;
  }

  /* Shrink the Countdown block */
  .flash-countdown-wrap {
    transform: scale(0.65);
    transform-origin: left center;
    margin-bottom: 6px !important;
    gap: 2px !important;
  }

  /* Right Side: The Visual Mesh Area */
  .layout-flash-sale .dyn-visual-area {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Smoothly blend the left edge of the grid into the dark background */
  .layout-flash-sale .dyn-visual-area::before { 
    width: 60% !important; 
    background: linear-gradient(to right, var(--fs-bg, #1b2838) 0%, transparent 100%) !important;
  }

  /* Miniature Grid Layout */
  .flash-mesh-grid {
    grid-template-columns: repeat(3, 55px) !important;
    grid-template-rows: repeat(2, 70px) !important;
    gap: 6px !important;
    transform: rotate(-11deg) translateX(10px) translateY(8px) !important;
  }
  
  /* Shrink grid text elements */
  .flash-mesh-card .mesh-price { font-size: 7px !important; padding: 1px 4px !important; }
  .flash-mesh-card .mesh-discount { font-size: 6px !important; padding: 1px 3px !important; }
  .flash-mesh-card .mesh-hot { font-size: 6px !important; padding: 1px 3px !important; }
}

/* ── 6. Isolation guard (Cleaned up) ── */
/* Prevents custom theme colors from leaking into Layouts 1-8 */
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area h1,
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area p,
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area .cta-button,
.hero-slide-item:not(.layout-flash-sale) .dyn-visual-area {
  --fs-bg: initial;
  --fs-accent: initial;
  --fs-btn-bg: initial;
  --fs-title-color: initial;
  --fs-text-color: initial;
}
/* NOTE: The toxic 'Hard reset for layout-split' has been permanently deleted! */

/* --- CART SIDEBAR & OVERLAY --- */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 100%;
  height: 100%;
  background: rgba(18, 18, 22, 0.95); /* Deep dark background */
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cart-sidebar.active { right: 0; }

/* --- HEADER --- */
.cart-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.close-cart {
  background: none; border: none; color: #fff;
  font-size: 1.2rem; cursor: pointer; margin-right: 15px;
}
.cart-header h2 { margin: 0; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.cart-badge-count {
  background: #4675BD; color: #fff; font-size: 0.75rem;
  padding: 2px 8px; border-radius: 12px; font-weight: 700;
}
.cart-header-btn .cart-badge-count { position: absolute; top: 0; right: 0; font-size: 10px; padding: 2px 5px; }

/* --- ITEMS CONTAINER --- */
.cart-items-container {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px;
}
.cart-items-container::-webkit-scrollbar { width: 6px; }
.cart-items-container::-webkit-scrollbar-thumb { background: #4675BD; border-radius: 10px; }

/* --- INDIVIDUAL ITEM CARD --- */
.cart-item-card {
  display: flex; gap: 15px; background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; padding: 15px; position: relative;
}
.cart-item-img {
  width: 75px; height: 75px; object-fit: cover; border-radius: 8px; background: #2a2a33;
}
.cart-item-details { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 4px; padding-right: 20px;}
.cart-item-meta { font-size: 11px; color: #8892a8; margin: 0 0 8px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.1);
  padding: 3px 8px; border-radius: 6px; font-size: 10px; color: #ccc; font-weight: 600; width: fit-content;
}

/* Quantity & Price Row */
.cart-item-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.qty-control {
  display: flex; align-items: center; background: #2a2a33; border-radius: 6px; overflow: hidden;
}
.qty-control button {
  background: transparent; border: none; color: #fff; padding: 4px 10px; cursor: pointer; transition: background 0.2s;
}
.qty-control button:hover { background: rgba(255,255,255,0.1); }
.qty-control span { font-size: 13px; font-weight: 600; color: #fff; min-width: 20px; text-align: center; }

.item-pricing { text-align: right; }
.item-pricing .current-price { color: #4675BD; font-weight: 700; font-size: 14px; }
.item-pricing .old-price { color: #666; text-decoration: line-through; font-size: 11px; display: block; margin-top: 2px;}

.remove-item-btn {
  position: absolute; top: 15px; right: 15px; background: transparent; border: none;
  color: #888; cursor: pointer; transition: color 0.2s;
}
.remove-item-btn:hover { color: #ff4d4d; }

/* --- FOOTER SUMMARY --- */
.cart-footer {
  background: #1c1c1e; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: #aaa; }
.summary-row.discount { color: #4ade80; }
.summary-row.total { font-size: 18px; font-weight: 700; color: #fff; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.summary-row.total span:last-child { color: #4675BD; }

/* Checkout Button */
.checkout-btn {
  width: 100%; background: #4675BD; color: #fff; border: none; padding: 16px;
  border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 15px;
  transition: background 0.2s, transform 0.1s, backdrop-filter 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.checkout-btn:hover { background: #3d67a8; transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
  body:not(.low-perf) .checkout-btn:hover {
    background: color-mix(in srgb, #4675BD 60%, rgba(18, 21, 28, 0.55));
    backdrop-filter: blur(10px) url(#heavy-liquid) saturate(170%);
    -webkit-backdrop-filter: blur(10px) url(#heavy-liquid) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(70, 117, 189, 0.4);
  }
  @supports (-webkit-touch-callout: none) {
    body:not(.low-perf) .checkout-btn:hover {
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      backdrop-filter: blur(16px) saturate(180%);
    }
  }
}
.checkout-btn:disabled { background: #444; color: #888; cursor: not-allowed; transform: none; }

/* Trust Badges */
.trust-badges-row { display: flex; justify-content: space-between; margin-top: 20px; }
.trust-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; flex: 1; }
.trust-badge i { font-size: 20px; margin-bottom: 4px; }
.tb-text strong { display: block; font-size: 11px; color: #fff; margin-bottom: 2px; }
.tb-text span { display: block; font-size: 9px; color: #888; }

@media (max-width: 480px) {
  .cart-sidebar { width: 100%; right: -100%; }
}
/* --- OUT OF STOCK STATE FIX --- */
.cart-item-card.out-of-stock {
  /* Disable clicks on the whole card, but do NOT dim the parent */
  pointer-events: none; 
  background: rgba(28, 28, 30, 0.5); /* Optional: slightly darker background */
}

/* Apply dimming and grayscale ONLY to the image and details */
.cart-item-card.out-of-stock .cart-item-img,
.cart-item-card.out-of-stock .cart-item-details {
  opacity: 0.4;
  filter: grayscale(80%);
}

/* The remove button stays completely outside the dimmed effect */
.cart-item-card.out-of-stock .remove-item-btn {
  pointer-events: auto; /* Re-enable clicks for this button */
  color: #ff4d4d; /* Bright red */
  opacity: 1; /* Now it will be truly 100% opaque */
}

.cart-item-card.out-of-stock .remove-item-btn:hover {
  transform: scale(1.1);
}
.out-of-stock-text {
  color: #ff4d4d;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- TOPUP DETAILS UI --- */
.topup-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.topup-detail-pill {
  background: rgba(77, 184, 255, 0.1);
  border: 1px solid rgba(77, 184, 255, 0.2);
  color: #4db8ff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topup-detail-pill span {
  color: #fff;
  font-weight: 600;
}

/* 1. Ensure the main container can hold an absolute background */
.promo-strip {
  position: relative;
  overflow: hidden;
}

/* 2. Stretch the background div to cover the whole strip */
.promo-strip__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;        /* Ensures the image fills the space */
  background-position: center;   /* Centers the image */
  background-repeat: no-repeat;
  z-index: 0;                    /* Places it in the background */
  opacity: 0.6;                  /* Optional: dims the image so white text stays readable */
  pointer-events: none;          /* Prevents the image from blocking clicks */
}

/* 3. Bring the text and buttons forward so they aren't hidden behind the image */
.promo-strip__left, 
.promo-strip__center, 
.promo-strip__badges {
  position: relative;
  z-index: 1;
}

.chat-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 30px;
  
  /* --- LIQUID GLASS EFFECT --- */
  /* Keeps a subtle hint of your Shoppy blue (#4675BD) in the glass */
  background: radial-gradient(circle at 50% 0%, rgba(70, 117, 189, 0.15) 0%, rgba(18, 21, 28, 0.7) 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px) url(#heavy-liquid) saturate(150%);
  -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(150%);
  
  /* Inner highlights and outer drop shadow */
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(70, 117, 189, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.4);
  
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.chat-button:hover {
  transform: translateY(-3px);
  /* Brighten the glass slightly on hover */
  background: radial-gradient(circle at 50% 0%, rgba(70, 117, 189, 0.25) 0%, rgba(18, 21, 28, 0.8) 70%);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 10px 26px rgba(70, 117, 189, 0.3), 
    0 4px 10px rgba(0, 0, 0, 0.4);
}

/* iOS/Safari Fallback (Crucial because Apple struggles with SVG url filters) */
@supports (-webkit-touch-callout: none) {
  .chat-button {
    background: rgba(28, 40, 60, 0.6); 
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}

#homeSearchSuggestions {
  /* --- LAYOUT --- */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  
  /* --- THE SMOOTH FIX --- */
  margin-top: 8px; /* Adds a clean gap below the search bar */
  border-radius: 12px; /* Fully rounds the box to match the input */
  overflow: hidden; /* Prevents the hover highlights from bleeding outside the rounded corners */
  
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;

  /* --- LIQUID GLASS EFFECT --- */
  background: color-mix(in srgb, #0f1623 90%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* --- APPLE FIX (iOS/Safari) --- */
@supports (-webkit-touch-callout: none) {
  #homeSearchSuggestions {
    background: rgba(15, 22, 35, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
}
/* --- Style the individual items your JS injects --- */
#homeSearchSuggestions .suggest-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent; /* Prep for hover highlight */
}

/* Hover Effect for Items */
#homeSearchSuggestions .suggest-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #3d82f2; /* Shoppy Blue edge highlight */
  color: #fff;
  padding-left: 20px; /* Smooth slide right */
}

/* Icon Alignment & Color */
#homeSearchSuggestions .suggest-icon {
  color: #94a3b8;
  transition: color 0.2s ease;
}

#homeSearchSuggestions .suggest-item:hover .suggest-icon {
  color: #3d82f2; /* Icon turns blue on hover */
}

/* Custom Scrollbar for the suggestions box */
#homeSearchSuggestions::-webkit-scrollbar {
  width: 6px;
}
#homeSearchSuggestions::-webkit-scrollbar-thumb {
  background: #3d82f2;
  border-radius: 10px;
}
