/* Список рецептов */
.recipe-container {
  margin: 30px;
}

.recipes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
  margin: 20px;
}

.recipe-card {
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 310px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe-card__photo {
  background: url('../images/recipe_bg.png') center center no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px;
  border: 1px solid #F3F3F3;
  border-radius: 30px;
  height: 412px;
}

.recipe-card__photo img {
  max-width: 250px;
  max-height: 283px;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-card__title {
  font-size: 22px;
  margin: 10px 0;
  color: #000;
  font-weight: bold;
}

.recipe-ingredients-preview {
  position: relative;
  font-size: 16px;
  padding: 0 0 0 17px;
  line-height: 100%;
}

.recipe-ingredients-preview::before {
  content: '';
  width: 9px;
  height: 9px;
  background: url('../images/recipe_icon.png') center center no-repeat;
  position: absolute;
  left: 0;
  top: 5px;
}

.recipe-card__btn {
  display: block;
  text-align: center;
  background: #E26291;
  color: #fff;
  padding: 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: bold;
  border: none;
}

.recipe-card:hover .recipe-card__btn {
  background: #e0559b;
}

/* Страница рецепта */
.recipe-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 30px;
}

.recipe-photo {
  grid-column: 1;
  background: url('../images/recipe_bg.png') center center no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px;
  border: 1px solid #F3F3F3;
  border-radius: 30px;
}

.recipe-photo img {
  max-width: 250px;
  max-height: 283px;
}

.recipe-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ingredients-preview {
  background: #A389B3;
  padding: 30px;
  border-radius: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.preview-title {
  font-weight: 700;
  font-size: 25px;
}

.ingredients-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-preview ul li {
  position: relative;
}

.ingredients-preview ul li::before {
  content: '';
  width: 9px;
  height: 9px;
  background: url('../images/recipe_icon_white.png') center center no-repeat;
  position: absolute;
  left: 0;
  top: 8px;
}

.cooking-process {
  background: #FAF6BD;
  padding: 30px;
  border-radius: 30px;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.cooking-title {
  font-weight: 700;
  font-size: 25px;
}

.cooking-process ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cooking-process ul li {
  position: relative;
}

.cooking-process ul li::before {
  content: '';
  width: 9px;
  height: 9px;
  background: url('../images/recipe_icon.png') center center no-repeat;
  position: absolute;
  left: 0;
  top: 8px;
}

.recipe-video {
  grid-column: 3;
  background: #B3A089;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 30px;
}

.video-title {
  font-weight: 700;
  font-size: 25px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 5px;
}

.linked-products-title {
  font-weight: 500;
  font-size: 30px;
  grid-column: 1 / -1;
  color: #000;
  margin-top: 80px;
}

.item-stock {
  font-weight: bold;
}

.ingredients-title {
  font-weight: 500;
  font-size: 27px;
  margin-top: 60px;
}
