/* ============================================================
   GOODCHOICE MARKETPLACE - Styles CSS
   Couleurs: Vert #00CC00, Jaune #FFD700, Rouge #CC0000
   ============================================================ */

:root {
  --gc-green: #00BB00;
  --gc-green-dark: #008800;
  --gc-green-light: #33DD33;
  --gc-yellow: #FFD700;
  --gc-yellow-dark: #E5C200;
  --gc-red: #CC0000;
  --gc-red-dark: #AA0000;
  --gc-white: #FFFFFF;
  --gc-gray: #F5F5F5;
  --gc-dark: #1A1A1A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: var(--gc-gray);
  color: var(--gc-dark);
  line-height: 1.6;
}

/* ---- SPINNER ---- */
.gc-spinner {
  width: 48px; height: 48px;
  border: 5px solid var(--gc-yellow);
  border-top-color: var(--gc-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gc-green); border-radius: 4px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.navbar {
  background: linear-gradient(135deg, var(--gc-green-dark) 0%, var(--gc-green) 100%);
  box-shadow: var(--shadow-md);
  position: sticky; top: 0; z-index: 1000;
}

.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 16px; height: 64px; gap: 16px;
}

.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.navbar-logo img {
  height: 48px; width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}

.navbar-logo-text span:first-child {
  font-size: 18px; font-weight: 900;
  color: var(--gc-yellow); letter-spacing: 1px;
}

.navbar-logo-text span:last-child {
  font-size: 10px; color: rgba(255,255,255,0.9);
  letter-spacing: 2px; text-transform: uppercase;
}

.search-bar {
  flex: 1; max-width: 500px;
  display: flex; background: white;
  border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  flex: 1; padding: 10px 18px;
  border: none; outline: none;
  font-size: 14px;
}

.search-bar button {
  background: var(--gc-yellow);
  border: none; padding: 10px 18px;
  cursor: pointer; color: var(--gc-dark);
  font-weight: bold; transition: var(--transition);
}

.search-bar button:hover { background: var(--gc-yellow-dark); }

.navbar-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}

.navbar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}

.navbar-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: white;
}

.navbar-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.navbar-btn-yellow {
  background: var(--gc-yellow);
  color: var(--gc-dark);
}

.navbar-btn-yellow:hover { background: var(--gc-yellow-dark); transform: translateY(-1px); }

.cart-icon {
  position: relative;
  color: white; font-size: 22px;
  cursor: pointer; padding: 4px 8px;
}

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--gc-red); color: white;
  font-size: 10px; font-weight: bold;
  width: 18px; height: 18px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px; padding: 6px 14px;
  cursor: pointer; color: white; transition: var(--transition);
}

.user-menu-btn:hover { background: rgba(255,255,255,0.25); }

.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: white; border-radius: 12px;
  box-shadow: var(--shadow-lg); min-width: 200px;
  overflow: hidden; display: none; z-index: 999;
}

.user-dropdown.active { display: block; }

.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; text-decoration: none;
  color: var(--gc-dark); font-size: 14px;
  background: none; border: none; width: 100%;
  cursor: pointer; transition: var(--transition);
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background: #f0fdf0; color: var(--gc-green);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  color: white; font-size: 24px;
  cursor: pointer; padding: 4px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--gc-green-dark) 0%, var(--gc-green) 40%, var(--gc-yellow) 100%);
  padding: 60px 16px;
  text-align: center; color: white;
}

.hero-content { max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero h1 .yellow { color: var(--gc-yellow); }

.hero p {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.95; margin-bottom: 32px;
}

.hero-search {
  display: flex; max-width: 580px; margin: 0 auto 24px;
  background: white; border-radius: 50px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1; padding: 14px 24px;
  border: none; outline: none;
  font-size: 15px; color: var(--gc-dark);
}

.hero-search button {
  padding: 14px 28px;
  background: var(--gc-yellow);
  border: none; cursor: pointer;
  font-weight: 700; font-size: 15px;
  color: var(--gc-dark); transition: var(--transition);
}

.hero-search button:hover { background: var(--gc-yellow-dark); }

.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--gc-yellow); }
.hero-stat span { font-size: 12px; opacity: 0.9; }

/* ============================================================
   CATEGORIES BAR
   ============================================================ */
.categories-bar {
  background: white; 
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.categories-bar::-webkit-scrollbar { height: 3px; }

.categories-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; padding: 0 16px; gap: 4px;
}

.cat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 16px; cursor: pointer;
  min-width: 90px; transition: var(--transition);
  border-bottom: 3px solid transparent;
  text-decoration: none; color: var(--gc-dark);
  white-space: nowrap;
}

.cat-item:hover, .cat-item.active {
  border-bottom-color: var(--gc-green);
  color: var(--gc-green);
}

.cat-item i { font-size: 20px; margin-bottom: 4px; }
.cat-item span { font-size: 11px; font-weight: 500; }

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

.section-title {
  font-size: 22px; font-weight: 800;
  color: var(--gc-dark);
  display: flex; align-items: center; gap: 10px;
}

.section-title::before {
  content: '';
  display: block; width: 5px; height: 24px;
  background: var(--gc-green);
  border-radius: 3px;
}

.see-all {
  color: var(--gc-green); font-weight: 600;
  font-size: 14px; text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}

.see-all:hover { color: var(--gc-green-dark); gap: 8px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: white; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative; overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1;
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; transition: var(--transition);
}

.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gc-red); color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}

.product-badge.new { background: var(--gc-green); }
.product-badge.featured { background: var(--gc-yellow); color: var(--gc-dark); }

.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.product-card-shop {
  font-size: 11px; color: #888;
  margin-bottom: 4px; font-weight: 500;
}

.product-card-name {
  font-size: 14px; font-weight: 700;
  color: var(--gc-dark); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.product-card-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #888; margin-bottom: 8px;
}

.stars { color: var(--gc-yellow); }

.product-card-price {
  margin-top: auto;
}

.price-main {
  font-size: 17px; font-weight: 900;
  color: var(--gc-green);
}

.price-original {
  font-size: 12px; color: #aaa;
  text-decoration: line-through; margin-left: 6px;
}

.btn-add-cart {
  width: 100%; margin-top: 10px;
  background: var(--gc-green);
  color: white; border: none;
  padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.btn-add-cart:hover { background: var(--gc-green-dark); transform: translateY(-1px); }

/* ============================================================
   BANNER ADS
   ============================================================ */
.banner-section {
  background: linear-gradient(90deg, var(--gc-green) 0%, var(--gc-green-dark) 100%);
  border-radius: var(--border-radius);
  padding: 32px 40px; color: white;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 32px;
}

.banner-section h2 { font-size: 24px; font-weight: 900; }
.banner-section p { opacity: 0.9; margin-top: 4px; }

.btn-banner {
  background: var(--gc-yellow); color: var(--gc-dark);
  padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: var(--transition); border: none; cursor: pointer;
}

.btn-banner:hover { background: var(--gc-yellow-dark); transform: translateY(-2px); }

/* ============================================================
   SHOP CARDS
   ============================================================ */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.shop-card {
  background: white; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); cursor: pointer;
}

.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.shop-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--gc-green), var(--gc-yellow));
  position: relative;
}

.shop-avatar {
  position: absolute; bottom: -24px; left: 16px;
  width: 56px; height: 56px; border-radius: 12px;
  background: white; border: 3px solid white;
  overflow: hidden; box-shadow: var(--shadow-sm);
}

.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }

.shop-card-body { padding: 16px 16px 16px; padding-top: 36px; }

.shop-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.shop-info { display: flex; gap: 12px; font-size: 12px; color: #888; }

.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0fdf4; color: var(--gc-green);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  margin-top: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { 
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none; text-decoration: none;
}

.btn-green { background: var(--gc-green); color: white; }
.btn-green:hover { background: var(--gc-green-dark); transform: translateY(-1px); }

.btn-yellow { background: var(--gc-yellow); color: var(--gc-dark); }
.btn-yellow:hover { background: var(--gc-yellow-dark); transform: translateY(-1px); }

.btn-red { background: var(--gc-red); color: white; }
.btn-red:hover { background: var(--gc-red-dark); transform: translateY(-1px); }

.btn-outline-green {
  background: transparent; color: var(--gc-green);
  border: 2px solid var(--gc-green);
}
.btn-outline-green:hover { background: var(--gc-green); color: white; }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   FORMS / AUTH MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000; display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: white; border-radius: 20px;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 24px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}

.modal-title {
  font-size: 20px; font-weight: 800;
  color: var(--gc-dark);
}

.modal-close {
  background: #f5f5f5; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 18px; color: #888;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gc-red); color: white; }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #444; margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%; padding: 12px 16px;
  border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; outline: none; transition: var(--transition);
  background: white; color: var(--gc-dark);
}

.form-input:focus, .form-select:focus {
  border-color: var(--gc-green);
  box-shadow: 0 0 0 3px rgba(0, 187, 0, 0.1);
}

.form-error { color: var(--gc-red); font-size: 12px; margin-top: 4px; }
.form-success { color: var(--gc-green); font-size: 12px; margin-top: 4px; }

.divider {
  text-align: center; margin: 16px 0;
  position: relative; color: #aaa; font-size: 13px;
}

.divider::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px; background: #e5e7eb;
  z-index: 0;
}

.divider span {
  background: white; padding: 0 12px;
  position: relative; z-index: 1;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: flex; min-height: calc(100vh - 64px);
}

.sidebar {
  width: 260px; min-width: 260px;
  background: white; border-right: 1px solid #e5e7eb;
  padding: 20px 0;
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}

.sidebar-logo img { height: 40px; }
.sidebar-logo span { font-weight: 800; color: var(--gc-green); font-size: 15px; }

.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: #555;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: var(--transition); border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--gc-green);
  background: #f0fdf0;
  border-left-color: var(--gc-green);
}

.sidebar-nav a i { width: 20px; text-align: center; font-size: 16px; }

.sidebar-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: #aaa; padding: 12px 20px 4px; letter-spacing: 1px;
}

.dashboard-content {
  flex: 1; padding: 24px;
  background: var(--gc-gray);
  overflow-y: auto;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}

.stat-card {
  background: white; border-radius: var(--border-radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.stat-icon.green { background: #f0fdf0; color: var(--gc-green); }
.stat-icon.yellow { background: #fffbeb; color: var(--gc-yellow-dark); }
.stat-icon.red { background: #fef2f2; color: var(--gc-red); }
.stat-icon.blue { background: #eff6ff; color: #3b82f6; }

.stat-info { flex: 1; }
.stat-value { font-size: 24px; font-weight: 900; color: var(--gc-dark); }
.stat-label { font-size: 12px; color: #888; margin-top: 2px; }
.stat-change { font-size: 12px; color: var(--gc-green); margin-top: 4px; }

/* Tables */
.data-table {
  background: white; border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.data-table-header {
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}

.data-table table {
  width: 100%; border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 700;
  color: #888; text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.data-table td {
  padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid #f9f9f9;
  color: var(--gc-dark);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f9fff9; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}

.status-pending { background: #fffbeb; color: #d97706; }
.status-active, .status-confirmed, .status-paid, .status-delivered { background: #f0fdf4; color: #16a34a; }
.status-cancelled, .status-failed, .status-rejected { background: #fef2f2; color: var(--gc-red); }
.status-processing, .status-in_transit, .status-shipped { background: #eff6ff; color: #2563eb; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: white; border-radius: var(--border-radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}

.product-images { position: relative; }

.main-image {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 12px;
}

.thumbnails {
  display: flex; gap: 8px; margin-top: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 60px; height: 60px;
  object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}

.thumb.active, .thumb:hover { border-color: var(--gc-green); }

.product-info h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }

.product-price-big { font-size: 32px; font-weight: 900; color: var(--gc-green); }

.quantity-selector {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}

.qty-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 2px solid var(--gc-green); background: white;
  color: var(--gc-green); font-size: 18px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover { background: var(--gc-green); color: white; }
.qty-input { width: 60px; text-align: center; font-size: 18px; font-weight: 700; border: 2px solid #e5e7eb; border-radius: 8px; padding: 6px; }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 380px; background: white;
  box-shadow: var(--shadow-lg); z-index: 8000;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: var(--transition);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}

.cart-body { flex: 1; overflow-y: auto; padding: 16px; }

.cart-footer {
  padding: 20px; border-top: 1px solid #f0f0f0;
  background: white;
}

.cart-item {
  display: flex; gap: 12px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid #f5f5f5;
}

.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

.cart-total {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 800; margin-bottom: 16px;
}

/* ============================================================
   PAYMENT PAGE
   ============================================================ */
.payment-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}

.payment-method-card {
  border: 2px solid #e5e7eb; border-radius: 12px;
  padding: 16px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 12px;
}

.payment-method-card.selected {
  border-color: var(--gc-green);
  background: #f0fdf0;
}

.payment-method-card:hover { border-color: var(--gc-green); }

.payment-logo {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; text-align: center;
}

.orange-money { background: #FF6600; color: white; }
.mtn-momo { background: var(--gc-yellow); color: var(--gc-dark); }

/* ============================================================
   VENDOR DASHBOARD
   ============================================================ */
.plan-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.plan-card {
  background: white; border-radius: 20px;
  padding: 28px; text-align: center;
  box-shadow: var(--shadow-sm); border: 2px solid #e5e7eb;
  transition: var(--transition); position: relative;
}

.plan-card:hover { transform: translateY(-4px); border-color: var(--gc-green); }
.plan-card.popular { border-color: var(--gc-yellow); }

.plan-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gc-yellow); color: var(--gc-dark);
  padding: 4px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

.plan-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 900; color: var(--gc-green); }
.plan-period { font-size: 14px; color: #888; }
.plan-limit { font-size: 14px; color: #555; margin: 16px 0; font-weight: 600; }

.plan-features { text-align: left; margin: 16px 0; }
.plan-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #555; margin-bottom: 8px;
}
.plan-feature i { color: var(--gc-green); }

/* ============================================================
   AFFILIATE
   ============================================================ */
.ref-link-box {
  background: linear-gradient(135deg, #f0fdf0, #fffbeb);
  border: 2px solid var(--gc-green); border-radius: 12px;
  padding: 20px;
}

.ref-link-text {
  font-family: monospace; font-size: 14px;
  background: white; padding: 10px 14px;
  border-radius: 8px; border: 1px solid #e5e7eb;
  word-break: break-all;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gc-dark); color: white;
  padding: 48px 16px 24px;
}

.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}

.footer-brand img { height: 56px; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; }

.footer-contact { margin-top: 16px; }
.footer-contact a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 14px; margin-bottom: 8px;
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--gc-yellow); }

.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--gc-yellow); }
.footer-col a {
  display: block; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 14px;
  margin-bottom: 8px; transition: var(--transition);
}
.footer-col a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 13px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none;
  transition: var(--transition);
}
.social-link:hover { background: var(--gc-green); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99999; display: flex; flex-direction: column; gap: 8px;
}

.toast {
  background: white; border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left-color: var(--gc-green); }
.toast.error { border-left-color: var(--gc-red); }
.toast.info { border-left-color: #3b82f6; }
.toast.warning { border-left-color: var(--gc-yellow-dark); }

.toast-icon { font-size: 20px; }
.toast.success .toast-icon { color: var(--gc-green); }
.toast.error .toast-icon { color: var(--gc-red); }
.toast.info .toast-icon { color: #3b82f6; }
.toast.warning .toast-icon { color: var(--gc-yellow-dark); }

.toast-text { flex: 1; font-size: 14px; font-weight: 500; }
.toast-close { cursor: pointer; color: #aaa; font-size: 18px; padding: 0 4px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #888; padding: 12px 0;
}

.breadcrumb a { color: var(--gc-green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; color: #ccc; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 32px;
}

.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: white;
  cursor: pointer; font-size: 14px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.page-btn:hover, .page-btn.active {
  background: var(--gc-green); color: white; border-color: var(--gc-green);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px;
}

.empty-state i { font-size: 64px; color: #ddd; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: #888; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: #aaa; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 99998;
}

.loading-overlay.hidden { display: none; }

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

@media (max-width: 768px) {
  .navbar-logo-text { display: none; }
  .search-bar { display: none; }
  .mobile-menu-btn { display: block; }
  .navbar-btn span { display: none; }
  
  .hero { padding: 40px 16px; }
  .hero-search { flex-direction: column; border-radius: 12px; }
  .hero-search input { border-radius: 10px 10px 0 0; }
  .hero-search button { border-radius: 0 0 10px 10px; }
  .hero-stats { gap: 20px; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shops-grid { grid-template-columns: 1fr 1fr; }
  
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; min-width: 100%; height: auto; position: relative; top: 0; }
  .sidebar-nav { display: flex; overflow-x: auto; padding: 0 12px; }
  .sidebar-nav a { min-width: fit-content; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-nav a.active, .sidebar-nav a:hover { border-left: none; border-bottom-color: var(--gc-green); }
  .sidebar-section { display: none; }
  
  .product-detail { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .cart-sidebar { width: 100%; }
  
  .data-table { overflow-x: auto; display: block; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.page-section { padding: 32px 0; }
.card { background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.text-green { color: var(--gc-green); }
.text-yellow { color: var(--gc-yellow-dark); }
.text-red { color: var(--gc-red); }
.bg-green { background: var(--gc-green); }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.rounded { border-radius: 8px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.cursor-pointer { cursor: pointer; }

/* Green gradient text */
.text-gc-gradient {
  background: linear-gradient(135deg, var(--gc-green), var(--gc-yellow-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
