/* Пищевая ценность (КБЖУ) на странице блюда — разметка inc/product-nutrition.php.
   Макет: Figma «Nutrition»: на десктопе плитки 100px на бежевом (#f8f5f0),
   на мобильном — на всю ширину, белые (фон карточки там бежевый). */

.product-info .product-nutrition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
}

.product-nutrition__title {
  margin: 0;
  color: #808080;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
}

.product-nutrition__tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-nutrition__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8f5f0;
  text-align: center;
}
.product-nutrition__tile::before {
  content: none;
}

.product-nutrition__value {
  color: #1d1d1d;
  font-family: "KyivType Sans 2";
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}

.product-nutrition__label {
  color: #808080;
  font-family: "KyivType Sans 2";
  font-weight: normal;
  font-size: 12px;
  line-height: 16px;
}

@media screen and (max-width: 767px) {
  .product-info .product-nutrition {
    margin-top: 16px;
  }
  .product-nutrition__tiles {
    flex-wrap: nowrap;
    width: 100%;
  }
  .product-nutrition__tile {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 8px 6px;
  }
}

/* На узких экранах фон карточки блюда бежевый — плитки белые, как в макете */
@media screen and (max-width: 426px) {
  .product-nutrition__tile {
    background: #fff;
  }
}

/* Очень узкие экраны (до 374px): длинные значения вроде «125,5 г» не влезают в 1/4 ширины */
@media screen and (max-width: 374px) {
  .product-nutrition__tile {
    padding: 8px 2px;
  }
  .product-nutrition__value {
    font-size: 15px;
    line-height: 22px;
  }
  .product-nutrition__label {
    font-size: 11px;
  }
}
