/* ============================================
   JAVACOIN TOPUP — Main Stylesheet
   Theme: Zeus / Thunder — Hitam & Kuning
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold:          #F5C518;
  --gold-dark:     #D4A017;
  --gold-light:    #FFD95A;
  --gold-glow:     rgba(245, 197, 24, 0.25);
  --bg-dark:       #0A0A0A;
  --bg-card:       #141414;
  --bg-card2:      #1A1A1A;
  --bg-sidebar:    #111111;
  --border:        rgba(255,255,255,0.07);
  --border-gold:   rgba(245,197,24,0.3);
  --text-primary:  #F0F0F0;
  --text-secondary:#A0A0A0;
  --text-muted:    #555555;
  --shadow-card:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 20px rgba(245,197,24,0.25);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --navbar-height: 58px;
  --sidebar-w:     64px;
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*, *:focus, *:active {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}
a, button, [tabindex], .cat-tab, .product-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html { scroll-behavior: smooth; overflow-x: hidden; background: var(--bg-dark); }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Lightning grid texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(245,197,24,0.15);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8,8,8,0.99);
  border-bottom-color: rgba(245,197,24,0.25);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(245,197,24,0.1);
}

/* 3-column layout */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 200px;
  text-decoration: none;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 200px;
  justify-content: flex-end;
}

/* Logo Icon */
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(245,197,24,0.35);
  flex-shrink: 0;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(245,197,24,0.35); }
  50% { box-shadow: 0 0 28px rgba(245,197,24,0.6); }
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -3px;
  font-family: 'Inter', sans-serif;
  -webkit-text-fill-color: var(--text-muted);
}

/* Search Bar */
.navbar-search {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0 40px 0 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search input:focus {
  border-color: var(--gold);
  background: rgba(245,197,24,0.05);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.navbar-search .search-icon {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px 0;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
}
.search-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
}
.search-dropdown-item img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.search-dropdown-item .sd-info {
  display: flex;
  flex-direction: column;
}
.search-dropdown-item .sd-name {
  font-weight: 600;
  font-size: 14px;
}
.search-dropdown-item .sd-cat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Nav Buttons */
.btn-ghost {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.btn-primary-nav {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 3px 12px var(--gold-glow);
  white-space: nowrap;
}

.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(245,197,24,0.45);
}

.btn-mobile-search {
  display: none;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}

.btn-mobile-search:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  width: 100%;
  padding-top: var(--navbar-height);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BANNER HERO — 2-column layout
   ============================================ */
.banner-hero-section {
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 14px;
  align-items: stretch;
}

.banner-hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.banner-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 0 1px rgba(245,197,24,0.05), 0 8px 32px rgba(0,0,0,0.5);
}

.banner-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 6;
}

.banner-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Blur sides */
.banner-blur-left, .banner-blur-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}
.banner-blur-left { left: 0; background: linear-gradient(to right, rgba(10,10,10,0.85), transparent); }
.banner-blur-right { right: 0; background: linear-gradient(to left, rgba(10,10,10,0.85), transparent); }

/* Arrows */
.banner-prev, .banner-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(20,20,20,0.85);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover, .banner-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  box-shadow: var(--shadow-glow);
}

/* Dots */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.banner-dot {
  width: 24px; height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
}
.banner-dot.active {
  background: var(--gold);
  width: 38px;
  box-shadow: 0 0 8px rgba(245,197,24,0.5);
}

/* Right Panel: Trending / Info */
.banner-hero-right {
  display: flex;
  flex-direction: column;
}

.trending-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 0 0 1px rgba(245,197,24,0.05);
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(245,197,24,0.04);
}

.trending-list {
  padding: 0; margin: 0;
  flex: 1;
  overflow-y: auto;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover {
  background: rgba(245,197,24,0.05);
}

.trending-img {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.trending-info { flex: 1; min-width: 0; }
.trending-name {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trending-dev {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.trending-badge {
  font-size: 10px; font-weight: 800;
  color: #000;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.trending-badge.rank-gray {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-section { padding: 14px 0; }

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-bar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 4px;
}

.stat-chip-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.stat-chip-icon.members { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #000; }
.stat-chip-icon.transactions { background: linear-gradient(135deg, #e67e22, #d35400); color: #fff; }

.stat-chip-text { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.stat-chip-label { font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-chip-value { font-size: 15px; font-weight: 800; color: var(--text-primary); font-family: 'Orbitron', monospace; min-width: 80px; display: inline-block; }

.stats-separator { width: 1px; height: 28px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

.stats-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.quick-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12px; font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.quick-btn.check-order {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
  color: #000;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.quick-btn.check-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(245,197,24,0.45);
}

.quick-btn.leaderboard {
  background: transparent;
  border-color: rgba(245,197,24,0.3);
  color: var(--gold);
}
.quick-btn.leaderboard:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 6px 0;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title { display: flex; align-items: center; gap: 10px; }

.flash-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gold), #e67e22);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(245,197,24,0.4);
}

.section-title-text h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
}

.section-title-text h2 span { color: var(--gold); }
.section-title-text p { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.btn-see-all {
  display: flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px; font-weight: 600;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-see-all:hover { background: var(--gold-glow); }

/* ============================================
   FLASH SALE
   ============================================ */
.flash-sale-section { padding: 6px 0 14px; }

.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.flash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.flash-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,197,24,0.15);
}

.flash-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.flash-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.flash-card:hover .flash-card-img img { transform: scale(1.05); }

.discount-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 10px; font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245,197,24,0.4);
}

.flash-card-info { padding: 10px 10px 12px; }
.flash-card-cat { font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.flash-card-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.3; }
.flash-card-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-now { font-size: 13px; font-weight: 800; color: var(--gold); font-family: 'Orbitron', monospace; }
.price-old { font-size: 10px; color: var(--text-muted); text-decoration: line-through; }

.flash-stock { margin-top: 8px; }
.flash-stock > span { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.flash-stock > span strong { color: var(--text-secondary); }
.flash-stock-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 99px; overflow: hidden; }
.flash-stock-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #e67e22); border-radius: 99px; transition: width 1s ease; }

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-section { padding: 8px 0 12px; }

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
  color: #000;
  box-shadow: 0 3px 12px var(--gold-glow);
}

.cat-tab:not(.active):hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(245,197,24,0.05);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section { padding: 4px 0 30px; }

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.products-header h2 { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.products-header .count {
  background: rgba(245,197,24,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

/* Per-category group */
.product-grid-section { margin-bottom: 24px; }

.cat-section-divider { height: 1px; background: linear-gradient(90deg, var(--border-gold), transparent); margin-bottom: 12px; }

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cat-section-label { display: flex; align-items: center; gap: 10px; }
.cat-section-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  flex-shrink: 0;
}
.cat-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; }
.cat-section-badge {
  font-size: 9px; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 1px;
}
.cat-section-count { font-size: 11px; color: var(--text-muted); }

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,197,24,0.15);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card2);
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-overlay { opacity: 1; }

/* Lightning effect on hover */
.product-card::after {
  content: '⚡';
  position: absolute;
  top: 8px; right: 8px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  filter: drop-shadow(0 0 6px rgba(245,197,24,0.8));
}
.product-card:hover::after { opacity: 1; }

.product-card-info {
  padding: 10px 10px 12px;
}
.product-cat { font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.product-name { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.product-price { font-size: 11px; color: var(--text-muted); }
.product-price strong { color: var(--gold); font-weight: 800; font-family: 'Orbitron', monospace; font-size: 12px; }

/* Empty state */
.empty-cat {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(245,197,24,0.15);
  color: var(--text-muted);
}

/* ============================================
   BOTTOM NAV (Mobile)
   ============================================ */
.bottom-navbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245,197,24,0.15);
  z-index: 900;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-nav-item.active { color: var(--gold); }
.mobile-nav-item:hover { color: var(--gold); }

/* ============================================
   MARQUEE (Mobile trending)
   ============================================ */
.trending-marquee-section {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  overflow: hidden;
  margin-top: 12px;
}

.trending-marquee-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.trending-marquee-track-wrap {
  overflow: hidden;
  flex: 1;
}

.trending-marquee-track {
  display: flex;
  gap: 14px;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tmarq-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px 4px 4px;
}

.tmarq-item img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tmarq-item span { font-size: 11px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.tmarq-item em { font-size: 10px; color: var(--gold); font-style: normal; font-weight: 700; }

/* ============================================
   MOBILE SEARCH BAR
   ============================================ */
.mobile-search-bar {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  border-bottom: 1px solid var(--border-gold);
  z-index: 999;
  padding: 10px 16px;
  backdrop-filter: blur(20px);
}

.mobile-search-bar.open { display: block; }

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-search-input-wrap {
  flex: 1;
  position: relative;
}

.mobile-search-icon-left {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.mobile-search-input-wrap input {
  width: 100%;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0 16px 0 36px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.mobile-search-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.mobile-search-close {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-gold);
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .logo-text { font-size: 18px; }
.footer-brand-desc { color: var(--text-muted); font-size: 13px; line-height: 1.8; margin: 12px 0 16px; max-width: 280px; }
.footer-contact { color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }
.footer-contact span { color: var(--gold); }

.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 15px;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.footer-heading {
  font-size: 11px; font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a i { font-size: 10px; }

.payment-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-tag {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--text-muted);
  transition: var(--transition);
}
.pay-tag:hover { border-color: var(--border-gold); color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy { color: var(--text-muted); font-size: 12px; }
.footer-copy span { color: var(--gold); font-weight: 600; }

/* WA Float Button */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  z-index: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: wa-bounce 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.6); }

@keyframes wa-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 54px; }

  .navbar { padding: 0 16px; justify-content: space-between; }
  .navbar-logo { width: auto; }
  .navbar-center { display: none; }
  .navbar-actions { width: auto; justify-content: flex-end; }
  .btn-mobile-search { display: flex; }
  .btn-primary-nav { padding: 8px 12px; }
  .btn-primary-nav span { display: none; }

  .page-wrapper { padding: 0 14px; }

  .banner-hero-section { grid-template-columns: 1fr; }
  .banner-hero-right { display: none; }
  .trending-marquee-section { display: flex; }

  .flash-sale-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  .stats-bar-right { display: none; }

  .bottom-navbar { display: flex; }
  .main-content { padding-bottom: 70px; }
  .wa-float { bottom: 80px; right: 16px; width: 46px; height: 46px; font-size: 20px; }

  .site-footer { padding: 36px 16px 80px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .flash-sale-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-chip-value { font-size: 13px; }
  .stats-bar { padding: 8px 12px; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(245,197,24,0.2);
  animation: toast-in 0.3s ease forwards, toast-out 0.3s ease forwards 3s;
}
.toast i { color: var(--gold); font-size: 16px; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}
