/* ==========================================================================
   Product archives — loaded on product category / tag pages and the shop (functions.php).

   1. Brand colours and fonts for the accessory call-outs: [norweh_accessory_notice]
      (category intro) and [norweh_addon_disclaimer] (per card), styled in theme-styles.css
      with the warm greys of the pre-rebrand accessories mock-up.
   2. The redesigned product card (Figma 25:1182; loop items from
      figma-templates/redesign/build-archive.mjs): layout, type and colours are Elementor
      settings; this trims the short description and orders the price pair.
   ========================================================================== */

/* Notice / disclaimer call-outs: brand colours in custom-css.css (site-wide). */

/* ---- Redesigned product card (.nw-pcard-h) ---- */
/* Price: [norweh_min_price] prints <del>regular</del><span>active</span>; Figma shows the
   active price first with the regular one small and struck through after it. */
.nw-pcard-h__amount .elementor-heading-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.nw-pcard-h__amount .elementor-heading-title > span { order: 1; }
.nw-pcard-h__amount .elementor-heading-title del { order: 2; font-size: 14px; color: var(--nw-ink); }
.nw-pcard-h__amount .elementor-heading-title del .amount { font-size: inherit; }

/* Short description: product pages show the intro, the kit list and a "Read more"
   toggle; the card keeps only the kit list. Descriptions without a list (accessories)
   show their intro, cut to three lines. */
.nw-pcard-h__kit .woocommerce-product-details__short-description:has(ul) > p,
.nw-pcard-h__kit #extra-content { display: none !important; }
.nw-pcard-h__kit .woocommerce-product-details__short-description:not(:has(ul)) > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.nw-pcard-h__kit .woocommerce-product-details__short-description:not(:has(ul)) > p ~ p { display: none; }
.nw-pcard-h__kit b,
.nw-pcard-h__kit strong { font-weight: 400; }
.nw-pcard-h__kit ul { margin: 0 !important; padding-left: 16px; list-style: disc; }
.nw-pcard-h__kit li::marker { font-size: 0.8em; }

/* "See specifications" and the product name read as links. */
.nw-pcard-h__specs .elementor-button { padding: 0; }
.nw-pcard-h__specs .elementor-button:hover .elementor-button-text,
.nw-pcard-h__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Accessory disclaimer sits under the description inside the card. */
.nw-pcard-h .disclaim { margin: 8px 0 0; }
