/* Content links highlighting — добавлено opencode 2026-07-07 */
/* Делает ссылки внутри текстового контента видимыми: подчёркивание + фирменный зелёный, hover — оранжевый.

   Покрывает:
   - .entry-content — статьи блога и статические страницы (обёртка добавлена в single.php/page.php)
   - .p-product__adv-text — текст блоков описания товара (карточка, вкладка «О товаре»)
   - .p-product__tabs-content-text — контейнер вкладок (Состав, Способ применения и т.д.)
   - .p-product__variation-description — описание выбранной вариации
   - .woocommerce-product-details__short-description — короткое описание под ценой
*/

.entry-content a,
.p-product__adv-text a,
.p-product__tabs-content-text a,
.p-product__variation-description a,
.woocommerce-product-details__short-description a {
    color: var(--color-forest, #6c9f53);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: auto;
    transition: color 0.15s ease;
}

.entry-content a:hover,
.entry-content a:focus,
.p-product__adv-text a:hover,
.p-product__adv-text a:focus,
.p-product__tabs-content-text a:hover,
.p-product__tabs-content-text a:focus,
.p-product__variation-description a:hover,
.p-product__variation-description a:focus,
.woocommerce-product-details__short-description a:hover,
.woocommerce-product-details__short-description a:focus {
    color: var(--color-accent-orange, #f4993d);
    text-decoration: underline;
}

/* Ссылки-кнопки внутри контента не подчёркиваем */
.entry-content a.wp-block-button__link,
.entry-content a.button,
.entry-content a.btn,
.entry-content a.p-btn,
.entry-content a.p-card__btn-item,
.p-product__tabs-content-text a.p-btn,
.p-product__tabs-content-text a.p-card__btn-item,
.p-product__adv-text a.p-btn,
.p-product__adv-text a.p-card__btn-item {
    color: inherit;
    text-decoration: none;
}

/* Внутри списков ссылок (например меню категорий в тексте) тоже подчёркиваем */
.entry-content ul a,
.entry-content ol a,
.p-product__adv-text ul a,
.p-product__adv-text ol a,
.p-product__tabs-content-text ul a,
.p-product__tabs-content-text ol a {
    color: var(--color-forest, #6c9f53);
    text-decoration: underline;
}
