/* ==========================================================================
   LOWIZ STORE 2.0 — AUTHORITATIVE DESIGN SYSTEM & MOBILE-FIRST MARKETPLACE
   Tokens:
   - Background:        #080B14
   - Elevated Surface:  #101626
   - Secondary Surface: #171D30
   - Primary Purple:    #8B5CF6
   - Secondary Blue:    #3B82F6
   - Main Text:         #F5F7FF
   - Secondary Text:    #A4AEC4
   ========================================================================== */

:root,
html[data-theme="dark"],
html.lowiz-premium-v4,
html.lowiz-market-v2,
html.lowiz-fastpass {
  --lw-bg: #080B14;
  --lw-surface-1: #101626;
  --lw-surface-2: #171D30;
  --lw-surface-3: #1E2640;
  --lw-purple: #8B5CF6;
  --lw-purple-hover: #7C3AED;
  --lw-blue: #3B82F6;
  --lw-text-main: #F5F7FF;
  --lw-text-sec: #A4AEC4;
  --lw-text-muted: #73809C;
  --lw-border: rgba(164, 174, 196, 0.16);
  --lw-border-strong: rgba(139, 92, 246, 0.42);
  --lw-glow-purple: rgba(139, 92, 246, 0.24);
  --lw-glow-blue: rgba(59, 130, 246, 0.2);
  --lw-success: #10B981;
  --lw-warning: #F59E0B;
  --lw-danger: #EF4444;
  --lw-radius-sm: 10px;
  --lw-radius-md: 14px;
  --lw-radius-lg: 20px;
  --lw-radius-xl: 24px;
  --lw-shadow-card: 0 14px 36px rgba(4, 6, 14, 0.55);
  --lw-shadow-elevated: 0 24px 64px rgba(2, 4, 10, 0.72);

  /* Legacy variable mappings */
  --bg: #080B14;
  --bg-elevated: #101626;
  --surface: #101626;
  --surface-2: #171D30;
  --text: #F5F7FF;
  --muted: #A4AEC4;
  --accent: #8B5CF6;
  --accent-2: #3B82F6;
  --border: rgba(164, 174, 196, 0.16);
}

/* 1. GLOBAL RESET & ZERO HORIZONTAL OVERFLOW */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100% !important;
  overflow-x: clip !important;
  background-color: var(--lw-bg) !important;
  color: var(--lw-text-main) !important;
  -webkit-text-size-adjust: 100%;
}

html body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.14), transparent 36%),
    radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.11), transparent 34%) !important;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 761px) {
  html body {
    padding-bottom: 0 !important;
  }
}

.container,
html.lowiz-market-v2 .container,
html.lowiz-premium-v4 .container {
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide legacy duplicate shelves and clutter */
#lowizPremiumShelves,
#lowizDiscoveryV4,
#smartStoreBar,
#personalizedShelf,
#lowizAutoBalanceNotice,
.lowiz-auto-balance-notice {
  display: none !important;
}

/* 2. HEADER & NAVIGATION — UNIFIED SINGLE BAR */
html body .site-header,
html.lowiz-premium-v4 body .site-header,
html.lowiz-market-v2 body .site-header,
html.lowiz-fastpass body .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 0 !important;
  background: rgba(8, 11, 20, 0.92) !important;
  border-bottom: 1px solid var(--lw-border) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

html body #top.site-header .nav-shell,
html.lowiz-premium-v4 body #top.site-header .nav-shell,
html.lowiz-market-v2 body #top.site-header .nav-shell {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
  height: 68px !important;
  min-height: 68px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

html body #top.site-header .brand,
html.lowiz-premium-v4 body #top.site-header .brand,
html.lowiz-market-v2 body #top.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

html body #top.site-header .brand .brand-logo {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  object-fit: contain !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.38) !important;
}

html body #top.site-header .brand .brand-name {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  color: var(--lw-text-main) !important;
  white-space: nowrap !important;
}

html body #top.site-header .brand .brand-name span {
  background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #A78BFA !important;
  font-weight: 900 !important;
}

/* Desktop navigation links */
html body #top.site-header .desktop-nav,
html.lowiz-market-v2 body #top.site-header .desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 auto !important;
}

html body #top.site-header .desktop-nav a {
  color: var(--lw-text-sec) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 8px 13px !important;
  border-radius: var(--lw-radius-sm) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.18s ease, background-color 0.18s ease !important;
}

html body #top.site-header .desktop-nav a:hover,
html body #top.site-header .desktop-nav a.active {
  color: var(--lw-text-main) !important;
  background: rgba(139, 92, 246, 0.14) !important;
}

/* Header Right Actions */
html body #top.site-header .nav-actions,
html.lowiz-premium-v4 body #top.site-header .nav-actions,
html.lowiz-market-v2 body #top.site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

/* Search Pill / Icon Button */
html body #top.site-header .search-trigger,
html.lowiz-premium-v4 body #top.site-header .search-trigger,
html.lowiz-market-v2 body #top.site-header .search-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 108px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--lw-border) !important;
  background: var(--lw-surface-1) !important;
  color: var(--lw-text-sec) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.18s ease !important;
}

html body #top.site-header .search-trigger svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

html body #top.site-header .search-trigger .search-pill-label {
  display: inline !important;
  white-space: nowrap !important;
}

html body #top.site-header .search-trigger:hover {
  border-color: var(--lw-border-strong) !important;
  color: var(--lw-text-main) !important;
  background: var(--lw-surface-2) !important;
}

/* Wallet Group: Balance + Top-up */
html body #top.site-header .wallet-group,
html.lowiz-premium-v4 body #top.site-header .wallet-group,
html.lowiz-market-v2 body #top.site-header .wallet-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 3px !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, #101626 0%, #151C30 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.36) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  flex-shrink: 0 !important;
}

html body #top.site-header .wallet-group .wallet-badge,
html.lowiz-premium-v4 body #top.site-header .wallet-group .wallet-badge,
html.lowiz-market-v2 body #top.site-header .wallet-group .wallet-badge {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 7px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 9px 0 5px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lw-text-main) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

html body #top.site-header .wallet-group .wallet-badge:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

html body #top.site-header .wallet-group .wallet-currency {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.26)) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: #DDD6FE !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  flex-shrink: 0 !important;
}

html body #top.site-header .wallet-group .wallet-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.08 !important;
}

html body #top.site-header .wallet-group .wallet-summary small {
  display: block !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--lw-text-sec) !important;
}

html body #top.site-header .wallet-group .wallet-summary b,
html.lowiz-market-v2 body #top.site-header .wallet-badge b,
html.lowiz-premium-v4 body #top.site-header .wallet-badge b {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  color: #38BDF8 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

html body #top.site-header .wallet-group .balance-topup,
html.lowiz-premium-v4 body #top.site-header .wallet-group .balance-topup,
html.lowiz-market-v2 body #top.site-header .wallet-group .balance-topup {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 11px 0 7px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(135deg, var(--lw-purple) 0%, var(--lw-blue) 100%) !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35) !important;
}

html body #top.site-header .wallet-group .balance-topup-mark {
  display: grid !important;
  place-items: center !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body #top.site-header .wallet-group .topup-full-label {
  display: none !important;
}

html body #top.site-header .wallet-group .topup-short-label {
  display: inline !important;
}

/* Cart, Notification, and Profile Triggers */
html body #top.site-header .cart-trigger,
html body #top.site-header .lowiz-notification-trigger,
html body #top.site-header #lowizNotificationTrigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  background: var(--lw-surface-1) !important;
  color: var(--lw-text-main) !important;
  position: relative !important;
}

html body #top.site-header .login-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--lw-border) !important;
  background: var(--lw-surface-1) !important;
  color: var(--lw-text-main) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body #top.site-header .theme-toggle,
html body #top.site-header .menu-toggle {
  display: none !important;
}

/* 3. HERO & INTRODUCTORY SECTION — VISIBLE ON DESKTOP & MOBILE */
html body #home.hero,
html.lowiz-premium-v4 body #home.hero,
html.lowiz-market-v2 body #home.hero {
  display: block !important;
  padding: 20px 0 16px !important;
  min-height: 0 !important;
}

html body #home .market-hero-grid,
html.lowiz-premium-v4 body #home .market-hero-grid,
html.lowiz-market-v2 body #home .market-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr) !important;
  gap: 16px !important;
  min-height: 360px !important;
  align-items: stretch !important;
}

html body #home .market-feature,
html body #home .market-side-feature,
html.lowiz-premium-v4 body #home .market-feature,
html.lowiz-premium-v4 body #home .market-side-feature {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: linear-gradient(155deg, var(--lw-surface-1) 0%, var(--lw-surface-2) 100%) !important;
  border: 1px solid var(--lw-border-strong) !important;
  border-radius: var(--lw-radius-xl) !important;
  box-shadow: var(--lw-shadow-card) !important;
}

html body #home .market-feature {
  min-height: 360px !important;
  display: flex !important;
  align-items: flex-end !important;
}

html body #home .market-feature > img.market-hero-art,
html.lowiz-premium-v4 body #home .market-feature > img.market-hero-art {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.78 !important;
  filter: none !important;
  transform: none !important;
}

html body #home .market-feature::after,
html.lowiz-premium-v4 body #home .market-feature::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(8, 11, 20, 0.96) 0%, rgba(8, 11, 20, 0.82) 48%, rgba(8, 11, 20, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 11, 20, 0.92) 0%, transparent 60%) !important;
}

html body #home .market-feature-copy,
html.lowiz-premium-v4 body #home .market-feature-copy {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  width: min(560px, 100%) !important;
  max-width: 100% !important;
  padding: clamp(22px, 3.5vw, 38px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

html body #home .market-feature-copy small {
  margin: 0 !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(139, 92, 246, 0.2) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  color: #DDD6FE !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

html body #home .market-feature-copy h1 {
  margin: 0 !important;
  color: var(--lw-text-main) !important;
  font-size: clamp(24px, 3.2vw, 40px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

html body #home .market-feature-copy p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 !important;
  color: var(--lw-text-sec) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  max-width: 46ch !important;
}

html body #home .market-feature-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 4px !important;
}

html body #home .market-feature-meta strong {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #38BDF8 !important;
}

html body #home .market-feature-meta span {
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #6EE7B7 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

html body #home .market-feature-actions,
html.lowiz-premium-v4 body #home .market-feature-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 6px !important;
  width: auto !important;
}

html body #home .market-feature-actions button,
html.lowiz-premium-v4 body #home .market-feature-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: var(--lw-radius-md) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, var(--lw-purple) 0%, var(--lw-blue) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35) !important;
}

html body #home .market-feature-actions button.market-secondary,
html.lowiz-premium-v4 body #home .market-feature-actions button.market-secondary {
  display: inline-flex !important;
  background: rgba(23, 29, 48, 0.88) !important;
  border: 1px solid var(--lw-border-strong) !important;
  color: var(--lw-text-main) !important;
  box-shadow: none !important;
}

html body #home .market-side-stack,
html.lowiz-premium-v4 body #home .market-side-stack {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 14px !important;
}

html body #home .market-side-feature {
  min-height: 170px !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 18px !important;
  cursor: pointer !important;
}

html body #home .market-side-feature > img {
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.65 !important;
  border-radius: 0 !important;
}

html body #home .market-side-feature::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: linear-gradient(0deg, rgba(8, 11, 20, 0.95) 0%, rgba(8, 11, 20, 0.35) 100%) !important;
}

html body #home .market-side-copy {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

html body #home .market-side-copy small {
  color: #A78BFA !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

html body #home .market-side-copy h2 {
  margin: 0 !important;
  font-size: 16.5px !important;
  font-weight: 850 !important;
  color: var(--lw-text-main) !important;
  line-height: 1.2 !important;
}

html body #home .market-side-copy strong {
  color: #38BDF8 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* 4. HOME CATEGORIES GRID (#lowizHomeCategories) */
html body #lowizHomeCategories {
  display: block !important;
  padding: 18px 0 24px !important;
}

html body #lowizHomeCategories .lhc-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

html body #lowizHomeCategories .lhc-grid,
html.lowiz-premium-v4 body #lowizHomeCategories .lhc-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body #lowizHomeCategories .lhc-launch-card {
  border: 1px solid var(--lw-border) !important;
  border-radius: var(--lw-radius-lg) !important;
  background: linear-gradient(160deg, var(--lw-surface-1) 0%, var(--lw-surface-2) 100%) !important;
  box-shadow: var(--lw-shadow-card) !important;
  transition: transform 0.18s ease, border-color 0.18s ease !important;
}

html body #lowizHomeCategories .lhc-launch-card:hover,
html body #lowizHomeCategories .lhc-launch-card.active {
  border-color: var(--lw-purple) !important;
  transform: translateY(-2px) !important;
}

/* 5. PRODUCT CATALOG & CARDS (#books & #productGrid) */
html body #books.products-section {
  display: block !important;
  padding: 20px 0 56px !important;
}

html body .filters {
  position: relative !important;
  top: auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding: 6px 2px 12px !important;
  margin-bottom: 18px !important;
  background: transparent !important;
  border: 0 !important;
  scrollbar-width: none !important;
}

html body .filters::-webkit-scrollbar {
  display: none !important;
}

html body .filter-button {
  flex: 0 0 auto !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--lw-border) !important;
  background: var(--lw-surface-1) !important;
  color: var(--lw-text-sec) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

html body .filter-button.active {
  background: linear-gradient(135deg, var(--lw-purple) 0%, var(--lw-blue) 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35) !important;
}

html body #productGrid.product-grid,
html.lowiz-market-v2 body #productGrid.product-grid,
html.lowiz-premium-v4 body #productGrid.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

html body .product-card,
html.lowiz-market-v2 body .product-card,
html.lowiz-premium-v4 body .product-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: linear-gradient(165deg, var(--lw-surface-1) 0%, var(--lw-surface-2) 100%) !important;
  border: 1px solid var(--lw-border) !important;
  border-radius: var(--lw-radius-lg) !important;
  padding: 0 !important;
  box-shadow: var(--lw-shadow-card) !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

html body .product-card[hidden] {
  display: none !important;
}

html body .product-card:hover {
  border-color: var(--lw-border-strong) !important;
  transform: translateY(-3px) !important;
}

html body .product-card .card-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  background: #0B1020 !important;
  border-bottom: 1px solid var(--lw-border) !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

html body .product-card .product-cover,
html body .product-card .product-cover.market-real-cover {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 10 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #0B1020 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

html body .product-card .product-cover img,
html body .product-card .product-cover.market-real-cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  filter: none !important;
}

html body .product-card .card-badges {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 3 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  max-width: calc(100% - 56px) !important;
  pointer-events: none !important;
}

html body .product-card .card-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px) !important;
  background: rgba(16, 22, 38, 0.88) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  color: #EDE9FE !important;
}

html body .product-card .card-badge.badge-warranty {
  background: rgba(6, 78, 59, 0.88) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #6EE7B7 !important;
}

html body .product-card .card-badge.badge-no-warranty {
  background: rgba(120, 53, 15, 0.88) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #FDE68A !important;
}

html body .product-card .card-badge.badge-whatsapp {
  background: rgba(20, 83, 45, 0.88) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #86EFAC !important;
}

html body .product-card .card-fav-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 4 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(16, 22, 38, 0.84) !important;
  border: 1px solid var(--lw-border-strong) !important;
  color: var(--lw-text-sec) !important;
  backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
}

html body .product-card .card-fav-btn.is-favorite {
  color: #F43F5E !important;
  border-color: rgba(244, 63, 94, 0.5) !important;
  background: rgba(244, 63, 94, 0.16) !important;
}

html body .product-card .card-body,
html body .product-card .product-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 14px !important;
  background: transparent !important;
}

html body .product-card .card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

html body .product-card .card-category {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--lw-text-sec) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 62% !important;
}

html body .product-card .card-stock {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #6EE7B7 !important;
  white-space: nowrap !important;
}

html body .product-card .card-stock .stock-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  display: inline-block !important;
}

html body .product-card .card-stock.status-empty,
html body .product-card .card-stock.status-offline {
  color: #FCA5A5 !important;
}

html body .product-card .card-stock.status-empty .stock-dot,
html body .product-card .card-stock.status-offline .stock-dot {
  background: #EF4444 !important;
}

html body .product-card h3,
html body .product-card .card-title {
  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  color: var(--lw-text-main) !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

html body .product-card .card-description {
  font-size: 12px !important;
  line-height: 1.42 !important;
  color: var(--lw-text-sec) !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html body .product-card .card-pricing {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 4px !important;
}

html body .product-card .current-price,
html body .product-card .card-price {
  color: #38BDF8 !important;
  font-size: 17.5px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

html body .product-card .card-old-price {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--lw-text-muted) !important;
  text-decoration: line-through !important;
}

html body .product-card .card-actions,
html body .product-card .product-actions {
  display: grid !important;
  grid-template-columns: 1fr 42px !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

html body .product-card .card-btn,
html body .product-card .product-actions button,
html body .product-card .buy-button {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-radius: var(--lw-radius-sm) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

html body .product-card .card-btn-primary,
html body .product-card .buy-button {
  background: linear-gradient(135deg, var(--lw-purple) 0%, var(--lw-blue) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.28) !important;
}

html body .product-card .card-btn-whatsapp {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html body .product-card .card-btn-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: var(--lw-radius-sm) !important;
  background: var(--lw-surface-2) !important;
  border: 1px solid var(--lw-border-strong) !important;
  color: var(--lw-text-main) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

html body .product-card .smart-card-tools {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

html body .product-card .smart-card-tools button {
  min-height: 30px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: rgba(23, 29, 48, 0.72) !important;
  border: 1px solid var(--lw-border) !important;
  color: var(--lw-text-sec) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* 6. PURCHASE CHOICE MODAL & STREETWEAR SIZE PICKER */
.purchase-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 6, 14, 0.78);
  backdrop-filter: blur(10px);
}

.purchase-choice-modal {
  width: min(100%, 460px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: linear-gradient(165deg, var(--lw-surface-1) 0%, var(--lw-bg) 100%) !important;
  border: 1px solid var(--lw-border-strong) !important;
  border-radius: var(--lw-radius-xl) !important;
  padding: 22px 20px !important;
  color: var(--lw-text-main) !important;
  box-shadow: var(--lw-shadow-elevated) !important;
  position: relative;
}

.choice-size-picker,
.purchase-choice-size {
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--lw-radius-md);
  background: var(--lw-surface-2);
  border: 1px solid var(--lw-border);
}

.choice-size-picker > span,
.purchase-choice-size > span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--lw-text-sec);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.choice-size-options,
.choice-size-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.choice-size-btn,
.choice-size-pill {
  min-height: 40px;
  border-radius: var(--lw-radius-sm);
  border: 1px solid var(--lw-border);
  background: var(--lw-surface-1);
  color: var(--lw-text-main);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}

.choice-size-btn.active,
.choice-size-pill.active {
  background: linear-gradient(135deg, var(--lw-purple), var(--lw-blue)) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
}

.choice-lookbook-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.choice-lookbook-links a {
  font-size: 11.5px;
  font-weight: 700;
  color: #93C5FD;
  text-decoration: none;
}

.purchase-choice-status,
.choice-feedback-msg {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--lw-radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #BFDBFE;
}

.purchase-choice-status.is-error,
.choice-feedback-msg.is-error {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #FECACA !important;
}

.purchase-choice-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.purchase-choice-option {
  display: grid !important;
  grid-template-columns: 38px 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border-radius: var(--lw-radius-md) !important;
  background: var(--lw-surface-2) !important;
  border: 1px solid var(--lw-border-strong) !important;
  color: var(--lw-text-main) !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.purchase-choice-option.wallet.primary-buy {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.22) 100%) !important;
  border-color: rgba(139, 92, 246, 0.55) !important;
}

.purchase-choice-option.whatsapp {
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.purchase-choice-actions button {
  min-height: 48px !important;
  border-radius: var(--lw-radius-md) !important;
}

.cart-whatsapp-checkout {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  border-radius: var(--lw-radius-md);
  border: 1px solid rgba(47, 229, 120, 0.38) !important;
  color: #86EFAC !important;
  background: rgba(34, 197, 94, 0.1) !important;
  font-weight: 800;
}

/* 7. WALLET TOP-UP 5-STAGE STEPPER & DEPOSIT STATUS UI */
.lowiz-topup-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0 14px;
  padding: 10px 8px;
  border-radius: var(--lw-radius-md);
  background: rgba(23, 29, 48, 0.75);
  border: 1px solid var(--lw-border);
}

.lowiz-topup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: var(--lw-text-muted);
}

.lowiz-topup-step .step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 900;
  background: var(--lw-surface-1);
  border: 1px solid var(--lw-border);
  color: var(--lw-text-sec);
}

.lowiz-topup-step small {
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 700;
}

.lowiz-topup-step.is-current {
  color: var(--lw-text-main);
}

.lowiz-topup-step.is-current .step-dot {
  background: linear-gradient(135deg, var(--lw-purple), var(--lw-blue));
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.lowiz-topup-step.is-done {
  color: #6EE7B7;
}

.lowiz-topup-step.is-done .step-dot {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.lowiz-topup-feedback-banner {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: var(--lw-radius-md);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #DBEAFE;
}

.lowiz-topup-feedback-banner.is-success {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #D1FAE5;
}

.lowiz-topup-feedback-banner.is-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #FEE2E2;
}

.lowiz-deposit-history-list {
  display: grid;
  gap: 6px;
}

.lowiz-deposit-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--lw-radius-sm);
  background: rgba(8, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lowiz-deposit-status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.lowiz-deposit-status-pill.is-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #FDE68A;
}

.lowiz-deposit-status-pill.is-approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6EE7B7;
}

.lowiz-deposit-status-pill.is-rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #FCA5A5;
}

/* 8. MOBILE BOTTOM DOCK (#lowizMobileDock) */
#lowizMobileDock.lowiz-mobile-dock-v4 {
  display: none !important;
}

@media (max-width: 760px) {
  html body #lowizMobileDock.lowiz-mobile-dock-v4,
  html.lowiz-premium-v4 body #lowizMobileDock.lowiz-mobile-dock-v4 {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    background: rgba(16, 22, 38, 0.96) !important;
    border-top: 1px solid var(--lw-border-strong) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45) !important;
    z-index: 1200 !important;
  }

  html body #lowizMobileDock button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--lw-text-sec) !important;
    cursor: pointer !important;
  }

  html body #lowizMobileDock button span {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
  }

  html body #lowizMobileDock button svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
  }

  html body #lowizMobileDock button b {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  html body #lowizMobileDock button.is-active,
  html body #lowizMobileDock button[aria-current="page"] {
    color: #FFFFFF !important;
    background: rgba(139, 92, 246, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35) !important;
  }
}

#lowizMobileDock .dock-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lw-purple), var(--lw-blue));
  color: #FFFFFF;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

/* 9. RESPONSIVE BREAKPOINTS (1100px, 960px, 760px, 430px, 390px, 360px, 320px) */
@media (max-width: 1100px) {
  html body #productGrid.product-grid,
  html.lowiz-market-v2 body #productGrid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 960px) {
  html body #top.site-header .desktop-nav,
  html.lowiz-market-v2 body #top.site-header .desktop-nav {
    display: none !important;
  }

  html body #top.site-header .search-trigger .search-pill-label {
    display: none !important;
  }

  html body #top.site-header .search-trigger,
  html.lowiz-premium-v4 body #top.site-header .search-trigger {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
  }

  html body #home .market-hero-grid,
  html.lowiz-premium-v4 body #home .market-hero-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html body #home .market-side-stack,
  html.lowiz-premium-v4 body #home .market-side-stack {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }

  html body #lowizHomeCategories .lhc-grid,
  html.lowiz-premium-v4 body #lowizHomeCategories .lhc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .container,
  html.lowiz-market-v2 .container,
  html.lowiz-premium-v4 .container {
    width: calc(100% - 24px) !important;
  }

  /* Compact Mobile Header */
  html body #top.site-header,
  html.lowiz-premium-v4 body #top.site-header {
    height: 58px !important;
    min-height: 58px !important;
  }

  html body #top.site-header .nav-shell,
  html.lowiz-premium-v4 body #top.site-header .nav-shell {
    width: calc(100% - 20px) !important;
    height: 58px !important;
    min-height: 58px !important;
    gap: 5px !important;
  }

  html body #top.site-header .brand {
    gap: 7px !important;
  }

  html body #top.site-header .brand .brand-logo {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 8px !important;
  }

  html body #top.site-header .brand .brand-name {
    font-size: 15px !important;
  }

  html body #top.site-header .login-trigger {
    display: none !important;
  }

  html body #top.site-header .nav-actions {
    gap: 4px !important;
  }

  html body #top.site-header .search-trigger,
  html body #top.site-header .cart-trigger,
  html body #top.site-header .lowiz-notification-trigger,
  html body #top.site-header #lowizNotificationTrigger {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
  }

  html body #top.site-header .wallet-group,
  html.lowiz-premium-v4 body #top.site-header .wallet-group,
  html.lowiz-market-v2 body #top.site-header .wallet-group {
    height: 36px !important;
    min-height: 36px !important;
    padding: 3px !important;
    border-radius: 11px !important;
    gap: 3px !important;
  }

  html body #top.site-header .wallet-group .wallet-badge,
  html.lowiz-premium-v4 body #top.site-header .wallet-group .wallet-badge,
  html.lowiz-market-v2 body #top.site-header .wallet-group .wallet-badge {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 6px 0 4px !important;
    gap: 5px !important;
  }

  html body #top.site-header .wallet-group .wallet-currency {
    width: 20px !important;
    height: 20px !important;
    font-size: 10.5px !important;
  }

  html body #top.site-header .wallet-group .wallet-summary small {
    display: none !important;
  }

  html body #top.site-header .wallet-group .wallet-summary b {
    font-size: 11.5px !important;
  }

  html body #top.site-header .wallet-group .balance-topup,
  html.lowiz-premium-v4 body #top.site-header .wallet-group .balance-topup,
  html.lowiz-market-v2 body #top.site-header .wallet-group .balance-topup {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  html body #top.site-header .wallet-group .balance-topup-mark {
    width: 15px !important;
    height: 15px !important;
    font-size: 12px !important;
  }

  /* Mobile Hero */
  html body #home.hero,
  html.lowiz-premium-v4 body #home.hero {
    padding: 12px 0 10px !important;
  }

  html body #home .market-feature,
  html.lowiz-premium-v4 body #home .market-feature {
    min-height: 240px !important;
    height: auto !important;
    border-radius: 18px !important;
  }

  html body #home .market-feature-copy,
  html.lowiz-premium-v4 body #home .market-feature-copy {
    padding: 18px 16px !important;
    gap: 8px !important;
  }

  html body #home .market-feature-copy h1 {
    font-size: clamp(20px, 6vw, 26px) !important;
  }

  html body #home .market-feature-copy p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    font-size: 12px !important;
  }

  html body #home .market-feature-meta strong {
    font-size: 18px !important;
  }

  html body #home .market-feature-actions,
  html.lowiz-premium-v4 body #home .market-feature-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body #home .market-feature-actions button,
  html.lowiz-premium-v4 body #home .market-feature-actions button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  html body #home .market-side-stack,
  html.lowiz-premium-v4 body #home .market-side-stack {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  html body #home .market-side-feature {
    min-height: 128px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  html body #home .market-side-copy h2 {
    font-size: 13px !important;
  }

  html body #home .market-side-copy strong {
    font-size: 13px !important;
  }

  /* Mobile Product Grid */
  html body #productGrid.product-grid,
  html.lowiz-market-v2 body #productGrid.product-grid,
  html.lowiz-premium-v4 body #productGrid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body .product-card .product-content {
    padding: 10px !important;
  }

  html body .product-card h3 {
    font-size: 13px !important;
  }

  html body .product-card .current-price {
    font-size: 15px !important;
  }

  /* Cookie Banner on Mobile */
  html body #cookieBanner,
  html.lowiz-premium-v4 body #cookieBanner {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 390px) {
  html body #top.site-header .wallet-group .topup-short-label {
    display: none !important;
  }

  html body #top.site-header .wallet-group .balance-topup,
  html.lowiz-premium-v4 body #top.site-header .wallet-group .balance-topup {
    width: 30px !important;
    padding: 0 !important;
  }

  html body #lowizMobileDock button b {
    font-size: 10px !important;
  }
}

@media (max-width: 350px) {
  html body #top.site-header .brand .brand-name span {
    display: none !important;
  }

  html body #top.site-header .wallet-group .wallet-currency {
    display: none !important;
  }

  html body #productGrid.product-grid,
  html.lowiz-market-v2 body #productGrid.product-grid,
  html.lowiz-premium-v4 body #productGrid.product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure wallet confirmation dialog is always above any active layer */
html body .wallet-confirm-overlay {
  z-index: 5000 !important;
}
