/* ============================================================
   EzyShare B2B Marketplace — Design System
   Theme: Premium Gold · Charcoal · White · Commerce Blue
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Gold palette */
  --gold-primary: #c9a227;
  --gold-dark:    #a07d12;
  --gold-light:   #f0c84e;
  --gold-pale:    #fdf6e3;
  --gold-shine:   #ffe599;

  /* Charcoal / Dark */
  --charcoal:     #1a1a2e;
  --charcoal-mid: #2d2d44;
  --charcoal-soft:#3a3a55;
  --dark-bg:      #111122;

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f9f7f2;
  --light-gray:   #f0ede5;
  --border:       #e2dbc8;
  --muted:        #9e9178;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a4555;
  --text-light:   #7a7260;

  /* Commerce / Accent */
  --blue:         #1e4d8c;
  --blue-light:   #2a6bc8;
  --orange:       #e07b2a;
  --green:        #2e8b57;
  --red:          #c0392b;

  /* Sizing */
  --radius:       12px;
  --radius-sm:    6px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.18);
  --shadow-gold:  0 4px 20px rgba(201,162,39,0.35);

  /* Transitions */
  --trans:        0.25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--trans); }
a:hover { color: var(--gold-primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Gold Text Utility ---------- */
.gold-text { color: var(--gold-primary); }
.gold-bg { background: var(--gold-primary); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-left span, .topbar-right a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}
.topbar-right a:hover { color: var(--gold-light); }
.topbar-partner {
  background: rgba(201,162,39,0.18);
  border: 1px solid rgba(201,162,39,0.4);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--gold-light) !important;
}
.topbar-login { color: rgba(255,255,255,0.8) !important; }
.topbar-register {
  background: var(--gold-primary);
  color: var(--charcoal) !important;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}
.topbar-register:hover { background: var(--gold-light); color: var(--charcoal) !important; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.14); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo { flex-shrink: 0; }
.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Search */
.search-wrap { flex: 1; }
.search-bar {
  display: flex;
  align-items: center;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-gold);
}
.search-cat-select {
  position: relative;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.search-cat-select select {
  padding: 11px 32px 11px 14px;
  border: none;
  outline: none;
  background: var(--off-white);
  font-size: 13px;
  color: var(--text-mid);
  appearance: none;
  cursor: pointer;
  min-width: 140px;
}
.search-cat-select .fa-chevron-down {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}
.search-bar input {
  flex: 1;
  padding: 11px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn {
  padding: 11px 22px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
  transition: background var(--trans);
  white-space: nowrap;
}
.search-btn:hover { background: var(--gold-dark); color: var(--white); }
.ai-search-btn {
  padding: 11px 18px;
  background: var(--charcoal);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--trans);
  white-space: nowrap;
}
.ai-search-btn:hover { background: var(--charcoal-soft); }

.search-suggestions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-suggestions span {
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--trans);
}
.search-suggestions span:hover { color: var(--gold-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.hdr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 11px;
  gap: 3px;
  position: relative;
  transition: background var(--trans), color var(--trans);
}
.hdr-btn i { font-size: 18px; }
.hdr-btn:hover { background: var(--off-white); color: var(--gold-primary); }
.badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.main-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
  position: relative;
}
.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-all-cats {
  padding: 11px 18px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background var(--trans);
  height: 100%;
}
.nav-all-cats:hover { background: var(--gold-primary); color: var(--charcoal); }
.nav-all-cats i:last-child { font-size: 10px; }

.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-primary); }
.nav-links a.active { border-bottom: 2px solid var(--gold-primary); }
.nav-links .nav-gold {
  color: var(--gold-primary);
  font-weight: 600;
}
.nav-links .nav-gold:hover { color: var(--gold-dark); }

.nav-right-actions { margin-left: auto; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  gap: 6px;
  transition: background var(--trans), transform var(--trans);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); }

/* Category Dropdown */
.cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold-primary);
  z-index: 800;
  display: none;
  animation: slideDown 0.2s ease;
}
.cat-dropdown.open { display: block; }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

.cat-dropdown-inner {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
}
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.cat-list-item {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-mid);
  background: var(--off-white);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}
.cat-list-item:hover {
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-color: var(--gold-primary);
}
.cat-featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}
.cat-feat-card {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--border);
}
.cat-feat-card.gold {
  background: var(--gold-pale);
  border-color: var(--gold-light);
}
.cat-feat-card i { color: var(--gold-primary); margin-bottom: 6px; font-size: 18px; }
.cat-feat-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.cat-feat-card p { font-size: 12px; color: var(--text-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.hero-slides { width: 100%; position: relative; min-height: 520px; }
.hero-slide {
  display: none;
  min-height: 520px;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.hero-slide.active { display: flex; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 60px 24px;
}
.hero-text { max-width: 580px; color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}
.hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}
.hstat {
  display: flex;
  flex-direction: column;
}
.hstat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.hstat span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual { flex-shrink: 0; }
.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.hcard {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 200px;
  transition: transform var(--trans), background var(--trans);
}
.hcard:hover {
  transform: translateX(-6px);
  background: rgba(201,162,39,0.15);
}
.hcard i { color: var(--gold-light); font-size: 22px; }
.hcard strong { display: block; font-size: 14px; }
.hcard span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Commission Visual */
.commission-visual {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}
.cv-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  color: var(--white);
  min-width: 90px;
  transition: transform var(--trans);
}
.cv-tier:hover { transform: translateY(-6px); }
.cv-tier.highlight {
  background: rgba(201,162,39,0.2);
  border-color: var(--gold-light);
  transform: scale(1.08);
}
.cv-tier strong { font-size: 2rem; font-weight: 800; color: var(--gold-light); }
.cv-tier small { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.tier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.tier-badge.bronze { background: #cd7f32; color: white; }
.tier-badge.silver { background: #a8a9ad; color: white; }
.tier-badge.gold-tier { background: var(--gold-primary); color: var(--charcoal); }

/* Hero Nav */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--trans), width var(--trans);
}
.dot.active { background: var(--gold-primary); width: 24px; border-radius: 5px; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  backdrop-filter: blur(8px);
}
.hero-arrow.left { left: 16px; }
.hero-arrow.right { right: 16px; }
.hero-arrow:hover { background: var(--gold-primary); color: var(--charcoal); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--charcoal);
  padding: 16px 0;
  border-bottom: 2px solid var(--gold-primary);
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.trust-item i {
  font-size: 22px;
  color: var(--gold-primary);
}
.trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.trust-item span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  color: var(--gold-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-light);
  font-size: 16px;
  max-width: 560px;
  margin-top: 8px;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 14px;
}
.see-all:hover { color: var(--gold-dark); }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}
.cat-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  color: var(--gold-dark);
}
.cat-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-primary);
  transition: background var(--trans);
}
.cat-card:hover .cat-icon { background: var(--gold-primary); color: var(--charcoal); }
.cat-card span { font-size: 13px; font-weight: 500; }
.cat-card em { font-size: 11px; color: var(--muted); font-style: normal; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.tab-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-pill {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--trans);
}
.tab-pill:hover, .tab-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--charcoal);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.product-img {
  height: 180px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.product-badge.verified { background: var(--gold-primary); color: var(--charcoal); }
.product-badge.hot { background: var(--orange); color: white; }
.product-badge.new { background: var(--green); color: white; }

.product-info { padding: 14px; }
.product-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.product-price span { font-size: 12px; color: var(--muted); font-weight: 400; }
.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.product-supplier { font-weight: 500; color: var(--text-mid); }

.load-more-wrap { text-align: center; }

/* ============================================================
   AI CHAT SECTION
   ============================================================ */
.ai-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  color: white;
}
.ai-inner {
  display: flex;
  gap: 64px;
  align-items: center;
}
.ai-text { max-width: 500px; }
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.ai-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.ai-text p { color: rgba(255,255,255,0.75); margin-bottom: 20px; line-height: 1.7; }
.ai-features { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.ai-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.ai-features i { color: var(--gold-primary); font-size: 15px; }

/* Chat Window */
.ai-chat-preview { flex: 1; min-width: 0; }
.chat-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
}
.chat-header {
  background: var(--charcoal);
  color: white;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--gold-primary);
}
.chat-header i { color: var(--gold-primary); }
.online-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  margin-left: auto;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: #f9f7f2;
}
.msg {
  display: flex;
  gap: 8px;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.msg.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.msg.user .msg-avatar { background: var(--gold-primary); color: var(--charcoal); }
.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.msg.bot .msg-bubble {
  background: var(--white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.msg.user .msg-bubble {
  background: var(--charcoal);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-wrap {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-dark);
}
.chat-input-wrap button {
  padding: 12px 18px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-size: 15px;
  transition: background var(--trans);
}
.chat-input-wrap button:hover { background: var(--gold-dark); color: white; }

/* Typing indicator */
.typing-indicator .msg-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
}
.typing-indicator .dot-typing {
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: bounce-dots 1.2s infinite;
}
.typing-indicator .dot-typing:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot-typing:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce-dots { 0%,80%,100% { transform:translateY(0); } 40% { transform:translateY(-6px); } }

/* ============================================================
   SUPPLIERS GRID
   ============================================================ */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.supplier-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  cursor: pointer;
}
.supplier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-primary);
}
.supplier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.supplier-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--charcoal);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.supplier-name { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.supplier-location {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.supplier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.supplier-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
}
.supplier-tag.blue { background: #e8f0fe; color: var(--blue); border-color: #bee1ff; }
.supplier-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.supplier-stats span { color: var(--muted); }
.supplier-stats strong { color: var(--text-dark); font-weight: 600; }
.supplier-rating {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   ECOSYSTEM SECTION
   ============================================================ */
.ecosystem-section { background: var(--charcoal); color: white; }
.ecosystem-section .section-header h2 { color: white; }
.ecosystem-section .section-sub { color: rgba(255,255,255,0.65); }

.ecosystem-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.eco-top, .eco-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.eco-node {
  background: rgba(201,162,39,0.12);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius);
  padding: 18px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.eco-node i { font-size: 28px; color: var(--gold-light); }
.eco-node strong { font-size: 16px; font-weight: 700; }
.eco-node span { font-size: 13px; color: rgba(255,255,255,0.65); }
.eco-arrow-down { font-size: 22px; color: var(--gold-primary); }

.eco-center-row {
  display: flex;
  justify-content: center;
}
.eco-platform {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  max-width: 400px;
  width: 100%;
}
.eco-logo {
  height: 52px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.eco-platform strong {
  display: block;
  font-size: 16px;
  color: var(--charcoal);
  font-weight: 800;
  margin-bottom: 14px;
}
.eco-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.eco-caps span {
  background: rgba(0,0,0,0.2);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.eco-channels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.eco-channel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 130px;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.eco-channel:hover {
  background: rgba(201,162,39,0.12);
  border-color: var(--gold-primary);
  transform: translateY(-4px);
}
.eco-channel i { font-size: 24px; color: var(--gold-light); margin-bottom: 8px; }
.eco-channel strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.eco-channel span { font-size: 11px; color: rgba(255,255,255,0.55); }
.buyer-node { background: rgba(46,139,87,0.15); border-color: #2e8b57; }
.buyer-node i, .buyer-node strong, .buyer-node span { color: #90ee90 !important; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 14px;
  transition: background var(--trans);
}
.svc-icon.gold { background: var(--gold-pale); color: var(--gold-primary); }
.service-card:hover .svc-icon { background: var(--charcoal); color: var(--gold-primary); }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-primary);
}
.svc-link:hover { color: var(--gold-dark); }

/* ============================================================
   PARTNER BANNER
   ============================================================ */
.partner-banner {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  padding: 48px 0;
}
.partner-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.pb-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.pb-text p { color: rgba(0,0,0,0.65); font-size: 15px; max-width: 500px; }
.pb-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--trans);
}
.testi-card:hover { box-shadow: var(--shadow-gold); border-color: var(--gold-light); }
.stars { color: var(--gold-primary); font-size: 18px; margin-bottom: 12px; }
.testi-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 40px;
  height: 40px;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold-primary);
}
.testi-author strong { display: block; font-size: 14px; font-weight: 600; }
.testi-author span { font-size: 12px; color: var(--muted); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--charcoal);
  padding: 50px 0;
}
.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.nl-text h3 { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 6px; }
.nl-text p { color: rgba(255,255,255,0.6); font-size: 14px; }
.nl-form {
  display: flex;
  gap: 0;
  min-width: 360px;
}
.nl-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(201,162,39,0.5);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 14px;
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-form .btn-gold {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0f0f1a; color: rgba(255,255,255,0.75); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  padding: 52px 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand { }
.footer-logo { height: 50px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: background var(--trans), color var(--trans);
}
.social-links a:hover { background: var(--gold-primary); color: var(--charcoal); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(201,162,39,0.6);
  cursor: pointer;
  transition: all var(--trans);
}
.btn-outline-gold:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px;
  background: transparent;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-primary);
  transition: all var(--trans);
}
.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: var(--charcoal);
}

.btn-gold-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--charcoal);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all var(--trans);
}
.btn-gold-lg:hover { background: var(--dark-bg); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(0,0,0,0.15);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0,0,0,0.2);
  transition: all var(--trans);
}
.btn-ghost-lg:hover { background: rgba(0,0,0,0.25); }

.full-width { width: 100%; justify-content: center; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  transform: scale(0.95);
  transition: transform var(--trans);
}
.modal-overlay.open .modal-box { transform: scale(1); }

.ai-modal { max-width: 560px; }
.rfq-modal { max-width: 620px; }

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}
.gold-header {
  background: var(--charcoal);
  color: white;
  border-bottom: 2px solid var(--gold-primary);
}
.gold-header span { display: flex; align-items: center; gap: 8px; }
.gold-header i:first-child { color: var(--gold-primary); }
.modal-header button {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: color var(--trans);
}
.modal-header button:hover { color: white; }

.modal-chat {
  padding: 16px;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-chat-input {
  display: flex;
  border-top: 1px solid var(--border);
}
.modal-chat-input input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 13px;
}
.modal-chat-input button {
  padding: 14px 18px;
  background: var(--gold-primary);
  color: var(--charcoal);
  font-size: 16px;
}
.modal-chat-input button:hover { background: var(--gold-dark); color: white; }

/* RFQ Form */
.rfq-form { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans);
  background: var(--white);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}
.form-group textarea { resize: vertical; }
.rfq-form .btn-gold { margin-top: 8px; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gold-primary);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  font-size: 16px;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--trans), transform var(--trans);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--gold-dark); color: white; }

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

@media (max-width: 768px) {
  .topbar-left { display: none; }
  .header-inner { flex-wrap: wrap; }
  .search-wrap { order: 3; width: 100%; }
  .header-actions { order: 2; }
  .main-nav-inner { overflow-x: auto; }
  .nav-links { display: none; }
  .hero-content { flex-direction: column; padding: 40px 16px; }
  .hero-visual { display: none; }
  .trust-inner { justify-content: center; }
  .trust-item:nth-child(n+4) { display: none; }
  .ai-inner { flex-direction: column; }
  .newsletter-inner { flex-direction: column; }
  .nl-form { min-width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .partner-banner-inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .suppliers-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
}
