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

:root {
  --bg: #F7F4EF;
  --dark: #0C0B09;
  --red: #E63C1E;
  --muted: #7A756D;
  --border: #E0DAD1;
  --white: #FFFFFF;
  --card-bg: #EFEAE2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-active { color: var(--dark); font-weight: 500; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn {
  width: 41px; height: 41px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.nav-search-btn:hover { border-color: var(--dark); color: var(--dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #2A2820; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--dark); }

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
}

.btn-red:hover {
  background: #CC3318;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,60,30,0.28);
}

/* ─── BREADCRUMB ────────────────────────────────────── */
.breadcrumb {
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--dark); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ─── SECTION LABEL ─────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
}

/* ─── MARKET SWITCHER ────────────────────────────────── */
.market-switcher-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.market-switcher-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}

.market-switcher-wrap select:hover,
.market-switcher-wrap select:focus {
  border-color: var(--red);
  color: var(--red);
}

.market-caret {
  position: absolute;
  right: 8px;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}

/* ─── PAGE HEADER ───────────────────────────────────── */
.vendors-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--border);
  gap: 40px;
  background: radial-gradient(ellipse at 80% 50%, rgba(230,60,30,0.06) 0%, transparent 60%);
}

.vh-left h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 14px;
}

.vh-left h1 .accent { color: var(--red); }

.vh-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.vh-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  width: 340px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.vendor-search {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.vendor-search::placeholder { color: var(--muted); }
.vendor-search:focus { border-color: var(--dark); }

/* ─── STATS BAR ─────────────────────────────────────── */
.vendors-stats {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.vs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
  flex: 1;
  text-align: center;
}

.vs-item:last-child { border-right: none; }

.vs-num {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark);
}

.vs-num span { color: var(--red); }

.vs-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ─── FILTER BAR ────────────────────────────────────── */
.vendor-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.vf-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vf-chip {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}

.vf-chip:hover { border-color: var(--dark); color: var(--dark); }

.vf-chip.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.vf-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.vf-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.sort-select {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--dark);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
}

/* ─── VENDORS GRID ──────────────────────────────────── */
.vendors-body {
  padding: 48px 48px 64px;
  min-height: 400px;
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── VENDOR CARD ───────────────────────────────────── */
.vendor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.vendor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: transparent;
}

.vc-top {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.vc-avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.sa-1, .sa-2, .sa-3, .sa-4, .sa-5, .sa-6 { background: #EFEAE2; }

.vc-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.badge-top { background: #FEF9C3; color: #A16207; }
.badge-verified { background: #DCFCE7; color: #15803D; }
.badge-new { background: #EDE9FE; color: #6D28D9; }

.vc-body {
  padding: 20px 28px;
  flex: 1;
}

.vc-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

.vc-owner {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.vc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.vc-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.vc-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.vc-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vc-stars { color: #F59E0B; font-size: 12px; letter-spacing: 1px; }
.vc-score { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); }
.vc-reviews { font-size: 11px; color: var(--muted); }

.vc-products {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.vc-products strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.vc-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.vc-browse-btn {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  background: var(--dark);
  color: var(--white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
  text-decoration: none;
  display: block;
}

.vendor-card:hover .vc-browse-btn { background: var(--red); }

.vc-map-btn {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.vc-map-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
  background: var(--card-bg);
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.es-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
}

/* ─── CTA STRIP ─────────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-strip h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.05;
}

.cta-strip h2 .red { color: var(--red); }
.cta-strip h2 .dim { color: rgba(255,255,255,0.25); font-style: italic; font-weight: 300; }

.cta-strip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: right;
  max-width: 220px;
  line-height: 1.6;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 56px 48px 36px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom p span { color: var(--dark); font-weight: 500; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .vendors-grid { grid-template-columns: repeat(2, 1fr); }
  .vendors-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .vh-right { align-items: flex-start; width: 100%; }
  .search-wrap { width: 100%; max-width: 400px; }
}

@media (max-width: 768px) {
  .breadcrumb { padding: 12px 20px; overflow-x: auto; white-space: nowrap; font-size: 12px; }
  .vendors-header { padding: 36px 20px 32px; }
  .search-wrap { max-width: 100%; }
  .vendor-filter-bar {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
  }
  .vf-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; padding-bottom: 2px; }
  .vf-right { width: 100%; justify-content: space-between; }
  .vendors-body { padding: 28px 20px 48px; }
  .vendors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .vendors-stats { flex-wrap: wrap; }
  .vs-item { min-width: 50%; padding: 18px 20px; }
  .cta-strip { grid-template-columns: 1fr; padding: 48px 20px; gap: 28px; }
  .cta-strip-right { align-items: flex-start; }
  .cta-strip-right .btn-red { width: 100%; justify-content: center; }
  .cta-note { text-align: left; max-width: 100%; }
  footer { padding: 40px 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; }
}

@media (max-width: 480px) {
  .vendors-grid { grid-template-columns: 1fr; }
  .vs-item { min-width: 50%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
