/**
 * Текстовая иерархия (ШАГ 3.2): shell / card primary / secondary / labels / meta / configurator model.
 * Подключать после модульных стилей (cards, overlays, product_view, configurator), чтобы токены
 * переопределяли локальные расхождения.
 *
 * Слои:
 *   A — shell title (#contentScreenTitle)
 *   B — primary row title (listing / search / hero cards / legacy inline product title)
 *   C — secondary (subtitle, summary, search description, product description)
 *   D — labels (оси конфигуратора, секции iPhone)
 *   E — meta emphasis (цена в карточке листинга)
 */
:root {
  --app-text-shell-title-size: 17px;
  --app-text-shell-title-weight: 600;
  --app-text-shell-title-line-height: 1.25;
  --app-text-shell-title-color: #1d1d1f;

  --app-text-card-title-size: 15px;
  --app-text-card-title-weight: 600;
  --app-text-card-title-line-height: 1.3;
  --app-text-card-title-color: #1d1d1f;

  --app-text-secondary-size: 13px;
  --app-text-secondary-weight: 400;
  --app-text-secondary-line-height: 1.35;
  --app-text-secondary-color: #6e6e73;

  --app-text-body-secondary-size: 14px;
  --app-text-body-secondary-line-height: 1.45;
  --app-text-body-secondary-color: #6e6e73;

  --app-text-label-size: 14px;
  --app-text-label-weight: 500;
  --app-text-label-line-height: 1.3;
  --app-text-label-color: #6e6e73;

  --app-text-meta-size: 14px;
  --app-text-meta-weight: 600;
  --app-text-meta-color: #1d1d1f;

  --app-text-product-price-size: 16px;
  --app-text-product-price-weight: 600;
  --app-text-product-price-color: #1d1d1f;

  --app-text-configurator-model-size: 26px;
  --app-text-configurator-model-weight: 600;
  --app-text-configurator-model-line-height: 1.2;
  --app-text-configurator-model-color: #1d1d1f;

  --app-text-price-label-size: 14px;
  --app-text-price-label-color: #6e6e73;
}

/* A — shell */
.content-screen__title,
.app-text--shell {
  font-size: var(--app-text-shell-title-size);
  font-weight: var(--app-text-shell-title-weight);
  line-height: var(--app-text-shell-title-line-height);
  color: var(--app-text-shell-title-color);
}

/* B — primary card / search row */
.item-card__title,
.item-card__title--hero,
.search-result__title,
.app-text--card-title {
  font-size: var(--app-text-card-title-size);
  font-weight: var(--app-text-card-title-weight);
  line-height: var(--app-text-card-title-line-height);
  color: var(--app-text-card-title-color);
}

/* C — secondary */
.item-card__description,
.search-result__description,
.config-summary,
.app-text--secondary {
  font-size: var(--app-text-secondary-size);
  font-weight: var(--app-text-secondary-weight);
  line-height: var(--app-text-secondary-line-height);
  color: var(--app-text-secondary-color);
}

/* Product long description — чуть крупнее строки карточки, тот же приглушённый цвет */
.product-description,
.app-text--body-secondary {
  font-size: var(--app-text-body-secondary-size);
  line-height: var(--app-text-body-secondary-line-height);
  color: var(--app-text-body-secondary-color);
}

/* D — labels */
.apple-configurator__label,
.app-text--label {
  font-size: var(--app-text-label-size);
  font-weight: var(--app-text-label-weight);
  line-height: var(--app-text-label-line-height);
  color: var(--app-text-label-color);
}

/* E — listing price */
.item-card__price,
.app-text--meta {
  font-size: var(--app-text-meta-size);
  font-weight: var(--app-text-meta-weight);
  color: var(--app-text-meta-color);
}

/* Простой product-card: цена */
.product-price,
.app-text--product-price {
  font-size: var(--app-text-product-price-size);
  font-weight: var(--app-text-product-price-weight);
  color: var(--app-text-product-price-color);
}

/* Legacy inline title в теле — не крупнее shell: тот же слой B */
.product-title,
.product-title--legacy-inline {
  font-size: var(--app-text-card-title-size);
  font-weight: var(--app-text-card-title-weight);
  line-height: var(--app-text-card-title-line-height);
  color: var(--app-text-card-title-color);
}

/* Название модели в Apple configurator (если появится в DOM) */
.apple-configurator__title,
.app-text--configurator-model {
  font-size: var(--app-text-configurator-model-size);
  font-weight: var(--app-text-configurator-model-weight);
  line-height: var(--app-text-configurator-model-line-height);
  color: var(--app-text-configurator-model-color);
}

.apple-configurator__price-wrap .price-label,
.app-text--price-label {
  font-size: var(--app-text-price-label-size);
  color: var(--app-text-price-label-color);
}
