/* =============================================
   BaBeJar - Marketplace CSS
   Fresh Green + Warm Cream Aesthetic
   Font: Plus Jakarta Sans + Nunito
   ============================================= */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --cream: #fefce8;
  --cream-2: #fdf8ee;
  --warm-gray: #f9f7f4;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-green: 0 4px 20px rgba(22,163,74,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --nav-h: 64px;
  --bottom-nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-gray);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: var(--bottom-nav-h);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-main);
}
.logo-icon { font-size: 24px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.5px;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--warm-gray);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 4px 0 16px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
  background: var(--white);
}
.nav-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 10px 0;
  color: var(--text-primary);
}
.search-btn {
  width: 36px; height: 36px;
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--green-700); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.nav-icon-btn:hover { background: var(--green-50); color: var(--green-700); }
.nav-icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--red-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-avatar-wrap { position: relative; }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-300, #86efac);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green-700);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-avatar:hover { border-color: var(--green-500); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
}
.nav-dropdown.open { display: block; }
.dropdown-header {
  padding: 12px 16px;
  background: var(--green-50);
  border-bottom: 1px solid var(--border);
}
.dropdown-header strong { display: block; font-size: 14px; }
.dropdown-header small { color: var(--text-muted); font-size: 12px; }
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s;
}
.nav-dropdown a:hover { background: var(--green-50); }
.nav-dropdown .text-danger { color: var(--red-500); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.mobile-search {
  display: none;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border-soft);
}
.mobile-search form {
  display: flex;
  align-items: center;
  background: var(--warm-gray);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 4px 0 14px;
}
.mobile-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 9px 0;
}
.mobile-search button {
  width: 34px; height: 34px;
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { padding: 8px 0 16px; }
.mobile-menu nav a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.15s;
}
.mobile-menu nav a:hover { background: var(--green-50); color: var(--green-700); }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  display: none;
  align-items: center;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--green-600); }
.bottom-nav a:hover { color: var(--green-600); }
.bottom-nav a.sell-btn {
  background: var(--green-600);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  flex: 0;
  margin: 0 12px;
  padding: 0;
  display: flex;
  box-shadow: var(--shadow-green);
}
.bottom-nav a.sell-btn svg { width: 26px; height: 26px; }
.bottom-nav a.sell-btn:hover { background: var(--green-700); }

/* ===== FLASH ===== */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: var(--shadow);
  animation: slideDown 0.3s ease;
  max-width: 90vw;
}
.flash-success { background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-200); }
.flash-error { background: var(--red-100); color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: var(--blue-100); color: #1e40af; border: 1px solid #bfdbfe; }
.flash button { background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 16px; }
@keyframes slideDown { from { opacity:0; transform: translateX(-50%) translateY(-10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); box-shadow: var(--shadow-green); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--warm-gray); color: var(--text-primary); }
.btn-outline-green {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-outline-green:hover { background: var(--green-50); }
.btn-danger { background: var(--red-500); color: white; border-color: var(--red-500); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 16px; }

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--warm-gray);
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.product-img .wish-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.product-img .wish-btn:hover { background: white; transform: scale(1.1); }
.product-img .wish-btn.active svg { fill: #ef4444; stroke: #ef4444; }

.product-body { padding: 12px; }
.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-700);
  font-family: var(--font-main);
  margin-bottom: 6px;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.kondisi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.kondisi-baru { background: var(--green-100); color: var(--green-800); }
.kondisi-sangat_baik { background: var(--blue-100); color: #1e40af; }
.kondisi-baik { background: var(--orange-100); color: #9a3412; }
.kondisi-cukup { background: #f3f4f6; color: var(--text-secondary); }
.product-location {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== BADGE ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--green-100);
  color: var(--green-800);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red-500); margin-top: 5px; }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 60%, var(--green-400) 100%);
  color: white;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.hero-label {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--green-200); }
.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn {
  background: white;
  color: var(--green-700);
  font-size: 15px;
}
.hero-actions .btn:hover { background: var(--green-50); }
.hero-actions .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}
.hero-stat { text-align: left; }
.hero-stat strong {
  display: block;
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 800;
}
.hero-stat span { font-size: 12px; opacity: 0.8; }

/* ===== CATEGORY CHIPS ===== */
.cat-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}
.cat-chip:hover, .cat-chip.active {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
  box-shadow: var(--shadow-green);
}
.cat-chip span:first-child { font-size: 18px; }

/* ===== SECTION ===== */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.section-title span { color: var(--green-600); }
.section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-600);
}
.section-link:hover { text-decoration: underline; }

/* ===== SELLER CARD ===== */
.seller-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.seller-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.seller-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--green-700);
  overflow: hidden;
  border: 3px solid var(--green-100);
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; font-size: 14px; }
.seller-school { font-size: 12px; color: var(--text-muted); }
.rating-stars { font-size: 12px; color: #f59e0b; font-weight: 700; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--green-700);
  background: var(--green-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ===== LOGIN / REGISTER PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--cream) 100%);
  padding: 24px 16px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon { font-size: 40px; }
.auth-logo h1 {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
  color: var(--green-700);
}
.auth-logo p { color: var(--text-muted); font-size: 14px; }
.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-alt a { color: var(--green-600); font-weight: 700; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-gray);
  border: 1px solid var(--border);
}
.product-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-700);
  font-family: var(--font-main);
}
.detail-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.detail-actions { display: flex; gap: 12px; }

/* ===== SELL PAGE ===== */
.sell-page { max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.sell-page h1 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* Photo Upload */
.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-upload:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}
.photo-upload input { display: none; }
.photo-upload .upload-icon { font-size: 40px; margin-bottom: 8px; }
.photo-upload p { font-size: 14px; color: var(--text-muted); }
.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.photo-preview img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badges .badge-pill { background: rgba(255,255,255,0.1); color: white; }
.footer-links h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  font-size: 15px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FAB ===== */
.fab-sell {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green-600);
  color: white;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-weight: 700;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-green), var(--shadow);
  z-index: 999;
  transition: all 0.2s;
}
.fab-sell:hover { background: var(--green-700); transform: translateY(-2px); }

/* ===== STARS ===== */
.stars { color: #f59e0b; }
.star-empty { color: var(--border); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 20px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--green-500); color: var(--green-700); }
.pagination span.active {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.tab.active { color: var(--green-700); border-color: var(--green-600); }
.tab:hover { color: var(--text-primary); }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-green { color: var(--green-700); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.align-center { align-items: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  body { padding-bottom: var(--bottom-nav-h); }

  .navbar { height: auto; }
  .nav-inner { height: 56px; }
  .nav-search { display: none; }
  .mobile-search { display: block; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .bottom-nav { display: flex; }
  .fab-sell { display: none; }

  .hero { padding: 32px 0 28px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 20px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .auth-card { padding: 28px 20px; }

  .detail-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-chip { padding: 7px 12px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}
