

  /* Стиль для звёздочки-сноски */
  .price-disclaimer {
    margin-left: 4px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
    vertical-align: super;
  }



  document.addEventListener("DOMContentLoaded", function () {
    // Находим все элементы с ценой
    const priceElements = document.querySelectorAll('.t-store__card__price-value, .js-product-price');

    priceElements.forEach(function (priceEl) {
      // Проверяем, не обработан ли уже элемент
      if (priceEl.dataset.priceModified === "true") return;

      // Получаем текущее значение цены
      const currentText = priceEl.textContent.trim();

      // Очищаем содержимое
      priceEl.innerHTML = '';

      // Создаём "от"
      const fromSpan = document.createElement('span');
      fromSpan.textContent = 'от ';
      fromSpan.style.marginRight = '6px';
      fromSpan.style.fontWeight = 'normal';

      // Добавляем цену
      const priceSpan = document.createElement('span');
      priceSpan.textContent = currentText;

      // Добавляем звёздочку-сноску
      const starSpan = document.createElement('span');
      starSpan.className = 'price-disclaimer';
      starSpan.textContent = '*';

      // Собираем всё вместе
      priceEl.appendChild(fromSpan);
      priceEl.appendChild(priceSpan);
      priceEl.appendChild(starSpan);

      // Помечаем, что элемент уже обработан
      priceEl.dataset.priceModified = 'true';
    });
  });
