/* -------------------------------------------------------------------------
 * Brands index
 * Compact typographic directory, aligned with the Palamenta visual language.
 * ---------------------------------------------------------------------- */

#manufacturer {
  --pal-brand: #be4c14;
  --pal-ink: #2f2f2f;
  --pal-muted: #8a8a8a;
  --pal-line: #dedede;
  --pal-surface: #f7f7f5;
}

/* This page has no sidebar, although PrestaShop keeps the left-column class. */
#manufacturer #content-wrapper-left:has(> .brands-list) {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
  flex: 0 0 100%;
}

#manufacturer .brands-list {
  width: 100%;
  margin: 0 0 100px;
  padding: 0 10px;
  box-sizing: border-box;
}

#manufacturer .brands-list .page-h1 {
  margin: 0 0 42px;
  color: var(--pal-ink);
  font-family: Oswald, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 50px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

#manufacturer .brands-list ul.flex-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pal-line);
  list-style: none;
}

#manufacturer .brands-list li.brand {
  width: auto;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--pal-line);
  text-align: left;
}

#manufacturer .brand-card {
  display: grid;
  width: 100%;
  min-height: 76px;
  padding: 15px 14px 15px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  color: var(--pal-ink);
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

#manufacturer .brand-card:hover,
#manufacturer .brand-card:focus-visible {
  background: var(--pal-surface);
  box-shadow: inset 3px 0 0 var(--pal-brand);
  color: var(--pal-brand);
}

#manufacturer .brand-card:focus-visible {
  outline: 2px solid rgba(190, 76, 20, 0.32);
  outline-offset: -2px;
}

#manufacturer .brand-card h3 {
  margin: 0;
  color: inherit;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.55px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

#manufacturer .brand-products {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pal-muted);
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

#manufacturer .brand-arrow {
  color: var(--pal-brand);
  font-size: 17px;
  line-height: 18px;
  transition: transform 160ms ease;
}

#manufacturer .brand-card:hover .brand-arrow,
#manufacturer .brand-card:focus-visible .brand-arrow {
  transform: translateX(3px);
}

@media (max-width: 1199px) {
  #manufacturer .brands-list ul.flex-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 26px;
  }
}

@media (max-width: 991px) {
  #manufacturer .brands-list {
    margin-bottom: 80px;
  }

  #manufacturer .brands-list .page-h1 {
    margin-bottom: 34px;
    font-size: 34px;
    line-height: 44px;
  }

  #manufacturer .brands-list ul.flex-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 575px) {
  #manufacturer .brands-list {
    margin-bottom: 60px;
    padding-right: 10px;
    padding-left: 10px;
  }

  #manufacturer .brands-list .page-h1 {
    margin-bottom: 26px;
    font-size: 30px;
    line-height: 38px;
  }

  #manufacturer .brands-list ul.flex-container {
    grid-template-columns: 1fr;
  }

  #manufacturer .brand-card {
    min-height: 68px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}

