.cost.has-discount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.discount_badge,
.cost .discount_badge,
.catalog .catalog_products .item .block .discount_badge,
.popular .item .block .discount_badge,
span.discount_badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green, #21A038);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}

.order_form_shell a.order_policy_link,
.order_checks a.order_policy_link,
.order_policy_note a.order_policy_link {
  color: var(--green, #21A038);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order_form_shell a.order_policy_link:hover,
.order_checks a.order_policy_link:hover,
.order_policy_note a.order_policy_link:hover {
  opacity: 0.7;
}

.category_index .common .item_link .img {
  width: 88px;
  flex: 0 0 88px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category_index .common .item_link .img img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
}

.category_index .common .item_link .text p:empty {
  display: none;
}

.banner_index .swiper .swiper-slide .img {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  z-index: 1;
}

.banner_index .swiper .swiper-slide .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.banner_index .swiper .swiper-slide .block {
  position: relative;
  z-index: 2;
}

.mini_banner .common .item .img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini_banner .common .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
}

.sale_index .swiper .item .img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.sale_index .swiper .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.sale_index .swiper .item .block {
  position: relative;
  z-index: 2;
}

.advatages .common .item .img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.advatages .common .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

@media (max-width: 900px) {
  body:has(.cart_page) main,
  body:has(.cart_page) .main,
  .cart_page,
  .cart_page main {
    overflow: visible;
  }

  .cart_page {
    padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0;
  }

  .cart_page .cart_summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 28px rgba(23, 23, 23, 0.14);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .cart_page .cart_summary .btn_green {
    margin-top: 12px;
    min-height: 48px;
  }

  .category_index .common .item_link .img {
    width: 64px;
    flex: 0 0 64px;
    height: 56px;
  }

  .category_index .common .item_link .img img {
    width: 52px;
    height: 52px;
  }
}

.catalog .catalog_stub_popular_head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.catalog .catalog_stub_popular_head h3 {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  color: #21a038;
  font-size: 1.25rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
}

.catalog .catalog_stub_popular_nav {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  gap: 8px;
}

.catalog .catalog_stub_popular_nav .arrow,
.catalog .catalog_stub_popular_nav button {
  width: 36px !important;
  height: 36px;
  flex: 0 0 36px;
  max-width: 36px;
}

.catalog .catalog_stub_popular .item .text,
.catalog .catalog_stub_popular .item .text p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order_page .msOrder .order_input_comment {
  margin-top: 10px;
}

.order_page .msOrder .order_input_comment::before {
  top: 16px;
  transform: none;
}

.order_page .msOrder .order_input_comment::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 18px;
  width: 10px;
  height: 7px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  background: transparent;
}

.order_page .msOrder .order_input_comment textarea {
  padding: 14px 16px 14px 44px;
  min-height: 96px;
}

.order_page .msOrder .order_input_comment.has-error textarea {
  outline: 1px solid #d84c3f;
}

.catalog .catalog_brands {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 28px;
}

.catalog .catalog_brands .img,
.catalog .catalog_brands a.img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 65px;
  flex: 0 0 135px;
  padding: 8px 10px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .15);
  box-sizing: border-box;
  text-decoration: none;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.catalog .catalog_brands .img img,
.catalog .catalog_brands a.img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .22s ease;
}

.catalog .catalog_brands a.img:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(33, 160, 56, .45);
  box-shadow: 0 10px 18px rgba(33, 160, 56, .18);
}

.catalog .catalog_brands a.img:hover img {
  transform: scale(1.04);
}

.catalog .catalog_brands a.img:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 4px 10px rgba(33, 160, 56, .2);
}

.catalog .catalog_brands a.img.active,
.catalog .catalog_brands a.img.is-selected {
  border-color: #21A038;
  box-shadow: 0 8px 16px rgba(33, 160, 56, .22);
}

@media (hover: none) {
  .catalog .catalog_brands a.img:hover {
    transform: none;
    border-color: transparent;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .15);
  }

  .catalog .catalog_brands a.img:hover img {
    transform: none;
  }

  .catalog .catalog_brands a.img.active:hover,
  .catalog .catalog_brands a.img.is-selected:hover {
    border-color: #21A038;
    box-shadow: 0 8px 16px rgba(33, 160, 56, .22);
  }
}

@media (max-width: 768px) {
  .catalog:has(.catalog_brands) .menu_catalog,
  .catalog:has(.catalog_brands) .catalog_menu_select {
    display: none !important;
  }

  .catalog .catalog_brands {
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    height: auto;
    gap: 8px;
    margin: 0 0 14px;
    padding: 4px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
  }

  .catalog .catalog_brands::-webkit-scrollbar {
    display: none;
  }

  .catalog .catalog_brands .img,
  .catalog .catalog_brands a.img {
    width: 128px;
    height: 56px;
    flex: 0 0 128px;
  }
}
