/* Requires assets/css/home.css */
.brands-page {
  color: var(--ah-ink);
  background: var(--ah-cream);
}
.brands-page__hero {
  position: relative;
  overflow: hidden;
  padding: 37px 0 73px;
  border-bottom: 1px solid var(--ah-line);
  background: linear-gradient(112deg, #fffdf8 0%, #eef2e9 100%);
}
.brands-page__hero::after {
  position: absolute;
  top: -120px;
  right: -84px;
  width: 365px;
  height: 365px;
  border: 58px solid rgba(201, 111, 80, 0.09);
  border-radius: 50%;
  content: "";
}
.brands-page__hero .container-fluid {
  position: relative;
  z-index: 1;
}
.brands-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: var(--ah-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.brands-page__breadcrumb a {
  color: var(--ah-olive);
  text-decoration: none;
}
.brands-page__breadcrumb a:hover {
  color: var(--ah-terracotta);
}
.brands-page__breadcrumb i {
  color: #a4aea6;
  font-size: 0.65rem;
}
.brands-page__hero-content {
  max-width: 680px;
}
.brands-page__hero h1 {
  margin: 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
  font-weight: 400;
  line-height: 0.99;
}
.brands-page__hero p {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--ah-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.brands-directory {
  padding: 67px 0 84px;
}
.brands-directory__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
}
.brands-directory__top h2 {
  margin: 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 400;
}
.brands-directory__top p {
  margin: 0 0 5px;
  color: var(--ah-muted);
  font-size: 0.92rem;
}
.brands-directory__top strong {
  color: var(--ah-terracotta);
  font-size: 1.2rem;
}
.brands-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 31px;
  padding: 15px;
  border: 1px solid var(--ah-line);
  border-radius: 15px;
  background: var(--ah-paper);
}
.brands-search {
  position: relative;
  display: flex;
  flex: 0 1 320px;
  align-items: center;
  min-width: 230px;
  border: 1px solid #dde4dd;
  border-radius: 10px;
  background: #fff;
}
.brands-search > i {
  margin-left: 13px;
  color: var(--ah-muted);
}
.brands-search input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 7px 0 10px;
  border: 0;
  outline: 0;
  color: var(--ah-ink);
  background: transparent;
  font-size: 0.86rem;
}
.brands-search button {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--ah-muted);
  background: transparent;
}
.brands-search button:hover {
  color: #fff;
  background: var(--ah-terracotta);
}
.brands-search:focus-within {
  border-color: var(--ah-olive);
  box-shadow: 0 0 0 4px rgba(97, 116, 93, 0.1);
}
.brands-alphabet {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 1px;
}
.brands-alphabet button {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ah-muted);
  background: transparent;
  font-size: 0.73rem;
  font-weight: 800;
}
.brands-alphabet button:hover {
  color: var(--ah-olive-deep);
  background: var(--ah-olive-pale);
}
.brands-alphabet button.is-active {
  color: #fff;
  background: var(--ah-terracotta);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.brand-directory-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 160px;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 18px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--ah-line);
  border-radius: 14px;
  color: var(--ah-ink);
  background: var(--ah-paper);
  box-shadow: 0 5px 16px rgba(61, 77, 59, 0.04);
  text-decoration: none;
}
.brand-directory-card__image {
  display: flex;
  width: 100%;
  height: 86px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-directory-card__image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 78px !important;
  object-fit: contain;
  transition: transform 0.22s ease;
}
.brand-directory-card__image strong {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 50%;
  color: var(--ah-olive-deep);
  background: var(--ah-olive-pale);
  font-family: Marcellus, Georgia, serif;
  font-size: 1.4rem;
}
.brand-directory-card__name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-directory-card > i {
  position: absolute;
  top: 11px;
  right: 11px;
  color: var(--ah-terracotta);
  font-size: 0.78rem;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: 0.22s ease;
}
.brand-directory-card:hover {
  z-index: 1;
  border-color: #d7bdaa;
  box-shadow: 0 14px 28px rgba(61, 77, 59, 0.12);
  color: var(--ah-ink);
  transform: translateY(-4px);
}
.brand-directory-card:hover img {
  transform: scale(1.06);
}
.brand-directory-card:hover > i {
  opacity: 1;
  transform: translate(0, 0);
}
.brands-no-results {
  max-width: 520px;
  margin: 20px auto;
  padding: 57px 25px;
  border: 1px dashed #cbd7ce;
  border-radius: 17px;
  background: var(--ah-paper);
  text-align: center;
}
.brands-no-results > span {
  display: grid;
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  color: var(--ah-terracotta);
  background: #fcefe8;
  font-size: 1.4rem;
}
.brands-no-results h2 {
  margin: 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}
.brands-no-results p {
  margin: 9px 0 19px;
  color: var(--ah-muted);
}
.brands-no-results button {
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ah-olive);
  font-size: 0.82rem;
  font-weight: 800;
}
.brands-trade-banner {
  padding: 0 0 82px;
}
.brands-trade-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(27px, 4vw, 48px);
  overflow: hidden;
  border-radius: 19px;
  color: #fff;
  background: var(--ah-olive-deep);
}
.brands-trade-banner__inner span {
  color: #f4cba4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.brands-trade-banner__inner h2 {
  max-width: 570px;
  margin: 9px 0 0;
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
}
.brands-trade-banner__inner a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ah-terracotta);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brands-trade-banner__inner a:hover {
  color: var(--ah-olive-deep);
  background: #f5d0ad;
}

@media (max-width: 1199.98px) {
  .brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .brands-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .brands-search {
    flex-basis: auto;
    width: 100%;
  }
  .brands-alphabet {
    justify-content: flex-start;
  }
  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .brands-page__hero {
    padding: 27px 0 50px;
  }
  .brands-page__breadcrumb {
    margin-bottom: 27px;
  }
  .brands-page__hero h1 {
    font-size: 2.65rem;
  }
  .brands-page__hero p {
    font-size: 0.96rem;
  }
  .brands-directory {
    padding: 43px 0 57px;
  }
  .brands-directory__top {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .brands-directory__top p {
    margin: 0;
  }
  .brands-trade-banner {
    padding-bottom: 55px;
  }
  .brands-trade-banner__inner {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 575.98px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .brand-directory-card {
    min-height: 137px;
    padding: 15px 12px 12px;
    border-radius: 11px;
  }
  .brand-directory-card__image {
    height: 70px;
  }
  .brand-directory-card__image img {
    max-height: 63px !important;
  }
  .brand-directory-card__name {
    font-size: 0.78rem;
  }
  .brands-tools {
    padding: 11px;
    border-radius: 12px;
  }
  .brands-trade-banner__inner {
    border-radius: 15px;
  }
}
