/* ==============================================================
   bazaar.css - Bazaar discovery page (Infinite Atom 3.0)
   Premium marketplace look: aurora hero, refined toolbar,
   vendor card grid, brochure sections.
   Every selector used by assets/pages/bazaar.js is preserved:
   .filter-btn(.active), #searchInput, .baz-sort-select, .baz-count,
   .vendor-grid, .stall-card, .stall-cat-tag, .stall-name,
   .stall-desc, .stall-card-footer, .stall-prod-count, .visit-btn,
   .stall-save-btn(.saved), .baz-loading, .baz-empty, .baz-cta,
   #bazaarBrochure, #bazaarLive, body.is-brochure.
   ============================================================== */

/* --------------------------------------------------------------
   HERO
   -------------------------------------------------------------- */
.baz-hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3.25rem;
  text-align: center;
}

.baz-hero::before {
  content: '';
  position: absolute;
  inset: -60px 0 auto;
  height: 460px;
  background:
    radial-gradient(560px 300px at 28% 22%, rgba(44, 224, 199, 0.09), transparent 64%),
    radial-gradient(520px 280px at 72% 8%, rgba(139, 124, 246, 0.08), transparent 64%),
    radial-gradient(500px 260px at 50% 86%, rgba(255, 160, 92, 0.06), transparent 64%);
  pointer-events: none;
  z-index: -1;
}

.baz-hero .eyebrow {
  display: block;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.baz-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 1.05rem;
}

.baz-hero h1 span {
  background: linear-gradient(115deg, var(--accent) 20%, var(--accent3) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.baz-hero > p {
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 2.25rem;
}

/* Search */
.baz-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.baz-search-wrap:focus-within {
  border-color: rgba(44, 224, 199, 0.45);
  box-shadow:
    0 0 0 3px rgba(44, 224, 199, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

.baz-search-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0.95rem 0.25rem 0.95rem 0;
  border-radius: 999px;
}

#searchInput::placeholder { color: var(--text-dim); }

.baz-cosmo-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 160, 92, 0.12), rgba(255, 160, 92, 0.04));
  border: 1px solid rgba(255, 160, 92, 0.4);
  border-radius: 999px;
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.62rem 1.35rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.baz-cosmo-btn:hover,
.baz-cosmo-btn:focus-visible {
  border-color: rgba(255, 160, 92, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 160, 92, 0.14);
}

.baz-cosmo-btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.baz-cosmo-btn__mark {
  color: var(--accent2);
  font-size: 1rem;
  line-height: 1;
}

/* --------------------------------------------------------------
   TOOLBAR (signed-in view)
   -------------------------------------------------------------- */
.baz-toolbar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 0.5rem;
  padding: 1.1rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.baz-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.baz-filter-label {
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 0.65rem;
  border-right: 1px solid var(--border);
  margin-right: 0.25rem;
  font-weight: 600;
}

.filter-btn {
  background: var(--site-muted-surface, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  color: var(--text-strong);
  background: rgba(44, 224, 199, 0.08);
  transform: translateY(-1px);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), rgba(44, 224, 199, 0.82));
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(44, 224, 199, 0.2);
}

.baz-toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.baz-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.baz-sort-label {
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 600;
}

.baz-sort-select {
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  min-width: 10rem;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.baz-sort-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 224, 199, 0.12);
}

.baz-count {
  color: var(--text-dim);
  white-space: nowrap;
  margin-left: auto;
}

.baz-become {
  color: var(--accent2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.baz-become:hover { color: var(--text-strong); }

.baz-become:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* --------------------------------------------------------------
   VENDOR GRID
   -------------------------------------------------------------- */
.baz-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stall-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.6rem 1.5rem 1.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* soft aurora wash in the card corner */
.stall-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 224, 199, 0.1), rgba(139, 124, 246, 0.05) 55%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.stall-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(44, 224, 199, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(0, 0, 0, 0.42),
    var(--glow);
}

.stall-card:hover::before { opacity: 1; }

.stall-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stall-cat-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(255, 160, 92, 0.09);
  border: 1px solid rgba(255, 160, 92, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  line-height: 1.2;
}

.stall-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.stall-desc {
  color: var(--text-dim);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stall-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 1rem;
}

.stall-prod-count {
  color: var(--text-dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

/* city tag injected by bazaar.js carries a tiny inline font-size */
.stall-prod-count span { font-size: 0.72rem !important; }

.visit-btn {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: gap 180ms ease;
}

.stall-card:hover .visit-btn { gap: 0.55rem; }

.stall-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-dim);
  transition: color 180ms ease, transform 180ms ease;
  padding: 0;
  line-height: 1;
}

.stall-save-btn:hover { color: var(--accent2); transform: scale(1.18); }
.stall-save-btn.saved { color: var(--accent2); }

.stall-save-btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------
   LOADING SKELETONS + EMPTY STATE
   -------------------------------------------------------------- */
.baz-loading,
.baz-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.baz-empty::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(44, 224, 199, 0.14), transparent 70%);
}

.baz-skel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 1.6rem 1.5rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.baz-skel span {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg,
    rgba(147, 161, 181, 0.08) 25%,
    rgba(147, 161, 181, 0.16) 50%,
    rgba(147, 161, 181, 0.08) 75%);
  background-size: 200% 100%;
  animation: baz-shimmer 1.4s ease infinite;
}

.baz-skel span:nth-child(1) { width: 38%; height: 22px; border-radius: 999px; }
.baz-skel span:nth-child(2) { width: 72%; height: 18px; }
.baz-skel span:nth-child(3) { width: 100%; height: 12px; }
.baz-skel span:nth-child(4) { width: 88%; height: 12px; }
.baz-skel span:nth-child(5) { width: 52%; height: 12px; margin-top: auto; }

@keyframes baz-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .baz-skel span { animation: none; }
}

/* --------------------------------------------------------------
   JOIN CTA (signed-in footer band)
   -------------------------------------------------------------- */
.baz-cta {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.baz-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(480px 220px at 12% 0%, rgba(44, 224, 199, 0.09), transparent 62%),
    radial-gradient(420px 200px at 88% 100%, rgba(255, 160, 92, 0.08), transparent 62%),
    var(--panel);
  padding: 2.5rem 2.75rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 44px rgba(0, 0, 0, 0.3);
}

.baz-cta-inner .eyebrow { display: block; color: var(--accent2); margin-bottom: 0.55rem; }

.baz-cta-inner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.baz-cta-inner p {
  color: var(--text-dim);
  max-width: 52ch;
}

/* --------------------------------------------------------------
   BROCHURE (unauthenticated view)
   -------------------------------------------------------------- */
#bazaarBrochure { display: none; }
body.is-brochure .baz-search-wrap { display: none; }

/* stat strip */
.bb-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.bb-strip-cell {
  padding: 1.6rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 34px rgba(0, 0, 0, 0.25);
}

.bb-strip-cell strong {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.bb-strip-cell span { color: var(--text-dim); }

/* section wrapper */
.bb-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
}

.bb-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.bb-hd-left { flex-shrink: 0; }

.bb-hd .eyebrow { display: block; color: var(--accent2); margin-bottom: 0.5rem; }

.bb-hd h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.12;
  margin-bottom: 0;
}

.bb-hd h2 span { color: var(--accent); }

.bb-hd p {
  color: var(--text-dim);
  max-width: 44ch;
  text-align: right;
  margin: 0;
}

/* category grid */
.bb-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.bb-cat-cell {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bb-cat-cell:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(44, 224, 199, 0.24),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.bb-cat-cell .cc-em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(44, 224, 199, 0.08);
  border: 1px solid rgba(44, 224, 199, 0.18);
}

.bb-cat-cell .cc-em svg { width: 20px; height: 20px; }

.bb-cat-cell .cc-nm {
  font-family: 'Sora', 'Inter', sans-serif !important;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.3rem;
}

.bb-cat-cell .cc-sub { color: var(--text-dim); line-height: 1.55; }

/* tier row */
.bb-tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.bb-tier-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 1.7rem 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bb-tier-card:hover { transform: translateY(-2px); }

.bb-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.t-p::before { background: linear-gradient(90deg, rgba(147, 161, 181, 0.55), transparent); }
.t-m::before { background: linear-gradient(90deg, rgba(44, 224, 199, 0.75), transparent); }
.t-v::before { background: linear-gradient(90deg, rgba(139, 124, 246, 0.8), transparent); }
.t-f::before { background: linear-gradient(90deg, rgba(255, 160, 92, 0.95), rgba(255, 160, 92, 0.18)); }

.bb-tier-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.t-p .bb-tier-badge { color: var(--text-dim); border-color: rgba(147, 161, 181, 0.3); }
.t-m .bb-tier-badge { color: var(--accent); border-color: rgba(44, 224, 199, 0.3); background: rgba(44, 224, 199, 0.06); }
.t-v .bb-tier-badge { color: var(--accent3); border-color: rgba(139, 124, 246, 0.34); background: rgba(139, 124, 246, 0.07); }
.t-f .bb-tier-badge { color: var(--accent2); border-color: rgba(255, 160, 92, 0.38); background: rgba(255, 160, 92, 0.08); }

.bb-tier-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.85rem;
}

.bb-tier-card ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }

.bb-tier-card li {
  color: var(--text-dim);
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-bottom: 1px solid rgba(147, 161, 181, 0.08);
  position: relative;
}

.bb-tier-card li:last-child { border-bottom: none; }

.bb-tier-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0.8);
}

.t-f li::before { border-color: var(--accent2); }

.bb-tier-note {
  color: var(--accent2);
  margin-top: 0.75rem;
}

/* locked preview */
.bb-preview-outer { position: relative; border-radius: 20px; overflow: hidden; }

.bb-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  filter: blur(5px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.bb-prev-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.bb-prev-tier {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.bb-prev-name {
  font-family: 'Sora', 'Inter', sans-serif !important;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.45rem;
}

.bb-prev-desc {
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.bb-prev-foot {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  border-top: 1px solid rgba(147, 161, 181, 0.1);
  padding-top: 0.7rem;
}

.bb-lock {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  background: radial-gradient(ellipse at center, rgba(8, 13, 24, 0.6) 0%, rgba(8, 13, 24, 0.9) 100%);
  border-radius: 20px;
}

.bb-lock-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(44, 224, 199, 0.3);
  background: rgba(44, 224, 199, 0.08);
  color: var(--accent);
  line-height: 1;
}

.bb-lock-ico svg { width: 24px; height: 24px; }

.bb-lock-lbl {
  font-family: 'Sora', 'Inter', sans-serif !important;
  font-weight: 600;
  color: var(--text-strong);
  text-align: center;
}

/* big CTA */
.bb-cta {
  max-width: 1200px;
  margin: 4.5rem auto 5.5rem;
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(620px 280px at 30% 0%, rgba(44, 224, 199, 0.1), transparent 62%),
    radial-gradient(560px 260px at 74% 100%, rgba(139, 124, 246, 0.08), transparent 62%),
    radial-gradient(480px 240px at 90% 10%, rgba(255, 160, 92, 0.07), transparent 62%),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 48px rgba(0, 0, 0, 0.32);
}

@media (min-width: 1240px) {
  .bb-cta { margin-left: auto; margin-right: auto; }
}

.bb-cta .eyebrow { display: block; color: var(--accent2); margin-bottom: 0.75rem; }

.bb-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.bb-cta h2 span { color: var(--accent); }

.bb-cta > p {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.bb-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bb-cta-sub {
  margin-top: 1.4rem;
  color: var(--text-dim);
}

.bb-cta-sub a {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
}

.bb-cta-sub a:hover { text-decoration: underline; }

/* --------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-tier-row { grid-template-columns: repeat(2, 1fr); }
  .bb-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-strip { grid-template-columns: repeat(2, 1fr); }
  .bb-cta { margin-left: 1.5rem; margin-right: 1.5rem; }
}

@media (max-width: 768px) {
  .baz-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .baz-shell { padding: 1.5rem 1.25rem 3.5rem; }
  .baz-toolbar { padding: 1rem 1.25rem; }
  .baz-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .baz-toolbar-right { gap: 0.75rem; }
  .baz-sort-wrap { flex: 1 1 46%; justify-content: space-between; }
  .baz-sort-select { min-width: 0; flex: 1; }
  .baz-count { margin-left: 0; flex: 1 1 100%; }
  .bb-preview-grid { grid-template-columns: 1fr; }
  .bb-hd { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .bb-hd p { text-align: left; }
  .bb-section { padding: 3.5rem 1.25rem 0.5rem; }
  .bb-cta { margin-left: 1.25rem; margin-right: 1.25rem; padding: 3.5rem 1.5rem; }
  .baz-cta-inner { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .stall-card { padding: 1.35rem 1.25rem 1.2rem; }
}

@media (max-width: 640px) {
  .vendor-grid { grid-template-columns: 1fr; }
  .bb-tier-row { grid-template-columns: 1fr; }
  .baz-search-wrap { max-width: 100%; }
  .baz-cosmo-btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .bb-strip { grid-template-columns: 1fr; }
  .bb-cat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .baz-hero { padding: 2.75rem 1rem 2rem; }
  .baz-shell { padding: 1.25rem 1rem 3rem; }
  .baz-toolbar { padding: 0.85rem 1rem; }
  .baz-filter-label { display: none; }
  .baz-cta { padding: 0 1rem; }
  .bb-cta { margin-left: 1rem; margin-right: 1rem; }
}

/* --------------------------------------------------------------
   MOTION PREFERENCES
   -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .stall-card,
  .bb-cat-cell,
  .bb-tier-card,
  .filter-btn,
  .baz-cosmo-btn {
    transition: none;
  }
  .stall-card:hover,
  .bb-cat-cell:hover,
  .bb-tier-card:hover { transform: none; }
}
