/* hm-stable.css — keeps the page from jumping while late scripts finish (homemart.bg). Source: site_ui/layout-stability/ */

/* 1. Header menu: „Калкулатор за климатик“ is a standard Journal3 menu item (server-rendered, numbered class
   main-menu-item-N), so it is there at the first paint. hm-stable.js gives it the loader's classes, so
   hm-calc-loader.js adds no copy; if a copy (no numbered class) is added anyway, it stays hidden. */
.j-menu:has(> li[class*="main-menu-item-"] > a[href$="/kalkulator-klimatik"]) > li.hm-calc-nav:not([class*="main-menu-item-"]) { display: none !important; }

/* 2. Product price: Journal Custom JS adds the „ОТСТЪПКА: … €“ badge (.hm-price-saving: 32px + 10px margin) after the
   page has rendered, which pushed everything below it down by 42px. Hold that space whenever there is an old price
   (the badge always follows one); the placeholder goes as soon as the badge is in. */
.route-product-product:not(.popup) .product-info .product-details .price-group:has(> .product-price-old):not(:has(> .hm-price-saving))::after {
  content: ""; order: 3; display: block; height: 32px; margin-top: 10px;
}
