* { box-sizing: border-box; }
body.vendors-page { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: "Cairo",Tahoma,Arial,sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.vendors-shell { width: min(1120px,calc(100% - 36px)); margin-inline: auto; }
.vendors-header { position: sticky; top: 0; z-index: 200; isolation: isolate; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 2; }
.vendors-brand { display: flex; align-items: center; gap: 9px; position: relative; z-index: 3; color: var(--brand); text-decoration: none; font-size: 1.2rem; pointer-events: auto; }
.vendors-brand .brand-logo { width: 35px; height: 35px; border-radius: 11px; }
.header-inner nav { display: flex; align-items: center; gap: 5px; position: relative; z-index: 3; pointer-events: auto; }
.header-inner nav a { position: relative; z-index: 3; border-radius: 10px; padding: 8px 12px; color: var(--muted); background: transparent; text-decoration: none; font-size: .78rem; font-weight: 700; cursor: pointer; pointer-events: auto; transition: color .18s var(--ease), background .18s var(--ease); }
.header-inner nav a:hover,.header-inner nav a.active { color: var(--accent); background: var(--accent-soft); }
.header-inner nav .register-link { color: #fff; background: var(--accent); }
.vendors-hero { text-align: center; padding: 64px 0 56px; border-bottom: 1px solid #f4d3e2; background: radial-gradient(circle at 20% 10%,rgba(244,114,182,.18),transparent 27%),linear-gradient(135deg,#fff9fc,#fff0f7); }
.vendors-hero span,.vendors-heading span { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.vendors-hero h1 { margin: 8px 0; color: var(--brand-2); font-size: clamp(1.9rem,4vw,3.1rem); letter-spacing: -.03em; }
.vendors-hero p { max-width: 650px; margin: 0 auto 22px; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.vendor-search { width: min(520px,100%); height: 50px; display: grid; grid-template-columns: 1fr 50px; margin-inline: auto; overflow: hidden; border: 1px solid #ecb6ce; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.vendor-search input { min-width: 0; border: 0; outline: 0; padding: 0 15px; font: inherit; }
.vendor-search b { display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 1.2rem; }
.vendors-content { padding-block: 45px 70px; }
.vendors-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.vendors-heading h2 { margin: 4px 0 0; color: var(--brand); font-size: 1.4rem; }
.vendors-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.vendors-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.vendor-directory-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 14px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow); transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease); }
.vendor-directory-card:hover { transform: translateY(-4px); border-color: #ec9ec1; box-shadow: 0 18px 36px rgba(131,24,67,.12); }
.vendor-logo { width: 68px; height: 68px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; color: var(--accent); background: var(--accent-soft); font-size: 1.5rem; font-weight: 800; }
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.vendor-copy { min-width: 0; }
.vendor-copy h3 { margin: 0; color: var(--brand); font-size: 1.02rem; }
.verified { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; color: #15803d; font-size: .7rem; font-weight: 800; }
.vendor-copy p { min-height: 36px; margin: 8px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.vendor-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.vendor-meta span { color: var(--muted); font-size: .7rem; }
.vendor-meta a { border-radius: 10px; padding: 8px 12px; color: #fff; background: var(--accent); text-decoration: none; font-size: .72rem; font-weight: 800; transition: background .18s var(--ease), transform .18s var(--ease); }
.vendor-meta a:hover { background: var(--accent-hover); transform: translateY(-1px); }
.vendor-skeleton { height: 150px; display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.vendor-skeleton i,.vendor-skeleton b,.vendor-skeleton span { display: block; border-radius: 12px; background: linear-gradient(90deg,#fae9f1,#fff7fa,#fae9f1); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.vendor-skeleton i { grid-row: span 2; }
.vendor-skeleton span { height: 12px; }
@keyframes shimmer { to { background-position:-200% 0; } }
.vendors-empty { display: none; min-height: 260px; place-items: center; align-content: center; text-align: center; border: 1px dashed #ebb5cd; border-radius: 18px; background: var(--accent-soft); }
.vendors-empty.show { display: grid; }
.vendors-empty > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--accent); }
.vendors-empty h2 { margin: 10px 0 2px; color: var(--brand); font-size: 1rem; }
.vendors-empty p { margin: 0; color: var(--muted); font-size: .78rem; }
.vendors-footer { min-height: 56px; display: flex; align-items: center; color: #eebbd2; background: var(--brand-2); font-size: .74rem; }
@media (max-width:800px) { .vendors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) {
  .vendors-shell { width: min(100% - 24px,1120px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 10px; }
  .header-inner nav { width: 100%; overflow-x: auto; }
  .header-inner nav a { flex: 0 0 auto; }
  .vendors-hero { padding: 38px 0; }
  .vendors-grid { grid-template-columns: 1fr; }
  .vendors-heading { align-items: flex-start; flex-direction: column; }
}
