.home-recommendations {
  box-sizing: border-box;
  margin: 0 0 56px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-recommendations *,
.home-recommendations *::before,
.home-recommendations *::after {
  box-sizing: border-box;
}

.home-recommendations__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.home-recommendations__title {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

.home-recommendations__catalog {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.home-recommendations__catalog:hover {
  color: #728bb3;
  text-decoration: none;
}

.home-recommendations__catalog-arrow {
  color: #728bb3;
  font-size: 0;
  width: 25px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='10' viewBox='0 0 28 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 9L26 5L22 1M26 5H1' stroke='%23728BB3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: cover;
}

.home-recommendations__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.home-recommendations__tab {
  min-height: 46px;
  margin: 0;
  padding: 8px 14px;
  color: rgba(51, 51, 51, 1);
  background: #fff;
  border: 1px solid rgba(243, 226, 210, 1);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-recommendations__tab:hover,
.home-recommendations__tab:focus-visible {
  color: rgba(51, 51, 51, 1);
  border-color: rgba(243, 226, 210, 1);
  outline: none;
}

.home-recommendations__tab[aria-selected="true"] {
  color: rgba(51, 51, 51, 1);
  background: #FEF1E5;
  border-color: rgba(243, 226, 210, 1);

}

.home-recommendations__panel[hidden] {
  display: none !important;
}

.home-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.home-recommendation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #333;
}

.home-recommendation-card__media {
  position: relative;
  margin-bottom: 12px;
}

.home-recommendation-card__image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f5f6;
  border-radius: 6px;
}

.home-recommendation-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.home-recommendation-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 5px 9px;
  color: #fff;
  background: #728bb3;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.home-recommendation-card__dots {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 3px 0 -6px;
}

.home-recommendation-card__dot {
  width: 6px;
  min-width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  background: #b7b9bd;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.home-recommendation-card__dot[aria-pressed="true"] {
  background: #333;
}

.home-recommendation-card__title {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  padding: 0 10px;
}

.home-recommendation-card__title:hover {
  color: #728bb3;
  text-decoration: none;
}

.home-recommendation-card__description {
  display: -webkit-box;
  min-height: 40px;
  margin: 8px 0 12px;
  padding: 0 10px;
  overflow: hidden;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-recommendation-card__prices {
  min-height: 66px;
  margin-bottom: 14px;
  padding: 0 10px;
}

.home-recommendation-card__price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 22px;
  color: #555;
  font-size: 12px;
  line-height: 18px;
}

.home-recommendation-card__price-label {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recommendation-card__price-value {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.home-recommendation-card__price-request {
  display: block;
  color: #555;
  font-size: 13px;
  line-height: 22px;
}

.home-recommendation-card__form {
  margin-top: auto;
  padding: 0 10px;
}

.home-recommendation-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 97px;
  gap: 8px;
}

.home-recommendation-card__quantity {
  display: grid;
  min-width: 0;
  grid-template-columns: 55px minmax(42px, 1fr) 55px;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 4px;
}

.home-recommendation-card__quantity-button {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #728bb3;
  background: #fff;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 29px;
  font-weight: 400;
  line-height: 42px;
  cursor: pointer;
}

.home-recommendation-card__quantity-button:hover,
.home-recommendation-card__quantity-button:focus-visible {
  color: #405a80;
  background: #f2f5f9;
  outline: none;
}

.home-recommendation-card__quantity-input {
  width: 100%;
  min-width: 0;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  color: #444;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 16px;
  line-height: 42px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.home-recommendation-card__quantity-input::-webkit-outer-spin-button,
.home-recommendation-card__quantity-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.home-recommendation-card__cart-button {
  position: relative;
  display: flex;
  width: 97px;
  height: 44px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #728bb3;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.home-recommendation-card__cart-button:hover,
.home-recommendation-card__cart-button:focus-visible {
  background: #5d78a2;
  outline: none;
}

.home-recommendation-card__cart-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.home-recommendation-card__cart-icon {
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  mask: url("/templates/protostar/images/cart.svg") center / contain no-repeat;
  -webkit-mask: url("/templates/protostar/images/cart.svg") center / contain no-repeat;
}

.home-recommendation-card__message {
  min-height: 18px;
  padding-top: 4px;
  color: #777;
  font-size: 11px;
  line-height: 14px;
}

.home-recommendation-card__message.is-success {
  color: #4d7658;
}

.home-recommendation-card__message.is-error {
  color: #a34d4d;
}

@media screen and (max-width: 1000px) {
  .home-recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }
}

@media screen and (max-width: 620px) {
  .home-recommendations {
    margin-bottom: 45px;
    padding: 0;
  }

  .home-recommendations__header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .home-recommendations__title {
    font-size: 26px;
  }

  .home-recommendations__tabs {
    flex-wrap: nowrap;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .home-recommendations__tab {
    flex: 0 0 auto;
  }

  .home-recommendations__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-recommendation-card__title {
    font-size: 15px;
    line-height: 20px;
  }
}
