/* WDGZone Wholesale Catalog v2 - High Performance Enterprise Dark Theme */
:root {
  --bg: #060913;
  --bg-surface: #0d1424;
  --card-bg: rgba(14, 20, 36, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(0, 229, 255, 0.35);
  --ink: #f8fafc;
  --muted: #8292ab;
  --muted-dark: #4b5a75;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.25);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 900px 500px at 85% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 85%, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* TOP ANNOUNCEMENT BAR */
.top-announcement {
  background: rgba(6, 9, 19, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
}
.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.announcement-sep {
  color: #334155;
}
.announcement-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}
.announcement-link:hover {
  text-decoration: underline;
}

/* SITE HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: 68px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-text b {
  color: var(--cyan);
}
.brand-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-signin {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.btn-signin:hover {
  color: #fff;
}
.btn-cta {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 9px;
}
.bar-line {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* MOBILE MENU OVERLAY */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(6, 9, 19, 0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 24px;
}
.mobile-overlay.open {
  display: block;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.mobile-menu a.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
}
.mobile-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}
.mobile-btn-signin {
  text-align: center;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}
.mobile-btn-cta {
  text-align: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #fff !important;
  border: none !important;
}

/* MAIN CONTENT LAYOUT */
.catalog-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* BREADCRUMBS */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs svg {
  color: #475569;
}
.crumbs .current {
  color: var(--cyan);
}

/* HERO SECTION */
.catalog-hero {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.8) 0%, rgba(6, 9, 19, 0.9) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 44px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.hero-content {
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.catalog-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.catalog-hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* SEARCH & FILTER CONTROLS */
.hero-search-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 680px;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  height: 52px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 44px 0 50px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
}
.search-input-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
  background: rgba(14, 20, 36, 0.95);
}
.search-input-wrap button {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-input-wrap button:hover {
  color: #fff;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.pill-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #fff;
}

/* CATALOG GRID */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.card-cover {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: #0d1322;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.catalog-card:hover .card-cover img {
  transform: scale(1.05);
}
.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 9, 19, 0.95) 100%);
}

.card-kind-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.badge-topup {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-voucher {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.card-live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.card-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.card-price b {
  color: var(--cyan);
  font-size: 14px;
}
.card-arrow {
  color: var(--muted-dark);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.catalog-card:hover .card-arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-results svg {
  margin-bottom: 12px;
  color: var(--muted-dark);
}
.no-results p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.no-results button {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #fff;
  padding: 9px 18px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* CATEGORY DETAIL HERO */
.category-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.85) 0%, rgba(6, 9, 19, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 32px;
  align-items: center;
}
.cat-hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.cat-hero-info h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.cat-hero-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 800px;
}
.cat-stat-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.stat-chip svg {
  color: var(--cyan);
}
.stat-chip b {
  color: #fff;
}

/* SUB-REGIONS SECTION */
.sub-regions-section {
  margin-bottom: 32px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 13.5px;
  color: var(--muted);
}
.sub-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.sub-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(14, 20, 36, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.sub-name {
  font-weight: 700;
  color: #fff;
}
.sub-count {
  color: var(--muted);
  font-size: 11.5px;
}

/* PRODUCTS TABLE */
.products-section {
  margin-bottom: 36px;
}
.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.product-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(340px, 100%);
}
.product-search-box svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.product-search-box input {
  width: 100%;
  height: 44px;
  background: rgba(14, 20, 36, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px 0 40px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}
.product-search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.product-table {
  display: grid;
  gap: 10px;
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 180px 140px 140px;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 20px;
  transition: all 0.15s ease;
}
.product-row:hover {
  background: rgba(18, 25, 46, 0.85);
  border-color: var(--card-hover-border);
}
.prod-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prod-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.prod-cat {
  font-size: 11.5px;
  color: var(--muted);
}
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.stock-badge.in-stock {
  color: #34d399;
}
.stock-badge.out-stock {
  color: #64748b;
}
.prod-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--cyan);
}
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-buy:hover {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* WHOLESALE INFO CARD */
.wholesale-info-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.6) 0%, rgba(6, 9, 19, 0.85) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.wholesale-info-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.wholesale-info-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.wholesale-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

/* FOOTER */
.site-footer {
  background: rgba(6, 9, 19, 0.95);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copy {
  color: var(--muted-dark);
  font-size: 12px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .btn-signin, .btn-cta {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .catalog-hero {
    padding: 32px 24px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .category-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
  }
  .cat-hero-img {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }
  .cat-stat-chips {
    justify-content: center;
  }
  .product-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .prod-stock {
    display: none;
  }
  .btn-buy {
    grid-column: 1 / -1;
    height: 42px;
  }
}

@media (max-width: 600px) {
  .catalog-main {
    padding: 20px 14px 60px;
  }
  .catalog-hero {
    border-radius: 18px;
    padding: 24px 18px;
  }
  .catalog-card {
    border-radius: 14px;
  }
  .card-cover {
    height: 155px;
  }
  .card-info {
    padding: 12px 14px;
  }
  .card-title {
    font-size: 14.5px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
