/* =====================================================
   LupuZo B2B Marketplace - Main Stylesheet
   ===================================================== */

:root {
  --primary:       #e65c00;
  --primary-dark:  #cc5200;
  --primary-light: #ff7a1a;
  --secondary:     #1a3c5e;
  --secondary-dark:#0f2540;
  --accent:        #f7a600;
  --success:       #198754;
  --danger:        #dc3545;
  --warning:       #ffc107;
  --info:          #0dcaf0;
  --light:         #f8f9fa;
  --dark:          #212529;
  --gray-100:      #f8f9fa;
  --gray-200:      #e9ecef;
  --gray-300:      #dee2e6;
  --gray-600:      #6c757d;
  --border-radius: 8px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:     0 8px 30px rgba(0,0,0,.15);
  --transition:    all .25s ease;
  --font-main:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary:   #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card:      #0f3460;
  --text-primary: #e0e0e0;
  --text-muted:   #a0a0b0;
  --border-color: #2a2a4a;
}

[data-theme="light"] {
  --bg-primary:   #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card:      #ffffff;
  --text-primary: #212529;
  --text-muted:   #6c757d;
  --border-color: #dee2e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: var(--bg-secondary, #f8f9fa);
  color: var(--text-primary, #212529);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ══════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════ */
.topbar {
  background: var(--secondary-dark);
  color: #cdd;
  font-size: .8rem;
  padding: .35rem 0;
}
.topbar a { color: #cdd; }
.topbar a:hover { color: var(--accent); }
.topbar .flag { font-size: 1rem; }

/* ══════════════════════════════════════════════════
   HEADER / NAVBAR
══════════════════════════════════════════════════ */
.main-header {
  background: var(--secondary);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.logo { display: flex; align-items: center; gap: .5rem; }
.logo-text { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -1px; }
.logo-text span { color: var(--primary-light); }

.search-bar {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  max-width: 600px;
  box-shadow: var(--shadow-sm);
}
.search-bar .category-select {
  background: var(--gray-200);
  border: none;
  padding: .5rem .75rem;
  font-size: .85rem;
  border-right: 1px solid var(--gray-300);
  color: var(--dark);
  cursor: pointer;
  min-width: 120px;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: .5rem .9rem;
  font-size: .9rem;
  outline: none;
  color: var(--dark);
}
.search-bar .btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .5rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.search-bar .btn-search:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-rfq {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: .45rem 1rem;
  font-size: .85rem;
  transition: var(--transition);
}
.header-actions .btn-rfq:hover { background: #e09900; color: #fff; }

.nav-icon { color: #fff; font-size: 1.25rem; position: relative; }
.nav-icon .badge-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   CATEGORY NAV BAR
══════════════════════════════════════════════════ */
.category-nav {
  background: var(--primary);
  padding: 0;
}
.category-nav .nav-link {
  color: rgba(255,255,255,.9) !important;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.category-nav .nav-link:hover,
.category-nav .nav-link.active { color: #fff !important; background: rgba(0,0,0,.2); }
.category-nav .dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--border-radius); }

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 60%, #0f1e35 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.hero-title span { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-search-wrap { background: #fff; border-radius: 10px; padding: 1.25rem; box-shadow: var(--shadow-lg); }
.hero-search-wrap h6 { font-weight: 700; color: var(--secondary); margin-bottom: .75rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.hero-tag {
  background: var(--gray-100); color: var(--secondary);
  font-size: .78rem; padding: .25rem .65rem;
  border-radius: 20px; cursor: pointer;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}
.hero-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero-stat-item { color: rgba(255,255,255,.85); text-align: center; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-label { font-size: .8rem; opacity: .8; }

/* ══════════════════════════════════════════════════
   SECTION STYLES
══════════════════════════════════════════════════ */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-100); }

.section-header { margin-bottom: 2.5rem; }
.section-badge {
  display: inline-block;
  background: rgba(230,92,0,.1);
  color: var(--primary);
  border: 1px solid rgba(230,92,0,.3);
  font-size: .78rem; font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}
.section-title { font-size: 1.9rem; font-weight: 800; color: var(--secondary); }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--gray-600); font-size: .95rem; margin-top: .4rem; }

/* ══════════════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════════════ */
.category-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.category-card:hover .cat-icon { color: var(--primary); background: rgba(230,92,0,.1); }
.cat-icon {
  width: 60px; height: 60px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 0 auto .75rem;
  transition: var(--transition);
}
.cat-name { font-size: .88rem; font-weight: 700; color: var(--secondary); margin-bottom: .25rem; }
.cat-count { font-size: .78rem; color: var(--gray-600); }


/* ══════════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════════ */
.product-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badges {
  position: absolute; top: .5rem; left: .5rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.badge-featured { background: var(--primary); color: #fff; font-size: .7rem; padding: .2rem .55rem; border-radius: 3px; font-weight: 700; }
.badge-verified { background: var(--success); color: #fff; font-size: .7rem; padding: .2rem .55rem; border-radius: 3px; font-weight: 700; }

.product-fav {
  position: absolute; top: .5rem; right: .5rem;
  background: #fff; border: 1px solid var(--gray-200);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--gray-600);
  cursor: pointer; transition: var(--transition);
}
.product-fav:hover, .product-fav.active { color: var(--danger); border-color: var(--danger); }

.product-body { padding: .9rem; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-size: .9rem; font-weight: 700; color: var(--dark);
  margin-bottom: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-supplier { font-size: .78rem; color: var(--gray-600); margin-bottom: .5rem; }
.product-supplier a { color: var(--secondary); font-weight: 600; }
.product-supplier a:hover { color: var(--primary); }
.product-price { font-size: 1rem; font-weight: 800; color: var(--primary); margin-top: auto; }
.product-price .price-range { font-size: .85rem; }
.product-moq { font-size: .75rem; color: var(--gray-600); margin-top: .2rem; }

.product-footer {
  padding: .6rem .9rem;
  border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--gray-600);
}
.verified-badge { color: var(--success); font-weight: 600; }
.verified-badge i { margin-right: .2rem; }

/* ══════════════════════════════════════════════════
   SUPPLIER CARDS
══════════════════════════════════════════════════ */
.supplier-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: var(--border-radius);
  padding: 1.25rem;
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.supplier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }

.supplier-logo-wrap {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.supplier-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.supplier-logo-placeholder { font-size: 1.5rem; color: var(--gray-600); font-weight: 800; }

.supplier-name { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: .25rem; }
.supplier-name:hover { color: var(--primary); }
.supplier-location { font-size: .8rem; color: var(--gray-600); }
.supplier-type { font-size: .78rem; background: var(--gray-100); color: var(--secondary); padding: .2rem .55rem; border-radius: 20px; font-weight: 600; }

/* Vertical card variant */
.supplier-card-v .supplier-logo-wrap {
  width: 56px; height: 56px; border-radius: 10px;
}
.supplier-name-v {
  font-size: .88rem; font-weight: 700; color: var(--secondary);
  line-height: 1.3;
  display: -webkit-box !important; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.supplier-name-v:hover { color: var(--primary); }

.supplier-stats { display: flex; gap: .6rem; margin-top: .75rem; font-size: .75rem; color: var(--gray-600); border-top: 1px solid var(--gray-200); padding-top: .75rem; flex-wrap: wrap; }
.supp-stat { flex: 1; min-width: 0; }
.supp-stat strong { display: block; color: var(--dark); font-size: .85rem; white-space: nowrap; }

.verified-seal {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(25,135,84,.1); color: var(--success);
  font-size: .75rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 20px;
  border: 1px solid rgba(25,135,84,.3);
}

/* ══════════════════════════════════════════════════
   RFQ SECTION
══════════════════════════════════════════════════ */
.rfq-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1f4e7a 100%);
  border-radius: 12px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rfq-banner::after {
  content: '📋';
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: .1;
}

.rfq-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}
.rfq-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.rfq-title { font-size: .95rem; font-weight: 700; color: var(--secondary); margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rfq-meta { font-size: .8rem; color: var(--gray-600); margin-bottom: .4rem; }
.rfq-quantity { font-size: .85rem; font-weight: 600; color: var(--primary); }
.rfq-quotes { font-size: .78rem; background: var(--gray-100); padding: .2rem .55rem; border-radius: 20px; color: var(--gray-600); }

/* ══════════════════════════════════════════════════
   TRADE ASSURANCE
══════════════════════════════════════════════════ */
.trust-card {
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-card, #fff);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color, var(--gray-200));
  transition: var(--transition);
}
.trust-card:hover { box-shadow: var(--shadow); }
.trust-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  margin: 0 auto 1rem;
}
.trust-title { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: .5rem; }
.trust-desc { font-size: .85rem; color: var(--gray-600); }

/* ══════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════ */
.testimonial-card {
  background: var(--bg-card, #fff);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  border: 1px solid var(--border-color, var(--gray-200));
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem; line-height: 1;
  color: var(--primary); opacity: .15;
  position: absolute; top: .5rem; left: 1rem;
  font-family: Georgia, serif;
}
.testimonial-text { font-size: .9rem; color: var(--gray-600); font-style: italic; margin-bottom: 1rem; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--secondary); }
.testimonial-company { font-size: .78rem; color: var(--gray-600); }

/* ══════════════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════════════ */
.blog-card {
  background: var(--bg-card, #fff);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color, var(--gray-200));
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.blog-category { font-size: .75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.blog-title { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-title:hover { color: var(--primary); }
.blog-excerpt { font-size: .82rem; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.blog-meta { font-size: .78rem; color: var(--gray-600); margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; }

/* ══════════════════════════════════════════════════
   STATS COUNTER BAR
══════════════════════════════════════════════════ */
.stats-bar { background: var(--secondary); padding: 2.5rem 0; }
.stat-item { text-align: center; padding: 0 1rem; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4rem 0;
  color: #fff;
}
.newsletter-section h2 { font-size: 2rem; font-weight: 800; }
.newsletter-section p { opacity: .9; }
.newsletter-form { display: flex; max-width: 480px; margin: 1.5rem auto 0; }
.newsletter-form input {
  flex: 1; border: none; border-radius: 6px 0 0 6px;
  padding: .75rem 1rem; font-size: .9rem; outline: none;
}
.newsletter-form button {
  background: var(--secondary); color: #fff;
  border: none; border-radius: 0 6px 6px 0;
  padding: .75rem 1.5rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.newsletter-form button:hover { background: var(--secondary-dark); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.main-footer { background: #0d1b2a; color: #a0aec0; padding: 3.5rem 0 0; }
.footer-brand .logo-text { font-size: 1.5rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; margin: .75rem 0 1rem; color: #8090a0; }
.footer-heading { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #8090a0; font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: .3rem; }
.social-links { display: flex; gap: .5rem; margin-top: .75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #8090a0; font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
  font-size: .82rem; color: #607080;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}

/* ══════════════════════════════════════════════════
   DASHBOARD LAYOUTS
══════════════════════════════════════════════════ */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; min-width: 260px;
  background: var(--secondary);
  padding: 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 100;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  padding: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-avatar {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
}
.sidebar-user-name { font-weight: 700; color: #fff; font-size: .9rem; }
.sidebar-user-role { font-size: .75rem; color: rgba(255,255,255,.5); }
.sidebar-nav { padding: .75rem 0; }
.sidebar-section { padding: .5rem 1.25rem .25rem; font-size: .72rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .88rem; font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link i { width: 20px; text-align: center; font-size: .95rem; }
.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-left-color: var(--primary);
}
.sidebar-link .badge { margin-left: auto; font-size: .7rem; }

.dashboard-main { flex: 1; padding: 0; overflow: auto; }
.dashboard-topbar {
  background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border-color, var(--gray-200));
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 99;
}
.dashboard-content { padding: 1.75rem; }
.page-title { font-size: 1.4rem; font-weight: 800; color: var(--secondary); margin-bottom: 1.5rem; }
.breadcrumb-custom { font-size: .82rem; color: var(--gray-600); margin-bottom: 1rem; }

/* Dashboard Stat Cards */
.stat-card {
  background: var(--bg-card, #fff);
  border-radius: var(--border-radius);
  padding: 1.4rem;
  border: 1px solid var(--border-color, var(--gray-200));
  transition: var(--transition);
  display: flex; align-items: center; gap: 1rem;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.icon-primary { background: rgba(230,92,0,.12); color: var(--primary); }
.icon-success { background: rgba(25,135,84,.12); color: var(--success); }
.icon-info    { background: rgba(13,202,240,.12); color: var(--info); }
.icon-warning { background: rgba(255,193,7,.12); color: #d99e00; }
.icon-secondary { background: rgba(26,60,94,.12); color: var(--secondary); }
.icon-danger  { background: rgba(220,53,69,.12); color: var(--danger); }
.stat-card-body { flex: 1; }
.stat-card-value { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card-label { font-size: .82rem; color: var(--gray-600); margin-top: .2rem; }
.stat-card-change { font-size: .78rem; font-weight: 600; }
.stat-up { color: var(--success); }
.stat-down { color: var(--danger); }

/* Dashboard Stat Cards — minimal */
.dash-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  border: 1px solid #e9ecef;
  display: flex; align-items: center; gap: .9rem;
}
.dsc-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.dsc-num  { font-size: 1.5rem; font-weight: 700; color: #1a3c5e; line-height: 1.1; }
.dsc-lbl  { font-size: .78rem; color: #6b7280; margin-top: .1rem; }
.dsc-sub  { display: none; }

/* Data Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-100); font-size: .8rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; padding: .75rem 1rem; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: .88rem; vertical-align: middle; }
.data-table tr:hover td { background: rgba(230,92,0,.03); }
.data-table .product-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.status-active    { background: rgba(25,135,84,.12); color: var(--success); }
.status-pending   { background: rgba(255,193,7,.12); color: #9a7500; }
.status-inactive  { background: rgba(108,117,125,.12); color: var(--gray-600); }
.status-suspended { background: rgba(220,53,69,.12); color: var(--danger); }
.status-verified  { background: rgba(25,135,84,.12); color: var(--success); }
.status-rejected  { background: rgba(220,53,69,.12); color: var(--danger); }
.status-open      { background: rgba(13,202,240,.12); color: #0aa0c0; }
.status-closed    { background: rgba(108,117,125,.12); color: var(--gray-600); }

/* Cards */
.card-custom {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, var(--gray-200));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}
.card-custom .card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color, var(--gray-200));
  font-weight: 700; font-size: .95rem; color: var(--secondary);
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
}
.card-custom .card-body { padding: 1.25rem; }

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
.form-label { font-size: .85rem; font-weight: 600; color: var(--secondary); margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: .55rem .9rem;
  font-size: .9rem;
  transition: border-color .2s;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #212529);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,92,0,.15); }
.invalid-feedback { font-size: .8rem; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-primary-custom {
  background: var(--primary); color: #fff;
  border: 2px solid var(--primary);
  padding: .55rem 1.5rem; border-radius: 6px;
  font-weight: 700; font-size: .9rem;
  transition: var(--transition); cursor: pointer;
}
.btn-primary-custom:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-primary-custom {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  padding: .55rem 1.5rem; border-radius: 6px;
  font-weight: 700; font-size: .9rem;
  transition: var(--transition); cursor: pointer;
}
.btn-outline-primary-custom:hover { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════════════ */
.product-gallery-main {
  border-radius: 10px; overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  background: var(--gray-100);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-title-detail { font-size: 1.5rem; font-weight: 800; color: var(--secondary); line-height: 1.3; }
.product-price-detail { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.product-price-note { font-size: .85rem; color: var(--gray-600); }

.spec-table { width: 100%; }
.spec-table tr:nth-child(even) td { background: var(--gray-100); }
.spec-table td { padding: .55rem .75rem; font-size: .88rem; border-bottom: 1px solid var(--gray-200); }
.spec-table td:first-child { font-weight: 600; color: var(--secondary); width: 40%; }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th { background: var(--secondary); color: #fff; padding: .6rem 1rem; font-size: .85rem; text-align: left; }
.pricing-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: .88rem; }
.pricing-table tr:hover td { background: rgba(230,92,0,.05); }
.pricing-table .price-col { font-weight: 700; color: var(--primary); }

.inquiry-form-card {
  background: var(--bg-card, #fff);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 1.5rem;
}
.inquiry-form-card h5 { color: var(--primary); font-weight: 800; margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════
   MESSAGES / CHAT
══════════════════════════════════════════════════ */
.chat-wrapper { display: flex; height: calc(100vh - 200px); background: var(--bg-card, #fff); border-radius: 10px; border: 1px solid var(--gray-200); overflow: hidden; }
.chat-sidebar { width: 300px; border-right: 1px solid var(--gray-200); overflow-y: auto; }
.chat-item { padding: .9rem 1rem; border-bottom: 1px solid var(--gray-200); cursor: pointer; transition: var(--transition); display: flex; gap: .75rem; align-items: center; }
.chat-item:hover, .chat-item.active { background: rgba(230,92,0,.07); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-name { font-weight: 700; font-size: .88rem; color: var(--secondary); }
.chat-preview { font-size: .78rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.chat-time { font-size: .72rem; color: var(--gray-600); white-space: nowrap; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: .75rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--gray-100); }
.msg-bubble { max-width: 65%; }
.msg-bubble.sent { align-self: flex-end; }
.msg-bubble.received { align-self: flex-start; }
.msg-text { padding: .65rem 1rem; border-radius: 18px; font-size: .88rem; line-height: 1.5; }
.msg-bubble.sent .msg-text { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.received .msg-text { background: #fff; color: var(--dark); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.msg-time { font-size: .72rem; color: var(--gray-600); margin-top: .25rem; }
.msg-bubble.sent .msg-time { text-align: right; }
.chat-input { padding: 1rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; align-items: flex-end; background: var(--bg-card, #fff); }
.chat-input textarea { flex: 1; border: 1px solid var(--gray-300); border-radius: 20px; padding: .55rem 1rem; resize: none; font-size: .88rem; outline: none; max-height: 100px; }
.chat-input textarea:focus { border-color: var(--primary); }

/* ══════════════════════════════════════════════════
   ALERTS / FLASH
══════════════════════════════════════════════════ */
.flash-message { animation: slideDown .3s ease; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ══════════════════════════════════════════════════
   SEARCH AUTOCOMPLETE
══════════════════════════════════════════════════ */
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 9999; max-height: 400px; overflow-y: auto;
  display: none;
}
.search-dropdown.show { display: block; }
.search-section-title { padding: .5rem .9rem; font-size: .75rem; color: var(--gray-600); font-weight: 700; text-transform: uppercase; background: var(--gray-100); }
.search-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem; cursor: pointer; transition: var(--transition); font-size: .88rem; }
.search-item:hover { background: rgba(230,92,0,.07); }
.search-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.search-item-icon { width: 36px; height: 36px; background: var(--gray-100); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ══════════════════════════════════════════════════
   DARK MODE TOGGLE
══════════════════════════════════════════════════ */
.dark-toggle { cursor: pointer; font-size: 1.1rem; color: rgba(255,255,255,.7); transition: var(--transition); }
.dark-toggle:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: -260px; height: 100vh; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .dashboard-main { width: 100%; }
  .hero-title { font-size: 1.9rem; }
  .hero-stats { gap: 1rem; }
}

@media (max-width: 767.98px) {
  .topbar .topbar-right { display: none !important; }
  .search-bar .category-select { display: none; }
  .chat-sidebar { width: 100%; }
  .chat-main { display: none; }
  .chat-main.show { display: flex; }
  .section { padding: 2.5rem 0; }
  .hero-section { padding: 2.5rem 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { border-radius: 6px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .hero-stats { flex-wrap: wrap; }
}
