.row-flex:has(.ap-ozon-tile-layout) {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
  margin-right: 0;
  margin-left: 0;
}

.row-flex:has(.ap-ozon-tile-layout)::before,
.row-flex:has(.ap-ozon-tile-layout)::after {
  display: none;
}

.ap-ozon-tile-layout {
  float: none;
  width: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  margin-bottom: 0;
}

.ap-ozon-tile {
  position: relative;
  display: block;
  min-width: 0;
  color: #1f1f1f;
  background: transparent;
}

.ap-ozon-tile__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f7f9;
  border-radius: 10px;
}

.ap-ozon-tile__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  text-decoration: none;
}

.ap-ozon-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .16s ease;
}

.ap-ozon-tile:hover .ap-ozon-tile__image {
  transform: scale(1.025);
}

.ap-ozon-tile__placeholder {
  display: block;
  width: 68%;
  height: 68%;
  border-radius: 8px;
  background: #eceff3;
}

.ap-ozon-tile__fav,
.ap-ozon-tile__cart {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #606775;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: color .16s ease, opacity .16s ease, transform .16s ease;
}

.ap-ozon-tile__fav {
  top: 8px;
  right: 8px;
}

.ap-ozon-tile__cart {
  right: 8px;
  bottom: 8px;
  opacity: 0;
  transform: translateY(4px);
}

.ap-ozon-tile:hover .ap-ozon-tile__cart,
.ap-ozon-tile__cart:focus {
  opacity: 1;
  transform: translateY(0);
}

.ap-ozon-tile__fav:hover,
.ap-ozon-tile__cart:hover {
  color: #005bff;
}

.ap-ozon-tile__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  background: #f04452;
  border-radius: 5px;
}

.ap-ozon-tile__info {
  padding-top: 7px;
  min-width: 0;
}

.ap-ozon-tile__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 22px;
  overflow: hidden;
}

.ap-ozon-tile__price {
  min-width: 0;
  color: #111827;
  font-size: 19px;
  line-height: 1.08;
  font-weight: 800;
  white-space: nowrap;
}

.ap-ozon-tile__price--request {
  font-size: 15px;
  font-weight: 700;
}

.ap-ozon-tile__old-price {
  color: #8d96a6;
  font-size: 12px;
  line-height: 1;
  text-decoration: line-through;
  white-space: nowrap;
}

.ap-ozon-tile__title {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 4px;
  overflow: hidden;
  color: #2b313d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ap-ozon-tile__title:hover {
  color: #005bff;
  text-decoration: none;
}

.ap-ozon-tile__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 17px;
  margin-top: 3px;
  color: #8a93a3;
  font-size: 12px;
  line-height: 1;
}

.ap-ozon-tile__star {
  color: #f5a400;
}

@media (max-width: 1399px) {
  .row-flex:has(.ap-ozon-tile-layout) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .row-flex:has(.ap-ozon-tile-layout) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .row-flex:has(.ap-ozon-tile-layout) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .ap-ozon-tile__media {
    border-radius: 8px;
  }

  .ap-ozon-tile__image-link {
    padding: 6px;
  }

  .ap-ozon-tile__fav,
  .ap-ozon-tile__cart {
    width: 28px;
    height: 28px;
  }

  .ap-ozon-tile__cart {
    opacity: 1;
    transform: none;
  }

  .ap-ozon-tile__price {
    font-size: 16px;
  }

  .ap-ozon-tile__old-price,
  .ap-ozon-tile__badge,
  .ap-ozon-tile__rating {
    font-size: 11px;
  }

  .ap-ozon-tile__title {
    min-height: 32px;
    font-size: 12px;
    line-height: 1.3;
  }
}
