:root {
  --customer-bg: #f6f8fc;
  --customer-surface: rgba(255, 255, 255, 0.88);
  --customer-surface-solid: #ffffff;
  --customer-text: #101827;
  --customer-muted: #5d6b82;
  --customer-line: rgba(15, 23, 42, 0.12);
  --customer-accent: #006fcd;
  --customer-accent-2: #00a884;
  --customer-danger: #e11d48;
  --customer-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  --customer-radius: 8px;
}

html[data-theme="dark"] {
  --customer-bg: #090d16;
  --customer-surface: rgba(17, 24, 39, 0.88);
  --customer-surface-solid: #111827;
  --customer-text: #f8fafc;
  --customer-muted: #b6c2d3;
  --customer-line: rgba(255, 255, 255, 0.14);
  --customer-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body {
  background: var(--customer-bg) !important;
  color: var(--customer-text);
}

body::before,
.floating-bg {
  display: none !important;
}

.navbar-main,
.top-bar {
  background: color-mix(in srgb, var(--customer-surface-solid) 86%, transparent) !important;
  border-bottom: 1px solid var(--customer-line) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.navbar-main .nav-link,
#userDropdown span,
.cart-icon i {
  color: var(--customer-text) !important;
}

.navbar-main .nav-link {
  border-radius: var(--customer-radius);
  position: relative;
  overflow: hidden;
}

.navbar-main .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--customer-accent), var(--customer-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  transform: scaleX(1);
}

.nav-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.theme-toggle,
.notify-bell,
.language-switcher .btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--customer-line);
  border-radius: var(--customer-radius);
  background: var(--customer-surface-solid);
  color: var(--customer-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.language-switcher .btn {
  width: auto;
  min-width: 74px;
  padding: 0 0.75rem;
  gap: 0.35rem;
}

.notify-bell {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--customer-danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-panel {
  position: fixed;
  top: 92px;
  inset-inline-end: 18px;
  width: min(360px, calc(100vw - 28px));
  max-height: 70vh;
  overflow: auto;
  background: var(--customer-surface-solid);
  color: var(--customer-text);
  border: 1px solid var(--customer-line);
  border-radius: var(--customer-radius);
  box-shadow: var(--customer-shadow);
  z-index: 2000;
}

.notification-panel-header,
.notification-item {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--customer-line);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-panel-header button {
  border: 0;
  background: transparent;
  color: var(--customer-text);
}

.notification-item strong {
  display: block;
  font-size: 0.95rem;
}

.notification-item p {
  margin: 0.25rem 0 0;
  color: var(--customer-muted);
  font-size: 0.86rem;
}

.search-container {
  position: relative;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--customer-surface-solid);
  border: 1px solid var(--customer-line);
  border-radius: var(--customer-radius);
  padding: 0.2rem 0.7rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.search-shell:focus-within {
  border-color: var(--customer-accent);
  box-shadow: 0 0 0 4px rgba(0, 111, 205, 0.12);
  transform: translateY(-1px);
}

.search-shell .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--customer-text) !important;
}

.search-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--customer-accent-2);
  box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.5);
  animation: searchPulse 1.8s infinite;
}

@keyframes searchPulse {
  70% { box-shadow: 0 0 0 8px rgba(0, 168, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0); }
}

.search-results-dropdown {
  background: var(--customer-surface-solid) !important;
  color: var(--customer-text) !important;
  border: 1px solid var(--customer-line) !important;
  border-radius: var(--customer-radius) !important;
  box-shadow: var(--customer-shadow) !important;
}

.search-result-item.selected,
.search-result-item:hover,
.autocomplete-item:hover {
  background: rgba(0, 111, 205, 0.08);
}

.customer-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.customer-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-page-shell {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.filter-drawer-toggle {
  display: none;
  position: fixed;
  z-index: 1500;
  inset-inline-start: 14px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--customer-accent);
  color: #fff;
  box-shadow: var(--customer-shadow);
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1490;
}

.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.tag-filter-chip {
  border: 1px solid var(--customer-line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: var(--customer-text);
  text-decoration: none;
  background: var(--customer-surface-solid);
  font-size: 0.88rem;
}

.tag-filter-chip.active,
.tag-filter-chip:hover {
  color: #fff;
  background: var(--customer-accent);
  border-color: var(--customer-accent);
}

.category-filter-drawer {
  position: sticky;
  top: 94px;
  align-self: start;
}

.category-filter-form {
  display: grid;
  gap: 1rem;
}

.filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--customer-line);
}

.filter-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--customer-accent);
  text-transform: uppercase;
}

.filter-panel-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--customer-text);
}

.filter-reset,
.btn-filter-secondary {
  color: var(--customer-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.filter-reset:hover,
.btn-filter-secondary:hover {
  color: var(--customer-accent);
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 111, 205, 0.1);
  color: var(--customer-accent);
  font-weight: 850;
  font-size: 0.86rem;
}

.filter-group {
  display: grid;
  gap: 0.7rem;
}

.filter-group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--customer-text);
  font-weight: 900;
}

.filter-group-title i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 111, 205, 0.1);
  color: var(--customer-accent);
}

.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 240px;
  overflow: auto;
  padding-inline-end: 0.2rem;
}

.filter-chip {
  border: 1px solid var(--customer-line);
  background: var(--customer-surface-solid);
  color: var(--customer-text);
  border-radius: 8px;
  padding: 0.48rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 850;
  font-size: 0.87rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.filter-chip small {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
  color: var(--customer-muted);
  font-weight: 900;
  font-size: 0.74rem;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--customer-accent);
  border-color: var(--customer-accent);
  color: #fff;
  transform: translateY(-1px);
}

.filter-chip:hover small,
.filter-chip.active small {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.platform-grid .filter-chip {
  flex: 1 1 calc(50% - 0.5rem);
  justify-content: space-between;
}

.filter-price-box {
  padding: 0.9rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--customer-surface-solid) 84%, var(--customer-accent) 4%);
  border: 1px solid var(--customer-line);
}

.category-filter-drawer .noUi-target {
  border: 0;
  box-shadow: none;
  height: 8px;
  background: rgba(15, 23, 42, 0.14);
}

.category-filter-drawer .noUi-connect {
  background: linear-gradient(90deg, var(--customer-accent), var(--customer-accent-2));
}

.category-filter-drawer .noUi-horizontal .noUi-handle {
  width: 22px;
  height: 22px;
  right: -11px;
  top: -7px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--customer-accent);
  box-shadow: 0 8px 18px rgba(0, 111, 205, 0.24);
}

.category-filter-drawer .noUi-handle::before,
.category-filter-drawer .noUi-handle::after {
  display: none;
}

.category-filter-drawer .noUi-tooltip {
  border: 0;
  background: var(--customer-text);
  color: var(--customer-surface-solid);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.filter-sort-select {
  min-height: 46px;
  border-radius: 8px !important;
  font-weight: 800;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding-top: 0.4rem;
}

.btn-filter {
  min-height: 48px;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--customer-accent), #1455d9) !important;
  border: 0 !important;
  color: #fff !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
}

.review-summary,
.review-form,
.review-card,
.order-edit-panel {
  background: var(--customer-surface-solid);
  border: 1px solid var(--customer-line);
  border-radius: var(--customer-radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.review-star-btn {
  border: 0;
  background: transparent;
  color: #f59e0b;
  font-size: 1.4rem;
}

@media (max-width: 991.98px) {
  .top-bar {
    display: block !important;
  }

  .top-bar .logo {
    display: none;
  }

  .top-bar-content {
    gap: 0.75rem;
  }

  .nav-quick-actions {
    margin-inline-start: auto;
  }

  .category-page-shell {
    display: block;
  }

  .filter-drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .category-filter-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(330px, 88vw);
    overflow: auto;
    background: var(--customer-surface-solid);
    z-index: 1501;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    padding: 1rem;
    box-shadow: var(--customer-shadow);
  }

  [dir="rtl"] .category-filter-drawer {
    transform: translateX(105%);
  }

  body.filters-open .category-filter-drawer {
    transform: translateX(0);
  }

  .category-filter-form {
    padding-bottom: 4.5rem;
  }

  .filter-panel-head {
    position: sticky;
    top: -1rem;
    z-index: 2;
    background: var(--customer-surface-solid);
    padding-top: 0.25rem;
  }

  .filter-chip-grid {
    max-height: none;
  }

  .filter-actions {
    position: sticky;
    bottom: -1rem;
    background: var(--customer-surface-solid);
    border-top: 1px solid var(--customer-line);
    padding: 0.85rem 0 1rem;
    margin-bottom: -1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   2026 Gaming Navbar Rebuild
   ============================================ */

.gaming-nav {
  position: sticky;
  top: 0;
  z-index: 100000;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.9)),
    radial-gradient(circle at 8% 0%, rgba(0, 111, 205, 0.12), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(0, 168, 132, 0.1), transparent 26%);
  border-bottom: 1px solid var(--customer-line);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .hero-section,
body.nav-open .hero-carousel,
body.nav-open .side-carousel,
body.nav-open .carousel,
body.nav-open .carousel-control-prev,
body.nav-open .carousel-control-next,
body.nav-open .carousel-indicators {
  pointer-events: none !important;
}

html[data-theme="dark"] .gaming-nav {
  background:
    linear-gradient(135deg, rgba(9, 13, 22, 0.94), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 8% 0%, rgba(0, 111, 205, 0.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(0, 168, 132, 0.14), transparent 26%);
}

.gaming-nav-inner {
  width: min(1500px, calc(100% - 28px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(430px, 1fr) minmax(260px, 420px) auto;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

.gaming-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--customer-text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.gaming-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.gaming-brand span {
  font-family: "Oxanium", "Rajdhani", sans-serif;
  font-size: 1.15rem;
}

.gaming-menu,
.gaming-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: visible;
}

.gaming-menu {
  min-width: 0;
  position: relative;
  z-index: 100001;
}

.gaming-actions {
  justify-content: flex-end;
}

.gaming-link,
.gaming-user-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.78rem;
  background: transparent;
  color: var(--customer-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.gaming-link:hover,
.gaming-link.active,
.gaming-user-button:hover,
.gaming-dropdown.is-open > .gaming-link,
.gaming-dropdown:hover > .gaming-link {
  background: rgba(0, 111, 205, 0.1);
  border-color: rgba(0, 111, 205, 0.18);
  color: var(--customer-accent);
  transform: translateY(-1px);
}

.gaming-dropdown {
  position: relative;
  z-index: 1;
}

.gaming-dropdown:hover,
.gaming-dropdown.is-open {
  z-index: 100003;
}

.gaming-dropdown-toggle .fa-chevron-down {
  font-size: 0.68rem;
  transition: transform 0.18s ease;
}

.gaming-dropdown.is-open .fa-chevron-down,
.gaming-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.gaming-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  z-index: 100004;
  min-width: 245px;
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 0.45rem;
  border-radius: 8px;
  background: var(--customer-surface-solid);
  border: 1px solid var(--customer-line);
  box-shadow: var(--customer-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.gaming-dropdown-menu.align-end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.gaming-dropdown:hover .gaming-dropdown-menu,
.gaming-dropdown.is-open .gaming-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gaming-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.72rem 0.78rem;
  border-radius: 8px;
  color: var(--customer-text);
  text-decoration: none;
  font-weight: 700;
}

.gaming-dropdown-menu a:hover {
  background: rgba(0, 111, 205, 0.1);
  color: var(--customer-accent);
}

.gaming-search {
  min-width: 0;
  width: 100%;
}

.gaming-actions .theme-toggle,
.gaming-actions .notify-bell,
.gaming-actions .cart-icon,
.gaming-mobile-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface-solid);
  color: var(--customer-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gaming-actions .cart-icon {
  position: relative;
}

.gaming-actions .cart-icon i {
  color: var(--customer-text) !important;
}

.gaming-user-button {
  background: var(--customer-surface-solid);
  border-color: var(--customer-line);
  padding-inline-start: 0.35rem;
}

.gaming-user-button img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.gaming-mobile-toggle {
  display: none;
}

.gaming-mobile-panel {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  inset-inline-end: 0;
  width: min(360px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--customer-surface-solid);
  color: var(--customer-text);
  box-shadow: var(--customer-shadow);
  border-inline-start: 1px solid var(--customer-line);
  z-index: 100002;
  padding: 1rem;
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

body > .gaming-mobile-panel {
  z-index: 100002 !important;
}

.gaming-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--customer-line);
}

.gaming-mobile-head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: transparent;
  color: var(--customer-text);
}

.gaming-mobile-links {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
}

.gaming-mobile-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--customer-text);
  text-decoration: none;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--customer-line);
  font-weight: 800;
}

.gaming-mobile-links a:hover {
  color: var(--customer-accent);
  background: rgba(0, 111, 205, 0.1);
}

.mobile-nav-group {
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  overflow: hidden;
}

.mobile-nav-group-toggle {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--customer-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.mobile-nav-group-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.mobile-nav-group-toggle .fa-chevron-down {
  transition: transform 0.18s ease;
}

.mobile-nav-group.is-open .mobile-nav-group-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.55rem 0.65rem;
}

.mobile-nav-submenu[hidden] {
  display: none !important;
}

.gaming-mobile-links .mobile-nav-submenu a {
  border: 0;
  background: rgba(0, 111, 205, 0.06);
  padding: 0.72rem 0.78rem;
  font-size: 0.94rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.48);
  pointer-events: auto;
}

/* Light mode contrast repair for older dark-page styles */
html[data-theme="light"] body,
html[data-theme="light"] .category-page,
html[data-theme="light"] .item-page,
html[data-theme="light"] .profile-container,
html[data-theme="light"] .orders-container,
html[data-theme="light"] .order-details-container,
html[data-theme="light"] .cart-page,
html[data-theme="light"] .search-header,
html[data-theme="light"] .search-results-header,
html[data-theme="light"] .filter-section,
html[data-theme="light"] .card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .product-info-premium,
html[data-theme="light"] .product-card {
  color: var(--customer-text) !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-white-50,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] p,
html[data-theme="light"] label,
html[data-theme="light"] .form-label,
html[data-theme="light"] .card-title,
html[data-theme="light"] .card-text,
html[data-theme="light"] .filter-label,
html[data-theme="light"] .price-labels,
html[data-theme="light"] .product-title,
html[data-theme="light"] .product-info-premium,
html[data-theme="light"] .order-details-container p strong {
  color: var(--customer-text) !important;
  -webkit-text-fill-color: currentColor;
}

html[data-theme="light"] .text-muted,
html[data-theme="light"] .text-secondary,
html[data-theme="light"] .lead,
html[data-theme="light"] .studio-name,
html[data-theme="light"] .rating-count,
html[data-theme="light"] .order-card .card-text,
html[data-theme="light"] .order-details-container p {
  color: var(--customer-muted) !important;
}

html[data-theme="light"] .filter-section,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .orders-container,
html[data-theme="light"] .order-details-container .card,
html[data-theme="light"] .cart-container,
html[data-theme="light"] .product-info-premium,
html[data-theme="light"] .search-filters {
  background: var(--customer-surface-solid) !important;
  border-color: var(--customer-line) !important;
}

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] textarea {
  background: #fff !important;
  color: var(--customer-text) !important;
  border-color: var(--customer-line) !important;
}

html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #7b8798 !important;
}

html[data-theme="light"] .dropdown-menu,
html[data-theme="light"] .list-group-item {
  background: #fff !important;
  color: var(--customer-text) !important;
  border-color: var(--customer-line) !important;
}

html[data-theme="light"] .dropdown-item,
html[data-theme="light"] .list-group-item,
html[data-theme="light"] .dropdown-item i {
  color: var(--customer-text) !important;
}

@media (max-width: 1199.98px) {
  .gaming-nav-inner {
    grid-template-columns: auto 1fr auto;
  }

  .gaming-menu {
    display: none;
  }

  .gaming-search {
    order: 4;
    grid-column: 1 / -1;
    padding-bottom: 0.8rem;
  }

  .gaming-mobile-toggle {
    display: inline-flex;
  }

  .gaming-user-menu {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .gaming-nav-inner {
    width: min(100% - 18px, 1500px);
    min-height: 68px;
    gap: 0.55rem;
  }

  .gaming-brand span,
  .language-switcher .btn {
    display: none;
  }

  .gaming-actions {
    gap: 0.28rem;
  }

  .gaming-actions .theme-toggle,
  .gaming-actions .notify-bell,
  .gaming-actions .cart-icon,
  .gaming-mobile-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .btn-loginn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }

  .btn-loginn i {
    margin: 0 !important;
  }
}

/* Late-loaded light theme repair for page-level dark CSS */
html[data-theme="light"],
html[data-theme="light"] body {
  background: var(--customer-bg) !important;
  color: var(--customer-text) !important;
}

html[data-theme="light"] body::before,
html[data-theme="light"] body::after,
html[data-theme="light"] .dynamic-bg,
html[data-theme="light"] .floating-bg,
html[data-theme="light"] #hero-particles {
  display: none !important;
}

html[data-theme="light"] main,
html[data-theme="light"] section:not(.hero-section),
html[data-theme="light"] [class*="section"]:not(.hero-section):not(.notification-panel),
html[data-theme="light"] [class*="wrapper"],
html[data-theme="light"] .container:not(.hero-layout),
html[data-theme="light"] .category-page,
html[data-theme="light"] .category-page-shell,
html[data-theme="light"] .category-products-area,
html[data-theme="light"] .item-page,
html[data-theme="light"] .cart-page,
html[data-theme="light"] .profile-container,
html[data-theme="light"] .orders-container,
html[data-theme="light"] .order-details-container,
html[data-theme="light"] .search-page,
html[data-theme="light"] .recommendation-section-premium {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--customer-text) !important;
}

html[data-theme="light"] .hero-section,
html[data-theme="light"] .hero-main,
html[data-theme="light"] .hero-side,
html[data-theme="light"] .hero-carousel,
html[data-theme="light"] .side-carousel {
  background: #eef4ff !important;
}

html[data-theme="light"] .platform-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .product-card-premium,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .order-card,
html[data-theme="light"] .orders-container,
html[data-theme="light"] .order-details-container .card,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .cart-summary,
html[data-theme="light"] .filter-section,
html[data-theme="light"] .review-summary,
html[data-theme="light"] .review-form,
html[data-theme="light"] .review-card,
html[data-theme="light"] .product-info-premium,
html[data-theme="light"] .gallery-container,
html[data-theme="light"] .product-details-card,
html[data-theme="light"] .stats-card,
html[data-theme="light"] .list-group-item {
  background: var(--customer-surface-solid) !important;
  color: var(--customer-text) !important;
  border-color: var(--customer-line) !important;
}

html[data-theme="light"] .section-header,
html[data-theme="light"] .section-title,
html[data-theme="light"] .page-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .product-title,
html[data-theme="light"] .product-name,
html[data-theme="light"] .card-body,
html[data-theme="light"] .card-body *,
html[data-theme="light"] .profile-card *,
html[data-theme="light"] .orders-container *,
html[data-theme="light"] .order-details-container *,
html[data-theme="light"] .product-info-premium *,
html[data-theme="light"] .cart-item *,
html[data-theme="light"] .cart-summary *,
html[data-theme="light"] .filter-section *,
html[data-theme="light"] .search-header *,
html[data-theme="light"] .search-results-header * {
  color: var(--customer-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-theme="light"] .text-muted,
html[data-theme="light"] .text-white-50,
html[data-theme="light"] .lead,
html[data-theme="light"] .studio-name,
html[data-theme="light"] .rating-count,
html[data-theme="light"] small,
html[data-theme="light"] .small {
  color: var(--customer-muted) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-theme="light"] .btn,
html[data-theme="light"] .badge,
html[data-theme="light"] .product-badge,
html[data-theme="light"] .hero-btn,
html[data-theme="light"] .btn-filter,
html[data-theme="light"] .add-cart-btn,
html[data-theme="light"] .btn-quick-cart {
  -webkit-text-fill-color: currentColor !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-filter,
html[data-theme="light"] .hero-btn-primary,
html[data-theme="light"] .add-cart-btn,
html[data-theme="light"] .btn-quick-cart {
  color: #fff !important;
}
