/* Manufacturer Page = START */

/* ── Layout ─────────────────────────────────────────────── */

#product-manufacturer {
  min-height: 60vh;
}

/* ── Breadcrumb ──────────────────────────────────────────── */

.mfr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 13px;
  color: #888;
}

.mfr-breadcrumb li + li::before {
  content: "/";
  margin-right: 4px;
  color: #ccc;
}

.mfr-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.mfr-breadcrumb a:hover {
  color: #9188e5;
}

/* ── Page title ──────────────────────────────────────────── */

.mfr-page__title-wrap {
  margin-bottom: 23px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mfr-page-title {
  margin-top: 0;
  margin-bottom: 0;
  color: #5f4e5d;
  font-family: var(--main-font);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
}

.mfr-page__filter-sort--sort {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mfr-page__filter-sort--sort .mfr-page__text-sort {
  display: none;
}

/* ── Alphabet nav ────────────────────────────────────────── */

.mfr-alpha-nav {
  margin-top: 23px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 8px;
  z-index: 10;
}

.mfr-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f1f5;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.mfr-alpha-link:hover {
  background: #9188e5;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Sections ────────────────────────────────────────────── */

.mfr-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mfr-section {
  scroll-margin-top: calc(var(--header-height, 80px) + 16px);
}

/* ── Letter heading ──────────────────────────────────────── */

.mfr-letter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.mfr-letter-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e2ea;
}

.mfr-letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #9188e5;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Grid of manufacturer cards ──────────────────────────── */

.mfr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ── Manufacturer card ───────────────────────────────────── */

.mfr-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eaecf0;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
}

.mfr-card:hover {
  border-color: #9188e5;
  box-shadow: 0 4px 16px rgba(231, 82, 25, 0.12);
  transform: translateY(-2px);
  color: #9188e5;
}

.mfr-card-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfr-card-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.mfr-card:hover .mfr-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Empty state ─────────────────────────────────────────── */

.mfr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.mfr-empty-text {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.mfr-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #9188e5;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.mfr-btn:hover {
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .mfr-alpha-nav {
    position: static;
    gap: 4px;
    padding: 12px;
  }

  .mfr-alpha-link {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 6px;
  }

  .mfr-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .mfr-card {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .mfr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mfr-letter-badge {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Manufacturer Page = END */
