body .featured-image img {
  width: 100%;
}

body .featured-image {
  max-width: 100%;
}

#brands_a_z {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -moz-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  -moz-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  margin-bottom: 0;
}

.rtl #brands_a_z {
  display: none !important;
}

.brand-thumbnails {
  width: 100%;
  list-style: none;
  margin: 0 -15px !important;
}

body ul.brand-thumbnails li {
  width: 16.6% !important;
  margin: 0 !important;
  padding: 30px 15px;
}

.brands-header {
  margin-top: 1.5rem !important;
  margin-bottom: 20px !important;
}

h1 {
  max-width: 960px;
}

.brands-index-link {
  text-transform: uppercase;
  min-width: 1.5rem;
  text-align: center;
  background-image: none !important;
  font-size: 18px !important;
  background: #000 !important;
  display: inline-block !important;
  padding: 5px 7px !important;
  margin-right: 4px !important;
  margin-bottom: 4px !important;
  color: #fff !important;
}

.brands-index-link:hover {
  min-width: 1.5rem;
  text-align: center;
  background-image: none !important;
  font-size: 18px !important;
  background: #000 !important;
  display: inline-block !important;
  padding: 5px 7px !important;
  margin-right: 4px !important;
  margin-bottom: 4px !important;
  color: #fff !important;
}

.rtl .brands-index-link,
.rtl .brands-index-link:hover {
  font-size: 27px !important;
}

.custom-product-brand__link span {
  padding: 8px 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  display: block;
  background: none !important;
}

.custom-product-brand__image {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 64px;
  background: #fff;
  overflow: hidden;
  border: 1px solid #eaeaea;
}

.fg-brand-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  white-space: nowrap;
  padding: 4px 6px;
  background: var(--Accent, #f42020);
  color: #f6f3f1;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 16px;
  pointer-events: none;
}

.custom-product-brand__image img {
  width: 100%;
  height: 100%;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  -o-object-fit: contain;
  object-fit: contain;
}

.custom-product-brand-empty-image {
  max-height: 150px;
}

.col {
  max-width: 100% !important;
  margin: 0 15px !important;
}

.rtl .col {
  margin-top: 20px !important;
}

#brands_a_z {
  position: fixed;
  top: 0;
  left: 0;
  padding: 15px 0;
  width: 40px;
  height: -webkit-calc(100vh);
  height: -moz-calc(100vh);
  height: calc(100vh);
  background-color: #edebe9;
  overflow: scroll;
  z-index: 9;
}

#brands_a_z::-webkit-scrollbar {
  width: 3px;
}

#brands_a_z::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#brands_a_z::-webkit-scrollbar-thumb {
  background: #888;
}

#brands_a_z::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#brands_a_z .brands_index {
  margin: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: unset;
}

#brands_a_z .brands_index li {
  margin: 0 !important;
}

#brands_a_z .brands_index li a {
  background: none !important;
  border: none;
  color: #000 !important;
  font-style: normal;
  font-weight: 400;
  font-size: 15px !important;
  line-height: 35px;
  text-align: center;
}

.brand-title {
  text-transform: uppercase;
  margin-top: 90px !important;
  margin-bottom: 0 !important;
  margin-left: 80px;
  position: relative;
  font-style: normal;
  font-weight: 400;
  font-size: 40px;
  line-height: 55px;
  letter-spacing: 0.04em;
  color: #1f1e1e;
}

.brand-title:before {
  content: "";
  position: absolute;
  top: 20px;
  right: 100%;
  margin-right: 20px;
  width: 60px;
  height: 1px;
  background: #000;
}

#brands_a_z .brands_index li.active a {
  color: #a70b0a !important;
}

#brands_a_z .brands_index li.active {
  position: relative;
}

#brands_a_z .brands_index li.active:before {
  content: "";
  border-style: solid;
  border-width: 5.5px 0 5.5px 5px;
  border-color: transparent transparent transparent #a70b0a;
  position: absolute;
  top: 15.5px;
  left: 0;
}

ul.brand-thumbnails li {
  float: left;
  margin: 0 37px 60px 0;
  padding: 0;
  position: relative;
  width: 22.05%;
  margin-left: 0;
}

.rtl .brand-title {
  margin-left: 0;
  margin-right: 80px;
}

.rtl .brand-title:before {
  left: 100%;
  right: auto;
  margin-right: 0;
  margin-left: 20px;
}

@media (max-width: 1440px) {
  body ul.brand-thumbnails li {
    width: 20% !important;
  }
}

@media (max-width: 1100px) {
  body ul.brand-thumbnails li {
    width: 25% !important;
  }
}

@media (max-width: 960px) {
  body ul.brand-thumbnails li {
    width: 33.3% !important;
  }
}

@media (max-width: 769px) {
  .custom-product-brand__image {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  body ul.brand-thumbnails {
    margin: 0 !important;
  }

  body ul.brand-thumbnails li {
    width: 50% !important;
    padding: 15px 7.5px;
  }

  body .custom-product-brand__link span {
    font-size: 14px;
  }
}

.fg-brands-featured-section {
  margin-bottom: 0;
}

.fg-brands-featured-section .fg-featured-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}

.fg-brands-featured-section .fg-featured-section__title {
  margin: 0;
}

.fg-brands-featured-section .fg-featured-slider-controls {
  position: static;
  inset: auto;
  pointer-events: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rtl .fg-brands-featured-section .fg-featured-slider-controls,
[dir="rtl"] .fg-brands-featured-section .fg-featured-slider-controls {
  flex-direction: row-reverse;
}

.fg-brands-featured-section .fg-featured-slider-arrow {
  position: static;
  top: auto;
  width: 52px;
  height: 52px;
  transform: none;
}

.fg-brands-featured-section .fg-featured-slider-arrow svg {
  width: 52px;
  height: 52px;
}

.fg-brands-featured-section .fg-featured-slider-arrow--prev svg {
  transform: none;
}

.fg-brands-featured-section .fg-featured-slider-arrow--next svg {
  transform: rotate(180deg);
}

.fg-brands-featured-section .fg-featured-slider-arrow:hover,
.fg-brands-featured-section .fg-featured-slider-arrow:focus-visible {
  transform: none;
}

.fg-brands-toolbar {
  margin-left: -64px;
  margin-right: -64px;
  margin-bottom: 48px;
}

.fg-brands-toolbar .fg-toolbar__right {
  gap: 0;
}

.fg-brands-toolbar .fg-toolbar__search {
  height: 64px;
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(246, 243, 241, 0.1);
  border-right: 1px solid rgba(246, 243, 241, 0.1);
  padding: 0 16px;
  margin: 0;
}

.fg-brands-toolbar .fg-toolbar__search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #f6f3f1;

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  padding: 0;
}

.fg-brands-toolbar .fg-toolbar__search input::placeholder {
  color: rgba(246, 243, 241, 0.55);
}

.fg-brand-group.is-hidden {
  display: none;
}

.fg-brand-group + .fg-brand-group {
  margin-top: 48px;
}

.fg-exclusive-brands__eyebrow {
  background: var(--Almost-Black, #171717);
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  gap: 8px;
  color: #f6f3f1;

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 16px;
}

.fg-exclusive-brands__eyebrow svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.brand-title--exclusive {
  text-transform: none;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  margin-left: 0;

  color: #f6f3f1;
}

.brand-title--exclusive:before {
  display: none;
}

.rtl .brand-title--exclusive {
  margin-right: 0;
}

.fg-exclusive-brands__title {
  text-transform: none;
  margin: 0;

  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.64px;
  color: #f6f3f1;
}

.fg-all-brands__title {
  text-transform: none;
  margin: 0;
  padding-top: 120px;

  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.64px;
  color: #f6f3f1;
}

.fg-all-brands__title.fg-all-brands__title--no-gap {
  padding-top: 0;
}

@media (max-width: 960px) {
  .fg-brands-toolbar {
    margin-bottom: 32px;
  }

  .fg-brand-group + .fg-brand-group {
    margin-top: 32px;
  }

  .fg-brands-toolbar .fg-toolbar__search {
    min-width: 180px;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .fg-brands-featured-section .fg-featured-section__head {
    margin-bottom: 40px;
  }

  .fg-exclusive-brands__title,
  .fg-all-brands__title {
    font-size: 24px;
  }

  .fg-all-brands__title {
    padding-top: 80px;
  }

  .fg-brands-toolbar {
    margin-left: -20px;
    margin-right: -20px;
  }

  .fg-brands-toolbar .fg-toolbar__left,
  .fg-brands-toolbar .fg-toolbar__right {
    width: 100%;
  }

  .fg-brands-toolbar .fg-toolbar__right {
    height: auto;
  }

  .fg-brands-toolbar .fg-toolbar__search {
    min-width: 0;
    width: 100%;
  }

  .fg-brands-toolbar .fg-toolbar__right #fg-toolbar-sort {
    width: 100%;
  }

  .fg-brands-toolbar .fg-toolbar__right #fg-toolbar-sort .woocommerce-ordering,
  .fg-brands-toolbar
    .fg-toolbar__right
    #fg-toolbar-sort
    .woocommerce-ordering
    .orderby {
    width: 100%;
    max-width: none;
  }
}

.fg-brands-featured-section .fg-featured-slider-track {
  grid-auto-columns: 400px;
}

.fg-brands-featured-section .fg-featured-card,
.fg-brands-featured-section .fg-featured-card__link {
  width: 400px;
  max-width: 400px;
  height: 520px;
}

.fg-brands-featured-section .fg-featured-card__link {
  padding: 20px;
  justify-content: flex-start;
  align-items: stretch;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%),
    var(--fg-featured-brand-bg) lightgray 50% / cover no-repeat;
}

.fg-featured-brand-card__top {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.fg-featured-brand-card__thumb {
  width: 90px;
  height: 90px;
  padding: 10px;
  background: #fff;
}

.fg-featured-brand-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fg-featured-brand-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg-featured-brand-card__title {
  margin: 0;
  color: #f6f3f1;

  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.48px;
}

.fg-featured-brand-card__subtitle {
  margin: 0;
  color: rgba(246, 243, 241, 0.6);

  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
}

.fg-featured-brand-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 6px;
  background: var(--Accent, #f42020);
  color: #f6f3f1;

  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 16px;
}

.brand-thumbnails.columns-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 64px;
  padding-top: 64px;
  padding-bottom: 64px;
  margin: 0 !important;
}

.brand-thumbnails.columns-6 > li {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none;
  max-width: 300px;
}

@media (max-width: 768px) {
  .brand-thumbnails.columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
