:root {
  --navy: #172554;
  --blue: #3157d5;
  --blue-dark: #2645ad;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e9f2;
  --surface: #fff;
  --canvas: #f7f8fc;
  --success: #087a55;
  --shadow: 0 14px 40px rgba(23, 37, 84, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(49, 87, 213, .3); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(23, 37, 84, .97); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: auto; display: grid; grid-template-columns: 1fr minmax(280px, 500px) 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: #fff; border-radius: 10px; }
.brand-mark svg { width: 20px; fill: currentColor; }
.search-box { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16); border-radius: 13px; transition: .2s ease; }
.search-box:focus-within { background: #fff; color: var(--ink); box-shadow: 0 0 0 4px rgba(255,255,255,.14); }
.search-box svg { width: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.search-box input { width: 100%; color: inherit; background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: rgba(255,255,255,.7); }
.search-box:focus-within input::placeholder { color: #98a2b3; }
.search-box kbd { padding: 3px 6px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; font: 11px Inter; white-space: nowrap; }
.search-box:focus-within kbd { display: none; }
.powered-by { justify-self: end; color: rgba(255,255,255,.68); font-size: 12px; }

main { min-height: calc(100vh - 160px); }
.vendor-shell, .catalog-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.vendor-shell { padding: 42px 0 28px; }
.vendor-card { position: relative; overflow: hidden; min-height: 210px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 38px 42px; color: #fff; background: linear-gradient(125deg, #172554 0%, #243a82 58%, #3157d5 100%); border-radius: 26px; box-shadow: 0 22px 60px rgba(23, 37, 84, .2); }
.vendor-card::after { content: ""; position: absolute; right: -65px; top: -120px; width: 330px; height: 330px; border: 70px solid rgba(255,255,255,.055); border-radius: 50%; pointer-events: none; }
.vendor-avatar { position: relative; z-index: 1; width: 86px; height: 86px; display: grid; place-items: center; color: var(--navy); background: linear-gradient(145deg, #fff, #dce5ff); border: 4px solid rgba(255,255,255,.2); border-radius: 23px; font-size: 34px; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.vendor-copy { position: relative; z-index: 1; min-width: 0; }
.verified-label { margin: 0 0 8px; display: flex; align-items: center; gap: 7px; color: #ccd8ff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.verified-label span { display: grid; place-items: center; width: 18px; height: 18px; color: var(--blue); background: #fff; border-radius: 50%; font-size: 11px; }
.vendor-copy h1 { margin: 0; max-width: 700px; font-size: clamp(29px, 4vw, 46px); line-height: 1.08; letter-spacing: -1.6px; overflow-wrap: anywhere; }
.vendor-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: rgba(255,255,255,.76); font-size: 13px; }
.vendor-meta span { display: inline-flex; align-items: center; gap: 7px; }
.vendor-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.vendor-actions { position: relative; z-index: 1; min-width: 155px; display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; text-decoration: none; }
.primary-action { color: var(--navy); background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.primary-action:hover { transform: translateY(-1px); }
.primary-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.trust-note { display: flex; justify-content: center; gap: 6px; color: rgba(255,255,255,.7); font-size: 11px; }
.trust-note span { color: #fbbf24; }

.vendor-skeleton { background: #e9edf5; box-shadow: none; }
.vendor-skeleton::after { display: none; }
.skeleton { display: block; background: linear-gradient(90deg, #dfe4ee 25%, #f5f7fa 50%, #dfe4ee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-avatar { width: 86px; height: 86px; border-radius: 23px; }
.skeleton-copy { width: 55%; display: grid; gap: 15px; }
.skeleton-copy span { height: 24px; border-radius: 7px; }
.skeleton-copy span:last-child { width: 60%; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.catalog-shell { padding-bottom: 70px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 20px 4px 22px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -1px; }
.result-count { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.catalog-toolbar { position: sticky; top: 72px; z-index: 20; margin-bottom: 30px; padding: 7px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 25px rgba(23,37,84,.06); backdrop-filter: blur(12px); }
.tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-width: 82px; padding: 10px 17px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; transition: .18s ease; }
.tab:hover { color: var(--blue); background: #f0f3ff; }
.tab.active { color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(49,87,213,.24); }
.catalog-content { display: grid; gap: 40px; }
.inventory-section { display: grid; gap: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-header > div { display: flex; align-items: baseline; gap: 10px; }
.section-header h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.section-header span { color: #98a2b3; font-size: 12px; }
.text-action { padding: 7px 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; font-size: 13px; font-weight: 700; }
.text-action:hover { color: var(--blue-dark); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card { min-width: 0; overflow: hidden; text-align: left; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 14px rgba(23,37,84,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #d5dcf0; box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f6; }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media.image-missing img { object-fit: cover; }
.type-pill { position: absolute; left: 11px; top: 11px; padding: 5px 8px; color: #344054; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.6); border-radius: 7px; box-shadow: 0 3px 10px rgba(0,0,0,.08); backdrop-filter: blur(6px); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.preview-button { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.9); border: 0; border-radius: 9px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12); opacity: 0; transform: translateY(4px); transition: .2s ease; }
.card:hover .preview-button, .preview-button:focus-visible { opacity: 1; transform: none; }
.preview-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-body { padding: 15px 16px 17px; }
.card h4 { margin: 0; overflow: hidden; color: #172033; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.card-description { height: 38px; margin: 8px 0 14px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-footer { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-footer strong { color: var(--success); font-size: 13px; }
.card-footer span { color: #98a2b3; font-size: 10px; }
.category-card { width: 100%; padding: 0; cursor: pointer; font-family: inherit; }
.category-card .card-media { aspect-ratio: 16 / 10; }
.category-card .card-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.explore-label { display: flex; align-items: center; gap: 4px; color: var(--blue) !important; font-size: 11px !important; font-weight: 700; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: -18px; color: #98a2b3; font-size: 12px; }
.breadcrumb button { padding: 3px 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; }
.breadcrumb button:disabled { color: var(--muted); cursor: default; }
.status-card, .empty-state { min-height: 210px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 35px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.status-card[hidden] { display: none; }
.status-card strong { display: block; margin-bottom: 5px; font-size: 15px; }
.status-card p, .empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.loader { width: 24px; height: 24px; border: 3px solid #dce3f5; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state > span { width: 32px; height: 32px; display: grid; place-items: center; color: #b42318; background: #fee4e2; border-radius: 50%; font-weight: 800; }
.empty-state { min-height: 280px; flex-direction: column; gap: 9px; text-align: center; }
.empty-state > span { width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue); background: #eef2ff; border-radius: 15px; font-size: 27px; }
.empty-state h3 { margin: 7px 0 0; font-size: 17px; }
.secondary-action { margin-top: 10px; color: var(--blue); background: #eef2ff; }

.image-modal { width: min(1000px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: visible; background: transparent; border: 0; }
.image-modal::backdrop { background: rgba(8, 13, 27, .9); backdrop-filter: blur(8px); }
.image-modal img { width: 100%; max-height: calc(100vh - 50px); display: block; object-fit: contain; border-radius: 16px; }
.modal-close { position: fixed; top: 18px; right: 20px; width: 42px; height: 42px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; cursor: pointer; font-size: 28px; line-height: 1; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 28px 0 38px; display: flex; justify-content: space-between; gap: 20px; color: #98a2b3; border-top: 1px solid var(--line); font-size: 12px; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 800; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .powered-by { display: none; }
  .vendor-card { grid-template-columns: auto 1fr; padding: 32px; }
  .vendor-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .primary-action { min-width: 160px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner, .vendor-shell, .catalog-shell, .site-footer { width: min(100% - 28px, 1180px); }
  .site-header { position: relative; }
  .header-inner { min-height: auto; grid-template-columns: 1fr; gap: 13px; padding: 14px 0; }
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .search-box { height: 43px; }
  .search-box kbd { display: none; }
  .vendor-shell { padding: 18px 0 20px; }
  .vendor-card { min-height: 0; grid-template-columns: 58px 1fr; gap: 15px; padding: 22px 20px; border-radius: 20px; }
  .vendor-avatar { width: 58px; height: 58px; border-radius: 17px; font-size: 24px; }
  .verified-label { margin-bottom: 5px; font-size: 10px; }
  .verified-label span { width: 15px; height: 15px; font-size: 9px; }
  .vendor-copy h1 { font-size: 25px; letter-spacing: -.8px; }
  .vendor-meta { margin-top: 12px; gap: 8px; font-size: 11px; }
  .vendor-meta span { width: 100%; }
  .vendor-actions { gap: 12px; }
  .primary-action { width: 100%; min-width: 0; }
  .trust-note { display: none; }
  .catalog-heading { padding-top: 10px; }
  .catalog-heading h2 { font-size: 25px; }
  .result-count { display: none; }
  .catalog-toolbar { position: sticky; top: 0; margin-inline: -14px; margin-bottom: 24px; border-left: 0; border-right: 0; border-radius: 0; }
  .tabs { padding-inline: 7px; }
  .tab { min-width: 72px; padding-inline: 14px; }
  .catalog-content { gap: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card { border-radius: 14px; }
  .card-body { padding: 12px; }
  .card h4 { font-size: 13px; }
  .card-description { height: 34px; margin: 6px 0 10px; font-size: 11px; line-height: 1.5; }
  .card-footer { display: block; }
  .card-footer strong { display: block; font-size: 11px; }
  .card-footer span { display: block; margin-top: 3px; }
  .type-pill { left: 8px; top: 8px; padding: 4px 6px; font-size: 8px; }
  .preview-button { display: none; }
  .section-header h3 { font-size: 17px; }
  .section-header span { display: none; }
  .status-card { min-height: 180px; padding: 25px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 370px) {
  .grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
