/* ==========================================================================
   Nail House — тема для nailhouse.bg
   Один файл стилей для всего сайта (тема + WooCommerce).
   Цвета бренда задаются в «Nail House → Настройки сайта» и приходят как CSS-переменные
   --nh-primary, --nh-primary-dark, --nh-soft, --nh-accent, --nh-btn, --nh-btn-text, --nh-sale, --nh-text.
   Шрифты лежат в assets/fonts и выбираются в настройках (см. inc/fonts.php):
   --nh-font — текст, --nh-font-head — заголовки.
   ========================================================================== */

/* 1. Токены и базовые стили
   -------------------------------------------------------------------------- */
:root {
  --nh-primary: #002097;
  --nh-primary-dark: #00167c;
  --nh-soft: #e9edf9;
  --nh-accent: #ffdd04;
  --nh-btn: #002097;
  --nh-btn-text: #ffffff;
  --nh-sale: #d9262c;
  --nh-text: #242424;

  --nh-bg: #ffffff;
  --nh-surface: #f5f6fa;
  --nh-surface-2: #eceef5;
  --nh-line: #e5e8f0;
  --nh-line-2: #d3d8e6;
  --nh-muted: #6f7384;
  --nh-ok: #1f8a4c;
  --nh-dark: #0b1437;

  --nh-radius: 16px;
  --nh-radius-s: 12px;
  --nh-pill: 35px;
  --nh-container: 1280px;
  --nh-gutter: 32px;
  --nh-header-h: 86px;
  --nh-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --nh-font-head: var(--nh-font);
  --nh-shadow: 0 18px 44px -18px rgba(0, 20, 90, .25);
  --nh-shadow-sm: 0 6px 18px -8px rgba(0, 20, 90, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nh-font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nh-text);
  background: var(--nh-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: var(--nh-ffs, normal);
}
body.nh-no-scroll { overflow: hidden; }
::selection { background: var(--nh-accent); color: #1a1a1a; }
a:focus-visible, button:focus-visible, .nh-btn:focus-visible, .button:focus-visible { outline: 2px solid var(--nh-primary); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nh-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--nh-text); }
/* Крупные заголовки — своим шрифтом (настройка «Шрифт заголовков»); мелкие служебные остаются шрифтом текста. */
h1, h2, .nh-prose h3, .nh-el-title-h, .nh-tile strong { font-family: var(--nh-font-head); font-weight: var(--nh-head-w, 700); letter-spacing: var(--nh-head-ls, -.01em); font-variant-numeric: var(--nh-head-num, normal); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text, .nh-skip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nh-skip:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 999px; box-shadow: var(--nh-shadow); }

.nh-main { min-height: 46vh; }
.nh-container { max-width: var(--nh-container); margin: 0 auto; padding: 0 var(--nh-gutter); }
.nh-m-only { display: none !important; }
.nh-i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nh-i-sm { width: 16px; height: 16px; }

/* Кнопки — синие «пилюли», как на сайте */
/* Специфичность базового правила намеренно низкая (один класс), чтобы любые уточнения ниже его перекрывали. */
.nh-btn, .button, .wp-element-button, .woocommerce-Button, .checkout-button, #place_order, #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 46px; border-radius: var(--nh-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  background: var(--nh-btn); color: var(--nh-btn-text); transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}
.nh-btn:hover, .button:hover, .wp-element-button:hover, .woocommerce-Button:hover, .checkout-button:hover, #place_order:hover { background: var(--nh-primary-dark); color: var(--nh-btn-text); }
.nh-btn:active, .button:active { transform: translateY(1px); }
.nh-btn-primary { background: var(--nh-btn); color: var(--nh-btn-text); }
.nh-btn-light { background: #fff; color: var(--nh-text); border-color: var(--nh-line); }
.nh-btn-light:hover { background: var(--nh-surface); color: var(--nh-primary); }
.nh-btn-soft { background: var(--nh-soft); color: var(--nh-primary); }
.nh-btn-soft:hover { background: var(--nh-primary); color: #fff; }
.nh-btn-outline { background: #fff; color: var(--nh-primary); border-color: var(--nh-primary); }
.nh-btn-outline:hover { background: var(--nh-primary); color: #fff; }
.nh-btn-accent { background: var(--nh-accent); color: #1a1a1a; }
.nh-btn-accent:hover { background: #f5d400; color: #1a1a1a; }
.nh-btn-sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.nh-btn:disabled, .button:disabled, .button.disabled { opacity: .55; cursor: not-allowed; }

.nh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 38px; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); font-size: 14px; font-weight: 500; background: #fff; white-space: nowrap; cursor: pointer; }
.nh-chip:hover { border-color: var(--nh-primary); color: var(--nh-primary); }
.nh-chip.is-on { background: var(--nh-primary); border-color: var(--nh-primary); color: #fff; }
.nh-iconbtn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nh-surface); }
.nh-iconbtn:hover { background: var(--nh-soft); color: var(--nh-primary); }

.nh-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--nh-muted); }
.nh-more:hover { color: var(--nh-primary); }
.nh-more .nh-i { width: 18px; height: 18px; }

/* Типографика контента */
.nh-prose { font-size: 15.5px; color: #4a4a4a; font-weight: 500; }
.nh-prose p, .nh-prose ul, .nh-prose ol, .nh-prose table, .nh-prose blockquote { margin: 0 0 1em; }
.nh-prose ul { list-style: disc; padding-left: 1.3em; }
.nh-prose ol { list-style: decimal; padding-left: 1.3em; }
.nh-prose li { margin-bottom: .35em; }
.nh-prose h2, .nh-prose h3, .nh-prose h4 { color: var(--nh-text); margin: 1.4em 0 .5em; }
.nh-prose h2 { font-size: 26px; } .nh-prose h3 { font-size: 20px; } .nh-prose h4 { font-size: 17px; }
/* Ссылки в тексте; кнопки и карточки товаров внутри текста остаются со своим оформлением (:where не добавляет «веса»). */
.nh-prose a:where(:not(.nh-btn, .button, .nh-card-title, .nh-card-img, .nh-cat, .nh-brand, .nh-more)) { color: var(--nh-primary); text-decoration: underline; text-underline-offset: 3px; }
.nh-prose img { border-radius: var(--nh-radius-s); }
.nh-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.nh-prose th, .nh-prose td { padding: 10px 12px; border-bottom: 1px solid var(--nh-line); text-align: left; vertical-align: top; }
.nh-prose > :last-child { margin-bottom: 0; }

/* 2. Верхняя полоса и шапка
   -------------------------------------------------------------------------- */
.nh-promo { background: var(--nh-primary); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.nh-promo-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
.nh-promo-items { flex: 1; min-width: 0; display: grid; text-align: center; padding: 0 36px; line-height: 1.3; }
/* Все сообщения лежат в одной ячейке: высота полоски равна самому длинному и не «прыгает» при смене */
.nh-promo-item { grid-area: 1 / 1; align-self: center; visibility: hidden; opacity: 0; text-wrap: balance; }
.nh-promo-item.is-active { visibility: visible; opacity: 1; animation: nh-promo-in .35s ease; }
@keyframes nh-promo-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.nh-promo-item a { color: inherit; }
.nh-promo-item a:hover { color: var(--nh-accent); text-decoration: underline; text-underline-offset: 3px; }
.nh-promo-item b { font-weight: 800; }
.nh-promo-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; opacity: .8; transition: background .15s, opacity .15s; }
.nh-promo-btn:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.nh-promo-prev { left: var(--nh-gutter); }
.nh-promo-prev .nh-i { transform: rotate(180deg); }
.nh-promo-next { right: var(--nh-gutter); }
.nh-promo.is-single .nh-promo-items { padding: 0; }

.nh-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--nh-line); transition: box-shadow .2s; }
.nh-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(0, 20, 90, .35); }
.nh-header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: var(--nh-header-h); }
.nh-header-left { display: flex; align-items: center; gap: 6px; }
.nh-hlink { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: var(--nh-pill); font-size: 14px; font-weight: 500; color: var(--nh-text); white-space: nowrap; }
.nh-hlink:hover { background: var(--nh-surface); color: var(--nh-primary); }
.nh-hlink .nh-i { width: 20px; height: 20px; }
.nh-hlink em { font-style: normal; font-size: 15px; line-height: 1; }
.nh-header-center { display: flex; justify-content: center; }
.nh-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; font-size: 19px; color: var(--nh-primary); }
.nh-logo:hover { color: var(--nh-primary); }
.nh-logo-img { max-height: 64px; width: auto; }
.nh-logo-text i { width: 12px; height: 12px; border-radius: 50%; background: var(--nh-primary); display: inline-block; }

.nh-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.nh-act { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: var(--nh-pill); font-size: 14px; font-weight: 500; position: relative; color: var(--nh-text); white-space: nowrap; }
.nh-act:hover { background: var(--nh-surface); color: var(--nh-primary); }
.nh-act .nh-i { width: 21px; height: 21px; }
.nh-act-cart .nh-cart-count { position: static; }
.nh-cart-count, .nh-wish-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--nh-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.nh-cart-count.is-empty, .nh-wish-count.is-empty { background: var(--nh-surface-2); color: var(--nh-text); }
.nh-cart-total { font-weight: 600; }
.nh-cart-total .amount { font-weight: 600; }

.nh-search { display: flex; align-items: center; gap: 12px; height: 48px; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); padding: 0 6px 0 18px; background: var(--nh-surface); color: var(--nh-muted); max-width: 760px; margin: 0 auto; }
.nh-search:focus-within { border-color: var(--nh-primary); background: #fff; box-shadow: 0 0 0 3px var(--nh-soft); }
.nh-search .nh-i { width: 20px; height: 20px; }
.nh-search .nh-search-input, .nh-search .nh-search-input:focus { flex: 1; min-width: 0; width: auto; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; outline: none; font-size: 15px; color: var(--nh-text); height: 100%; }
.nh-search-input::placeholder { color: var(--nh-muted); }
.nh-search-btn { background: var(--nh-btn); color: var(--nh-btn-text); border-radius: var(--nh-pill); padding: 0 18px; height: 38px; font-size: 14px; font-weight: 600; }
.nh-search-btn:hover { background: var(--nh-primary-dark); }

/* Выпадающий «Каталог» */
.nh-catalog { position: relative; }
.nh-catalog-btn[aria-expanded="true"] { background: var(--nh-soft); color: var(--nh-primary); }
.nh-catalog-menu { position: absolute; left: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--nh-line); border-radius: var(--nh-radius); box-shadow: var(--nh-shadow); padding: 12px; min-width: 620px; z-index: 50; }
.nh-catalog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.nh-catalog-list a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.nh-catalog-list a:hover { background: var(--nh-surface); color: var(--nh-primary); }
.nh-catalog-img { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--nh-surface); flex: none; display: flex; align-items: center; justify-content: center; }
.nh-catalog-img img { width: 100%; height: 100%; object-fit: cover; }
.nh-catalog-img .nh-cat-ph .nh-i { width: 18px; height: 18px; color: var(--nh-muted); }
.nh-catalog-name { flex: 1; }
.nh-catalog-count { font-size: 12px; color: var(--nh-muted); }

/* Строка меню */
.nh-nav { border-top: 1px solid var(--nh-line); background: #fff; }
.nh-nav-inner { display: block; height: 46px; }
.nh-nav-scroll { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; height: 46px; }
.nh-nav-scroll::-webkit-scrollbar { display: none; }
.nh-menu { display: flex; gap: 2px; align-items: center; height: 46px; margin: 0 auto; flex: none; }
.nh-menu > li { position: relative; flex: none; }
.nh-menu > li > a { display: inline-flex; align-items: center; padding: 0 var(--nh-nav-pad, 11px); height: 34px; border-radius: var(--nh-pill); font-size: var(--nh-nav-fs, 13.5px); font-weight: 500; color: var(--nh-text); white-space: nowrap; transition: background .15s, color .15s; }
.nh-menu > li > a:hover, .nh-menu > li.current-menu-item > a, .nh-menu > li.current-menu-ancestor > a { background: var(--nh-soft); color: var(--nh-primary); }
.nh-menu > li.sale > a, .nh-menu > li.promo > a { color: var(--nh-sale); font-weight: 600; }
/* Пункты не помещаются: сначала уплотняем (is-tight), а если и так не влезли — край строки плавно гаснет: её можно листать */
@media (min-width: 1024px) {
  .nh-nav-scroll.is-tight .nh-menu { gap: 0; }
  .nh-nav-scroll.is-tight .nh-menu > li > a { padding: 0 8px; font-size: 12.5px; }
}
.nh-nav-scroll.is-overflow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.nh-nav-scroll.is-scrolled { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.nh-nav-scroll.is-scrolled.is-overflow { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.nh-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; box-shadow: var(--nh-shadow); padding: 8px; display: none; z-index: 50; }
.nh-menu > li:hover > .sub-menu, .nh-menu > li:focus-within > .sub-menu { display: block; }
.nh-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.nh-menu .sub-menu a:hover { background: var(--nh-surface); color: var(--nh-primary); }

/* Уведомления Woo */
.nh-notices:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0; padding: 12px 16px;
  border-radius: 12px; background: var(--nh-soft); color: var(--nh-text); border: 1px solid #cfd7f3; font-size: 14.5px; list-style: none;
}
.woocommerce-error { background: #fdecec; border-color: #f5c2c2; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { margin-left: auto; height: 36px; padding: 0 16px; font-size: 13.5px; order: 2; }
.woocommerce-error li { margin: 0; }

/* Выдвижные панели */
.nh-overlay { position: fixed; inset: 0; background: rgba(10, 16, 50, .45); z-index: 60; opacity: 0; transition: opacity .2s; }
.nh-overlay.is-open { opacity: 1; }
.nh-overlay[hidden] { display: none; }
.nh-drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 70; display: flex; flex-direction: column; transition: transform .25s ease; }
.nh-drawer-left { left: 0; transform: translateX(-102%); }
.nh-drawer-right { right: 0; transform: translateX(102%); }
.nh-drawer.is-open { transform: none; box-shadow: var(--nh-shadow); }
.nh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--nh-line); min-height: 64px; }
.nh-drawer-head h3 { font-size: 20px; }
.nh-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; -webkit-overflow-scrolling: touch; }
.nh-mmenu > li > a, .nh-mmenu .sub-menu a, .nh-drawer-group-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--nh-line); width: 100%; text-align: left; }
.nh-mmenu .sub-menu { padding-left: 14px; }
.nh-mmenu .sub-menu a { font-size: 15px; color: #4a4a4a; }
.nh-mmenu-sub li a { font-size: 15px; }
.nh-mmenu-sub li a small { color: var(--nh-muted); font-size: 12px; }
.nh-drawer-group-btn .nh-i { transition: transform .2s; }
.nh-drawer-group-btn[aria-expanded="true"] .nh-i { transform: rotate(180deg); }
.nh-mmenu-acc { margin-top: 14px; }
.nh-mmenu.nh-mmenu-acc > li > a { justify-content: flex-start; gap: 12px; }
.nh-mmenu-acc .nh-wish-count { margin-left: auto; }
.nh-mmenu > li > a:hover, .nh-mmenu .sub-menu a:hover, .nh-drawer-group-btn:hover { color: var(--nh-primary); }
.nh-drawer-contacts { margin-top: 18px; display: grid; gap: 10px; }
.nh-drawer-contacts a { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--nh-muted); }
.nh-drawer .nh-logo-img { max-height: 40px; }

/* Мини-корзина */
.nh-minicart-empty { text-align: center; padding: 40px 0; color: var(--nh-muted); }
.nh-minicart-empty .nh-i { width: 44px; height: 44px; margin: 0 auto 10px; stroke-width: 1.3; }
.nh-minicart-empty p { margin-bottom: 16px; }
.nh-minicart-hint { display: flex; flex-direction: column; gap: 8px; background: var(--nh-soft); color: var(--nh-primary); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.nh-minicart-hint-row { display: flex; gap: 8px; align-items: center; }
.nh-minicart-hint .nh-i { width: 18px; height: 18px; }
.nh-progress { display: block; height: 6px; border-radius: 6px; background: rgba(0, 32, 151, .14); overflow: hidden; }
.nh-progress i { display: block; height: 100%; border-radius: 6px; background: var(--nh-primary); transition: width .4s ease; }
.nh-minicart-hint.is-done .nh-progress { display: none; }
.nh-minicart-hint.is-done { background: #e8f6ee; color: var(--nh-ok); }
/* Мини-корзина: список прокручивается, итог и кнопки прижаты к низу панели */
.nh-drawer-cart .nh-drawer-body { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
#nh-minicart-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#nh-minicart-content .woocommerce-mini-cart { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; margin: 0 -18px; padding: 2px 18px 14px; -webkit-overflow-scrolling: touch; }
#nh-minicart-content .woocommerce-mini-cart__total { margin: auto 0 14px; }
#nh-minicart-content .woocommerce-mini-cart__buttons { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.woocommerce-mini-cart { display: grid; gap: 14px; }
.woocommerce-mini-cart-item { position: relative; display: block; padding: 2px 30px 2px 86px; min-height: 76px; }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 0; width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--nh-surface); }
.woocommerce-mini-cart-item > a:not(.remove) { font-size: 14px; font-weight: 500; line-height: 1.3; display: block; }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--nh-muted); background: var(--nh-surface); }
.woocommerce-mini-cart-item .remove .nh-i { width: 14px; height: 14px; }
.woocommerce-mini-cart-item .remove:hover { background: #fdecec; color: #c0392b; }
.woocommerce-mini-cart-item .quantity { display: block; font-size: 13.5px; color: var(--nh-muted); margin-top: 4px; }
.woocommerce-mini-cart-item .variation { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12.5px; color: var(--nh-muted); margin: 2px 0 0; }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd { margin: 0; }
.woocommerce-mini-cart-item .variation dd p { display: inline; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--nh-line); font-size: 16px; }
.woocommerce-mini-cart__total .amount { font-weight: 700; font-size: 20px; color: var(--nh-primary); }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .nh-btn { width: 100%; }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--nh-muted); padding: 30px 0; }
/* Загрузка WooCommerce (blockUI): светлая вуаль со спиннером вместо чёрной плашки */
.blockUI.blockOverlay { background: #fff !important; opacity: .7 !important; border-radius: inherit; }
.blockUI.blockOverlay::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--nh-primary); border-right-color: transparent; border-radius: 50%; animation: nh-spin .7s linear infinite; }
@keyframes nh-spin { to { transform: rotate(360deg); } }

/* 3. Главная
   -------------------------------------------------------------------------- */
.nh-section { padding: 40px 0; }
.nh-sec-h { display: flex; align-items: center; justify-content: center; text-align: center; gap: 16px; margin-bottom: 24px; }
.nh-sec-h h2, .nh-sec-title { font-size: 28px; letter-spacing: var(--nh-head-ls, -.015em); }
.nh-sec-title { text-align: center; margin-bottom: 24px; }
.nh-sec-more { display: flex; justify-content: center; margin-top: 26px; }
.nh-sec-more .nh-btn { min-width: 220px; }
.nh-sec-sub { text-align: center; color: var(--nh-muted); font-size: 15px; margin: -14px 0 24px; }
/* Секция на мягкой подложке во всю ширину — белые карточки на ней «всплывают» */
.nh-section.nh-band { background: var(--nh-surface); padding: 52px 0; margin: 16px 0; }
.nh-band .nh-card { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 20, 90, .04); }
.nh-band .nh-btn-outline { background: transparent; }
.nh-band .nh-btn-outline:hover { background: var(--nh-primary); }

/* Слайдер */
.nh-slider-section { padding: 24px 0 0; }
.nh-slider { position: relative; border-radius: 20px; overflow: hidden; background: var(--nh-surface); box-shadow: var(--nh-shadow-sm); }
.nh-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nh-slides::-webkit-scrollbar { display: none; }
.nh-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: var(--nh-slide-ar, 1216 / 455); display: block; overflow: hidden; }
.nh-slide img { width: 100%; height: 100%; object-fit: cover; }
.nh-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--nh-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); opacity: 0; transition: opacity .2s, background .15s; }
.nh-slider:hover .nh-slider-arrow { opacity: 1; }
.nh-slider-arrow:hover { background: #fff; color: var(--nh-primary); }
.nh-slider-prev { left: 14px; } .nh-slider-prev .nh-i { transform: rotate(180deg); }
.nh-slider-next { right: 14px; }
.nh-slider-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.nh-slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 32, 151, .25); border: 0; transition: width .2s, background .2s; }
.nh-slider-dot:hover { background: rgba(0, 32, 151, .5); }
.nh-slider-dot.is-on { background: var(--nh-primary); width: 20px; border-radius: 6px; }

/* Текстовый первый экран (если баннеров нет) */
.nh-hero { padding: 22px 0 0; }
.nh-hero-grid { display: grid; grid-template-columns: 1fr; }
.nh-hero-main { background: linear-gradient(135deg, var(--nh-soft) 0%, #f4f6fd 55%, var(--nh-surface) 100%); border-radius: var(--nh-radius); padding: 48px 56px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px; min-height: 400px; position: relative; overflow: hidden; }
.nh-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--nh-primary); background: #fff; border-radius: var(--nh-pill); padding: 7px 12px; margin-bottom: 18px; }
.nh-hero-text h1 { font-size: 46px; line-height: 1.05; margin-bottom: 16px; }
.nh-hero-text p { font-size: 17px; color: #4a4a4a; max-width: 460px; margin-bottom: 26px; }
.nh-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.nh-hero-visual { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.nh-hero-ph { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--nh-radius); overflow: hidden; background: var(--nh-surface-2); box-shadow: 0 30px 60px -30px rgba(0, 20, 90, .35); }
.nh-hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.nh-hero-ph-empty { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, #fff 0, var(--nh-soft) 45%, var(--nh-surface-2) 100%); }
.nh-hero-float { position: absolute; left: -28px; bottom: 26px; background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--nh-shadow); width: 260px; }
.nh-hero-float img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.nh-hero-float small { display: block; color: var(--nh-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nh-hero-float b { font-size: 13px; display: block; line-height: 1.25; }

/* Категории — компактные плитки с подписью-«пилюлей» внизу */
.nh-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.nh-cat { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--nh-radius); overflow: hidden; background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%); border: 1px solid var(--nh-line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.nh-cat:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow); border-color: transparent; }
.nh-cat-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6% 8% 20%; }
.nh-cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; mix-blend-mode: multiply; }
.nh-cat:hover .nh-cat-img img { transform: scale(1.05); }
.nh-cat-ph .nh-i { width: 40px; height: 40px; color: #c7cbd8; }
.nh-cat-label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--nh-primary); color: #fff; padding: 8px 14px; border-radius: var(--nh-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 20px -8px rgba(0, 20, 90, .55); transition: background .15s; }
.nh-cat:hover .nh-cat-label { background: var(--nh-primary-dark); }

/* Текст о магазине */
.nh-info { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; background: var(--nh-surface); border-radius: 20px; padding: 36px 40px; max-width: 1060px; margin: 0 auto; }
.nh-info.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.nh-info-img { border-radius: var(--nh-radius-s); overflow: hidden; align-self: stretch; }
.nh-info-img img { width: 100%; height: 100%; object-fit: cover; }
.nh-info-text { counter-reset: nh-step; }
.nh-info-text h3 { counter-increment: nh-step; display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 1.3em 0 .5em; }
.nh-info-text h3:first-child { margin-top: 0; }
.nh-info-text h3::before { content: counter(nh-step); width: 32px; height: 32px; border-radius: 50%; background: var(--nh-primary); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nh-info-text ul li::marker { color: var(--nh-primary); }

/* Сетки товаров */
.nh-grid { display: grid; gap: 18px 16px; }
.nh-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nh-more-btn .nh-i { width: 16px; height: 16px; }

/* Два баннера */
.nh-tiles { display: grid; gap: 16px; }
.nh-tiles-2 { grid-template-columns: 1fr 1fr; } .nh-tiles-1 { grid-template-columns: 1fr; }
.nh-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 300px; border-radius: 20px; padding: 28px 30px; overflow: hidden; background-size: cover; background-position: center; color: var(--nh-text); box-shadow: var(--nh-shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
a.nh-tile:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow); }
.nh-tile-soft { background-color: var(--nh-surface); }
.nh-tile-primary { background-color: var(--nh-primary); color: #fff; }
.nh-tile-dark { background-color: var(--nh-dark); color: #fff; }
.nh-tile.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%); }
.nh-tile-primary.has-img::before, .nh-tile-dark.has-img::before { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 50%); }
.nh-tile.nh-tile-contain { background-size: auto 100%; background-position: right center; background-repeat: no-repeat; background-color: #fff; border: 1px solid var(--nh-line); box-shadow: none; justify-content: center; }
.nh-tile.nh-tile-contain::before { background: linear-gradient(90deg, #fff 0%, #fff 42%, rgba(255,255,255,0) 68%); }
.nh-tile.nh-tile-contain .nh-tile-body { max-width: 52%; }
a.nh-tile.nh-tile-contain:hover { box-shadow: var(--nh-shadow); border-color: transparent; }
.nh-tile-body { position: relative; display: flex; flex-direction: column; gap: 6px; }
.nh-tile small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.nh-tile strong { font-size: 26px; line-height: 1.15; }
.nh-tile-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 10px; color: var(--nh-primary); }
.nh-tile-contain .nh-tile-link { align-self: flex-start; height: 40px; padding: 0 18px; border-radius: var(--nh-pill); background: var(--nh-primary); color: #fff; margin-top: 14px; transition: background .15s; }
a.nh-tile.nh-tile-contain:hover .nh-tile-link { background: var(--nh-primary-dark); text-decoration: none; }
.nh-tile-primary .nh-tile-link, .nh-tile-dark .nh-tile-link { color: #fff; }
.nh-tile-big { position: absolute; right: 22px; bottom: 10px; font-size: 64px; font-weight: 800; letter-spacing: -.05em; color: var(--nh-accent); }
a.nh-tile:hover { color: inherit; }
a.nh-tile:hover .nh-tile-link { text-decoration: underline; text-underline-offset: 4px; }

/* Преимущества */
.nh-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nh-ben { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--nh-radius); background: var(--nh-surface); }
.nh-ben-ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--nh-shadow-sm); display: flex; align-items: center; justify-content: center; flex: none; color: var(--nh-primary); }
.nh-ben-text b { display: block; font-size: 15px; margin-bottom: 2px; font-weight: 700; }
.nh-ben-text span { font-size: 13.5px; color: var(--nh-muted); line-height: 1.35; display: block; }

/* События / акции */
.nh-events { display: grid; gap: 18px; }
.nh-events-1 { grid-template-columns: 1fr; } .nh-events-2 { grid-template-columns: 1fr 1fr; } .nh-events-3 { grid-template-columns: repeat(3, 1fr); }
.nh-event { border: 1px solid var(--nh-line); border-radius: var(--nh-radius); padding: 0 22px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.nh-event:hover { box-shadow: var(--nh-shadow); transform: translateY(-3px); border-color: transparent; }
.nh-event-img { width: calc(100% + 44px); margin: 0 -22px 16px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--nh-surface); overflow: hidden; }
.nh-event-img img { width: 100%; height: 100%; object-fit: cover; }
.nh-event.no-img { padding-top: 28px; background: linear-gradient(180deg, var(--nh-surface) 0%, #fff 70%); }
.nh-event-ic { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--nh-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--nh-shadow-sm); margin-bottom: 10px; }
.nh-event-ic .nh-i { width: 24px; height: 24px; }
.nh-event-title { font-size: 16px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.nh-event-date { font-size: 13.5px; color: var(--nh-muted); }
.nh-event .nh-btn { margin-top: 10px; }

/* Бренды */
.nh-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nh-brand-item { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 18px 26px; border-radius: var(--nh-radius); background: #fff; border: 1px solid var(--nh-line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.nh-brand-item:hover { box-shadow: var(--nh-shadow); transform: translateY(-3px); border-color: transparent; }
.nh-brand-item img { max-height: 44px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.nh-brand-item:hover img { filter: none; opacity: 1; }
.nh-brand-item span { font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--nh-text); text-transform: uppercase; }

.nh-seo { padding: 28px; border-radius: var(--nh-radius); background: var(--nh-surface); max-width: 920px; }
.nh-seo h2 { font-size: 24px; margin: 0 0 12px; }
.nh-seo h3 { font-size: 18px; margin: 0 0 8px; }

/* 4. Карточка товара (как на сайте: по центру, синяя цена, пилюля-кнопка)
   -------------------------------------------------------------------------- */
.nh-card { display: flex; flex-direction: column; gap: 0; position: relative; min-width: 0; padding: 0; border-radius: var(--nh-radius); background: #fff; border: 1px solid var(--nh-line); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s; text-align: center; align-items: stretch; }
.nh-card:hover { box-shadow: var(--nh-shadow); border-color: transparent; transform: translateY(-3px); z-index: 1; }
.nh-card-ph { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--nh-surface); }
.nh-card-img { display: block; width: 100%; height: 100%; }
.nh-card-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s, transform .5s ease; }
.nh-card:hover .nh-card-img img:first-child { transform: scale(1.04); }
.nh-card-img .nh-card-img2 { position: absolute; inset: 0; opacity: 0; }
.nh-card-img.has-hover:hover .nh-card-img2 { opacity: 1; }
.nh-card:hover .nh-card-img.has-hover img:first-child { transform: none; }
.nh-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 1; pointer-events: none; }
.nh-badge { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: var(--nh-pill); background: #fff; letter-spacing: .05em; line-height: 1.2; color: var(--nh-text); text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nh-badge-sale { background: var(--nh-sale); color: #fff; }
.nh-badge-new { background: var(--nh-accent); color: #1a1a1a; }
.nh-badge-hot { background: var(--nh-primary); color: #fff; }
.nh-badge-oos { background: #fff; color: var(--nh-muted); border: 1px solid var(--nh-line); box-shadow: none; }
.nh-badge-label { background: #6d28d9; color: #fff; text-transform: none; }
.nh-fav { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); color: var(--nh-text); z-index: 1; transition: transform .15s, opacity .15s, color .15s; }
.nh-fav .nh-i { width: 18px; height: 18px; }
.nh-fav:hover { transform: scale(1.08); color: var(--nh-primary); }
.nh-fav.is-on { color: var(--nh-sale); }
.nh-fav.is-on .nh-i { fill: var(--nh-sale); stroke: var(--nh-sale); }
.nh-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; width: 100%; align-items: center; padding: 12px 12px 14px; }
.nh-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nh-muted); }
a.nh-brand:hover { color: var(--nh-primary); }
.nh-card-title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--nh-text); padding: 0 2px; min-height: calc(2 * 1.35em); }
.nh-card-title:hover { color: var(--nh-primary); }
/* Нет кружков цветов — их место отдаём названию: до трёх строк вместо двух */
.nh-card-body:not(:has(.nh-sw)) > .nh-card-title { -webkit-line-clamp: 3; }
.nh-card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nh-muted); }
.nh-sw { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 5px; max-width: 100%; height: 22px; overflow: hidden; }
.nh-sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); display: inline-block; flex: none; background-size: cover; background-position: center; background-color: var(--nh-surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.nh-sw em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--nh-muted); margin-left: 2px; flex: none; }
.nh-card-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 4px; color: var(--nh-primary); }
.nh-card-price .price { display: contents; }
.nh-card-price .amount, .nh-card-price ins { font-size: 16.5px; font-weight: 700; text-decoration: none; color: var(--nh-primary); }
.nh-card-price del { color: var(--nh-muted); font-size: 13px; font-weight: 400; }
.nh-card-price del .amount { font-size: 13px; font-weight: 400; color: var(--nh-muted); }
.nh-card-price ins .amount { font-size: 16.5px; font-weight: 700; color: var(--nh-primary); }
.nh-pct { font-size: 12px; font-weight: 700; color: var(--nh-sale); order: 3; }
.nh-card-price ins, .nh-pp-price ins { order: 1; }
.nh-card-price del, .nh-pp-price del { order: 2; }
.nh-card-add { margin-top: 6px; display: flex; justify-content: center; width: 100%; }
.nh-card .nh-card-add .button, .nh-card .nh-card-add .nh-add { width: 100%; height: 40px; border-radius: var(--nh-pill); background: #fff; color: var(--nh-primary); font-weight: 600; font-size: 13.5px; border: 1.5px solid var(--nh-primary); padding: 0 14px; gap: 8px; }
.nh-card .nh-card-add .button::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8h12l1 13H5L6 8z'/><path d='M9 8V6a3 3 0 0 1 6 0v2'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8h12l1 13H5L6 8z'/><path d='M9 8V6a3 3 0 0 1 6 0v2'/></svg>") center / contain no-repeat; }
.nh-card .nh-card-add .button.nh-add-variable::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><circle cx='8.5' cy='10' r='1.2'/><circle cx='12' cy='7.5' r='1.2'/><circle cx='15.5' cy='10' r='1.2'/><path d='M12 21a3 3 0 0 0 0-6h-1a2 2 0 0 1 0-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><circle cx='8.5' cy='10' r='1.2'/><circle cx='12' cy='7.5' r='1.2'/><circle cx='15.5' cy='10' r='1.2'/><path d='M12 21a3 3 0 0 0 0-6h-1a2 2 0 0 1 0-4'/></svg>"); }
.nh-card .nh-card-add .button:not(.add_to_cart_button)::before { display: none; }
.nh-card .nh-card-add .button:not(.add_to_cart_button) { border-color: var(--nh-line-2); color: var(--nh-muted); }
.nh-card .nh-card-add .button:hover { background: var(--nh-primary); border-color: var(--nh-primary); color: #fff; }
.nh-card .nh-card-add .button:not(.add_to_cart_button):hover { background: var(--nh-surface); color: var(--nh-text); border-color: var(--nh-line-2); }
.nh-card .nh-card-add .button.loading { opacity: .6; pointer-events: none; }
.nh-card .nh-card-add .button.added { background: var(--nh-primary); color: #fff; }
.nh-card .nh-card-add .button.added::after { content: "✓"; margin-left: 2px; }
.nh-card-add .added_to_cart { display: none; }

/* Звёзды рейтинга без иконочного шрифта Woo */
.star-rating { display: inline-block; position: relative; width: 5.4em; height: 1em; line-height: 1; font-size: 13px; letter-spacing: .08em; overflow: hidden; white-space: nowrap; }
.star-rating::before { content: "★★★★★"; color: #d9d9de; position: absolute; left: 0; top: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; height: 0; white-space: nowrap; }
.star-rating span::before { content: "★★★★★"; color: #f2b705; position: absolute; left: 0; top: 0; }
.nh-stars-empty { color: #d9d9de; letter-spacing: .08em; font-size: 13px; }

/* 5. Каталог
   -------------------------------------------------------------------------- */
.nh-crumbs { font-size: 13px; color: var(--nh-muted); padding: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.nh-crumbs a:hover { color: var(--nh-primary); }
.nh-crumb-sep { opacity: .7; }
.nh-page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 20px; }
.nh-page-h h1 { font-size: 34px; letter-spacing: var(--nh-head-ls, -.02em); }
.nh-page-desc { color: var(--nh-muted); font-size: 15px; max-width: 680px; margin-top: 6px; }
.nh-page-desc .term-description p:last-child, .nh-page-desc .page-description p:last-child { margin-bottom: 0; }
.nh-page-desc[data-clamp] { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.nh-page-desc[data-clamp].is-expanded { display: block; -webkit-line-clamp: unset; cursor: auto; }
.nh-page-h-count { color: var(--nh-muted); font-size: 14px; white-space: nowrap; }
.woocommerce-result-count { margin: 0; color: var(--nh-muted); font-size: 14px; }
.nh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.nh-cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.nh-filters { position: sticky; top: calc(var(--nh-header-h) + 56px); display: flex; flex-direction: column; max-height: calc(100vh - var(--nh-header-h) - 70px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.nh-filters-body { display: flex; flex-direction: column; gap: 22px; }
.nh-fgroup { padding-bottom: 20px; border-bottom: 1px solid var(--nh-line); }
.nh-fgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.nh-fgroup-title { font-size: 12.5px; font-weight: 700; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--nh-text); }
.nh-flist li a, .nh-fgroup .woocommerce-widget-layered-nav-list li a, .widget_product_categories li a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nh-text); padding: 6px 0; transition: color .15s; }
.nh-flist li a:hover { color: var(--nh-primary); }
.nh-flist li.is-on a, .nh-fgroup .chosen a { color: var(--nh-primary); font-weight: 700; }
.nh-flist .nh-n, .nh-fgroup .count { margin-left: auto; color: var(--nh-muted); font-size: 12px; }
.widget_product_categories .count { margin-left: auto; }
.nh-fgroup .woocommerce-widget-layered-nav-list li a::before { content: ""; width: 18px; height: 18px; border: 1.5px solid #cfcfd6; border-radius: 5px; flex: none; }
.nh-fgroup .woocommerce-widget-layered-nav-list li.chosen a::before { background: var(--nh-primary); border-color: var(--nh-primary); box-shadow: inset 0 0 0 3px #fff; }
.widget_product_categories .children { padding-left: 14px; }
.nh-fgroup select { width: 100%; }
.price_slider { position: relative; height: 4px; background: var(--nh-line); border-radius: 4px; margin: 14px 8px 18px; }
.price_slider .ui-slider-range { position: absolute; top: 0; bottom: 0; background: var(--nh-primary); border-radius: 4px; }
.price_slider .ui-slider-handle { position: absolute; top: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--nh-primary); cursor: pointer; outline: none; }
.price_slider_amount { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--nh-muted); }
.price_slider_amount .button { height: 34px; padding: 0 14px; font-size: 13px; order: 2; }
.price_slider_amount .price_label { flex: 1; }
.widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_layered_nav_filters li a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--nh-pill); background: var(--nh-soft); color: var(--nh-primary); font-size: 13px; }
.widget_layered_nav_filters li a::before { content: "×"; font-weight: 700; }
.nh-admin-hint { font-size: 12.5px; color: var(--nh-muted); background: var(--nh-surface); border-radius: 10px; padding: 10px 12px; }
.nh-filters-foot { padding: 14px 18px; border-top: 1px solid var(--nh-line); }
.nh-filters-foot .nh-btn { width: 100%; }

.nh-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--nh-muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .nh-toolbar select { appearance: none; -webkit-appearance: none; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); padding: 0 36px 0 14px; height: 38px; font-size: 14px; font-weight: 500; color: var(--nh-text); background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center / 16px; cursor: pointer; }
.nh-catalog-grid { margin-bottom: 10px; }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul, .nh-pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination li a, .woocommerce-pagination li span, .nh-pagination .page-numbers { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; border: 1px solid var(--nh-line); color: var(--nh-text); }
.woocommerce-pagination li a:hover, .nh-pagination a.page-numbers:hover { border-color: var(--nh-primary); color: var(--nh-primary); }
.woocommerce-pagination li span.current, .nh-pagination .page-numbers.current { background: var(--nh-primary); color: #fff; border-color: var(--nh-primary); }
.woocommerce-no-products-found .woocommerce-info { margin: 10px 0 30px; }
.nh-cat-main .nh-seo { margin-top: 36px; }

/* 6. Страница товара
   -------------------------------------------------------------------------- */
.nh-pp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding: 10px 0 20px; }
.nh-pp > * { min-width: 0; }
.nh-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--nh-header-h) + 56px); }
.nh-gallery.has-thumbs { grid-template-columns: 84px minmax(0, 1fr); }
.nh-gallery-main { position: relative; grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--nh-line); }
.nh-gallery.has-thumbs .nh-gallery-main { grid-column: 2; }
.nh-gallery-main .woocommerce-product-gallery__wrapper, .nh-gallery-main .woocommerce-product-gallery__image { width: 100%; height: 100%; }
.nh-gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.nh-gallery-main img.is-swapping { opacity: .4; }
.nh-gallery-main .nh-badges { left: 14px; top: 14px; }
.nh-gallery-main .nh-fav { right: 14px; top: 14px; width: 40px; height: 40px; }
.nh-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; scrollbar-width: none; }
.nh-thumbs::-webkit-scrollbar { display: none; }
.nh-thumbs[hidden] { display: none; } /* у выбранного варианта одно фото — лента не нужна */
.nh-thumb { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; border: 1.5px solid var(--nh-line); flex: none; width: 84px; transition: border-color .15s; }
.nh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-thumb:hover { border-color: var(--nh-line-2); }
.nh-thumb.is-on { border-color: var(--nh-primary); }
.nh-buy .nh-brand { font-size: 12px; }
.nh-pp-title { font-size: 30px; line-height: 1.15; margin: 6px 0 12px; letter-spacing: var(--nh-head-ls, -.02em); }
.nh-pp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; color: var(--nh-muted); margin-bottom: 16px; }
.nh-pp-meta > * { white-space: nowrap; }
.nh-pp-rating { display: inline-flex; align-items: center; gap: 8px; }
.nh-pp-rating:hover { color: var(--nh-primary); }
.nh-pp-stock.in-stock, .nh-pp-stock.available-on-backorder { color: var(--nh-ok); font-weight: 600; }
.nh-pp-stock.out-of-stock { color: var(--nh-sale); font-weight: 600; }
.nh-pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; color: var(--nh-primary); }
.nh-pp-price .price { display: contents; }
.nh-pp-price .amount, .nh-pp-price ins { font-size: 32px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--nh-primary); }
.nh-pp-price ins .amount { font-size: 32px; }
.nh-pp-price del { color: var(--nh-muted); font-weight: 400; }
.nh-pp-price del .amount { font-size: 18px; font-weight: 400; color: var(--nh-muted); }
.nh-pp-price .nh-pct { font-size: 14px; }
.nh-pp-short { margin-bottom: 18px; }
.nh-pp-form { margin-bottom: 20px; }
.nh-pp-form form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nh-pp-form form.cart .variations, .nh-pp-form form.cart .single_variation_wrap { width: 100%; }
.nh-pp-form form.cart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); height: 50px; padding: 0 6px; }
.nh-pp-form form.cart .quantity .qty { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; font-size: 16px; -moz-appearance: textfield; outline: none; height: 100%; }
.nh-pp-form .qty::-webkit-inner-spin-button, .nh-pp-form .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nh-qty-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--nh-text); }
.nh-qty-btn:hover { background: var(--nh-surface); }
.nh-qty-btn .nh-i { width: 18px; height: 18px; }
.nh-pp-form .single_add_to_cart_button { flex: 1; height: 50px; font-size: 15.5px; min-width: 200px; }
.nh-pp-form .single_add_to_cart_button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8h12l1 13H5L6 8z'/><path d='M9 8V6a3 3 0 0 1 6 0v2'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8h12l1 13H5L6 8z'/><path d='M9 8V6a3 3 0 0 1 6 0v2'/></svg>") center / contain no-repeat; }
.nh-pp-form .single_add_to_cart_button.disabled, .nh-pp-form .single_add_to_cart_button.wc-variation-selection-needed { opacity: .5; }
.nh-pp-form .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nh-pp-form .woocommerce-variation { margin-bottom: 12px; }
.nh-pp-form .woocommerce-variation:empty { display: none; }
.nh-pp-form .woocommerce-variation-description p { color: var(--nh-muted); font-size: 14px; }
.nh-pp-form .woocommerce-variation-price { display: none; }
.nh-pp-form .woocommerce-variation-availability .stock { font-size: 13.5px; font-weight: 600; margin: 4px 0 0; }
.nh-pp-form .stock.in-stock { color: var(--nh-ok); } .nh-pp-form .stock.out-of-stock { color: var(--nh-sale); }
.nh-pp-form .stock.wc-stock-text-low, .nh-pp-form .stock.low-stock { color: #c26a00; }
.nh-pp-form table.variations { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.nh-pp-form table.variations tr { display: block; margin-bottom: 16px; }
.nh-pp-form table.variations th, .nh-pp-form table.variations td { display: block; padding: 0; text-align: left; }
.nh-pp-form table.variations th label { font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.nh-pp-form table.variations th .nh-chosen { color: var(--nh-muted); font-weight: 500; }
.nh-pp-form table.variations select { width: 100%; max-width: 360px; height: 46px; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); padding: 0 40px 0 16px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center / 16px; font-size: 15px; }
.nh-pp-form table.variations td.value.has-swatches select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nh-pp-form .reset_variations { display: inline-block; font-size: 13px; color: var(--nh-muted); margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.nh-pp-form .reset_variations[style*="hidden"] { display: none !important; }
.nh-swatches { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.nh-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--nh-muted); text-align: center; width: 50px; }
.nh-swatch i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); display: block; background-size: cover; background-position: center; background-color: var(--nh-surface); transition: transform .15s, box-shadow .15s; box-shadow: inset 0 0 0 2px #fff; }
.nh-swatch:hover i { transform: scale(1.06); }
.nh-swatch.is-on { color: var(--nh-text); font-weight: 700; }
.nh-swatch.is-on i { outline: 2px solid var(--nh-primary); outline-offset: 2px; }
.nh-swatch.is-disabled { opacity: .35; }
.nh-swatch.is-disabled i { background-image: linear-gradient(135deg, transparent 46%, #c0392b 46%, #c0392b 54%, transparent 54%) !important; }
.nh-swatch span { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-swatch-new, .woodmart-new-badge { position: absolute; top: -6px; right: -4px; background: var(--nh-accent); color: #1a1a1a; font-size: 8.5px; font-weight: 800; text-transform: uppercase; padding: 2px 5px; border-radius: 999px; line-height: 1.2; z-index: 1; pointer-events: none; }
.nh-swatch-text { width: auto; }
.nh-swatch-text i { display: none; }
.nh-swatch-text span { padding: 0 14px; height: 38px; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); display: inline-flex; align-items: center; font-size: 13.5px; color: var(--nh-text); overflow: visible; }
.nh-swatch-text.is-on span { background: var(--nh-primary); border-color: var(--nh-primary); color: #fff; }

.nh-ship { background: var(--nh-surface); border-radius: var(--nh-radius); padding: 6px 18px; margin-bottom: 24px; }
.nh-ship > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 14px; border-bottom: 1px solid #e3e6ef; }
.nh-ship > div:last-child { border: 0; }
.nh-ship .nh-i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #fff; color: var(--nh-primary); margin-top: -4px; box-shadow: var(--nh-shadow-sm); }
.nh-ship b { font-weight: 600; } .nh-ship span { color: var(--nh-muted); }

.nh-acc { border-top: 1px solid var(--nh-line); }
.nh-acc-item { border-bottom: 1px solid var(--nh-line); }
.nh-acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 700; text-align: left; color: var(--nh-text); }
.nh-acc-btn:hover { color: var(--nh-primary); }
.nh-acc-ic { width: 20px; height: 20px; transition: transform .2s; }
.nh-acc-item.is-open .nh-acc-ic { transform: rotate(45deg); }
.nh-acc-panel { padding: 0 0 18px; }
.nh-acc-panel > h2:first-child, .nh-acc-panel > h2.woocommerce-Reviews-title { display: none; }
.nh-acc-panel .shop_attributes { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.nh-acc-panel .shop_attributes th { width: 40%; color: var(--nh-muted); font-weight: 500; text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--nh-line); }
.nh-acc-panel .shop_attributes td { padding: 8px 0; border-bottom: 1px solid var(--nh-line); }
.nh-acc-panel .shop_attributes td p { margin: 0; }
.nh-flash { animation: nh-flash .9s ease; border-radius: 12px; }
@keyframes nh-flash { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 6px var(--nh-soft); } }
.nh-free-hint { margin: 0 0 18px; }

.nh-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--nh-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -10px 30px -16px rgba(0,0,0,.25); }
.nh-stickybar-info small { display: block; font-size: 11px; color: var(--nh-muted); }
.nh-stickybar-info b { font-size: 19px; letter-spacing: -.02em; color: var(--nh-primary); }
.nh-stickybar .nh-btn { flex: 1; height: 46px; }
.nh-stickybar.is-hidden { transform: translateY(110%); transition: transform .2s; }

/* Отзывы */
#reviews .commentlist { display: grid; gap: 18px; margin: 0 0 24px; }
#reviews .comment_container { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
#reviews .avatar { border-radius: 50%; width: 44px; height: 44px; }
#reviews .comment-text { background: var(--nh-surface); border-radius: 12px; padding: 12px 14px; }
#reviews .meta { font-size: 13px; color: var(--nh-muted); margin: 4px 0 6px; }
#reviews .meta strong { color: var(--nh-text); }
#reviews .description p { margin: 0; font-size: 14.5px; }
#review_form_wrapper { margin-top: 10px; }
#reply-title { font-size: 16px; font-weight: 700; display: block; margin-bottom: 10px; }
.comment-form-rating label { display: block; font-size: 14px; margin-bottom: 6px; }
p.stars { display: inline-flex; gap: 2px; margin: 0 0 10px; }
p.stars a { font-size: 0; width: 24px; height: 24px; position: relative; }
p.stars a::before { content: "★"; font-size: 22px; color: #d9d9de; line-height: 24px; }
p.stars:hover a::before, p.stars.selected a::before { color: #f2b705; }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: #d9d9de; }
#reviews select#rating { height: 44px; border-radius: 10px; border: 1px solid var(--nh-line); padding: 0 12px; }
.comment-form-comment textarea, .comment-form input[type="text"], .comment-form input[type="email"] { width: 100%; }

/* 7. Формы, таблицы и страницы WooCommerce (корзина, оформление, профиль)
   -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select, .select2-container--default .select2-selection--single {
  width: 100%; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); padding: 0 16px; height: 46px; background: #fff; font-size: 15px; color: var(--nh-text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; border-radius: 14px; }
input:focus, textarea:focus, select:focus { border-color: var(--nh-primary); box-shadow: 0 0 0 3px var(--nh-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center / 16px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--nh-primary); border-radius: 4px; padding: 0; vertical-align: middle; }
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 0; color: var(--nh-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-dropdown { border: 1px solid var(--nh-line); border-radius: 12px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--nh-primary); }
label { font-size: 14px; font-weight: 500; }
.form-row { margin: 0 0 14px; }
.form-row label { display: block; margin-bottom: 6px; }
.form-row .required { color: var(--nh-sale); text-decoration: none; }
.form-row.form-row-first, .form-row.form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.form-row.form-row-first { margin-right: 12px; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: #e06b6b; }
.form-row.woocommerce-validated input { border-color: #7dc98d; }
.woocommerce-input-wrapper { display: block; }
.woocommerce-form__label-for-checkbox, .form-row label.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; line-height: 1.35; margin-bottom: 0; }
.form-row label.checkbox input, .woocommerce-form__label-for-checkbox input { margin-top: 1px; flex: none; }
form.checkout label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.35; cursor: pointer; margin: 0 0 8px; }
form.checkout label:has(> input[type="checkbox"]) > input { margin: 1px 0 0; flex: none; }
form.checkout .woocommerce-checkout-review-order-table td.product-total, form.checkout .woocommerce-checkout-review-order-table td.product-name { vertical-align: top; }
form.checkout .woocommerce-checkout-review-order-table td.product-total { white-space: nowrap; }
.woocommerce-form__label-for-checkbox input { width: 18px; height: 18px; flex: none; }
.woocommerce-password-strength { font-size: 13px; margin-top: 6px; }
.show-password-input { display: none; }
abbr[title] { text-decoration: none; }
.hidden-field { display: none !important; }

.nh-page { padding-top: 10px; padding-bottom: 60px; }
.nh-page-narrow { max-width: 924px; }
.nh-page-head { margin: 16px 0 22px; }
.nh-page-head h1 { font-size: 32px; }
.nh-page-head time { font-size: 13px; color: var(--nh-muted); display: block; margin-bottom: 8px; }
.nh-entry { font-size: 16px; }
.nh-entry-app { font-size: 15px; }
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button), .woocommerce-error a:not(.button), .woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-wrapper a, .woocommerce-MyAccount-content a:not(.button), .woocommerce-LostPassword a { color: var(--nh-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Таблица корзины */
.woocommerce-cart-form table.shop_table, table.shop_table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.shop_table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--nh-muted); padding: 10px 12px; border-bottom: 1px solid var(--nh-line); }
table.shop_table td { padding: 14px 12px; border-bottom: 1px solid var(--nh-line); vertical-align: middle; }
table.shop_table td.product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--nh-surface); }
table.shop_table td.product-name a { font-weight: 500; }
table.shop_table td.product-name .variation { font-size: 12.5px; color: var(--nh-muted); display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 4px 0 0; }
table.shop_table td.product-name .variation dt, table.shop_table td.product-name .variation dd { margin: 0; }
table.shop_table td.product-name .variation dd p { margin: 0; display: inline; }
table.shop_table td.product-remove a.remove { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--nh-surface); color: var(--nh-muted); font-size: 18px; line-height: 1; }
table.shop_table td.product-remove a.remove:hover { background: #fdecec; color: #c0392b; }
table.shop_table .quantity { display: inline-flex; align-items: center; border: 1px solid var(--nh-line); border-radius: var(--nh-pill); height: 42px; padding: 0 4px; }
table.shop_table .quantity .qty { width: 42px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; padding: 0; }
table.shop_table .quantity .qty::-webkit-inner-spin-button, table.shop_table .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
table.shop_table .nh-qty-btn { width: 32px; height: 32px; }
table.shop_table td.product-subtotal, table.shop_table td.product-price { font-weight: 600; white-space: nowrap; color: var(--nh-primary); }
table.shop_table td.actions { padding-top: 18px; }
table.shop_table td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; }
table.shop_table td.actions .coupon input { width: 200px; height: 42px; }
table.shop_table td.actions .coupon .button { height: 42px; }
table.shop_table td.actions > .button { float: right; height: 42px; background: #fff; color: var(--nh-text); border-color: var(--nh-line); }
.woocommerce-cart .cart-collaterals { margin-top: 30px; display: flex; justify-content: flex-end; }
.cart_totals { width: 100%; max-width: 440px; background: var(--nh-surface); border-radius: var(--nh-radius); padding: 24px; }
.cart_totals h2 { font-size: 20px; margin-bottom: 12px; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { padding: 10px 0; border-bottom: 1px solid var(--nh-line); text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--nh-text); }
.cart_totals table.shop_table th { width: 104px; padding-right: 12px; vertical-align: top; font-weight: 600; }
.cart_totals table.shop_table td { vertical-align: top; }
.cart_totals .woocommerce-shipping-destination, .cart_totals .woocommerce-shipping-calculator { font-size: 13px; color: var(--nh-muted); margin-top: 4px; }
.cart_totals table.shop_table tr.order-total td, .cart_totals table.shop_table tr.order-total th { font-size: 17px; font-weight: 700; border: 0; }
.cart_totals table.shop_table tr.order-total td { color: var(--nh-primary); }
.cart_totals .woocommerce-shipping-methods { margin: 0; }
.cart_totals .woocommerce-shipping-methods li { margin-bottom: 6px; }
.cart_totals .woocommerce-shipping-methods label { font-weight: 400; margin-left: 6px; }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; height: 50px; font-size: 16px; }
.cart-empty.woocommerce-info { justify-content: center; }
.nh-cart-empty-text { max-width: 560px; margin: 4px auto 14px; text-align: center; color: var(--nh-muted); line-height: 1.55; }
.return-to-shop { text-align: center; margin: 10px 0; }

/* Оформление заказа */
.woocommerce-checkout .nh-page-head { margin-bottom: 10px; }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-top: 0; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 48px; align-items: start; }
form.checkout #customer_details { display: contents; }
form.checkout #customer_details .col-1 { grid-column: 1; }
form.checkout #customer_details .col-2 { grid-column: 1; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
form.checkout #order_review_heading { font-size: 20px; margin: 10px 0 0; height: 40px; }
form.checkout #order_review { margin-top: 52px; position: sticky; top: calc(var(--nh-header-h) + 20px); background: var(--nh-surface); border-radius: var(--nh-radius); padding: 22px; }
form.checkout .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
/* Форма курьеров из плагина Nail House */
#courier-section .logo-radio input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
#courier-section .logo-radio { position: relative; }
#courier-section label { cursor: pointer; }
#courier-section input[type="text"], #courier-section select { margin-bottom: 8px; }
#courier-section .office-list, #office_results { max-height: 260px; overflow: auto; border: 1px solid var(--nh-line); border-radius: 12px; }
#courier-section .office-list div, #office_results div { padding: 8px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--nh-line); }
#courier-section .office-list div:hover, #office_results div:hover { background: var(--nh-soft); }
form.checkout h3 { font-size: 20px; margin: 10px 0 14px; }
form.checkout .woocommerce-billing-fields__field-wrapper, form.checkout .woocommerce-shipping-fields__field-wrapper, form.checkout .woocommerce-additional-fields__field-wrapper { display: block; }
form.checkout .woocommerce-checkout-review-order-table th, form.checkout .woocommerce-checkout-review-order-table td { padding: 10px 0; text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--nh-text); border-bottom: 1px solid var(--nh-line); }
form.checkout .woocommerce-checkout-review-order-table thead th { font-size: 12px; text-transform: uppercase; color: var(--nh-muted); letter-spacing: .08em; }
form.checkout .woocommerce-checkout-review-order-table .product-quantity { color: var(--nh-muted); }
/* Фото товара стоит слева от названия; длинное название переносится рядом с фото, а не под него. */
form.checkout .woocommerce-checkout-review-order-table tr.cart_item td.product-name { position: relative; padding-left: 60px; height: 68px; }
form.checkout .woocommerce-checkout-review-order-table td.product-name .nh-co-thumb { position: absolute; left: 0; top: 10px; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--nh-surface); }
form.checkout .woocommerce-checkout-review-order-table tfoot .order-total th, form.checkout .woocommerce-checkout-review-order-table tfoot .order-total td { font-size: 17px; font-weight: 700; border: 0; }
form.checkout .woocommerce-checkout-review-order-table tfoot .order-total td { color: var(--nh-primary); }
form.checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
form.checkout #shipping_method { margin: 0; }
form.checkout #shipping_method li { margin-bottom: 6px; }
form.checkout #shipping_method label { font-weight: 400; margin-left: 6px; }
#payment { margin-top: 16px; }
#payment ul.payment_methods { margin: 0 0 14px; border: 1px solid var(--nh-line); border-radius: 12px; overflow: hidden; background: #fff; }
#payment ul.payment_methods li { padding: 12px 14px; border-bottom: 1px solid var(--nh-line); }
#payment ul.payment_methods li:last-child { border: 0; }
#payment ul.payment_methods label { font-weight: 500; margin-left: 6px; display: inline; }
#payment ul.payment_methods label img { display: inline-block; max-height: 24px; vertical-align: middle; margin-left: 6px; }
#payment div.payment_box { margin-top: 10px; background: var(--nh-surface); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--nh-muted); }
#payment div.payment_box p:last-child { margin-bottom: 0; }
.woocommerce-terms-and-conditions-wrapper { margin: 10px 0 14px; font-size: 13.5px; }
#place_order { width: 100%; height: 52px; font-size: 16px; }
.woocommerce-privacy-policy-text p { font-size: 13px; color: var(--nh-muted); }
.woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
/* Блок выбора курьера из плагина Nail House */
#courier-section h3 { font-size: 18px; }
.logo-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-radio label { display: flex; align-items: center; justify-content: center; border: 1px solid var(--nh-line); border-radius: 12px; padding: 10px 16px; cursor: pointer; background: #fff; min-width: 150px; }
#courier-section .logo-radio label { border: 1.5px solid var(--nh-line-2); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
#courier-section .logo-radio label:hover { border-color: var(--nh-primary); }
#courier-section .logo-radio input:checked + label { border-color: var(--nh-primary); box-shadow: 0 0 0 3px var(--nh-soft); }
#courier-section .type-radio input { accent-color: var(--nh-primary); }
.logo-radio img { max-height: 32px; width: auto; }

/* Спасибо за заказ */
.woocommerce-order { max-width: 800px; }
.woocommerce-thankyou-order-received { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
.woocommerce-order-overview li { background: var(--nh-surface); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--nh-muted); }
.woocommerce-order-overview li strong { display: block; color: var(--nh-text); font-size: 15px; margin-top: 2px; }
.woocommerce-order-details h2, .woocommerce-customer-details h2 { font-size: 20px; margin: 20px 0 12px; }
.woocommerce-customer-details address { font-style: normal; background: var(--nh-surface); border-radius: 12px; padding: 14px; font-size: 14.5px; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Профиль */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--nh-soft); color: var(--nh-primary); }
.woocommerce-MyAccount-content { font-size: 15px; }
.woocommerce-MyAccount-content p { margin-bottom: 1em; }
.woocommerce-MyAccount-content h3 { margin: 16px 0 10px; font-size: 18px; }
.woocommerce-MyAccount-content fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.woocommerce-MyAccount-content legend { font-weight: 600; margin-bottom: 10px; }
.woocommerce-orders-table .button { height: 36px; padding: 0 14px; font-size: 13px; }
.woocommerce-Address { background: var(--nh-surface); border-radius: var(--nh-radius); padding: 18px; }
.woocommerce-Address address { font-style: normal; font-size: 14.5px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 17px; margin: 0; }
.u-columns.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-form-login, .woocommerce-form-register { max-width: 440px; background: var(--nh-surface); border-radius: var(--nh-radius); padding: 24px; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; margin-top: 6px; }
.u-columns.col2-set#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.u-columns.col2-set#customer_login h2 { font-size: 20px; margin-bottom: 12px; }
.woocommerce-LostPassword { font-size: 13.5px; margin-top: 10px; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: block; margin-bottom: 10px; }

/* Избранное */
.nh-wishlist-empty { color: var(--nh-muted); text-align: center; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nh-wishlist-empty[hidden] { display: none; }
.nh-wishlist-empty > .nh-i { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--nh-soft); color: var(--nh-primary); stroke-width: 1.6; margin-bottom: 8px; }
.nh-wishlist-empty p { font-size: 18px; font-weight: 700; color: var(--nh-text); }
.nh-wishlist-empty span { font-size: 14.5px; }
.nh-wishlist-empty .nh-btn { margin-top: 14px; }

/* Блог */
.nh-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nh-post-card { display: flex; flex-direction: column; gap: 12px; }
.nh-post-thumb { border-radius: var(--nh-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--nh-surface); }
.nh-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-post-body time { font-size: 12.5px; color: var(--nh-muted); display: block; margin-bottom: 4px; }
.nh-post-body h2 { font-size: 18px; margin-bottom: 8px; }
.nh-post-body p { font-size: 14.5px; color: #4a4a4a; margin-bottom: 8px; }
.nh-post-hero { border-radius: var(--nh-radius); overflow: hidden; margin: 0 0 24px; }
.nh-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--nh-line); font-size: 14px; }
.nh-comments { margin-top: 40px; }
.nh-comments-title { font-size: 20px; margin-bottom: 14px; }
.nh-comment-list .comment-body { background: var(--nh-surface); border-radius: 12px; padding: 14px; margin-bottom: 12px; font-size: 14.5px; }
.nh-comment-list .comment-meta { font-size: 13px; color: var(--nh-muted); margin-bottom: 6px; }
.nh-comment-list .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-respond .comment-reply-title { font-size: 18px; display: block; margin: 20px 0 10px; }
.comment-form p { margin-bottom: 12px; }
.comment-form input[type="submit"] { height: 46px; }
.nh-404 { text-align: center; padding: 60px 0; }
.nh-404-code { font-size: 90px; font-weight: 800; color: var(--nh-soft); line-height: 1; }
.nh-404 h1 { font-size: 30px; margin: 0 0 10px; }
.nh-404 p { color: var(--nh-muted); margin-bottom: 20px; }
.nh-404-search { max-width: 480px; margin: 0 auto 20px; }
.nh-empty { color: var(--nh-muted); }

/* 7б. Страницы и статьи из Elementor (заменители виджетов WoodMart, см. inc/elementor-compat.php)
   -------------------------------------------------------------------------- */
.nh-ta-left { text-align: left; } .nh-ta-center { text-align: center; } .nh-ta-right { text-align: right; }
.nh-entry-el { font-size: 15.5px; }
/* Блоки Elementor занимают всю ширину области темы и стоят вровень с заголовком страницы */
.nh-entry .elementor > .e-con.e-parent { --content-width: 100%; --padding-left: 0px; --padding-right: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px; }
.nh-entry .elementor > .e-con.e-parent:first-child { --padding-top: 0px; --padding-block-start: 0px; }
.nh-el-text { overflow-x: auto; }
.nh-el-text > :first-child { margin-top: 0; }
.nh-el-text h2 { font-size: 24px; } .nh-el-text h3 { font-size: 19px; }
.nh-el-title { margin: 0 0 4px; }
.nh-el-title-h { font-size: 26px; margin: 0; letter-spacing: var(--nh-head-ls, -.015em); }
.nh-el-title-sub { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nh-primary); margin-bottom: 6px; }
.nh-el-title-after { color: var(--nh-muted); margin-top: 6px; }
.nh-el-image { margin: 0; display: block; }
.nh-el-image img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--nh-radius); }
.nh-el-btn { margin: 4px 0; }
.nh-el-acc { margin: 6px 0 10px; }
.nh-el-acc .nh-acc-btn { font-size: 15.5px; padding: 14px 0; }
.nh-el-products { margin: 18px 0 26px; }
.nh-el-products .nh-el-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.nh-el-products .nh-card img { border-radius: 0; }
.nh-el-products-carousel .nh-el-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.nh-el-products-carousel .nh-el-grid::-webkit-scrollbar { display: none; }
.nh-el-products-carousel .nh-card { flex: 0 0 210px; scroll-snap-align: start; }
/* «Список»: один товар в строку, картинка слева */
.nh-el-products-list .nh-el-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.nh-el-products-list .nh-card { flex-direction: row; text-align: left; }
.nh-el-products-list .nh-card-ph { width: 200px; flex: none; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 1px solid var(--nh-surface); }
.nh-el-products-list .nh-card-body { align-items: flex-start; justify-content: center; padding: 16px 20px; gap: 8px; }
.nh-el-products-list .nh-card-title { min-height: 0; -webkit-line-clamp: 3; font-size: 15.5px; font-weight: 600; padding: 0; }
.nh-el-products-list .nh-sw, .nh-el-products-list .nh-card-price { justify-content: flex-start; }
.nh-el-products-list .nh-card-price { margin-top: 2px; }
.nh-el-products-list .nh-card-add { width: auto; justify-content: flex-start; }
.nh-el-products-list .nh-card .nh-card-add .button { width: auto; padding: 0 24px; }
.nh-el-cats { margin: 8px 0 20px; }
/* Форма Contact Form 7 */
.nh-el-form .wpcf7-form p { margin: 0 0 14px; }
.nh-el-form .wpcf7-form label { display: block; font-size: 14px; font-weight: 500; }
.nh-el-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.nh-el-form .wpcf7-submit { height: 48px; padding: 0 30px; border: 0; border-radius: var(--nh-pill); background: var(--nh-btn); color: var(--nh-btn-text); font-weight: 600; font-size: 15px; cursor: pointer; width: auto; transition: background .15s; }
.nh-el-form .wpcf7-submit:hover { background: var(--nh-primary-dark); }
.nh-el-form .wpcf7-not-valid-tip { font-size: 12.5px; color: var(--nh-sale); margin-top: 4px; display: block; }
.nh-el-form .wpcf7-response-output { margin: 12px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; border: 1px solid #cfd7f3 !important; background: var(--nh-soft); font-size: 14px; }
.nh-el-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.nh-el-form .wpcf7-form.sent .wpcf7-response-output { background: #e8f6ee; border-color: #bfe3cd !important; color: var(--nh-ok); }
/* Карта и вставки Elementor — со скруглением, как остальные блоки */
.elementor-widget-google_maps iframe { border-radius: var(--nh-radius); display: block; width: 100%; }
.elementor-widget-image img, .elementor-image-carousel img { border-radius: var(--nh-radius-s); }

/* 8. Подвал — тёмный блок, как на сайте
   -------------------------------------------------------------------------- */
.nh-footer { margin-top: 40px; padding: 20px 0 28px; }
.nh-footer-box { position: relative; overflow: hidden; background: radial-gradient(900px 400px at 100% 0%, rgba(0, 32, 151, .55) 0%, rgba(0, 32, 151, 0) 60%), var(--nh-dark); color: #fff; border-radius: 24px; padding: 52px 56px; }
.nh-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; position: relative; }
.nh-footer-grid:has(.nh-footer-news) { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
.nh-footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.nh-footer-menu li { font-size: 14.5px; margin-bottom: 12px; color: #c5cbe3; }
.nh-footer-menu a:hover { color: var(--nh-accent); }
.nh-footer-about .nh-logo-img { max-height: 76px; }
.nh-footer-tagline { font-size: 15px; color: #e6e9f6; max-width: 300px; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.nh-footer-text { font-size: 14px; color: #aab2d4; max-width: 320px; margin-top: 14px; }
.nh-footer-contacts { margin-top: 14px; display: grid; gap: 8px; }
.nh-footer-contacts a, .nh-footer-contacts span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #c5cbe3; }
.nh-footer-contacts a:hover { color: #fff; }
.nh-footer-contacts .nh-i { width: 18px; height: 18px; }
.nh-social { display: flex; gap: 10px; margin-top: 18px; }
.nh-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s, border-color .15s, color .15s; }
.nh-social a:hover { background: var(--nh-accent); border-color: var(--nh-accent); color: #1a1a1a; }
.nh-footer-news p { font-size: 14px; color: #aab2d4; margin-bottom: 12px; }
.nh-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 8px 0; font-size: 13px; color: var(--nh-muted); }
.nh-pay { display: flex; gap: 8px; flex-wrap: wrap; }

.nh-tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--nh-line); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
.nh-tabbar a, .nh-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--nh-muted); font-weight: 500; position: relative; min-width: 56px; }
.nh-tabbar a.is-on, .nh-tabbar a:hover, .nh-tabbar button:hover { color: var(--nh-primary); }
.nh-tabbar .nh-wish-count, .nh-tabbar .nh-cart-count { position: absolute; top: -4px; right: 8px; min-width: 18px; height: 18px; font-size: 10px; }
.nh-tabbar .is-empty { display: none; }

/* 9. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nh-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nh-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nh-hero-text h1 { font-size: 38px; }
  .nh-hero-main { padding: 36px; }
  .nh-footer-grid, .nh-footer-grid:has(.nh-footer-news) { grid-template-columns: 1fr 1fr; }
  .nh-header-left .nh-hlink span { display: none; }
  .nh-header-left .nh-hlink { padding: 0 10px; }
  .nh-act span:not(.nh-cart-count):not(.nh-wish-count) { display: none; }
}
@media (max-width: 1023px) {
  :root { --nh-gutter: 20px; --nh-header-h: 72px; }
  .nh-header-bar { gap: 12px; }
  .nh-logo-img { max-height: 50px; }
  .nh-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .nh-cat-layout { grid-template-columns: 1fr; gap: 0; }
  .nh-filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); max-height: none; overflow: hidden; padding-right: 0; background: #fff; z-index: 70; transform: translateX(-102%); transition: transform .25s ease; }
  .nh-filters.is-open { transform: none; box-shadow: var(--nh-shadow); }
  .nh-filters .nh-m-only { display: flex !important; }
  .nh-filters-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
  .nh-toolbar { justify-content: space-between; }
  .nh-pp { grid-template-columns: 1fr; gap: 24px; }
  .nh-gallery, .nh-gallery.has-thumbs { position: static; grid-template-columns: 1fr; }
  .nh-gallery-main, .nh-gallery.has-thumbs .nh-gallery-main { grid-column: 1; grid-row: 1; }
  .nh-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .nh-thumb { width: 64px; }
  .nh-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nh-benefits { grid-template-columns: 1fr 1fr; }
  .nh-info.has-img { grid-template-columns: 1fr; }
  .nh-info-img { max-height: 320px; }
  form.checkout { grid-template-columns: 1fr; gap: 6px 0; }
  form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; margin-top: 0; }
  form.checkout #order_review_heading { margin-top: 18px; height: auto; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
  .nh-posts { grid-template-columns: 1fr 1fr; }
  .nh-brands { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --nh-gutter: 16px; --nh-header-h: 60px; }
  body { font-size: 15px; padding-bottom: 64px; }
  .nh-d-only { display: none !important; }
  .nh-m-only { display: flex !important; }
  span.nh-m-only, b.nh-m-only { display: inline-flex !important; }
  .nh-promo { font-size: 12px; letter-spacing: .01em; }
  .nh-promo-inner { min-height: 34px; padding-left: 4px; padding-right: 4px; }
  .nh-promo-items { padding: 0 30px; }
  .nh-promo-prev { left: 2px; }
  .nh-promo-next { right: 2px; }
  .nh-header-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .nh-header-left { gap: 0; }
  .nh-logo-img { max-height: 40px; }
  .nh-header-actions { gap: 2px; }
  .nh-act { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .nh-act-cart .nh-cart-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; font-size: 10px; }
  .nh-act-cart .nh-cart-count.is-empty { display: none; }
  .nh-nav-inner { height: 42px; justify-content: flex-start; }
  .nh-menu { height: 42px; justify-content: flex-start; }
  .nh-menu > li > a { height: 32px; padding: 0 10px; font-size: 13px; }
  .nh-menu .sub-menu { display: none !important; }
  .nh-menu { margin: 0; }
  .nh-section { padding: 26px 0; }
  .nh-section.nh-band { padding: 30px 0; margin: 10px 0; }
  .nh-el-products .nh-el-grid { grid-template-columns: 1fr 1fr; }
  .nh-el-products-list .nh-el-grid { grid-template-columns: minmax(0, 1fr); }
  .nh-el-products-list .nh-card-ph { width: 128px; }
  .nh-el-products-list .nh-card-body { padding: 12px 14px; }
  .nh-el-products-list .nh-card-title { font-size: 14px; }
  .nh-el-products-list .nh-card .nh-card-add .button { padding: 0 16px; }
  .nh-el-products-carousel .nh-card { flex-basis: 170px; }
  .nh-el-title-h { font-size: 22px; }
  .nh-el-text h2 { font-size: 21px; } .nh-el-text h3 { font-size: 17.5px; }
  .nh-sec-h { margin-bottom: 14px; }
  .nh-sec-h h2, .nh-sec-title { font-size: 22px; }
  .nh-sec-title { margin-bottom: 16px; }
  .nh-sec-more { margin-top: 18px; }
  .nh-sec-more .nh-btn { width: 100%; height: 42px; }
  .nh-more-btn { height: 34px; padding: 0 14px; font-size: 13px; }
  .nh-slider-section { padding-top: 12px; }
  .nh-slider { border-radius: 14px; }
  .nh-slide { aspect-ratio: var(--nh-slide-ar-m, var(--nh-slide-ar, 1216 / 455)); }
  .nh-slider-arrow { display: none; }
  .nh-hero { padding-top: 12px; }
  .nh-hero-main { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 16px; min-height: 0; gap: 18px; }
  .nh-hero-text h1 { font-size: 28px; }
  .nh-hero-text p { font-size: 14.5px; margin-bottom: 16px; }
  .nh-hero-visual { max-width: none; }
  .nh-hero-float { left: 12px; bottom: 12px; width: 220px; padding: 10px; }
  /* Категории на телефоне: 3 в ряд, подпись текстом под картинкой */
  .nh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .nh-cat { aspect-ratio: auto; background: none; border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 7px; }
  .nh-cat:hover { transform: none; box-shadow: none; }
  .nh-cat-img { position: static; aspect-ratio: 1 / 1; width: 100%; border-radius: 14px; background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%); border: 1px solid var(--nh-line); padding: 4%; }
  .nh-cat-label { position: static; transform: none; background: none; color: var(--nh-text); padding: 0 2px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: normal; max-width: none; box-shadow: none; text-align: center; border-radius: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nh-cat:hover .nh-cat-label { background: none; color: var(--nh-primary); }
  .nh-info { padding: 18px; gap: 16px; border-radius: 16px; }
  .nh-info-text h3 { font-size: 16px; }
  .nh-grid, .nh-grid-5, .nh-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .nh-card { border-radius: 14px; }
  .nh-card-body { padding: 10px 8px 10px; gap: 5px; }
  .nh-card-title { font-size: 13px; }
  .nh-card-price .amount, .nh-card-price ins .amount { font-size: 15px; }
  .nh-card .nh-card-add .button { height: 36px; font-size: 12.5px; padding: 0 10px; gap: 6px; }
  .nh-card .nh-card-add .button::before { width: 15px; height: 15px; }
  .nh-badges { left: 8px; top: 8px; }
  .nh-fav { right: 8px; top: 8px; width: 32px; height: 32px; }
  .nh-sw { height: 20px; }
  .nh-sw i { width: 18px; height: 18px; }
  .nh-tiles-2 { grid-template-columns: 1fr; gap: 12px; }
  .nh-tile { min-height: 200px; padding: 18px; border-radius: 14px; }
  .nh-tile strong { font-size: 20px; }
  .nh-tile.nh-tile-contain { min-height: 170px; }
  .nh-tile-contain .nh-tile-link { height: 36px; padding: 0 14px; font-size: 13px; margin-top: 10px; }
  .nh-benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nh-ben { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 14px; }
  .nh-ben-text b { font-size: 13.5px; } .nh-ben-text span { font-size: 12px; }
  .nh-events, .nh-events-2, .nh-events-3 { grid-template-columns: 1fr; gap: 12px; }
  .nh-brands { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nh-brand-item { min-height: 70px; padding: 12px 16px; }
  .nh-brand-item img { max-height: 32px; filter: none; opacity: 1; }
  .nh-brand-item span { font-size: 16px; }
  .nh-seo { padding: 18px; }
  .nh-page-h { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
  .nh-page-h h1 { font-size: 26px; }
  .nh-page-desc { font-size: 13.5px; }
  .nh-chips { margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .nh-chips::-webkit-scrollbar { display: none; }
  .nh-toolbar { gap: 8px; flex-wrap: wrap; }
  .nh-toolbar-count { flex: 1 0 100%; font-size: 13px; }
  .nh-chip { height: 36px; font-size: 13px; }
  .woocommerce-ordering select { height: 36px; font-size: 13px; }
  .nh-pp-title { font-size: 22px; }
  .nh-pp-price .amount, .nh-pp-price ins .amount { font-size: 26px; }
  .nh-pp-form form.cart .quantity { height: 48px; }
  .nh-pp-form .single_add_to_cart_button { height: 48px; font-size: 15px; min-width: 0; padding: 0 14px; }
  .nh-swatch { width: 44px; font-size: 9.5px; }
  .nh-swatch i { width: 36px; height: 36px; }
  .nh-ship { padding: 2px 14px; }
  .nh-ship > div { font-size: 13.5px; }
  .nh-pdp .nh-tabbar { display: none !important; }
  body.nh-pdp { padding-bottom: 84px; }
  .nh-page-head h1 { font-size: 26px; }
  .form-row.form-row-first, .form-row.form-row-last { width: 100%; display: block; margin-right: 0; }
  table.shop_table thead { display: none; }
  table.shop_table tr { display: block; border-bottom: 1px solid var(--nh-line); padding: 10px 0; }
  table.shop_table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 6px 0; }
  table.shop_table td::before { content: attr(data-title); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--nh-muted); }
  table.shop_table td.product-thumbnail::before, table.shop_table td.product-remove::before, table.shop_table td.actions::before, table.shop_table td.product-name::before { display: none; }
  table.shop_table td.product-thumbnail { justify-content: flex-start; }
  table.shop_table td.actions { display: block; }
  table.shop_table td.actions .coupon { display: flex; flex-wrap: wrap; width: 100%; }
  table.shop_table td.actions .coupon input { flex: 1 1 150px; width: auto; min-width: 0; }
  table.shop_table td.actions .coupon .button { flex: 1 1 auto; padding: 0 16px; font-size: 14px; }
  table.shop_table td.actions > .button { float: none; width: 100%; margin-top: 10px; }
  /* Корзина на телефоне: товар — компактная карточка (фото слева, название, цена, количество, сумма) */
  .woocommerce-cart-form table.shop_table, .woocommerce-cart-form table.shop_table tbody { display: block; width: 100%; }
  .woocommerce-cart-form table.shop_table tr.cart_item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img name remove" "img price price" "img qty total"; gap: 4px 12px; align-items: center; padding: 14px 0; }
  .woocommerce-cart-form table.shop_table tr.cart_item td { padding: 0; }
  .woocommerce-cart-form table.shop_table tr.cart_item td::before { display: none; }
  .woocommerce-cart-form td.product-thumbnail { grid-area: img; align-self: start; }
  .woocommerce-cart-form td.product-thumbnail img { width: 76px; height: 76px; }
  .woocommerce-cart-form td.product-name { grid-area: name; display: block; font-size: 14.5px; line-height: 1.3; }
  .woocommerce-cart-form td.product-remove { grid-area: remove; align-self: start; }
  .woocommerce-cart-form td.product-price { grid-area: price; justify-content: flex-start; font-size: 13.5px; font-weight: 500; color: var(--nh-muted); }
  .woocommerce-cart-form td.product-quantity { grid-area: qty; justify-content: flex-start; margin-top: 4px; }
  .woocommerce-cart-form td.product-quantity .quantity { height: 38px; }
  .woocommerce-cart-form td.product-subtotal { grid-area: total; justify-content: flex-end; font-size: 16px; font-weight: 700; margin-top: 4px; }
  form.checkout .woocommerce-checkout-review-order-table tr { display: table-row; border: 0; padding: 0; }
  form.checkout .woocommerce-checkout-review-order-table td, form.checkout .woocommerce-checkout-review-order-table th { display: table-cell; }
  form.checkout .woocommerce-checkout-review-order-table td::before { display: none; }
  .cart_totals table.shop_table tr { display: table-row; }
  .cart_totals table.shop_table td, .cart_totals table.shop_table th { display: table-cell; }
  .cart_totals table.shop_table td::before { display: none; }
  .woocommerce-cart .cart-collaterals { justify-content: stretch; }
  .cart_totals { max-width: none; }
  .woocommerce-columns--addresses, .u-columns.woocommerce-Addresses, .u-columns.col2-set#customer_login { grid-template-columns: 1fr; }
  .nh-footer { padding: 10px 0 24px; }
  .nh-footer-box { padding: 28px 22px; border-radius: 18px; }
  .nh-footer-grid, .nh-footer-grid:has(.nh-footer-news) { grid-template-columns: 1fr 1fr; gap: 22px; }
  .nh-footer-about { grid-column: 1 / -1; }
  .nh-footer-news { grid-column: 1 / -1; }
  .nh-footer-about .nh-logo-img { max-height: 60px; }
  .nh-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nh-posts { grid-template-columns: 1fr; }
  .nh-drawer { width: min(360px, 88vw); }
}
@media (max-width: 400px) {
  .nh-cats { gap: 12px 8px; }
  .nh-cat-label { font-size: 11.5px; }
}
/* ==========================================================================
   12. Версия 1.3: поиск в шапке, кружки, ленты товаров, панели меню,
       «Покажи още», логотипы в подвале, конструктор набора
   ========================================================================== */

/* --- Шапка: поле поиска слева, быстрые ссылки справа ---------------------- */
.nh-header-left { min-width: 0; }
.nh-hsearch-wrap { flex: 1 1 280px; min-width: 150px; max-width: 320px; }
.nh-hsearch { position: relative; display: flex; align-items: center; width: 100%; height: 44px; border-radius: var(--nh-pill); background: var(--nh-surface); border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .15s; }
.nh-hsearch:hover { border-color: var(--nh-line-2); }
.nh-hsearch:focus-within { background: #fff; border-color: var(--nh-primary); box-shadow: 0 0 0 3px var(--nh-soft); }
.nh-hsearch .nh-hsearch-input, .nh-hsearch .nh-hsearch-input:focus { flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; border: 0; border-radius: var(--nh-pill); background: transparent; box-shadow: none; outline: none; padding: 0 2px 0 18px; font-size: 14px; color: var(--nh-text); -webkit-appearance: none; appearance: none; }
.nh-hsearch-input::placeholder { color: var(--nh-muted); opacity: 1; }
.nh-hsearch-input::-webkit-search-cancel-button, .nh-hsearch-input::-webkit-search-decoration { -webkit-appearance: none; }
.nh-hsearch-btn { flex: none; width: 38px; height: 38px; margin-right: 3px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--nh-text); transition: background .15s, color .15s; }
.nh-hsearch-btn:hover { background: var(--nh-soft); color: var(--nh-primary); }
.nh-hsearch-btn .nh-i { width: 20px; height: 20px; }
.nh-msearch { background: #fff; padding: 0 0 10px; }
.nh-act-user { padding: 0 10px; }

/* Подсказки поиска */
.nh-sugg { position: absolute; left: 0; top: calc(100% + 8px); width: 460px; max-width: calc(100vw - 32px); max-height: min(72vh, 580px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--nh-line); border-radius: var(--nh-radius); box-shadow: var(--nh-shadow); padding: 8px; z-index: 60; text-align: left; }
.nh-sugg[hidden] { display: none; }
.nh-sugg-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nh-muted); padding: 8px 10px 6px; }
.nh-sugg-terms { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; }
.nh-sugg-term { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--nh-pill); background: var(--nh-surface); font-size: 13px; font-weight: 600; }
.nh-sugg-term:hover, .nh-sugg-term.is-active { background: var(--nh-soft); color: var(--nh-primary); }
.nh-sugg-term small { color: var(--nh-muted); font-weight: 500; font-size: 11.5px; }
.nh-sugg-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 12px; }
.nh-sugg-item:hover, .nh-sugg-item.is-active { background: var(--nh-surface); color: var(--nh-text); }
.nh-sugg-img { width: 52px; height: 52px; border-radius: 10px; background: var(--nh-surface); overflow: hidden; }
.nh-sugg-img img { width: 100%; height: 100%; object-fit: cover; }
.nh-sugg-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.nh-sugg-sub { display: block; font-size: 12px; color: var(--nh-muted); margin-top: 1px; }
.nh-sugg-price { font-size: 13.5px; font-weight: 700; color: var(--nh-primary); white-space: nowrap; text-align: right; }
.nh-sugg-price del { color: var(--nh-muted); font-weight: 400; font-size: 12px; margin-right: 4px; }
.nh-sugg-price ins { text-decoration: none; }
.nh-sugg-item.is-oos .nh-sugg-img, .nh-sugg-item.is-oos .nh-sugg-price { opacity: .5; }
.nh-sugg-all { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin: 6px 4px 4px; border-radius: var(--nh-pill); background: var(--nh-primary); color: #fff; font-size: 14px; font-weight: 600; }
.nh-sugg-all:hover, .nh-sugg-all.is-active { background: var(--nh-primary-dark); color: #fff; }
.nh-sugg-empty { padding: 18px 12px; font-size: 14px; color: var(--nh-muted); text-align: center; }

/* --- Лента с прокруткой (кружки и товары) -------------------------------- */
.nh-scroller { position: relative; }
.nh-scroller-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nh-scroller-track::-webkit-scrollbar { display: none; }
.nh-scroller-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--nh-line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--nh-text); transition: border-color .15s, color .15s, box-shadow .15s, opacity .15s; }
.nh-scroller-btn:hover:not(:disabled) { border-color: var(--nh-primary); color: var(--nh-primary); box-shadow: var(--nh-shadow-sm); }
.nh-scroller-btn:disabled { opacity: .35; cursor: default; }
.nh-scroller-btn[hidden] { display: none; }
.nh-scroller-btn .nh-i { width: 20px; height: 20px; }
.nh-scroller-prev .nh-i { transform: rotate(180deg); }

/* Кружки категорий и марок */
.nh-circles-wrap > .nh-scroller-btn { position: absolute; top: 35px; z-index: 2; box-shadow: var(--nh-shadow-sm); }
.nh-circles-wrap > .nh-scroller-prev { left: -16px; }
.nh-circles-wrap > .nh-scroller-next { right: -16px; }
.nh-circles { gap: 4px; padding: 6px 2px 4px; scroll-padding-inline: 2px; }
.nh-circles > :first-child { margin-left: auto; }
.nh-circles > :last-child { margin-right: auto; }
.nh-circle { flex: 0 0 auto; width: 122px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; scroll-snap-align: start; color: var(--nh-text); }
.nh-circle-img { width: 104px; height: 104px; border-radius: 50%; background: var(--nh-surface); border: 1.5px solid transparent; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color .2s, transform .25s ease, box-shadow .25s; }
.nh-circle-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.nh-circle-img .nh-cat-ph .nh-i { width: 30px; height: 30px; color: #c7cbd8; }
.nh-circle:hover .nh-circle-img { border-color: var(--nh-primary); transform: translateY(-3px); box-shadow: var(--nh-shadow-sm); }
.nh-circle.is-on .nh-circle-img { border-color: var(--nh-primary); box-shadow: 0 0 0 3px var(--nh-soft); }
.nh-circle.is-on .nh-circle-name { color: var(--nh-primary); }
.nh-circle-name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-circle-logo .nh-circle-img { background: #fff; border-color: var(--nh-line); }
.nh-circle-logo .nh-circle-img img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: normal; }
.nh-circle-text { font-size: 26px; font-weight: 800; color: var(--nh-primary); text-transform: uppercase; letter-spacing: -.02em; }
.nh-circles-catalog { margin: 0 0 22px; }
.nh-circles-catalog .nh-circles > :first-child { margin-left: 0; }
.nh-circles-catalog .nh-circle { width: 100px; gap: 8px; }
.nh-circles-catalog .nh-circle-img { width: 84px; height: 84px; }
.nh-circles-catalog > .nh-scroller-btn { top: 27px; }
.nh-circles-catalog .nh-circle-name { font-size: 12.5px; }
.nh-circles-catalog .nh-circle-text { font-size: 22px; }

/* Лента товаров на главной */
.nh-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nh-row-head h2 { font-size: 28px; letter-spacing: var(--nh-head-ls, -.015em); }
.nh-row-more { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px; border-bottom: 2px solid currentColor; font-size: 14px; font-weight: 700; color: var(--nh-text); white-space: nowrap; }
.nh-row-more:hover { color: var(--nh-primary); }
.nh-rail-track { gap: 16px; padding: 2px 2px 6px; margin: -2px -2px 0; scroll-snap-type: x mandatory; scroll-padding-left: 2px; }
.nh-rail-track > .nh-card { flex: 0 0 calc((100% - 4 * 16px) / 5); scroll-snap-align: start; }
/* Карточки в ленте не «подпрыгивают»: тень обрезалась бы краем ленты */
.nh-rail-track > .nh-card:hover { transform: none; box-shadow: none; border-color: var(--nh-line-2); }
.nh-band .nh-rail-track > .nh-card:hover { border-color: var(--nh-line-2); }
.nh-rail-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.nh-rail-bar { flex: 1; height: 2px; margin-right: 14px; border-radius: 2px; background: var(--nh-line-2); position: relative; overflow: hidden; }
.nh-rail-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 2px; background: var(--nh-text); will-change: transform; }
.nh-rail.is-static .nh-rail-foot { display: none; }
.nh-band .nh-scroller-btn { background: transparent; }
.nh-band .nh-scroller-btn:hover:not(:disabled) { background: #fff; }

/* --- Выпадающие панели главного меню -------------------------------------- */
.nh-nav-inner { position: relative; }
.nh-megas { position: absolute; left: var(--nh-gutter); right: var(--nh-gutter); top: 100%; height: 0; z-index: 45; }
.nh-mega { position: absolute; top: 0; left: 0; display: grid; grid-template-columns: 150px auto; gap: 8px 24px; width: max-content; max-width: 100%; background: #fff; border: 1px solid var(--nh-line); border-top-color: transparent; border-radius: 0 0 var(--nh-radius) var(--nh-radius); box-shadow: var(--nh-shadow); padding: 16px 20px 18px 16px; animation: nh-mega-in .16s ease; }
.nh-mega[hidden] { display: none; }
@keyframes nh-mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nh-mega-main { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--nh-line); transition: background .15s, border-color .15s; }
.nh-mega-main:hover { background: var(--nh-surface); border-color: var(--nh-line-2); color: var(--nh-text); }
.nh-mega-img { width: 84px; height: 84px; border-radius: 50%; background: var(--nh-surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nh-mega-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.nh-mega-name { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.nh-mega-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--nh-primary); }
.nh-mega-all b { font-weight: 700; }
.nh-mega-cols { display: flex; gap: 28px; padding: 4px 0 0; }
.nh-mega-col { min-width: 168px; }
.nh-mega-title { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nh-muted); }
.nh-mega-col li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 -10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.nh-mega-col li a:hover { background: var(--nh-surface); color: var(--nh-primary); }
.nh-mega-col small { font-size: 12px; color: var(--nh-muted); }
.nh-menu > li.is-mega-open > a { background: var(--nh-soft); color: var(--nh-primary); }

/* --- Каталог: «Покажи още» ------------------------------------------------ */
.nh-loadmore { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.nh-loadmore[hidden] { display: none; }
.nh-loadmore-info { font-size: 13.5px; color: var(--nh-muted); }
.nh-loadmore-info b { color: var(--nh-text); font-weight: 700; }
.nh-loadmore-bar { width: 220px; max-width: 70%; height: 3px; border-radius: 3px; background: var(--nh-line); overflow: hidden; }
.nh-loadmore-bar i { display: block; height: 100%; border-radius: 3px; background: var(--nh-primary); transition: width .3s ease; }
.nh-loadmore-btn { min-width: 240px; margin-top: 6px; }
.nh-loadmore.is-loading .nh-loadmore-btn { pointer-events: none; opacity: .7; }
.nh-loadmore.is-done .nh-loadmore-btn { display: none; }
.nh-has-loadmore .woocommerce-pagination { display: none; }
.nh-card.is-new { animation: nh-card-in .35s ease both; }
@keyframes nh-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Подвал: логотипы курьеров и карт ------------------------------------- */
.nh-pay { align-items: center; }
.nh-pay-item { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--nh-line); border-radius: 9px; background: #fff; font-size: 12px; font-weight: 600; color: #3a3d4a; white-space: nowrap; }
.nh-pay-logo img { display: block; width: auto; height: 18px; max-width: 84px; object-fit: contain; }
/* Логотипы курьеров уравнены по зрительной высоте: у Econt одни заглавные буквы, у Speedy — значок и строчные */
.nh-pay-econt img { height: 14px; }
.nh-pay-speedy img { height: 20px; }
.nh-pay-visa, .nh-pay-mastercard, .nh-pay-maestro { padding: 0 5px; }
.nh-pay-visa img, .nh-pay-mastercard img, .nh-pay-maestro img { height: 24px; max-width: none; }

/* --- Конструктор набора «5+1» --------------------------------------------- */
.nh-set { position: relative; display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); grid-template-areas: "head pick" "build pick"; gap: 24px 40px; align-items: start; padding: 40px 44px; border-radius: 28px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1c3fd6 0%, var(--nh-primary) 45%, #000f4d 100%); }
.nh-set::before { content: ""; position: absolute; right: -120px; top: -200px; width: 460px; height: 460px; border-radius: 50%; background: #4f74ff; opacity: .38; filter: blur(80px); pointer-events: none; }
.nh-set-head { grid-area: head; position: relative; }
.nh-set-pick { grid-area: pick; position: relative; align-self: stretch; background: #fff; color: var(--nh-text); border-radius: 20px; padding: 18px 16px 18px; }
.nh-set-build { grid-area: build; position: relative; align-self: end; }
.nh-set-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin-bottom: 14px; border-radius: var(--nh-pill); background: var(--nh-accent); color: #1a1a1a; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nh-set .nh-set-title { color: #fff; font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.nh-set-text { max-width: 400px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.nh-set-product { display: flex; align-items: center; gap: 12px; max-width: 400px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s; }
.nh-set-product:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.nh-set-product img { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #fff; }
.nh-set-product b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.nh-set-product small { display: block; margin-top: 2px; font-size: 12px; opacity: .82; }
.nh-set-product small .amount { font-weight: 700; }
.nh-set-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.nh-set-pick-head b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.nh-set-pick-head span { font-size: 12.5px; color: var(--nh-muted); text-align: right; }
.nh-set-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 2px; max-height: 524px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px; scrollbar-width: thin; }
.nh-set-color { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--nh-text); }
.nh-set-color i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background-color: var(--nh-surface); overflow: hidden; box-shadow: 0 0 0 1px var(--nh-line-2); transition: transform .15s, box-shadow .15s; }
.nh-set-color i img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nh-set-color:hover:not(:disabled) i { transform: scale(1.08); box-shadow: 0 0 0 2px var(--nh-primary); }
.nh-set-color.is-picked i { box-shadow: 0 0 0 2.5px var(--nh-primary); }
.nh-set-color.is-picked { color: var(--nh-primary); }
.nh-set-color:disabled { opacity: .35; cursor: not-allowed; }
.nh-set-color:disabled i { filter: grayscale(1); }
.nh-set-color b { position: absolute; top: -3px; right: 3px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--nh-primary); color: #fff; font-size: 10.5px; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.nh-set.is-full .nh-set-color:not(.is-picked):not(:disabled) { opacity: .5; }
.nh-set-label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nh-set-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nh-set-slots li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nh-set-slots li small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nh-accent); }
.nh-set-slot { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .45); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; background-size: cover; background-position: center; transition: transform .15s, border-color .15s; overflow: hidden; }
.nh-set-slot em { font-style: normal; }
.nh-set-slot:disabled { cursor: default; }
.nh-set-slot.is-filled { border: 2px solid #fff; cursor: pointer; }
.nh-set-slot.is-filled em, .nh-set-slot.is-filled .nh-i { opacity: 0; }
.nh-set-slot.is-filled::after { content: "×"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; font-weight: 400; opacity: 0; transition: opacity .15s; }
.nh-set-slot.is-filled:hover::after, .nh-set-slot.is-filled:focus-visible::after { opacity: 1; }
.nh-set-slots .is-gift .nh-set-slot { border-color: var(--nh-accent); color: var(--nh-accent); }
.nh-set-slots .is-gift .nh-set-slot.is-filled { border-color: var(--nh-accent); box-shadow: 0 0 0 3px rgba(255, 221, 4, .28); }
.nh-set-slots.is-bump { animation: nh-set-bump .32s ease; }
@keyframes nh-set-bump { 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }
.nh-set-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; }
.nh-set-total { font-size: 13.5px; line-height: 1.2; }
.nh-set-total:empty { display: none; }
.nh-set-total b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.nh-set-total del { opacity: .65; margin-right: 6px; }
.nh-set-total span { color: var(--nh-accent); font-weight: 600; }
.nh-set .nh-set-add { height: 52px; padding: 0 28px; font-size: 15px; }
.nh-set .nh-set-add:disabled { background: rgba(255, 255, 255, .16); color: #fff; opacity: 1; cursor: default; box-shadow: none; }
.nh-set .nh-set-add.is-loading { opacity: .75; pointer-events: none; }
.nh-set-msg { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .92); }
.nh-set-msg.is-error { color: #ffd0d0; }
.nh-set-msg a { color: var(--nh-accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1279px) {
  .nh-cart-total { display: none; }
}
@media (max-width: 1100px) {
  .nh-hlink-quick span { display: none; }
  .nh-hlink-quick { padding: 0 10px; }
  .nh-rail-track > .nh-card { flex-basis: calc((100% - 3 * 16px) / 4); }
  .nh-set { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 22px 28px; padding: 32px; }
  .nh-set .nh-set-title { font-size: 30px; }
  .nh-set-slots { gap: 6px; }
  .nh-set-slot { width: 44px; height: 44px; }
}
@media (max-width: 1023px) {
  .nh-rail-track > .nh-card { flex-basis: calc((100% - 2 * 14px) / 3.2); }
  .nh-rail-track { gap: 14px; }
  .nh-set { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pick" "build"; padding: 28px 24px; }
  .nh-set-slots { gap: 8px; }
  .nh-set-slot { width: 50px; height: 50px; }
}
@media (max-width: 760px) {
  /* Телефон: при прокрутке наверху остаётся только строка с логотипом, поле поиска и меню уезжают вместе со страницей */
  .nh-header { display: contents; }
  .nh-header-bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--nh-line); transition: box-shadow .2s; }
  .nh-header.is-stuck .nh-header-bar { box-shadow: 0 8px 24px -16px rgba(0, 20, 90, .35); }
  .nh-msearch { padding: 10px 0 8px; }
  .nh-msearch > .nh-container { flex: 1; min-width: 0; }
  .nh-msearch .nh-hsearch { height: 46px; }
  .nh-msearch .nh-hsearch-input { font-size: 16px; }
  .nh-sugg { left: 0; right: 0; width: auto; max-width: none; max-height: min(62vh, 480px); }
  .nh-nav { border-top: 0; border-bottom: 1px solid var(--nh-line); }
  .nh-circles { gap: 2px; padding: 4px 0 2px; }
  .nh-circles > :first-child { margin-left: 0; }
  .nh-circles-wrap { margin-left: calc(-1 * var(--nh-gutter)); margin-right: calc(-1 * var(--nh-gutter)); }
  .nh-circles-wrap .nh-circles { padding-left: calc(var(--nh-gutter) - 4px); padding-right: calc(var(--nh-gutter) - 4px); scroll-padding-left: var(--nh-gutter); }
  .nh-circles-wrap > .nh-scroller-btn { display: none; }
  .nh-circle, .nh-circles-catalog .nh-circle { width: 86px; gap: 7px; }
  .nh-circle-img, .nh-circles-catalog .nh-circle-img { width: 74px; height: 74px; }
  .nh-circle-name, .nh-circles-catalog .nh-circle-name { font-size: 12px; }
  .nh-circles-catalog { margin-bottom: 16px; }
  .nh-row-head { margin-bottom: 14px; }
  .nh-row-head h2 { font-size: 22px; }
  .nh-row-more { font-size: 13px; }
  .nh-rail { margin-left: calc(-1 * var(--nh-gutter)); margin-right: calc(-1 * var(--nh-gutter)); }
  .nh-rail-track { gap: 10px; margin: 0; padding: 2px var(--nh-gutter) 6px; scroll-padding-left: var(--nh-gutter); }
  .nh-rail-track > .nh-card { flex-basis: calc((100% - 10px) / 2.15); }
  .nh-rail-foot { margin: 12px var(--nh-gutter) 0; }
  .nh-rail-foot .nh-scroller-btn { display: none; }
  .nh-rail-bar { margin-right: 0; }
  .nh-loadmore { margin-top: 24px; }
  .nh-loadmore-btn { width: 100%; min-width: 0; }
  .nh-pay-item { height: 32px; padding: 0 10px; }
  .nh-set { padding: 24px 16px 22px; border-radius: 22px; gap: 18px; }
  .nh-set .nh-set-title { font-size: 26px; }
  .nh-set-text { font-size: 14.5px; }
  .nh-set-product { margin-top: 14px; }
  .nh-set-pick { padding: 14px 0 12px; border-radius: 18px; }
  .nh-set-pick-head { margin: 0 14px 10px; }
  /* Палитра в три ряда, листается вбок — не растягивает страницу */
  .nh-set-palette { display: grid; grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 58px; gap: 10px 0; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 4px 10px; scrollbar-width: none; }
  .nh-set-palette::-webkit-scrollbar { display: none; }
  .nh-set-slots { gap: 6px; justify-content: space-between; }
  .nh-set-slot { width: 46px; height: 46px; }
  .nh-set-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .nh-set .nh-set-add { width: 100%; }
}
@media (hover: none) {
  /* На сенсорном экране наведения нет: крестик стоит на уголке выбранного цвета постоянно */
  .nh-set-slot.is-filled::after { display: none; }
  .nh-set-slots li.is-filled::after { content: "×"; position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #1a1a1a; font-size: 14px; line-height: 17px; text-align: center; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .nh-header, .nh-promo, .nh-tabbar, .nh-stickybar, .nh-drawer, .nh-overlay, .nh-footer { display: none !important; }
}

/* 13. Отказ от договора онлайн (чл. 52а ЗЗП): ссылка «Откажете се от договора тук»,
   страница с формой и экран «заявление принято».
   Разметку выводит плагин «Nail House — Доставка и сервисы» (inc/withdrawal.php).
   -------------------------------------------------------------------------- */
/* Ссылка: в подвале (на тёмном) и в личном кабинете (на светлом) */
.nh-wd-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; color: #fff; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.nh-wd-link .nh-wd-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.nh-wd-link:hover { background: var(--nh-accent); border-color: var(--nh-accent); color: #1a1a1a; }
.nh-footer .nh-wd-link:focus-visible { outline-color: var(--nh-accent); }
a.nh-wd-link.nh-wd-link--light { border-color: var(--nh-primary); color: var(--nh-primary); text-decoration: none; }
a.nh-wd-link.nh-wd-link--light:hover { background: var(--nh-primary); border-color: var(--nh-primary); color: #fff; }

/* Подвал: ссылка стоит сразу под списком «Полезно». Она — отдельная ячейка сетки, поэтому не зависит
   от ширины колонки: на компьютере может заходить под соседнюю, на телефоне занимает всю строку. */
.nh-footer-wd { min-width: 0; }
@media (min-width: 1101px) {
  .nh-footer-grid.has-wd { grid-template-rows: auto 1fr; row-gap: 0; }
  .nh-footer-grid.has-wd > .nh-footer-about { grid-column: 1; grid-row: 1 / span 2; }
  .nh-footer-grid.has-wd > .nh-footer-news { grid-column: 4; grid-row: 1 / span 2; }
  .nh-footer-grid.has-wd > .nh-footer-wd { grid-column: 2 / span 2; grid-row: 2; align-self: start; padding-top: 6px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .nh-footer-grid.has-wd { grid-template-rows: auto 1fr; row-gap: 0; }
  .nh-footer-grid.has-wd > .nh-footer-about { grid-column: 1; grid-row: 1 / span 2; }
  .nh-footer-grid.has-wd > .nh-footer-wd { grid-column: 2; grid-row: 2; align-self: start; padding-top: 6px; }
  /* третья строка сетки (вторая колонка ссылок и подписка) — с прежним отступом сверху */
  .nh-footer-grid.has-wd > .nh-footer-wd ~ .nh-footer-col, .nh-footer-grid.has-wd > .nh-footer-col:nth-child(3) { margin-top: 40px; }
}
@media (max-width: 760px) {
  .nh-footer-grid.has-wd > .nh-footer-wd { grid-column: 1 / -1; margin-top: -12px; }
}

/* Строка на странице заказа в личном кабинете */
.nh-wd-order { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--nh-line); border-radius: 16px; font-size: 14px; line-height: 1.45; color: #4a4a4a; }
.nh-wd-order > span { flex: 1 1 260px; }

/* Абзац про онлайн-отказ на страницах «Условия за ползване» и «Условия за доставка» */
.nh-wd-info { padding: 14px 18px; border-left: 3px solid var(--nh-primary); border-radius: 0 12px 12px 0; background: var(--nh-soft); color: var(--nh-text); }
div.nh-wd-info { max-width: 860px; margin: 28px 0 0; padding: 18px; font-size: 15.5px; line-height: 1.6; }
/* После страницы из Elementor: у её блока уже есть свой отступ снизу и поля по бокам — текст врезки встаёт вровень с текстом страницы */
.elementor + div.nh-wd-info { margin-top: 8px; }
@media (min-width: 761px) { div.nh-wd-info { padding: 22px 37px; } }
div.nh-wd-info h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; color: var(--nh-text); }
div.nh-wd-info p { margin: 0; }
.nh-wd-info a { color: var(--nh-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Форма заявления */
.nh-wd { max-width: 640px; }
.nh-wd .nh-wd__lead { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: #4a4a4a; }
.nh-wd .nh-wd__lead p { margin: 0 0 10px; }
.nh-wd .nh-wd__lead p:last-child { margin-bottom: 0; }
.nh-wd__form { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 26px; border: 1px solid var(--nh-line); border-radius: 20px; background: #fff; }
.nh-wd__field { display: flex; flex-direction: column; gap: 6px; }
.nh-wd .nh-wd__label { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--nh-text); }
.nh-wd .nh-wd__label span { color: var(--nh-sale); }
.nh-wd .nh-wd__input { height: 50px; margin: 0; border-color: var(--nh-line-2); font: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; }
.nh-wd textarea.nh-wd__input { height: auto; min-height: 92px; }
.nh-wd .nh-wd__field.is-bad .nh-wd__input { border-color: var(--nh-sale); }
.nh-wd .nh-wd__hint { font-size: 13px; line-height: 1.45; color: var(--nh-muted); }
.nh-wd .nh-wd__err { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--nh-sale); }
.nh-wd .nh-wd__err[hidden], .nh-wd .nh-wd__msg[hidden] { display: none; }
.nh-wd .nh-wd__msg { margin: 0; padding: 12px 14px; border: 1px solid #f6c9cb; border-radius: 12px; background: #fdf1f1; font-size: 14px; font-weight: 600; line-height: 1.45; color: #a01c21; }
.nh-wd .nh-wd__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 0; font-size: 13px; color: var(--nh-muted); }
.nh-wd__chip { height: 32px; padding: 0 12px; border: 1px solid var(--nh-line-2); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--nh-text); cursor: pointer; }
.nh-wd__chip:hover { border-color: var(--nh-primary); color: var(--nh-primary); }
.nh-wd .nh-wd__state { margin: 2px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--nh-surface); font-size: 14px; line-height: 1.5; color: var(--nh-text); }
.nh-wd__submit { position: relative; align-self: flex-start; min-width: 280px; height: 54px; margin: 2px 0 0; padding: 0 28px; border: 0; border-radius: 999px; background: var(--nh-btn); font: inherit; font-size: 16px; font-weight: 700; color: var(--nh-btn-text); cursor: pointer; transition: background .15s; }
.nh-wd__submit:hover { background: var(--nh-primary-dark); }
.nh-wd__submit.is-busy { cursor: progress; background: var(--nh-primary-dark); }
.nh-wd__submit.is-busy::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: nh-spin .7s linear infinite; }
.nh-wd .nh-wd__note { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--nh-muted); }

/* Экран «заявление принято» */
.nh-wd--done { padding: 28px 26px; border: 1px solid var(--nh-line); border-radius: 20px; background: #fff; }
.nh-wd__ok { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #e3f5ea; color: var(--nh-ok); }
.nh-wd__ok .nh-wd-icon { width: 28px; height: 28px; }
.nh-wd h2.nh-wd__title { margin: 14px 0 8px; font-size: 26px; line-height: 1.2; color: var(--nh-text); outline: 0; }
.nh-wd .nh-wd__mail { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #4a4a4a; }
.nh-wd .nh-wd__sum { margin: 0 0 20px; border-top: 1px solid var(--nh-line); }
.nh-wd__row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--nh-line); font-size: 15px; line-height: 1.45; }
.nh-wd__row dt { margin: 0; font-weight: 500; color: var(--nh-muted); }
.nh-wd__row dd { margin: 0; font-weight: 700; color: var(--nh-text); overflow-wrap: anywhere; }
.nh-wd .nh-wd__next { padding: 16px 18px; border-radius: 16px; background: var(--nh-surface); font-size: 15px; line-height: 1.6; color: #4a4a4a; }
.nh-wd .nh-wd__next h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.3; color: var(--nh-text); }
.nh-wd .nh-wd__next p { margin: 0 0 8px; }
.nh-wd .nh-wd__next p:last-child { margin-bottom: 0; }
.nh-wd .nh-wd__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 0; }
.nh-wd__print { height: 44px; padding: 0 20px; border: 1px solid var(--nh-primary); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--nh-primary); cursor: pointer; transition: background .15s, color .15s; }
.nh-wd__print:hover { background: var(--nh-primary); color: #fff; }
.nh-wd a.nh-wd__home { font-size: 14px; font-weight: 700; color: var(--nh-primary); }
@media (max-width: 760px) {
  .nh-wd__form { padding: 18px 16px; border-radius: 16px; }
  .nh-wd__submit { align-self: stretch; min-width: 0; }
  .nh-wd--done { padding: 22px 16px; border-radius: 16px; }
  .nh-wd h2.nh-wd__title { font-size: 22px; }
  .nh-wd__row { grid-template-columns: minmax(0, 1fr); }
}
/* Печать подтверждения: только само заявление (шапка и подвал сайта при печати уже скрыты) */
@media print {
  .nh-wd .nh-wd__actions, .nh-breadcrumb, .woocommerce-breadcrumb { display: none !important; }
  .nh-wd--done { border: 0; padding: 0; }
}

/* 14. Известие за бисквитки (включается в «Настройки сайта → Общее»)
   -------------------------------------------------------------------------- */
.nh-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 35; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 40px)); padding: 18px 20px; border: 1px solid var(--nh-line); border-radius: 16px; background: #fff; box-shadow: var(--nh-shadow); }
.nh-cookie[hidden] { display: none; }
.nh-cookie-text { font-size: 13px; line-height: 1.5; color: #4a4a4a; max-height: 40vh; overflow-y: auto; }
.nh-cookie-text h2, .nh-cookie-text h3, .nh-cookie-text h4, .nh-cookie-text > strong:first-child { display: block; margin: 0 0 6px; font-size: 15px; line-height: 1.3; color: var(--nh-text); }
.nh-cookie-text p { margin: 0 0 6px; }
.nh-cookie-text p:last-child { margin-bottom: 0; }
.nh-cookie-text a { color: var(--nh-primary); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  /* над нижней панелью навигации */
  .nh-cookie { left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; padding: 14px 16px; }
  .nh-cookie .nh-btn { width: 100%; }
}
@media print { .nh-cookie { display: none !important; } }

/* 15. Фильтры каталога по умолчанию: выбранные фильтры, цена «от / до», цвят с образцами
   -------------------------------------------------------------------------- */
.nh-fgroup-color .woocommerce-widget-layered-nav-list { max-height: 336px; overflow-y: auto; padding: 2px 6px 2px 4px; margin-left: -4px; overscroll-behavior: contain; }
.nh-fsw { flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1px solid var(--nh-line-2); }
.nh-fsw img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nh-fgroup .woocommerce-widget-layered-nav-list li a:has(.nh-fsw)::before { display: none; }
.nh-fgroup .woocommerce-widget-layered-nav-list li.chosen .nh-fsw { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nh-primary); }
.nh-fprice { display: flex; align-items: center; gap: 8px; color: var(--nh-muted); }
.nh-fprice label { flex: 1 1 0; min-width: 0; }
.nh-fprice input[type="number"] { height: 38px; padding: 0 12px; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.nh-fprice input[type="number"]::-webkit-outer-spin-button, .nh-fprice input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nh-fprice .nh-btn { flex: none; }
/* счётчик товаров стоит в одной строке с названием фильтра */
.nh-fgroup .woocommerce-widget-layered-nav-list li { display: flex; align-items: center; gap: 8px; }
.nh-fgroup .woocommerce-widget-layered-nav-list li > a, .nh-fgroup .woocommerce-widget-layered-nav-list li > span:not(.count) { flex: 1 1 auto; min-width: 0; }

/* 16. Вход через Facebook и Google под формами входа и регистрации
   -------------------------------------------------------------------------- */
.nh-social-login { margin-top: 18px; }
.nh-social-or { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nh-muted); }
.nh-social-or::before, .nh-social-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--nh-line); }
.nh-social-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.nh-social-btns .nh-social-btn { width: 100%; margin: 0; justify-content: center; background: #fff; border: 1px solid var(--nh-line-2); }
.nh-social-btns .nh-social-btn:hover { border-color: var(--nh-primary); color: var(--nh-primary); }

/* 17. Текст категории под товарами, блок рекомендуемых товаров под корзиной, заголовок известия за бисквитки
   -------------------------------------------------------------------------- */
.nh-term-extra { margin-top: 36px; }
.nh-term-extra > :first-child { margin-top: 0; }
/* Блок стоит внутри страницы корзины, у которой уже есть поля по бокам, — своих полей ему не нужно */
.nh-row-cart { margin-top: 40px; padding: 0; }
.nh-row-cart > .nh-container { max-width: none; padding: 0; }
.nh-cookie-text > div:first-child { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--nh-text); }

/* Телефоны и планшеты: шрифт в полях ввода и списках — не меньше 16px. Иначе iPhone при нажатии на поле
   увеличивает всю страницу, и её приходится уменьшать пальцами обратно (в WoodMart увеличение страницы было запрещено совсем,
   здесь её по-прежнему можно увеличивать — например, чтобы рассмотреть цвет на фото). */
@media (pointer: coarse), (max-width: 760px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input:not([type]), textarea, select:not(.orderby) { font-size: 16px !important; }
  /* Список сортировки каталога оставлен прежним: после выбора сразу открывается новая страница, а с крупным шрифтом он не помещается в одну строку с кнопкой «Филтри». */
}
