/* ============================================================
   BuradaPazarla – Unified Design System v2.0
   ============================================================ */

:root {
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --success-dark: #047857;
  
  --danger-color: #ef4444;
  --danger-light: #fef2f2;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
  font-family: var(--font-sans); 
  background-color: var(--bg-color); 
  color: var(--text-primary); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

a { color: var(--primary-color); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.page { padding-top: 100px; padding-bottom: 60px; min-height: 80vh; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90%;
  max-width: 420px;
  pointer-events: none;
}
.toast {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: toastSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  border-left: 4px solid transparent;
  font-weight: 500;
}
.toast-success {
  border-left-color: var(--success-color);
  background: var(--success-light);
  color: var(--success-dark);
}
.toast-error {
  border-left-color: var(--danger-color);
  background: var(--danger-light);
  color: #991b1b;
}
.toast-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: var(--transition-fast);
  padding: 0 0 0 1rem;
}
.toast-close:hover { opacity: 1; }

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header & Nav */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}
.nav-row {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  -webkit-background-clip: text; color: transparent;
}
.nav-search-slot {
  flex: 1; max-width: 500px; position: relative; margin: 0 auto;
}
.nav-search-slot input {
  width: 100%; padding: 0.875rem 1.25rem 0.875rem 2.75rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-full);
  background-color: var(--border-light); font-size: 0.95rem; font-family: var(--font-sans);
  transition: var(--transition); outline: none;
}
.nav-search-slot input:focus {
  background-color: var(--surface-color); border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.nav-search-slot::before {
  content: "🔍"; position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; color: var(--text-muted); pointer-events: none;
}
.search-results-head {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  background: var(--surface-color); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border-color);
  overflow: hidden; z-index: 100;
}
.search-item {
  display: block; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
  color: var(--text-primary); transition: var(--transition-fast); text-decoration: none;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background-color: var(--primary-light); padding-left: 1.5rem; }
.search-item small { display: block; color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.25rem; }

.menu-toggle {
  display: none; padding: 0.5rem; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary);
}

/* Hero Section */
.hero {
  text-align: center; padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-2xl); margin-bottom: 4rem;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 1.5rem; letter-spacing: -0.03em; color: var(--text-primary);
}
.hero-rotator {
  display: inline-block; min-width: 5ch; text-align: left;
  color: var(--primary-color); border-bottom: 5px solid var(--primary-light);
  position: relative;
}
.rotator-word {
  position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rotator-word.active {
  position: relative; opacity: 1; transform: translateY(0);
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--text-secondary); max-width: 650px;
  margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600; font-family: var(--font-sans);
  border-radius: var(--radius-full); border: 1px solid transparent;
  transition: var(--transition); cursor: pointer; text-align: center;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--primary-color); color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background-color: var(--primary-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); color: white;
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background-color: white; color: var(--text-primary); border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background-color: var(--border-light); border-color: #cbd5e1; transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

/* Sections */
.section { margin-bottom: 5rem; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem;
}
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); margin-top: 0.75rem; font-size: 1.125rem; }

/* Grid & Cards */
.grid-cards {
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
  gap: 1.25rem;
}
.card {
  background: var(--surface-color); border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: var(--transition); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cbd5e1;
}
.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1.25rem; color: var(--primary-color);
  transition: var(--transition);
}
.card:hover .card-icon {
  background: var(--primary-color); color: white; transform: scale(1.05);
}
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); letter-spacing: -0.01em; }
.card-desc { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.6; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: 0.875rem 1.25rem; font-size: 1rem; font-family: var(--font-sans);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  background: var(--surface-color); transition: var(--transition);
  color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.form-control:focus {
  outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Modal Fixing "Yukarıda Çıkıyor" and Position Issues */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.3s ease-out; }
.modal-content {
  position: relative; background: var(--surface-color); border-radius: var(--radius-2xl);
  width: 100%; max-width: 520px; padding: 2.5rem; box-shadow: var(--shadow-2xl);
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.modal-close {
  background: var(--border-light); border: none; width: 36px; height: 36px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast); color: var(--text-secondary);
  font-size: 1.25rem;
}
.modal-close:hover { background: #e2e8f0; color: var(--text-primary); transform: rotate(90deg); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 0.375rem 0.875rem;
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-full);
}
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalScaleUp { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Footer */
.footer {
  text-align: center; padding: 4rem 1.5rem; color: var(--text-secondary);
  border-top: 1px solid var(--border-color); margin-top: 5rem;
  background-color: var(--surface-color);
}
.footer a {
  color: var(--text-secondary); transition: var(--transition-fast);
}
.footer a:hover { color: var(--primary-color); }

/* Mobile Menu Adjustments */
@media (max-width: 768px) {
  .nav-search-slot { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 2.5rem; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .mobile-menu {
    position: fixed; inset: 0; top: 76px; background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 2rem; z-index: 80; border-top: 1px solid var(--border-color);
    transform: translateY(-20px); opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--border-light); font-weight: 600; color: var(--text-primary); }
  .mobile-search { margin-bottom: 1.5rem; }
  
  /* Fix modal positioning on mobile browsers */
  .modal { align-items: flex-end; padding: 0; }
  .modal-content { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; max-height: 85vh; padding: 2rem 1.5rem; }
  @keyframes modalScaleUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
  
  .desktop-only { display: none !important; }
}

@media (max-width: 480px) {
  .grid-cards { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1rem; }
}

.desktop-only { display: flex; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 4rem; flex-wrap: wrap;
}
.pagination-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 0.75rem;
  background: var(--surface-color); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-weight: 600; font-size: 1rem; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.pagination-item:hover {
  border-color: var(--primary-color); color: var(--primary-color); background: var(--primary-light);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.pagination-item.active {
  background: var(--primary-color); border-color: var(--primary-color); color: white;
}
.pagination-ellipsis { color: var(--text-muted); padding: 0 0.25rem; font-weight: 700; }

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.opacity-70 { opacity: 0.7; }

/* ============================================================
   HERO VARIANTS
   ============================================================ */

/* Category page small hero */
.hero--small {
  padding: 3.5rem 1.5rem 3rem;
  text-align: left;
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 60%, #fff 100%);
  box-shadow: none;
}
.hero--small .hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero--small .hero-text { flex: 1; min-width: 260px; }
.hero--small .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero--small .hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
  max-width: 520px;
}

/* Home hero */
.hero--home {
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  background: linear-gradient(160deg, #e8f0fe 0%, #f8fafc 50%, #fdf4ff 100%);
  border-radius: var(--radius-2xl);
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.hero--home::before {
  content: "";
  position: absolute; top: -40%; left: -30%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero CTA Card */
.hero-cta-card {
  flex-shrink: 0;
  min-width: 240px;
  max-width: 300px;
  padding: 1.75rem 1.5rem;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-cta-card .cta-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.hero-cta-card .cta-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* ============================================================
   BUTTON EXTRAS
   ============================================================ */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  gap: 0.4rem;
}
.btn-pill { border-radius: var(--radius-full); }
.btn-chip {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.btn-hero-cta {
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
  box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}
.btn-hero-cta:hover { box-shadow: 0 10px 30px rgba(37,99,235,0.45); }

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.btn-share-round {
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 40px; height: 40px;
  padding: 0;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.btn-share-round:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: none;
}

.btn-cta-main {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  justify-content: center;
}

/* ============================================================
   BADGES (full set)
   ============================================================ */
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-unverified {
  background: #fef9c3; color: #854d0e;
}
.badge-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}
.badge-pro {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.filter-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-divider {
  width: 1px; height: 28px;
  background: var(--border-color);
}
.result-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.result-count strong { color: var(--text-primary); font-size: 1rem; }

.filter-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.filter-select {
  width: auto;
  min-width: 160px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
}

/* Premium Seller Filter Group */
.seller-filter-group {
  display: flex;
  background: var(--border-light);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}
.seller-filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
}
.seller-filter-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
}
.seller-filter-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.seller-filter-btn .check-icon {
  font-size: 1rem;
  color: var(--success-color);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background-color: #cbd5e1;
  border-radius: var(--radius-full);
  transition: 0.3s;
  cursor: pointer;
}
.slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background-color: var(--primary-color); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ============================================================
   CHIP FILTER BAR (MOQ filters)
   ============================================================ */
.chip-filter-bar {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-title-small {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--border-light);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}
.chip:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* ============================================================
   BUSINESS CARDS (category listing)
   ============================================================ */
.grid-cards { margin-top: 1.5rem; }

.business-card {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: visible;
}
.business-card .card-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.business-card .card-desc {
  font-size: 0.825rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.business-card .badge-row { gap: 0.35rem; }
.business-card .badge { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.business-card .stat-item { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.business-card .action-grid { gap: 0.4rem; }
.business-card .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* Boosted badge */
.boosted-badge {
  position: absolute;
  top: -10px; right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
  text-transform: uppercase;
}
.is-boosted {
  border-color: #fde68a !important;
  box-shadow: 0 0 0 2px rgba(251,191,36,0.2), var(--shadow-md) !important;
}

/* Card header flex (logo + meta) */
.card-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.business-card-logo {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-light);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.business-card-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.business-card-logo.placeholder {
  font-size: 1.75rem;
  color: var(--text-muted);
}
.business-card-meta { flex: 1; min-width: 0; }
.business-card-meta .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.business-card-meta .card-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.business-card-meta .card-title a:hover { color: var(--primary-color); }

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

/* Card stats row */
.card-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--border-light);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}
.stat-item.stat-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Card footer actions */
.card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}
.action-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.action-grid .btn { flex: 1; min-width: 110px; }

/* No results card */
.no-results-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
}
.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results-card h3 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.75rem; color: var(--text-primary);
}
.no-results-card p {
  color: var(--text-secondary); margin-bottom: 1.5rem;
  max-width: 420px; margin-inline: auto;
}

/* ============================================================
   CITY EXPLORER
   ============================================================ */
.city-explorer {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.explorer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}
.explorer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   PAGINATION WRAPPER
   ============================================================ */
.pagination-wrapper { padding-top: 2rem; padding-bottom: 1rem; }

/* ============================================================
   SEO CONTENT SECTION
   ============================================================ */
.seo-bottom-section { margin-top: 3rem; }
.seo-content-card { padding: 2rem 2.5rem; }
.seo-rich-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   BUSINESS PROFILE PAGE
   ============================================================ */
.business-profile-header {
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0 2.5rem;
}
.business-profile-header .header-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.business-logo-wrapper {
  width: 120px; height: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.business-logo-wrapper img {
  width: 100%; height: 100%; object-fit: contain;
}
.business-logo-placeholder {
  width: 120px; height: 120px;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.business-header-info { flex: 1; min-width: 220px; }
.title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.business-name {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Business two-column grid */
.business-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
.business-main-content { display: flex; flex-direction: column; gap: 1.5rem; }
.business-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Content cards */
.content-card { padding: 2rem; }
.description-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}
.pro-seo-card { padding: 2rem; }
.section-title-small {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.pro-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Supplier contact card */
.supplier-contact-card { padding: 1.75rem; }
.card-actions-wrapper { display: flex; flex-direction: column; gap: 0.875rem; }

/* MOQ Box */
.moq-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
}
.moq-label { font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.moq-value { font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }

/* Customer service block */
.customer-service {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: var(--border-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.cs-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.cs-phone { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.cs-phone:hover { color: var(--primary-color); }

/* Add business promo */
.add-business-promo { padding: 1.5rem; text-align: center; }
.add-business-promo h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.add-business-promo p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* ============================================================
   CATEGORY CARD
   ============================================================ */
.category-card { text-decoration: none; color: inherit; }
.category-card:hover { color: inherit; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
  .business-sidebar { order: -1; }
  .hero-cta-card { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero--small { 
    padding: 1rem 1rem 1rem;
    border-radius: 4rem;
  }
  .hero--small .hero-container { flex-direction: column; gap: 1.5rem; }
  .hero--small .hero-title { font-size: 1.65rem; }

  .filter-bar { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
  .filter-right { width: 100%; }
  .filter-select { flex: 1; }
  .filter-left { gap: 0.75rem; }
  .filter-divider { display: none; }

  .chip-filter-bar { flex-direction: column; align-items: flex-start; }

  .business-profile-header .header-container { flex-direction: column; gap: 1.25rem; }
  .business-logo-wrapper, .business-logo-placeholder { width: 80px; height: 80px; }

  .city-explorer { padding: 1.5rem; }
  .seo-content-card { padding: 1.5rem; }

  .action-grid { gap: 0.5rem; }
  .action-grid .btn { min-width: 90px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .business-card { padding: 1.25rem; }
  .business-card-logo { width: 52px; height: 52px; }
  .card-header-flex { gap: 0.75rem; }
  .hero-cta-card { padding: 1.25rem; }
  .moq-box { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
