/* Manufacturer Page = START */

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

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

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

.mfr-page__title-wrap {
  min-height: 48px;
  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;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #000;
}

.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: 1px solid #e5e5e5;
  border-radius: 5px;
  position: sticky;
  top: calc(var(--header-height, 0px) + 8px);
  z-index: 10;
}

.mfr-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: #f5f5f5;
  color: #1e1e1e;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mfr-alpha-link:hover,
.mfr-alpha-link:focus {
  background: #33815c;
  color: #fff !important;
  text-decoration: none;
}

/* ── 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: #e5e5e5;
}

.mfr-letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #33815c;
  color: #fff;
  font-family: var(--font-family);
  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 {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0 14px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #1e1e1e;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.mfr-card:hover {
  border-color: #33815c;
  box-shadow: 0 4px 16px rgba(51, 129, 92, 0.12);
  color: #33815c;
  text-decoration: none;
}

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

.mfr-card-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0;
  top: 50%;
  right: 10px;
  transform: translate(-4px, -50%);
  transition: opacity 0.2s, transform 0.2s;
}

.mfr-card:hover .mfr-card-arrow {
  opacity: 1;
    transform: translate(0px, -50%);
}

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

.mfr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  text-align: center;
}

.mfr-empty-text {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  color: #7d7c7c;
}

.mfr-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #33815c;
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.mfr-btn:hover,
.mfr-btn:focus {
  background: #2a6b4c;
  color: #fff;
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .mfr-page__title-wrap {
    margin-bottom: 12px;
  }

  .mfr-page-title {
    font-size: 20px;
  }

  .mfr-alpha-nav {
    position: static;
    margin-top: 12px;
    margin-bottom: 24px;
    gap: 4px;
    padding: 12px;
  }

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

  .mfr-sections {
    gap: 28px;
  }

  .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;
  }
}

.mobile .mfr-page__filter-sort {
  width: 100%;
}

.mobile .mfr-page__filter-sort .category__filter-sort--buttons {
  gap: 10px;
}

.mobile .mfr-page__filter-sort .ocf-btn-mobile-static {
  width: auto;
}

.mobile .mfr-page__filter-sort--sort {
  margin-left: auto;
}

/* Manufacturer Page = END */
