/**
 * Elartum — Nature Smart (WoodMart + WooCommerce).
 * Версия 1.1 — селекторы темы WoodMart + краткое описание в summary.
 * Деплой: обновите файл на сервере и сбросьте кеш (SpeedyCache и т.п.).
 */

/* Витрина категории */
body.tax-product_cat-nature-smart ul.products li.product .woocommerce-loop-product__title,
.product_cat-nature-smart .woocommerce ul.products li.product .woocommerce-loop-product__title {
  line-height: 1.25;
  margin-bottom: 0.35em;
}

body.tax-product_cat-nature-smart ul.products li.product .price,
.product_cat-nature-smart .woocommerce ul.products li.product .price {
  line-height: 1.3;
}

/* Карточка товара: контекст задаётся mu-plugin (body.elartum-nature-smart-context) */

/* Краткое описание / характеристики в правой колонке (не табы) */
body.elartum-nature-smart-context .woocommerce-product-details__short-description,
body.elartum-nature-smart-context .summary-inner .woocommerce-product-details__short-description,
body.elartum-nature-smart-context .wd-product-detail .woocommerce-product-details__short-description,
body.elartum-nature-smart-context .entry-summary .woocommerce-product-details__short-description {
  line-height: 1.55 !important;
}

body.elartum-nature-smart-context .woocommerce-product-details__short-description p,
body.elartum-nature-smart-context .woocommerce-product-details__short-description li {
  line-height: inherit !important;
  margin: 0 0 6px !important;
}

body.elartum-nature-smart-context .woocommerce-product-details__short-description p:last-child,
body.elartum-nature-smart-context .woocommerce-product-details__short-description li:last-child {
  margin-bottom: 0 !important;
}

body.elartum-nature-smart-context .woocommerce-product-details__short-description p:empty {
  display: none !important;
}

body.elartum-nature-smart-context .woocommerce-product-details__short-description br {
  display: block;
  margin-bottom: 6px;
}

body.elartum-nature-smart-context .woocommerce-product-details__short-description strong {
  line-height: inherit !important;
}

/* WoodMart: обёртки табов / аккордеона */
body.elartum-nature-smart-context .wd-tabs-wrapper,
body.elartum-nature-smart-context .wd-single-tabs,
body.elartum-nature-smart-context .woocommerce-tabs,
body.elartum-nature-smart-context .woocommerce-tabs.wc-tabs {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.elartum-nature-smart-context .woocommerce-tabs ul.tabs,
body.elartum-nature-smart-context .wd-nav-wrapper ul.wd-nav,
body.elartum-nature-smart-context nav.wd-nav-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.elartum-nature-smart-context .woocommerce-tabs .panel,
body.elartum-nature-smart-context .woocommerce-Tabs-panel,
body.elartum-nature-smart-context #tab-description {
  line-height: 1.55;
}

/* Fallback без класса контекста (если фильтр body не сработал) */
body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description {
  line-height: 1.55 !important;
}

body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description p,
body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description li {
  line-height: inherit !important;
  margin: 0 0 6px !important;
}

body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description p:last-child,
body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description li:last-child {
  margin-bottom: 0 !important;
}

body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description p:empty {
  display: none !important;
}

body.single-product.product_cat-nature-smart .woocommerce-product-details__short-description br {
  display: block;
  margin-bottom: 6px;
}

body.single-product .woocommerce-tabs {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
