/* Home product category sections */
.az9s-home-products {
  width: 100%;
  background: #fff;
  padding: 0 0 18px;
}

.az9s-home-products__block {
  margin-top: 22px;
}

.az9s-home-products__block--featured {
  margin-top: 14px;
}

.az9s-home-products__block--featured + .az9s-home-products__block--featured {
  margin-top: 18px;
}

.az9s-home-products__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-top: 2px solid #e10707;
  background: #fff;
}

.az9s-home-products__topbar h2 {
  min-width: 190px;
  margin: 0;
  padding: 12px 24px;
  color: #fff;
  background: #c91520;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.az9s-home-products__topbar h2 span {
  color: #fff600;
}

.az9s-home-products__topbar > a {
  padding: 0 18px;
  color: #566270;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.az9s-home-products__topbar > a:hover {
  color: #c91520;
}

.az9s-home-products__block--featured .az9s-home-products__topbar {
  justify-content: center;
  min-height: 38px;
  border-top: 0;
  background: #fff;
  padding: 0;
}

.az9s-home-products__block--featured .az9s-home-products__topbar h2 {
  width: min(860px, 58vw);
  min-width: 0;
  padding: 9px 18px;
  color: #fff;
  background: #fa0707;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-transform: none;
}

.az9s-home-products__block--combo-hot .az9s-home-products__topbar h2 {
  width: 100%;
  border-radius: 3px;
}

.az9s-home-products__block--featured .az9s-home-products__topbar h2 span {
  color: #fff600;
}

.az9s-home-products__block--featured .az9s-home-products__topbar > a {
  display: none;
}

.az9s-home-products__banner {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 360;
  min-height: 210px;
  background: #f7f7f7;
  overflow: hidden;
}

.az9s-home-products__banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.az9s-home-products__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 0 10px;
  background: #fff;
}

.az9s-home-products__active-tab {
  flex: 0 0 min(480px, 32vw);
  padding: 11px 18px;
  color: #fff;
  background: #e90707;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.az9s-home-products__subcats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.az9s-home-products__subcats a,
.az9s-home-products__subcats span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #8b8b8b;
  background: #fff;
  border: 1px solid #f1f1f1;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.az9s-home-products__subcats a:hover {
  color: #e90707;
  border-color: #e90707;
}

.az9s-home-products__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 0;
}

.az9s-home-product-card {
  min-width: 0;
  background: #eee9e9;
  border: 1px solid #e2e2e2;
  border-left: 0;
  box-shadow: none;
  overflow: hidden;
}

.az9s-home-product-card:first-child {
  border-left: 1px solid #e2e2e2;
}

.az9s-home-product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.az9s-home-product-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.az9s-home-product-card:hover .az9s-home-product-card__image img {
  transform: scale(1.035);
}

.az9s-home-product-card__body {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
}

.az9s-home-product-card__body h3 {
  margin: 0;
  color: #555;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.az9s-home-product-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.az9s-home-product-card__body h3 a:hover {
  color: #df1721;
}

.az9s-home-product-card__rating {
  min-height: 18px;
  color: #f30909;
  line-height: 1;
}

.az9s-home-product-card__rating .star-rating {
  float: none;
  margin: 0 auto;
}

.az9s-home-products__block--featured .az9s-home-products__grid {
  margin-top: 14px;
  gap: 10px;
  padding: 0;
}

.az9s-home-products__block--featured .az9s-home-product-card {
  border: 1px solid #e5e5e5;
  background: #eee9e9;
}

.az9s-home-products__block--featured .az9s-home-product-card:first-child {
  border-left: 1px solid #e5e5e5;
}

.az9s-home-products__block--featured .az9s-home-product-card__image img {
  object-fit: cover;
}

.az9s-home-products__block--featured .az9s-home-product-card__body {
  min-height: 84px;
  padding: 11px 10px;
}

.az9s-home-products__block--featured .az9s-home-product-card__body h3 {
  font-size: 15px;
  color: #555;
}

@media (max-width: 1280px) {
  .az9s-home-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .az9s-home-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .az9s-home-products__topbar h2 {
    font-size: 18px;
  }

  .az9s-home-products__block--featured .az9s-home-products__topbar h2 {
    width: min(720px, 86vw);
    font-size: 15px;
  }

  .az9s-home-products__tabs {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px;
  }

  .az9s-home-products__active-tab {
    flex: 0 0 auto;
    width: 100%;
  }

  .az9s-home-products__subcats {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 560px) {
  .az9s-home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 6px;
  }

  .az9s-home-product-card__body {
    min-height: 78px;
    padding: 10px 8px;
  }

  .az9s-home-product-card__body h3 {
    font-size: 13px;
  }

  .az9s-home-products__block--featured .az9s-home-products__grid {
    gap: 8px;
    padding: 0 6px;
  }

  .az9s-home-products__block--featured .az9s-home-products__topbar h2 {
    width: calc(100% - 12px);
  }
}
