/* ==================================================================
   МСК-ЕВРОСТРОЙ - редизайн «Кабель-М»
   Подключается после style.css дочерней темы (inc/msk-redesign.php).
   Селекторы с body.msk-redesign - чтобы перебить динамический CSS
   Blocksy, который выводится после стилей дочерней темы.
   ================================================================== */

/* ---------- 0. Шрифты (локально, latin + cyrillic) ---------- */

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-600.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-700.woff2") format("woff2");
  font-weight: 700 800; font-style: normal; font-display: swap;
}

/* ---------- 1. Токены ---------- */

:root {
  --msk-heat: #E65100;        /* знак, «кабель», крупные акценты */
  --msk-heat-text: #B83F00;   /* оранжевый для текста и кнопок с белым текстом (AA) */
  --msk-heat-dark: #8A2F00;
  --msk-graphite: #17191C;
  --msk-ink: #1B1D21;
  --msk-muted: #5E636B;
  --msk-line: #E3E0DA;
  --msk-ground: #F6F4F1;
  --msk-card: #FFFFFF;
  --msk-ice: #1E6FA8;
  --msk-ice-bg: #E8F1F8;
  --msk-ice-line: #C9DCEB;
  --msk-cable: var(--msk-heat);
  --msk-font-display: "Unbounded", system-ui, sans-serif;
  --msk-font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --msk-r-sm: 10px;
  --msk-r: 14px;
  --msk-r-lg: 20px;

  /* старые переменные style.css - новые значения */
  --msk-primary: var(--msk-heat-text);
  --msk-primary-hover: var(--msk-heat-dark);
  --msk-accent: var(--msk-ice);
  --msk-bg: var(--msk-ground);
  --msk-text: var(--msk-ink);
  --msk-gray: var(--msk-muted);
  --msk-radius: var(--msk-r-sm);
}

body.msk-redesign {
  --theme-font-family: var(--msk-font-body);
  --theme-text-color: var(--msk-ink);
  --theme-link-initial-color: var(--msk-ink);
  --theme-link-hover-color: var(--msk-heat-text);
  --theme-button-background-initial-color: var(--msk-graphite);
  --theme-button-background-hover-color: var(--msk-heat-text);
  --theme-button-text-initial-color: #FFFFFF;
  --theme-button-text-hover-color: #FFFFFF;
  --theme-button-border-radius: var(--msk-r-sm);
  --theme-palette-color-1: var(--msk-heat-text);
  --theme-palette-color-2: var(--msk-heat-dark);
  --theme-palette-color-3: var(--msk-ink);
  --theme-palette-color-7: var(--msk-ground);
  font-family: var(--msk-font-body);
  color: var(--msk-ink);
  background-color: var(--msk-ground);
}

/* ---------- 2. Типографика ---------- */

body.msk-redesign h1,
body.msk-redesign h2,
body.msk-redesign h3,
body.msk-redesign .page-title,
body.msk-redesign .msk-section-title {
  font-family: var(--msk-font-display);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--msk-ink);
}

body.msk-redesign .page-title {
  --theme-font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

body.msk-redesign .price,
body.msk-redesign .woocommerce-Price-amount {
  font-family: var(--msk-font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. Иконки ---------- */

.msk-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.msk-icon .msk-a { stroke: var(--msk-cable); }

/* ---------- 4. Шапка ---------- */

/* верхняя строка - графитовая */
body.msk-redesign .ct-header [data-row="top"] {
  background: var(--msk-graphite);
  color: #D6D8DC;
}
body.msk-redesign .ct-header [data-row="top"] .msk-header-info,
body.msk-redesign .ct-header [data-row="top"] a { color: #D6D8DC; }
body.msk-redesign .ct-header [data-row="top"] a:hover { color: #FFFFFF; }
body.msk-redesign .ct-header [data-row="top"] .msk-icon { --msk-cable: #FF7A2E; }

/* основная строка */
body.msk-redesign .ct-header [data-row="middle"] {
  background: #FFFFFF;
  border-bottom: 1px solid var(--msk-line);
}
body.msk-redesign .site-logo-container svg.msk-logo {
  height: 48px;
  width: auto;
  display: block;
}

body.msk-redesign .msk-search__field {
  height: 48px;
  border: 1.5px solid #D9D5CE;
  border-radius: var(--msk-r);
  background: #FAF9F7;
  font-size: 15px;
}
body.msk-redesign .msk-search__field:focus { border-color: var(--msk-ink); background: #FFFFFF; }
body.msk-redesign .msk-search__submit {
  inset: 6px 6px 6px auto;
  width: 36px;
  border-radius: 8px;
  background: var(--msk-graphite);
  color: #FFFFFF;
}
body.msk-redesign .msk-search__submit:hover { background: var(--msk-heat-text); color: #FFFFFF; }
body.msk-redesign .msk-search__submit svg { width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; }

body.msk-redesign .msk-header-phone a {
  font-family: var(--msk-font-display);
  font-weight: 600;
  color: var(--msk-ink);
}
body.msk-redesign .msk-header-phone a:hover { color: var(--msk-heat-text); }

/* строка меню каталога */
body.msk-redesign .ct-header [data-row="bottom"] {
  background: #FFFFFF;
  border-bottom: 1px solid var(--msk-line);
}
/* Меню каталога получает всю строку: кнопка «Подобрать тёплый пол» из этой
   строки убрана (калькулятор есть в верхней строке и в блоке «Подобрать»
   в категориях). Пункты распределяются по ширине равномерно. */
body.msk-redesign .ct-header [data-row="bottom"] [data-column="end"] { display: none; }
body.msk-redesign .ct-header [data-row="bottom"] .ct-container { grid-template-columns: minmax(0, 1fr); }
body.msk-redesign .ct-header [data-row="bottom"] [data-column="start"],
body.msk-redesign .ct-header [data-row="bottom"] [data-column="start"] > [data-items],
body.msk-redesign .ct-header [data-row="bottom"] [data-id="menu"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
body.msk-redesign[data-header*="type-1"] .ct-header [data-row="bottom"] [data-id="menu"] {
  --menu-items-spacing: 20px;
}
body.msk-redesign .ct-header [data-row="bottom"] [data-id="menu"] > ul {
  flex-grow: 1;
  justify-content: space-between;
  gap: var(--menu-items-spacing);
  margin: 0;
}
body.msk-redesign .ct-header [data-row="bottom"] [data-id="menu"] > ul > li {
  margin: 0;
  padding: 0;
}
body.msk-redesign .ct-header [data-id="menu"] > ul > li > a {
  --menu-item-padding: 0;
  gap: 6px;
  padding-inline: 0;
  white-space: nowrap;
  font-weight: 500;
  text-transform: none;
  color: var(--msk-ink);
}
body.msk-redesign[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  --theme-font-size: 15px;
}
body.msk-redesign .ct-header [data-id="menu"] > ul > li > a .ct-toggle-dropdown-desktop {
  margin-left: 2px;
}
@media (max-width: 1399.98px) {
  body.msk-redesign[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a { --theme-font-size: 14px; }
}
@media (max-width: 1199.98px) {
  body.msk-redesign[data-header*="type-1"] .ct-header [data-row="bottom"] [data-id="menu"] { --menu-items-spacing: 10px; }
  body.msk-redesign[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a { --theme-font-size: 13px; }
  /* стрелки занимают ~200 px - на узком десктопе убираем, список открывается по наведению */
  body.msk-redesign .ct-header [data-row="bottom"] [data-id="menu"] > ul > li > a .ct-toggle-dropdown-desktop { display: none; }
}
body.msk-redesign .ct-header [data-id="menu"] > ul > li > a .msk-icon {
  width: 20px;
  height: 20px;
}
body.msk-redesign .ct-header [data-id="menu"] > ul > li:hover > a,
body.msk-redesign .ct-header [data-id="menu"] > ul > li > a:hover { color: var(--msk-heat-text); }
body.msk-redesign .ct-header [data-id="menu"] > ul > li.current-menu-item > a,
body.msk-redesign .ct-header [data-id="menu"] > ul > li.current-menu-ancestor > a {
  color: var(--msk-heat-text);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--msk-heat);
}

/* В горизонтальном меню десять пунктов с иконками не помещаются в контейнер
   1290 px ни при какой ширине экрана - иконки показываем в мобильном меню
   и в выпадающих списках, а в строке каталога только текст. */
body.msk-redesign .ct-header [data-row="bottom"] [data-id="menu"] > ul > li > a .msk-icon { display: none; }

/* выпадающее меню */
body.msk-redesign .ct-header .sub-menu {
  border-radius: var(--msk-r);
  box-shadow: 0 12px 32px rgba(23, 25, 28, 0.12);
  overflow: hidden;
}

/* Мостик для hover: ссылки пунктов без вертикальных отступов, а выпадающий
   список Blocksy ставит по низу строки шапки - между ними ~15 px, курсор их
   пересекает, hover теряется и список закрывается раньше клика. Пока пункт
   под курсором, под ним есть невидимая полоса до списка. */
body.msk-redesign .ct-header [data-id="menu"] > ul > li {
  position: relative;
}
body.msk-redesign .ct-header [data-id="menu"] > ul > li:hover::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 24px;
}

/* мобильное меню (off-canvas): иконки остаются */
body.msk-redesign #offcanvas .menu-item > a .msk-icon,
body.msk-redesign #offcanvas .ct-menu-link .msk-icon {
  width: 22px; height: 22px; margin-right: 10px;
}

/* ---------- 5. Шапка категории (hero Blocksy) ---------- */

body.msk-redesign.tax-product_cat .hero-section {
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--msk-r-lg);
  background: #FFFFFF;
}
body.msk-redesign.tax-product_cat .hero-section .page-description {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.5;
  color: #2E3338;
}
body.msk-redesign .ct-breadcrumbs {
  --theme-text-transform: none;
  --theme-font-weight: 400;
  --theme-font-size: 13px;
  color: var(--msk-muted);
}

/* ---------- 6. Чипы подкатегорий + «Подобрать» ---------- */

.msk-cat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start; /* плашка «Подобрать» не растягивается под высокий список чипов */
  margin-bottom: 24px;
}
.msk-chips {
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.msk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--msk-line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--msk-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.msk-chip:hover { border-color: var(--msk-ink); color: var(--msk-ink); }
.msk-chip__count { color: var(--msk-muted); font-size: 12px; }

.msk-pick {
  flex: 0 1 420px;
  min-width: 340px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--msk-r-lg);
  background: #FFFFFF;
}
.msk-pick__body { flex-grow: 1; }
.msk-pick__title { font-family: var(--msk-font-display); font-weight: 600; font-size: 15px; line-height: 1.3; }
.msk-pick__text { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--msk-muted); }
.msk-pick__button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--msk-r-sm);
  background: var(--msk-heat-text);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.msk-pick__button:hover { background: var(--msk-heat-dark); color: #FFFFFF; }

/* ---------- 7. Сортировка и счётчик ---------- */

body.msk-redesign .woo-listing-top .woocommerce-result-count { color: var(--msk-muted); font-size: 14px; }
body.msk-redesign .woocommerce-ordering select {
  height: 44px;
  padding: 0 40px 0 14px;
  border: 0;
  border-radius: var(--msk-r-sm);
  background-color: #FFFFFF;
  font-size: 14px;
}

/* ---------- 8. Карточки товаров ---------- */

body.msk-redesign [data-products] {
  --grid-columns-gap: 16px;
}
body.msk-redesign [data-products] > li.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--msk-r-lg);
  background: var(--msk-card);
  transition: box-shadow 0.2s ease;
}
body.msk-redesign [data-products] > li.product:hover {
  box-shadow: 0 10px 28px rgba(23, 25, 28, 0.08);
}
body.msk-redesign [data-products] .ct-media-container {
  border-radius: var(--msk-r);
  background: #F3F1EE;
}
body.msk-redesign [data-products] .ct-media-container img {
  mix-blend-mode: multiply; /* белый фон фото сливается с подложкой */
}
body.msk-redesign [data-products] .woocommerce-loop-product__title {
  --theme-font-size: 15px;
  font-family: var(--msk-font-body);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
body.msk-redesign [data-products] .woocommerce-loop-product__title a { color: var(--msk-ink); }
body.msk-redesign [data-products] .woocommerce-loop-product__title a:hover { color: var(--msk-heat-text); }

body.msk-redesign [data-products] .price {
  margin-top: auto;
  font-size: 19px;
  color: var(--msk-ink);
}
body.msk-redesign [data-products] .price del,
body.msk-redesign [data-products] .price del .amount {
  font-family: var(--msk-font-body);
  font-size: 14px;
  font-weight: 400;
  color: #6B6F76;
}
body.msk-redesign [data-products] .price ins { text-decoration: none; color: var(--msk-heat-text); }

/* категория в карточке дублирует заголовок страницы - прячем */
body.msk-redesign.tax-product_cat [data-products] .entry-meta { display: none; }

body.msk-redesign [data-products] .ct-woo-card-actions .button {
  min-height: 44px;
  border-radius: var(--msk-r-sm);
  font-weight: 600;
}

/* «Распродажа» */
body.msk-redesign .onsale {
  top: 12px; left: 12px;
  min-height: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--msk-heat-text);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

/* ---------- 9. Фильтры (Filter Everything) ---------- */

body.msk-redesign .ct-sidebar .widget_wpc_filters_widget {
  padding: 22px;
  border-radius: var(--msk-r-lg);
  background: #FFFFFF;
}
body.msk-redesign .wpc-filter-title,
body.msk-redesign .wpc-filter-header .widget-title {
  font-family: var(--msk-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--msk-ink);
}
body.msk-redesign .wpc-filters-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--msk-line); }
body.msk-redesign .wpc-filters-section:last-child { border-bottom: 0; margin-bottom: 0; }
body.msk-redesign .wpc-filters-main-wrap input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--msk-ink);
}
body.msk-redesign .wpc-filters-main-wrap .wpc-term-count { color: var(--msk-muted); }
body.msk-redesign .wpc-filters-range-inputs input {
  height: 40px;
  border: 1px solid #D9D5CE;
  border-radius: var(--msk-r-sm);
}
body.msk-redesign .wpc-filter-chip a {
  border-radius: 999px;
  border-color: var(--msk-line);
  background: #FFFFFF;
}

/* ---------- 10. Пагинация ---------- */

body.msk-redesign .ct-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--msk-r-sm);
  background: #FFFFFF;
  color: var(--msk-ink);
}
body.msk-redesign .ct-pagination .page-numbers.current {
  background: var(--msk-graphite);
  color: #FFFFFF;
}

/* ---------- 11. Подвал ---------- */

body.msk-redesign .ct-footer {
  background: var(--msk-graphite);
  color: #A9ADB4;
  --theme-link-initial-color: #D6D8DC;
  --theme-link-hover-color: #FFFFFF;
}
body.msk-redesign .ct-footer [data-row] { background: transparent; }
body.msk-redesign .ct-footer strong,
body.msk-redesign .ct-footer .widget-title { color: #FFFFFF; font-family: var(--msk-font-display); font-weight: 600; }
body.msk-redesign .ct-footer .msk-icon { --msk-cable: #FF7A2E; }

/* ---------- 12. Мобильная панель ---------- */

@media (max-width: 999.98px) {
  body.msk-redesign .msk-mobile-bar {
    background: #FFFFFF;
    border-top: 1px solid var(--msk-line);
    box-shadow: 0 -6px 20px rgba(23, 25, 28, 0.06);
  }
  body.msk-redesign .msk-mobile-bar a {
    min-height: 56px;
    font-size: 11px;
    color: var(--msk-ink);
  }
  body.msk-redesign .msk-mobile-bar svg {
    stroke-width: 1.6;
  }
  body.msk-redesign .msk-mobile-bar__count {
    background: var(--msk-heat-text);
  }

  body.msk-redesign [data-products] > li.product { padding: 10px; gap: 8px; }
  body.msk-redesign [data-products] .price { font-size: 16px; }
  body.msk-redesign [data-products] .woocommerce-loop-product__title { --theme-font-size: 14px; }

  body.msk-redesign .site-logo-container svg.msk-logo { height: 34px; }

  /* чипы - в одну строку с прокруткой */
  .msk-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .msk-chips::-webkit-scrollbar { display: none; }
  .msk-chip { flex-shrink: 0; }

  .msk-pick { flex-wrap: wrap; min-width: 0; flex-basis: 100%; }
  .msk-pick__button { width: 100%; justify-content: center; }
}

/* ---------- 13. Уличный обогрев: «ледяной» акцент ---------- */

body.msk-redesign.msk-outdoor.tax-product_cat .hero-section {
  background: var(--msk-ice-bg);
}
body.msk-redesign.msk-outdoor .msk-chip { border-color: var(--msk-ice-line); }
body.msk-redesign.msk-outdoor .msk-chip:hover { border-color: var(--msk-ice); color: var(--msk-ice); }
body.msk-redesign.msk-outdoor .ct-header [data-id="menu"] > ul > li.current-menu-item > a,
body.msk-redesign.msk-outdoor .ct-header [data-id="menu"] > ul > li.current-menu-ancestor > a {
  color: var(--msk-ice);
  box-shadow: inset 0 -3px 0 var(--msk-ice);
}
body.msk-redesign.msk-outdoor .wpc-filters-main-wrap input[type="checkbox"] { accent-color: var(--msk-ice); }

/* ==================================================================
   14. Главная
   ================================================================== */

/* слайдер */
body.msk-redesign .msk-hero__slide {
  min-height: 380px;
  padding: 40px 48px;
  border-radius: 24px;
  background: #FBEFE6;
}
body.msk-redesign .msk-hero__slide--snow { background: var(--msk-ice-bg); }
body.msk-redesign .msk-hero__title {
  font-family: var(--msk-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}
body.msk-redesign .msk-hero__text { max-width: 520px; font-size: 17px; line-height: 1.5; color: #2E3338; }
body.msk-redesign .msk-hero__button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--msk-r-sm);
  background: var(--msk-heat-text);
  color: #FFFFFF;
  font-weight: 600;
}
body.msk-redesign .msk-hero__button:hover { background: var(--msk-heat-dark); color: #FFFFFF; }
body.msk-redesign .msk-hero__slide--snow .msk-hero__button { background: var(--msk-ice); }
body.msk-redesign .msk-hero__slide--snow .msk-hero__button:hover { background: #155A8A; }
body.msk-redesign .msk-hero__media { flex: 0 0 44%; }
body.msk-redesign .msk-hero__media img {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: none;
  mix-blend-mode: normal;
}
body.msk-redesign .msk-hero__dot { width: 32px; background: #DAD4CB; }
body.msk-redesign .msk-hero__dot.is-active { background: var(--msk-heat); }

/* заголовки секций */
body.msk-redesign .msk-section-title { margin-top: 56px; margin-bottom: 20px; font-size: clamp(24px, 2.4vw, 32px); }
.msk-subsection-title {
  margin: 28px 0 14px;
  font-family: var(--msk-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--msk-ice);
}

/* плитки категорий: обе строки - одна сетка */
body.msk-redesign .msk-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
body.msk-redesign .msk-cards > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
body.msk-redesign .msk-card {
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border: 0;
  border-radius: var(--msk-r-lg);
  background: #FFFFFF;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body.msk-redesign .msk-card:hover {
  box-shadow: 0 10px 28px rgba(23, 25, 28, 0.08);
  transform: translateY(-2px);
}
body.msk-redesign .msk-card__icon { display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; background: var(--msk-ground); color: var(--msk-ink); }
body.msk-redesign .msk-card__icon .msk-icon,
body.msk-redesign .msk-feature__icon .msk-icon { width: 32px; height: 32px; }
body.msk-redesign .msk-card__title { margin-top: auto; font-size: 17px; font-weight: 600; }
body.msk-redesign .msk-card__meta .amount { color: var(--msk-ink); font-family: var(--msk-font-body); font-weight: 600; white-space: nowrap; }
body.msk-redesign .msk-card--outdoor .msk-card__icon { background: var(--msk-ice-bg); }
body.msk-redesign .msk-card--outdoor:hover .msk-card__title { color: var(--msk-ice); }

/* хиты продаж (блок WooCommerce «Товары по метке») */
body.msk-redesign .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
body.msk-redesign .wc-block-grid__product {
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 0 !important;
  border-radius: var(--msk-r-lg);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left !important;
  transition: box-shadow 0.2s ease;
}
body.msk-redesign .wc-block-grid__product:hover { box-shadow: 0 10px 28px rgba(23, 25, 28, 0.08); }
body.msk-redesign .wc-block-grid__product-link { color: var(--msk-ink); text-decoration: none; }
body.msk-redesign .wc-block-grid__product-image {
  margin-bottom: 10px !important;
  border-radius: var(--msk-r);
  overflow: hidden;
  background: #F3F1EE;
}
body.msk-redesign .wc-block-grid__product-image img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; }
body.msk-redesign .wc-block-grid__product > *,
body.msk-redesign .wc-block-grid__product-price { text-align: left !important; justify-content: flex-start; }
body.msk-redesign .wc-block-grid__product-title {
  font-family: var(--msk-font-body);
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
body.msk-redesign .wc-block-grid__product-price {
  margin-top: auto !important;
  font-family: var(--msk-font-display);
  font-size: 18px !important;
  font-weight: 600;
  color: var(--msk-ink);
}
body.msk-redesign .wc-block-grid__product-price del { font-family: var(--msk-font-body); font-size: 13px; font-weight: 400; color: #6B6F76; }
body.msk-redesign .wc-block-grid__product-price ins { text-decoration: none; color: var(--msk-heat-text); }
body.msk-redesign .wc-block-grid__product-add-to-cart { margin: 0 !important; }
body.msk-redesign .wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  border-radius: var(--msk-r-sm);
  background: var(--msk-graphite);
  color: #FFFFFF;
  font-size: 14px !important;
  font-weight: 600;
}
body.msk-redesign .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--msk-heat-text); }
body.msk-redesign .wc-block-grid__product-onsale {
  position: absolute;
  top: 22px; left: 22px; right: auto;
  width: auto !important;
  display: inline-block !important;
  z-index: 2;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--msk-heat-text) !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 600;
  text-transform: none !important;
}
body.msk-redesign .wc-block-grid__product { position: relative; }

/* преимущества */
body.msk-redesign .msk-features {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
body.msk-redesign .msk-features > .wp-block-column { flex-basis: auto !important; margin: 0 !important; }
body.msk-redesign .msk-feature {
  gap: 10px;
  padding: 22px;
  border: 0;
  border-radius: var(--msk-r-lg);
}
body.msk-redesign .msk-feature__icon { color: var(--msk-ink); }
/* старое правило style.css красило иконки в --msk-accent */
body.msk-redesign .msk-card__icon svg.msk-icon,
body.msk-redesign .msk-feature__icon svg.msk-icon { stroke: currentColor; stroke-width: 1.6; }
body.msk-redesign .msk-feature__title { font-size: 16px; }

/* шаги */
body.msk-redesign .msk-step__number {
  background: var(--msk-graphite);
  font-family: var(--msk-font-display);
  font-weight: 600;
  box-shadow: 0 0 0 4px #FBEFE6;
}

/* магазин */
body.msk-redesign .msk-shop-block {
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--msk-graphite);
  color: #D6D8DC;
}
body.msk-redesign .msk-shop-block h2 { color: #FFFFFF; }
body.msk-redesign .msk-shop-block__link { background: var(--msk-heat); color: #17191C; }
body.msk-redesign .msk-shop-block__link:hover { background: #FF7A2E; color: #17191C; }
body.msk-redesign .msk-shop-block__phone { border-color: #4A4E55; color: #FFFFFF; }
body.msk-redesign .msk-shop-block__phone:hover { border-color: #FFFFFF; color: #FFFFFF; }


@media (max-width: 999.98px) {
  body.msk-redesign .msk-hero__slide { flex-direction: column-reverse; align-items: stretch; padding: 24px; min-height: 0; }
  body.msk-redesign .msk-hero__media { flex-basis: auto; }
  body.msk-redesign .msk-hero__media img { max-width: 340px; margin: 0 auto; display: block; }
  body.msk-redesign .msk-cards,
  body.msk-redesign .msk-features,
  body.msk-redesign .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  body.msk-redesign .wc-block-grid__product { padding: 10px !important; }
  body.msk-redesign .wc-block-grid__product-title { font-size: 14px !important; }
  body.msk-redesign .wc-block-grid__product-price { font-size: 15px !important; }
  body.msk-redesign .msk-card { min-height: 0; padding: 16px; }
  body.msk-redesign .msk-card__title { font-size: 15px; }
  body.msk-redesign .msk-shop-block { padding: 24px; }
}
@media (max-width: 479.98px) {
  body.msk-redesign .msk-features { grid-template-columns: minmax(0, 1fr); }
}
body.msk-redesign .wc-block-grid__product-price .amount { white-space: nowrap; }
