.jl-brands-index {
  --jl-brands-ink: #142132;
  --jl-brands-muted: #526172;
  --jl-brands-line: #dde5eb;
  --jl-brands-cream: #f7f2ea;
  --jl-brands-accent: #2b7a78;
  --jl-brands-gold: #b9854d;
  padding-bottom: 84px;
}

.jl-brands-hero {
  padding: 56px 0 32px;
}

.jl-brands-hero__layout {
  display: grid;
  gap: 24px;
}

.jl-brands-hero__top {
  display: grid;
  grid-template-columns: minmax(340px, 0.98fr) minmax(0, 1.02fr);
  gap: 24px;
  align-items: stretch;
}

.jl-brands-hero__content,
.jl-brands-hero__panel {
  border: 1px solid var(--jl-brands-line);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.06);
}

.jl-brands-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 40px;
  background:
    radial-gradient(circle at top left, rgba(43, 122, 120, 0.16), transparent 30%),
    linear-gradient(135deg, #fffdf9 0%, #f5f9f8 100%);
}

.jl-brands-hero__media {
  position: relative;
  min-height: clamp(360px, 38vw, 560px);
  height: 100%;
  border: 1px solid var(--jl-brands-line);
  border-radius: 30px;
  overflow: hidden;
  background: #f5f1ea;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.06);
}

.jl-brands-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jl-brands-hero__breadcrumbs {
  margin-bottom: 18px;
}

.jl-brands-hero__panel {
  padding: 28px 32px;
  background:
    radial-gradient(circle at top left, rgba(43, 122, 120, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.jl-brands-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--jl-brands-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jl-brands-hero h1 {
  margin: 0 0 16px;
  color: var(--jl-brands-ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
}

.jl-brands-hero__lead,
.jl-brands-hero__panel p {
  margin: 0;
  color: var(--jl-brands-muted);
  font-size: 18px;
  line-height: 1.75;
}

.jl-brands-hero__panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--jl-brands-ink);
}

.jl-brands-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.jl-brands-stat {
  min-width: 160px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(221, 229, 235, 0.9);
}

.jl-brands-stat strong {
  display: block;
  color: var(--jl-brands-ink);
  font-size: 28px;
  line-height: 1;
}

.jl-brands-stat span {
  display: block;
  margin-top: 6px;
  color: var(--jl-brands-muted);
  font-size: 14px;
}

.jl-brands-toolbar {
  position: sticky;
  top: 18px;
  z-index: 5;
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid var(--jl-brands-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.jl-brands-toolbar__search input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--jl-brands-line);
  border-radius: 18px;
  background: #ffffff;
  font-size: 16px;
}

.jl-brands-toolbar__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.jl-brands-toolbar__letters button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--jl-brands-line);
  background: #ffffff;
  color: var(--jl-brands-ink);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.jl-brands-toolbar__letters button:hover,
.jl-brands-toolbar__letters button:focus,
.jl-brands-toolbar__letters button.is-active {
  border-color: var(--jl-brands-accent);
  color: var(--jl-brands-accent);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.jl-brands-toolbar__letters button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.jl-brands-toolbar__status {
  margin: 14px 0 0;
  color: var(--jl-brands-muted);
  font-size: 14px;
}

.jl-brands-sectionhead {
  margin-bottom: 18px;
}

.jl-brands-sectionhead h2 {
  margin: 0 0 8px;
  color: var(--jl-brands-ink);
  font-size: 30px;
}

.jl-brands-sectionhead p {
  margin: 0;
  color: var(--jl-brands-muted);
  font-size: 16px;
  line-height: 1.75;
}

.jl-brands-featured,
.jl-brands-all {
  margin-bottom: 34px;
}

.jl-brands-featured__grid,
.jl-brands-grid {
  display: grid;
  gap: 18px;
}

.jl-brands-featured__grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.jl-brands-grid {
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jl-brands-featured__card,
.jl-brands-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jl-brands-line);
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  color: var(--jl-brands-ink);
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jl-brands-featured__card:hover,
.jl-brands-featured__card:focus,
.jl-brands-card:hover,
.jl-brands-card:focus {
  transform: translateY(-4px);
  border-color: rgba(43, 122, 120, 0.45);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.11);
  text-decoration: none;
}

.jl-brands-card__media {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(140deg, rgba(185, 133, 77, 0.12) 0%, rgba(43, 122, 120, 0.1) 100%),
    linear-gradient(180deg, #fffdf9 0%, #f8fbfb 100%);
}

.jl-brands-featured__card .jl-brands-card__media {
  min-height: 220px;
}

.jl-brands-card__media img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.12));
}

.jl-brands-card__monogram {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--jl-brands-gold) 0%, var(--jl-brands-accent) 100%);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
}

.jl-brands-card__count {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(20, 33, 50, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.jl-brands-featured__body,
.jl-brands-card__body {
  padding: 22px 22px 24px;
}

.jl-brands-featured__eyebrow {
  margin: 0 0 8px;
  color: var(--jl-brands-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jl-brands-featured__body h3,
.jl-brands-card__body h3 {
  margin: 0 0 8px;
  color: var(--jl-brands-ink);
  font-size: 24px;
  line-height: 1.18;
}

.jl-brands-card__body h3 {
  font-size: 22px;
}

.jl-brands-featured__body p,
.jl-brands-card__body p {
  margin: 0;
  color: var(--jl-brands-muted);
  font-size: 15px;
  line-height: 1.75;
}

.jl-brands-featured__body span,
.jl-brands-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--jl-brands-accent);
  font-size: 14px;
  font-weight: 700;
}

.jl-brands-featured__body span::after,
.jl-brands-card__cta::after {
  content: "→";
}

.jl-brands-empty {
  padding: 28px 24px;
  border: 1px dashed var(--jl-brands-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  text-align: center;
}

.jl-brands-empty h3 {
  margin: 0 0 8px;
  color: var(--jl-brands-ink);
  font-size: 24px;
}

.jl-brands-empty p {
  margin: 0;
  color: var(--jl-brands-muted);
  font-size: 15px;
}

[data-brand-card][hidden],
[data-brand-featured][hidden],
[data-brand-empty][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .jl-brands-hero__top {
    grid-template-columns: 1fr;
  }

  .jl-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jl-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .jl-brands-index {
    padding-bottom: 64px;
  }

  .jl-brands-hero {
    padding-top: 36px;
  }

  .jl-brands-hero__breadcrumbs {
    margin-bottom: 16px;
  }

  .jl-brands-hero__content,
  .jl-brands-hero__panel,
  .jl-brands-toolbar {
    border-radius: 24px;
  }

  .jl-brands-hero__media {
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    min-height: 0;
    height: auto;
  }

  .jl-brands-hero__content,
  .jl-brands-hero__panel {
    padding: 26px 22px;
  }

  .jl-brands-toolbar {
    top: 10px;
    padding: 14px;
  }

  .jl-brands-card__media,
  .jl-brands-featured__card .jl-brands-card__media {
    min-height: 170px;
  }

  .jl-brands-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jl-brands-featured__body,
  .jl-brands-card__body {
    padding: 18px;
  }
}
