/* Действия карточки остаются в потоке; оформление основной кнопки покупки отдельно. */
a.add-to-compare-link,
a.add-to-compare-link:hover,
a.add-to-compare-link:focus {
    position: static;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #747474;
    text-decoration: none;
    vertical-align: middle;
    transform: none;
}
a.add-to-compare-link > .label {
    display: inline;
    padding: 0;
    color: inherit;
    font: inherit;
    background: transparent;
    border-radius: 0;
    white-space: normal;
}
a.add-to-compare-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.action-buttons .yith-wcwl-icon-svg,
.product-action-buttons .yith-wcwl-icon-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Окно сравнения перекрывает sticky-меню темы (z-index 1010 и выше). */
.yith-woocompare-popup-container {
    z-index: 100000;
}/* Общие исправления дочерней темы, без изменения сетки и размеров карточек. */
.logo img { object-fit: contain; height: auto; }
/* Зелёный сохраняет цветовую схему; более тёмный оттенок читаем на белом. */
.product h2 a, .product h3 a, .product .price, .product-category h2,
.product-category h3, .products .product h2, .products .product h3,
.products .product .price-current, .products .product a.add-to-compare-link,
.products .product .add-to-wishlist-button a { color: #38691d; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #315f16;
    outline-offset: 3px;
}
/* Меняется семантический уровень заголовка виджета, визуальный размер прежний. */
.widget h3.widget-title { font-size: 18px; }
/* Зачёркнутая исходная цена и текст подвала тоже должны оставаться читаемыми. */
.products .product .price del, .products .product .price del bdi,
.price-prev { color: #666; opacity: 1; }
.products .product .price del * { color: #666; }
/* Каталог MediaCenter выводит скидку в mc-price-wrapper без класса price. */
.products .mc-price-wrapper del, .products .mc-price-wrapper del * { color: #666; }
/* Виджет товаров находится вне .products и имеет собственное правило темы. */
.widget ul.product_list_widget > li .mc-price-wrapper del,
.widget ul.product_list_widget > li .mc-price-wrapper del * { color: #666; }
/* Полоса copyright имеет фон #3d3d3d; здесь нужен светлый текст. */
body #footer .copyright-bar .copyright { color: #ccc; }
/* Тема задаёт псевдоэлементам мобильной панели weight=400. Общий Font Awesome 6
   назначает самим .fa weight=900: у regular нет поиска, корзины и обмена.
   Наследуем вес выбранного библиотекой начертания, как на Контактах. */
.mc-handheld-footer-bar ul li > a.has-icon i.fa::before { font-weight: inherit; }/* Общая оболочка: desktop сохраняет действующую шапку; мобильная использует
   тот же логотип/поиск и нативное раскрываемое меню. Иконки FA6 не переопределяются. */
.gh-mobile-menu, .gh-mobile-cart { display: none; }
/* Поздние правила темы обнуляют outline даже при :focus-visible. Для новых
   общих элементов сохраняем явную рамку клавиатурного фокуса. */
.gh-site-header :is(a,button,input,select,summary):focus-visible,
.gh-catalog :is(a,button,input,select,summary):focus-visible,
.single-product :is(a,button,input,select,summary):focus-visible {
    outline: 2px solid #315f16 !important; outline-offset: 3px;
}
.gh-catalog-intro { margin: 12px 0 20px; border: 1px solid #d9e1d5; border-radius: 8px; }
.gh-catalog-intro > summary, .gh-catalog-filters > summary { padding: 14px 16px; color: #315f16; cursor: pointer; font-weight: 600; }
.gh-catalog-intro > :not(summary) { margin: 12px 16px; }
.gh-catalog-filters > summary { border: 1px solid #d9e1d5; border-radius: 8px; margin-bottom: 16px; }
.gh-catalog-filters[open] > summary { margin-bottom: 20px; }
/* Действующая активная ссылка меню должна быть читаема и на desktop. */
#top-megamenu-nav .navbar-nav > li.current-menu-item > a { background: #38691d; color: #fff; }

@media (max-width: 991px) {
    body .top-bar, .gh-site-header #top-megamenu-nav,
    .gh-site-header .top-cart-row, .gh-site-header .contact-row { display: none; }
    body .gh-site-header { padding: 0; margin: 0; }
    .gh-site-header > .container.no-padding { display: grid; grid-template-columns: minmax(0,1fr) 48px 48px; gap: 10px; padding: 10px 16px 14px !important; width: 100%; }
    .gh-site-header > .container::before, .gh-site-header > .container::after { display: none; }
    .gh-site-header .logo-holder { grid-column: 1; grid-row: 1; z-index: 1; width: auto; padding: 0; margin: 0; align-self: start; }
    body .gh-site-header .logo-holder .logo { margin: 0 !important; padding: 0; height: 60px; text-align: left; }
    .gh-site-header .logo a { display: block; padding: 0; line-height: 0; }
    .gh-site-header .logo img { width: 100px; height: 60px; object-fit: contain; }
    .gh-mobile-cart { grid-column: 2; grid-row: 1; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 48px; min-height: 60px; align-self: start; color: #38691d; font-size: 22px; }
    .gh-mobile-cart .count { font: 600 12px/1.4 'Open Sans',sans-serif; padding: 2px 4px; border-radius: 4px; background: #eef4ea; }
    .gh-mobile-menu { grid-column: 3; grid-row: 1; display: block; align-self: start; }
    .gh-mobile-menu > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; min-height: 60px; cursor: pointer; color: #315f16; font-size: 11px; list-style: none; }
    .gh-mobile-menu > summary::-webkit-details-marker { display: none; }
    .gh-mobile-menu > summary .fa { font-size: 23px; margin-bottom: 3px; }
    /* Панель раскрывается в потоке под первой строкой. Кнопка остаётся в
       прежней колонке и не меняет размер; логотип и корзина закреплены сверху. */
    .gh-mobile-menu[open] { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 10px; }
    /* Нативный контейнер details-content не должен занимать отдельную ячейку. */
    .gh-mobile-menu[open]::details-content { display: contents; }
    .gh-mobile-menu[open] > summary { grid-column: 3; grid-row: 1; }
    .gh-mobile-menu[open] > nav { grid-column: 1 / -1; grid-row: 2; }
    .gh-mobile-menu nav { background: #f6f8f4; border: 1px solid #d9e1d5; border-radius: 8px; padding: 8px 12px; }
    .gh-mobile-menu nav ul { padding: 0; margin: 0; list-style: none; }
    .gh-mobile-menu nav ul ul { padding-left: 16px; }
    .gh-mobile-menu nav a, .gh-mobile-menu nav summary { display: flex; align-items: center; min-height: 44px; padding: 8px; line-height: 1.45; color: #315f16; overflow-wrap: anywhere; }
    .gh-menu-links .menu-item-object-page.current-menu-item > a { font-weight: 700; }
    .gh-site-header .top-search-holder { grid-column: 1 / -1; width: auto; padding: 0; margin: 0; }
    .gh-site-header .mc-search-bar { margin: 0; }
    .gh-site-header .breadcrumb-nav-holder { display: block; width: 100%; max-width: 100%; margin: 0; }
    .gh-site-header .breadcrumb-nav-holder .container { width: 100%; }
    .gh-site-header .breadcrumb-nav-holder > ul.mc-breadcrumb { display: flex; width: 100%; overflow-x: auto; white-space: nowrap; margin: 0; padding: 0 12px; }
    .gh-site-header .mc-breadcrumb > li { flex: 0 0 auto; float: none; display: flex; align-items: center; min-height: 44px; }
    /* Выпадающая копия главного меню в крошках на телефоне избыточна. */
    .gh-site-header .breadcrumb-nav-holder.minimal .mc-breadcrumb > li.le-le-dropdown { display: none !important; }
    /* Панель категорий — реальные прежние виджеты, перед выдачей на телефоне. */
    body.gh-catalog #content.site-content { padding-top: 16px !important; }
    .gh-catalog #content > .row { display: flex; flex-wrap: wrap; }
    .gh-catalog #content > .row > #primary { order: 2; width: 100%; }
    .gh-catalog #content > .row > #sidebar { display: block; order: 1; width: 100%; padding: 0 15px; margin: 0; }
    .gh-catalog #secondary { display: block; }
    .gh-catalog #secondary .col-xs-12 { float: none; width: 100%; padding: 0; }
    .gh-catalog-filters { margin: 0; }
    .gh-catalog-filters .widget { margin-bottom: 20px; }
    .gh-catalog-filters a { min-height: 44px; line-height: 1.5; padding-top: 10px; padding-bottom: 10px; }
    .gh-catalog .woocommerce-products-header { padding: 0; margin: 0; }
    .gh-catalog .woocommerce-products-header h1 { margin: 4px 0 12px; font-size: 25px; line-height: 1.3; }
    .gh-catalog .control-bar { margin: 12px 0 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .gh-catalog .control-bar .woocommerce-ordering { margin: 0; flex: 1; min-width: 0; }
    .gh-catalog .control-bar select { min-height: 44px; width: 100%; max-width: 100%; font-size: 14px; }
    /* Категории и товары адаптируются без обрезки длинного названия. Высота,
       которую JS темы выравнивает для desktop, на телефоне не фиксируется. */
    .gh-catalog #grid-view ul.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; }
    .gh-catalog #grid-view ul.products::before, .gh-catalog #grid-view ul.products::after { display: none; }
    .gh-catalog #grid-view ul.products > li.product { width: auto !important; height: auto !important; margin: 0 !important; min-width: 0; float: none; }
    .gh-catalog #grid-view .product-category > a { display: flex; align-items: center; gap: 8px; padding: 10px; min-height: 84px; }
    .gh-catalog #grid-view .product-category .product-cat-thumbnail-wrapper { flex: 0 0 40px; width: 40px; height: 48px; margin: 0; }
    .gh-catalog #grid-view .product-category img { position: static; transform: none; width: 40px; height: 48px; object-fit: contain; }
    .gh-catalog #grid-view .product-category h2 { font-size: 13px; line-height: 1.45; padding: 0; margin: 0; overflow-wrap: anywhere; }
    .gh-catalog #grid-view .type-product .product-inner { display: flex; flex-direction: column; height: 100%; padding: 10px; border: 1px solid #e0e5dc; box-shadow: none; }
    .gh-catalog #grid-view .type-product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; padding: 0; }
    .gh-catalog #grid-view .type-product .product-thumbnail-wrapper { width: 100%; aspect-ratio: 1; height: auto; margin: 0 0 10px; }
    .gh-catalog #grid-view .type-product img { position: static; transform: none; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
    .gh-catalog #grid-view .type-product .title-area { height: auto !important; min-height: 0; margin: 0 0 10px; }
    .gh-catalog #grid-view .type-product h2 { font-size: 14px; line-height: 1.45; margin: 0 0 6px; overflow-wrap: anywhere; }
    .gh-catalog #grid-view .type-product .price { padding: 10px 0; margin-top: auto; text-align: left; }
    .gh-catalog #grid-view .type-product .price .amount { font-size: 18px; }
    .gh-catalog #grid-view .type-product .hover-area { display: block !important; position: static !important; width: auto; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; background: transparent; }
    .gh-catalog #grid-view .hover-area-inner { padding: 0; margin: 0; }
    .gh-catalog #grid-view .hover-area a.button { display: flex; align-items: center; justify-content: center; position: static; transform: none; min-height: 44px; width: 100%; margin: 0; padding: 8px 4px; font-size: 14px; border-radius: 6px; }
    .gh-catalog #grid-view .hover-area .action-buttons { display: flex; justify-content: space-around; align-items: center; gap: 4px; margin-top: 6px; padding: 0; }
    .gh-catalog #grid-view .action-buttons .yith-wcwl-add-to-wishlist { margin: 0; padding: 0; }
    .gh-catalog #grid-view .action-buttons a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: 4px; color: #38691d; }
    .gh-catalog #grid-view .action-buttons a svg { width: 22px; height: 22px; margin: 0; }
    .gh-catalog #grid-view .action-buttons a span, .gh-catalog #grid-view .action-buttons .feedback { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    /* После добавления YITH заменяет кнопку ссылкой на список. Она тоже имеет
       видимую иконку и прежнее доступное имя, а не длинную строку поверх соседа. */
    .gh-catalog #grid-view :is(.yith-wcwl-wishlistaddedbrowse,.yith-wcwl-wishlistexistsbrowse) > a { font-size: 0; }
    .gh-catalog #grid-view :is(.yith-wcwl-wishlistaddedbrowse,.yith-wcwl-wishlistexistsbrowse) > a::before { content: '\f004'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 22px; }
    .gh-catalog #grid-view .action-buttons .compare::before { font-size: 20px; margin: 0; }
    .gh-catalog #grid-view .hover-area .added_to_cart { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 2px; white-space: normal; font-size: 13px; line-height: 1.35; }
    /* Единый блок покупки. Нативные формы сохраняются, неподвижной второй
       кнопки поверх нижней панели не создаётся. */
    .single-product #content { padding-top: 16px; }
    .single-product #content .images-and-summary { display: flex; flex-direction: column; margin: 0; }
    /* На 768–991 px тема добавляет галерее offset 16,6% с !important.
       В одноколоночной компоновке этот desktop-offset больше не нужен. */
    .single-product #content .images-and-summary :is(.product-images,.summary) { width: 100% !important; float: none; margin: 0 !important; padding: 0 !important; }
    .single-product #content .images-and-summary .product-images { margin-bottom: 16px !important; }
    .single-product .woocommerce-product-gallery { width: 100% !important; margin: 0; }
    .single-product .woocommerce-product-gallery img { max-height: 240px; width: 100%; height: auto; object-fit: contain; }
    .single-product .summary h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }
    .single-product .summary .price { margin: 12px 0; }
    .single-product .summary form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
    .single-product .summary form.cart .quantity { margin: 0; }
    .single-product .summary form.cart .single_add_to_cart_button { min-height: 48px; margin: 0; flex: 1; }
    .single-product .summary form.variations_form > * { flex-basis: 100%; }
    .single-product .summary .product-action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
    .single-product .product-action-buttons a { min-height: 44px; display: inline-flex; align-items: center; }
    .single-product .summary .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.55; margin-top: 16px; }
    .single-product .summary .woocommerce-product-details__short-description h4 { font: inherit; }
    /* Нижняя навигация остаётся в стиле Контактов; резервируем её высоту. */
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mc-handheld-footer-bar { padding-bottom: env(safe-area-inset-bottom); }
    a, button, input, select, summary { scroll-margin-top: 16px; scroll-margin-bottom: 90px; }
    summary:focus-visible { outline: 2px solid #315f16; outline-offset: 3px; }
}/* OOCSS, структура. Объекты не задают цвета, фон, гарнитуру и границы.
   Один объект используется в разных компонентах через классы в разметке. */
.gh-o-stack { display: flex; flex-direction: column; gap: var(--gh-stack-gap, 8px); }
.gh-o-stack > * { margin-block: 0; }
.gh-o-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gh-o-cluster--nowrap { flex-wrap: nowrap; }
.gh-o-grow { flex: 1; min-width: 0; }
.gh-o-push-end { margin-inline-start: auto; }
/* Пункты навигации читаются строками слева направо — тот же
   порядок остаётся в DOM и при Tab. Длинная подпись переносится без обрезки.
   Раскрываемое содержимое может занять обе колонки без копии данных. */
.gh-o-nav-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
.gh-o-nav-grid > * { min-width: 0; }
.gh-o-disclosure-contents, .gh-o-disclosure-contents::details-content { display: contents; }
.gh-o-grid-span { grid-column: 1 / -1; min-width: 0; }
.gh-o-disclosure-contents:not([open]) > .gh-o-grid-span { display: none; }
.gh-o-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 44px auto; align-items: center; gap: 10px; }
.gh-o-toolbar > .gh-o-grow { grid-column: 1; grid-row: 1; }
.gh-o-toolbar > .gh-o-push-end { grid-column: 3; grid-row: 1; justify-self: end; }
.gh-o-toolbar-disclosure, .gh-o-toolbar-disclosure::details-content { display: contents; }
.gh-o-toolbar-disclosure > summary { grid-column: 2; grid-row: 1; }
.gh-o-toolbar-panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.gh-o-toolbar-disclosure:not([open]) > .gh-o-toolbar-panel { display: none; }
.gh-o-toolbar .gh-o-select--toolbar { max-width: none; }
.gh-o-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.gh-o-scroll > * { flex: 0 0 auto; }
/* Навигация прокручивается касанием и фокусом, без системной полосы.
   Отступ сохраняет место для видимой рамки клавиатурного фокуса. */
.gh-o-scroll--no-bar { scrollbar-width: none; scroll-padding-inline: 8px; padding-block: 4px; }
.gh-o-scroll--no-bar::-webkit-scrollbar { display: none; }
.gh-o-panel { padding: var(--gh-panel-space, 16px); }
.gh-o-section { margin-block: 8px 16px; }
.gh-o-list-item { list-style: none; padding: 0; margin: 0; }
.gh-o-control { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 12px; }
.gh-o-control--square { width: 44px; min-width: 44px; height: 44px; padding: 0; }
.gh-o-field-action { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 0; }
.gh-o-field-action > input { min-width: 0; width: 100%; }
.gh-o-form-shell { width: 100%; max-width: 480px; margin-inline: auto; }
.gh-o-form-shell > h2 { margin: 0 0 12px; }
.gh-o-form { display: flex; flex-direction: column; gap: 16px; }
.gh-o-form > * { margin: 0; }
.gh-o-field { display: flex; flex-direction: column; gap: 8px; }
.gh-o-field > label { margin: 0; }
.gh-o-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; }
.gh-o-form-actions { display: flex; flex-direction: column; gap: 12px; }
.gh-o-control--block { width: 100%; min-height: 48px; }
.gh-o-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.gh-o-check > input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.gh-o-disclosure-summary { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 16px; cursor: pointer; }
.gh-o-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.gh-o-link-grid > a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
.gh-o-card-link { display: block; min-height: 76px; }
.gh-o-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.gh-o-tabs > li { min-width: 0; }
.gh-o-tabs > li > a { width: 100%; height: 100%; padding: 10px 6px; overflow-wrap: anywhere; }
.gh-o-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 220px; padding: 32px 16px; text-align: center; }
.gh-o-empty > * { margin: 0; }
.gh-o-contents { display: contents; }
.gh-o-search { box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto 44px; align-items: center; gap: 4px; width: 100%; padding: 3px; }
.gh-o-search-input { box-sizing: border-box; min-width: 0; width: 100%; height: 44px; padding: 10px 12px; }
.gh-o-select { position: relative; display: block; width: 100%; min-width: 0; }
.gh-o-select--toolbar { max-width: 240px; }
.gh-o-select-input { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 44px; padding: 10px 36px 10px 12px; }
.gh-o-select-icon { position: absolute; inset-inline-end: 12px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); pointer-events: none; }
.gh-o-search-scope { width: 88px; min-width: 0; }
/* Единая композиция карточки: DOM всегда название → фото → покупка.
   На desktop фото занимает левую колонку, название и детали — правую. */
.gh-o-product-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); grid-template-areas: 'media heading' 'media details'; gap: 16px 32px; align-items: start; }
.gh-o-product-heading { grid-area: heading; min-width: 0; --gh-stack-gap: 6px; }
.gh-o-product-media { grid-area: media; min-width: 0; }
.gh-o-buy-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.gh-o-buy-quantity { flex: 0 0 84px; }
.gh-o-buy-submit { flex: 1 1 150px; }
.gh-o-buy-wide { flex-basis: 100%; }
.gh-o-page-section { --gh-page-space: 24px; padding-block: var(--gh-page-space); }
.gh-o-page-content { padding-block: 0 24px; }
.gh-o-page-heading { margin: 0 0 20px; padding: 0; }
.gh-o-heading-section { padding: 0; margin: 0 0 24px; }
.gh-o-utility-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; }
.gh-o-footer-logo { width: 120px; height: 72px; object-fit: contain; }
.gh-o-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; padding-block: 5px; }
.gh-o-pair > * { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 991px) {
    .gh-o-product-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'heading' 'media' 'details'; gap: 16px; }
    .gh-o-product-media { --gh-media-height: clamp(160px,50vw,220px); }
    .gh-o-panel--compact { --gh-panel-space: 12px; }
    .gh-o-pair--compact { display: block; }
    .gh-o-pair--compact > * + * { margin-top: 2px; }
}
@media (max-width: 360px) {
    .gh-o-toolbar > .gh-o-grow { grid-column: 1 / -1; grid-row: 2; }
    .gh-o-toolbar-panel { grid-row: 3; }
}/* OOCSS, оформление. Фирменная палитра и повторяемые поверхности не зависят
   от страницы, идентификатора контейнера или положения элемента в дереве. */
.gh-theme {
    --gh-brand: #38691d;
    --gh-brand-ink: #315f16;
    --gh-ink: #46513f;
    --gh-muted: #626b5d;
    --gh-border: #d9e1d5;
    --gh-border-strong: #a8b89e;
    --gh-soft: #f6f8f4;
    --gh-paper: #fff;
    --gh-error: #b42318;
    --gh-radius: 8px;
}
.gh-c-surface { border: 1px solid var(--gh-border); border-radius: var(--gh-radius); background: var(--gh-paper); color: var(--gh-ink); }
.gh-c-surface--soft { background: var(--gh-soft); }
.gh-c-chip { border: 1px solid var(--gh-border); border-radius: 6px; background: var(--gh-paper); color: var(--gh-brand-ink); font-size: 14px; line-height: 1.4; }
.gh-c-chip[aria-current] { background: var(--gh-brand); color: var(--gh-paper); border-color: var(--gh-brand); }
.gh-c-chip--removable::before { content: '\00d7'; font-size: 20px; }
.gh-c-heading-small { font-size: 16px; font-weight: 600; line-height: 1.4; }
.gh-c-section-label { color: var(--gh-muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.gh-c-muted { color: var(--gh-muted); font-weight: 400; }
.gh-c-specs { color: var(--gh-ink); font-size: 13px; line-height: 1.5; font-weight: 400; }
.gh-c-specs > * { border-bottom: 1px solid var(--gh-border); }
.gh-c-specs dd { font-weight: 600; }
.gh-c-text-link { color: var(--gh-brand-ink); text-decoration: underline; }
.gh-c-icon-button { color: var(--gh-brand-ink); background: var(--gh-soft); border: 1px solid var(--gh-border-strong); border-radius: 6px; font-size: 20px; line-height: 1; cursor: pointer; }
.gh-c-icon-button:hover { background: var(--gh-border); }
.gh-c-icon-button--plain { border: 0; background: transparent; }
.gh-c-input { background: var(--gh-paper); color: var(--gh-ink); border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius); font-size: 16px; line-height: 1.5; }
.gh-c-input:focus-visible, .gh-c-input:focus-within { outline: 2px solid var(--gh-brand); outline-offset: 2px; }
.gh-c-input[aria-invalid="true"] { border-color: var(--gh-error) !important; }
.gh-c-empty-message { font-size: 16px; line-height: 1.6; color: var(--gh-muted); }
.gh-c-form-label { color: var(--gh-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.gh-c-form-title { color: var(--gh-ink); font-size: 26px; font-weight: 600; line-height: 1.3; }
.gh-c-primary-button { background: var(--gh-brand); color: var(--gh-paper); border: 1px solid var(--gh-brand); border-radius: var(--gh-radius); font-size: 16px; font-weight: 600; line-height: 1.5; transition: background-color .15s, color .15s; }
.gh-c-primary-button:hover { background: var(--gh-brand-ink); }
.gh-c-link-grid > a { color: var(--gh-brand-ink); font-size: 14px !important; line-height: 1.5; text-decoration: none; }
.gh-c-home-link { text-align: left; }
.gh-c-home-link .gh-c-heading-small { color: var(--gh-brand-ink); }
.gh-c-empty { color: var(--gh-muted); font-size: 16px; line-height: 1.5; }
.gh-c-empty-icon { color: var(--gh-brand); font-size: 32px; }
.gh-c-search { background: var(--gh-paper); border: 1px solid var(--gh-border-strong); border-radius: 12px; }
.gh-c-search:focus-within { border-color: var(--gh-brand); box-shadow: 0 0 0 2px var(--gh-border); }
.gh-c-select-input { border: 1px solid var(--gh-border-strong); border-radius: 6px; background: var(--gh-paper); color: var(--gh-ink); font-size: 14px; line-height: 1.4; cursor: pointer; appearance: none; text-overflow: ellipsis; }
.gh-c-select-icon { color: var(--gh-muted); font-size: 12px; line-height: 1; }
.gh-c-search-select { border: 0; background: transparent; color: var(--gh-muted); }
.gh-c-product-heading { color: var(--gh-ink); font-size: clamp(22px,2.4vw,28px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.gh-c-purchase-price { color: var(--gh-brand-ink); font-size: 28px; font-weight: 600; line-height: 1.25; }
.gh-c-compare-excerpt { color: var(--gh-ink); font-size: 14px; line-height: 1.6; font-weight: 400; }
.gh-c-page-heading { font-size: 26px !important; font-weight: 600; line-height: 1.3 !important; text-align: left !important; color: var(--gh-ink); }
.gh-c-section-heading { font-size: 20px !important; font-weight: 600; line-height: 1.4 !important; color: var(--gh-ink); }
.gh-c-prose { font-size: 16px; line-height: 1.65; color: var(--gh-ink); }
.gh-c-prose h2 { font-size: 26px; line-height: 1.35; }
.gh-c-prose h3 { font-size: 20px; line-height: 1.4; }
.gh-c-legal-copy { --gh-legal-font-size: 12px; --gh-legal-leading: 1.6; font-size: var(--gh-legal-font-size); line-height: var(--gh-legal-leading); }/* Привязки MediaCenter/WooCommerce/YITH. Здесь только native-селекторы,
    их состояния и ограничения сторонних стилей; фирменные значения берутся
   из skin, общая раскладка собственных компонентов — из objects. */
/* Переключение и aria-label остаются у WooCommerce. Никакого submit у
   вспомогательной кнопки; она занимает отдельную ячейку, не закрывая поле. */
.woocommerce .password-input.gh-o-field-action { width: 100%; }
.woocommerce .show-password-input.gh-o-control { position: static; margin: 0; float: none; }
.woocommerce .show-password-input.display-password .fa-eye { --fa: '\f070'; }
.woocommerce .password-input.gh-c-input > input { border: 0; border-radius: inherit; background: transparent; box-shadow: none; }
.woocommerce .password-input.gh-c-input > input:focus-visible { outline: none; }
.woocommerce .wrap-customer-login-form.gh-o-form-shell { float: none; }
.woocommerce form.gh-o-form { padding: 0; }
.woocommerce .gh-o-form-shell > form.gh-o-form { width: 100%; max-width: none; float: none; margin-inline: 0; }
.woocommerce form.gh-o-form > p { padding: 0; margin: 0; }
.woocommerce .gh-o-form-shell > h2 { padding: 0; width: 100%; float: none; margin-inline: 0; }
.woocommerce form :is(input,textarea).gh-c-input { background: var(--gh-paper); border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius); }
.woocommerce form .password-input.gh-c-input > input { border: 0; background: transparent; }
.woocommerce-account #main-content { padding-block: 24px; }
.woocommerce-account .entry-content { padding-bottom: 24px; }
.woocommerce .gh-o-form input.gh-o-input { margin: 0; }
.woocommerce .gh-o-form .gh-o-form-actions > button { margin: 0; float: none; }
.woocommerce .gh-o-form .gh-o-check { font-weight: 400; }
.woocommerce .gh-o-form .lost_password { text-align: center; }
.woocommerce form button.gh-o-control, .woocommerce form input.gh-o-control,
.wpcf7 form input.gh-o-control, .wpcf7 form button.gh-o-control { min-height: 44px; }
.gh-footer-disclosure > summary h3 { display: inline; margin: 0; padding: 0; font: inherit; }
.gh-footer-disclosure .tagcloud a { margin: 0; }
#footer .copyright.gh-c-legal-copy { font-size: var(--gh-legal-font-size); line-height: var(--gh-legal-leading); }
#footer .contact-info.gh-o-stack > p { margin: 0; }
#footer .footer-logo .gh-o-footer-logo { width: 120px; height: 72px; }
/* Единый поиск находится в шапке на всех ширинах. Категории в подвале
   раскрываются пользователем; native details сохраняет 45 действующих ссылок. */
#footer .sub-form-row { display: none; }
#footer .link-list-row { margin-block: 0; padding-block: 32px; }
#footer .footer-logo { margin: 0 0 16px; }
#footer .social-icons { margin-top: 24px; }
.gh-footer-disclosure[open] > summary > .fa { transform: rotate(180deg); }
.mc_banner.gh-c-home-link .banner-text { position: static; padding: 0; width: auto; transform: none; }
.mc_banner.gh-c-home-link .banner-title { margin: 0; font-size: 16px; line-height: 1.5; }
.mc_banner.gh-c-home-link .tagline { position: static; display: block; white-space: normal; }
.mc_banner.gh-c-home-link > a { height: auto; }
.home .nav-tabs.gh-o-tabs::before, .home .nav-tabs.gh-o-tabs::after { display: none; }
.home .nav-tabs.gh-o-tabs > li { width: auto; float: none; margin: 0; }
.home .nav-tabs.gh-o-tabs > li > a { margin: 0; font-size: 13px; line-height: 1.4; }
.home .nav-tabs.gh-o-tabs > li.active > a { background: var(--gh-brand); color: var(--gh-paper); border-color: var(--gh-brand); }
.home .nav-tabs.gh-o-tabs > li.active > a { padding: 10px 6px; }
.wishlist_table:has(.wishlist-empty) thead { display: none; }
.wishlist_table .wishlist-empty { padding: 0; }
.wishlist_table:has(.wishlist-empty) { margin-block: 0; }
#yith-woocompare .gh-o-empty > .empty-comparison { margin: 0; padding: 0; min-height: 0; }
.woocommerce .gh-o-empty > .cart-empty.woocommerce-info { margin: 0; padding: 0 !important; border: 0; background: transparent; font-size: 16px !important; line-height: 1.6 !important; color: var(--gh-muted); }
.woocommerce .gh-o-empty > .gh-c-primary-button { min-height: 44px; padding: 9px 12px; font-size: 16px; line-height: 1.5; }
/* Native margin-right:23px на каждой ссылке растягивал группу, а clearfix
   панели становился третьим flex-элементом. Группа заканчивается у внутренней
   правой границы панели; отступы внутри группы задаёт общий cluster. */
.control-bar.gh-o-cluster::before, .control-bar.gh-o-cluster::after { content: none; display: none; }
.control-bar .woocommerce-ordering.gh-o-grow { float: none; margin: 0; }
.control-bar .shop-view-switcher.gh-o-cluster { float: none; width: auto; flex: 0 0 auto; padding: 0; margin-block: 0; margin-inline: auto 0; }
.control-bar .shop-view-switcher .gh-o-list-item { float: none; margin: 0; padding: 0; }
.control-bar .shop-view-switcher a.gh-o-control { margin: 0; }
/* Родительская тема зануляла padding у orderby. Chevron декоративный,
   pointer-events:none оставляет одно штатное раскрытие самого select. */
.control-bar .woocommerce-ordering select.gh-o-select-input { width: 100%; height: 44px; padding: 10px 36px 10px 12px; border: 1px solid var(--gh-border-strong); appearance: none; }
/* Компенсация старых отрицательных отступов secondary не нужна внутри
   Bootstrap-колонки: иначе рамка фильтров выходила из общих полей на 15px. */
.gh-catalog #secondary { margin-inline: 0; }
/* Адаптер старых float/offset MediaCenter к общей сетке карточки. Порядок
   и содержимое native-форм не меняются; цена не наследует 40px у amount. */
.single-product #content .images-and-summary.gh-o-product-layout { display: grid; margin: 0; }
.single-product #content .gh-o-product-layout > .summary { grid-area: details; float: none; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
.single-product #content .gh-o-product-layout > .product-images { float: none; width: auto !important; margin: 0 !important; padding: 0 !important; }
.single-product #content .gh-o-product-heading { margin: 0; padding: 0; border: 0; background: transparent; }
.gh-o-product-heading > .product_title { font: inherit; margin: 0; padding: 0; border: 0; }
.gh-o-product-heading > .product-brand { margin: 0; padding: 0; color: var(--gh-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.single-product .gh-product-purchase { --gh-stack-gap: 12px; margin: 0 0 16px; }
.single-product .gh-product-purchase .gh-c-purchase-price { margin: 0; padding: 0; font-size: 28px; line-height: 1.25; }
.gh-product-purchase .price :is(.amount,bdi), .gh-product-purchase .woocommerce-variation-price .price { font: inherit; }
.gh-product-purchase .price del { font-size: 16px; color: var(--gh-muted); }
.single-product .summary .gh-product-purchase form.cart { margin: 0; padding: 0; gap: 12px; }
.single-product .gh-product-purchase .quantity { margin: 0; }
.single-product .gh-product-purchase .quantity input { width: 100%; height: 48px; min-height: 48px; padding: 10px; }
.single-product .gh-product-purchase .single_add_to_cart_button { margin: 0; min-height: 48px; padding: 12px 16px; line-height: 1.5; }
/* Мобильная иконка раскрывает исходный details непосредственно в toolbar.
   На desktop этот же узел возвращается в sidebar, без второй формы. */
.gh-catalog .control-bar.gh-o-toolbar { display: grid; }
.control-bar.gh-o-toolbar::before, .control-bar.gh-o-toolbar::after { content: none; display: none; }
.control-bar.gh-o-toolbar > .woocommerce-ordering { width: auto; }
.control-bar.gh-o-toolbar > .shop-view-switcher { margin-inline: 0; }
.gh-catalog .control-bar.gh-o-toolbar .gh-catalog-filters > summary { width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; list-style: none; }
.control-bar.gh-o-toolbar .gh-catalog-filters > summary::-webkit-details-marker { display: none; }
.control-bar.gh-o-toolbar .gh-filter-label { display: none; }
.control-bar.gh-o-toolbar .gh-filter-body { margin: 0; }
.wishlist-title .gh-c-form-title { margin: 0 0 20px; padding: 0; font-size: 24px; line-height: 1.3; text-align: left; }
/* Общий шаблон поиска исключает вложенные рамки темы. Typeahead и параметры
   s/product_cat/post_type остаются прежними; область выбора не скрытый select. */
.gh-site-header .gh-search-panel form { border: 0; background: transparent; box-shadow: none; }
.gh-site-header .mc-search-bar.gh-search-panel { border: 0; background: transparent; box-shadow: none; }
.gh-site-header .gh-search-panel form .gh-o-search { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; padding: 3px; border: 1px solid var(--gh-border-strong); border-radius: 12px; }
.gh-site-header .gh-search-panel .twitter-typeahead { grid-column: 1; width: 100% !important; min-width: 0; }
.gh-site-header .gh-search-panel .gh-o-search-input { width: 100% !important; min-width: 0; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 16px; }
.gh-site-header .gh-search-panel .input-group-addon { display: contents; }
/* Clearfix темы становился нулевой второй строкой grid с gap 4px и
   смещал середину рамки относительно всех контролов на два пикселя. */
.gh-site-header .gh-search-panel .input-group-addon::after { content: none; display: none; }
.gh-site-header .gh-search-panel .gh-search-scope { grid-column: 2; grid-row: 1; position: relative; }
/* Отменяем absolute и отрицательные margin MediaCenter: центр кнопки
   совпадает с серединой строки, иконка — с центром области 44×44. */
.gh-site-header .gh-search-panel .input-group-addon button { grid-column: 3; grid-row: 1; position: static; margin: 0; inset: auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; background: transparent; color: var(--gh-brand); border: 0; box-shadow: none; }
.gh-site-header .gh-search-panel .input-group-addon button:hover { background: transparent; color: var(--gh-brand-ink); }
.gh-site-header .gh-search-panel .input-group-addon button .fa { color: inherit; font-size: 20px; line-height: 1; }
/* customSelect записывает appearance прямо в style; отменяем его здесь,
   чтобы рядом с общей иконкой не появлялся второй системный шеврон. */
.gh-site-header .gh-search-panel .gh-search-scope select { position: static !important; display: block !important; opacity: 1 !important; width: 100% !important; height: 44px !important; padding: 10px 36px 10px 12px; font-size: 14px; border: 0; border-radius: 6px; background: transparent; appearance: none !important; }
.gh-site-header .gh-search-panel :is(.customSelect,.mc-search-bar-select) { display: none !important; }
.gh-site-header .gh-search-panel .gh-search-scope-status { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
#main-content.gh-o-page-section { padding-block: var(--gh-page-space); }
#main-content .entry-content.gh-o-page-content { padding-block: 0 24px; }
#main-content .gh-o-page-heading { margin: 0 0 20px; padding: 0; }
#main-content .section-page-title.gh-o-heading-section { padding: 0; margin: 0 0 24px; }
.woocommerce .gh-o-utility-row .woocommerce-info { background: transparent; border: 0; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: inherit; }
.woocommerce .gh-o-utility-row .woocommerce-info::before { display: none; }
/* Единый язык каталога и покупки: фирменный зелёный, прежние шрифты и FA6.
   Выбранные фильтры и значения атрибутов печатает PHP из данных WooCommerce. */
/* WooCommerce не подключает свои CSS в MediaCenter. Размеры и видимость
   штатного price-slider задаются здесь, обработчики остаются WooCommerce. */
.gh-filter-widget .ui-slider { position: relative; height: 6px; margin: 22px 12px; background: var(--gh-border); border-radius: 6px; }
.gh-filter-widget .ui-slider-range { position: absolute; height: 100%; background: var(--gh-brand); }
.gh-filter-widget .ui-slider-handle { position: absolute; top: -9px; width: 24px; height: 24px; margin-left: -12px; border: 2px solid var(--gh-brand); border-radius: 50%; background: var(--gh-paper); cursor: ew-resize; z-index: 2; touch-action: none; }
.gh-filter-widget .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gh-filter-widget .price_slider_amount .clear { display: none; }
.gh-filter-widget .price_slider_amount input[name="min_price"],
.gh-filter-widget .price_slider_amount input[name="max_price"] { display: block !important; width: calc(50% - 5px); min-height: 44px; padding: 8px; border: 1px solid var(--gh-border-strong); border-radius: 6px; font-size: 16px; }
.gh-filter-widget .price_label { font-size: 13px; color: var(--gh-muted); }
.gh-filter-widget button { min-height: 44px; padding: 10px 16px; border-radius: 6px; }
.gh-purchase-min { color: var(--gh-ink); font-size: 14px; }
/* Сообщения сохраняют native role/status и Ajax-маркеры. Уменьшается
   только оформление темы, превращавшее пустую корзину в огромный заголовок. */
.woocommerce .cart-empty.woocommerce-info { font-size: 20px !important; line-height: 1.5 !important; text-align: center; padding: 24px !important; margin: 20px 0 12px; background: var(--gh-soft); border: 1px solid var(--gh-border); border-radius: 8px; color: var(--gh-brand-ink); }
.woocommerce .return-to-shop { text-align: center; margin: 0 0 32px; }
.woocommerce .return-to-shop .button { min-height: 44px; padding: 12px 20px; border-radius: 6px; }
.woocommerce :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 991px) {
    table.compare-list { font-size: 14px; }
    table.compare-list tr > :first-child { width: 104px !important; min-width: 104px !important; max-width: 104px !important; overflow-wrap: anywhere; }
    table.compare-list th, table.compare-list td { padding: 10px; }
    /* Штатная DataTables выставляет широкую таблицу в inline style. При auto
       layout свободная ширина растягивает и колонку названий; ограничение
       одной ячейки не помогает. Товары остаются в штатной прокрутке таблицы. */
    #yith-woocompare .dataTables_scrollBody table.compare-list { table-layout: fixed; width: var(--gh-comparison-width) !important; min-width: 0; }
    /* MediaCenter скрывает служебный th, но оставляет td в первой строке:
       браузер сдвигает товарные колонки. Сохраняем всю строку измерения
       DataTables, у которой native-скрипт уже обнуляет высоту. */
    #yith-woocompare table.compare-list :is(thead,tfoot) th.fields { display: table-cell; }
    #yith-woocompare table.compare-list th { box-sizing: border-box; }
    #yith-woocompare table.compare-list td:not(.filler) { box-sizing: border-box; width: 200px !important; min-width: 200px; max-width: 200px; padding-inline: 10px; }
    #yith-woocompare table.compare-list tbody th h2 { font-size: 14px; line-height: 1.4; margin: 0; }
    #footer .sub-form-row { display: none; }
    #footer .link-list-row { padding-block: 24px; }
    #footer .widget:has(.gh-footer-disclosure) { margin-bottom: 0; }
    .gh-site-header .mc-search-bar form { border: 0; box-shadow: none; }
    /* Native-крошки используют ту же политику полосы, что OOCSS-навигация.
       overflow-x сохраняется: длинный путь доступен касанием и клавиатурой. */
    .gh-site-header .mc-breadcrumb { scrollbar-width: none; }
    .gh-site-header .mc-breadcrumb::-webkit-scrollbar { display: none; }
    /* Категории уже доступны в компактной навигации; прежняя сетка категорий
       на мобильном не повторяется перед каждой товарной выдачей. */
    .gh-catalog #grid-view .product-category { display: none; }
    .gh-catalog .control-bar { border: 1px solid var(--gh-border); border-radius: 8px; background: var(--gh-soft); }
    .gh-catalog .gh-catalog-filters > summary { margin-bottom: 8px; }
    .gh-catalog .gh-catalog-filters[open] > summary { margin-bottom: 8px; }
    .gh-catalog .gh-filter-body { margin-bottom: 12px; }
    .gh-catalog #list-view .product-inner { padding: 12px; border: 1px solid var(--gh-border); border-radius: 6px; }
    .gh-catalog #list-view .row { display: flex; flex-wrap: wrap; margin: 0; }
    .gh-catalog #list-view .product-thumbnail-wrapper { max-width: 140px; margin: auto; }
    .gh-catalog #list-view .product-thumbnail-wrapper img { position: static; transform: none; width: 100%; height: auto; object-fit: contain; }
    .gh-catalog #list-view .title-area { height: auto !important; }
    .gh-catalog #list-view .title-area h2, .gh-catalog #list-view .title-area h3 { font-size: 18px; line-height: 1.4; }
    .gh-catalog #list-view .body, .gh-catalog #list-view .footer { width: 100%; padding: 8px; }
    .gh-catalog #list-view .button { min-height: 44px; }
    .single-product .summary .product_meta { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
    .single-product .summary .price { font-size: 25px; }
    .single-product .summary .quantity input { min-height: 48px; font-size: 16px; }
    .single-product .woocommerce-tabs ul.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0; }
    .single-product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; margin: 0; }
    .single-product .woocommerce-tabs ul.tabs a { display: block; min-height: 44px; padding: 12px; font-size: 14px; }
    .woocommerce-cart .woocommerce-message { margin: 12px 0; }
    /* Штатный preview YITH не должен лежать под нижней навигацией.
       Сохраняются его ссылки удаления/сравнения и существующие обработчики. */
    #yith-woocompare-preview-bar { bottom: calc(76px + env(safe-area-inset-bottom)) !important; max-width: 100%; padding: 8px; }
    #yith-woocompare-preview-bar > .container { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin: 0; }
    #yith-woocompare-preview-bar .content { flex: 1; min-width: 0; width: auto; height: auto; max-height: none; overflow: visible; padding: 0; }
    #yith-woocompare-preview-bar .compare-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; height: 76px; padding: 12px 4px; margin: 0; scrollbar-width: none; }
    #yith-woocompare-preview-bar .compare-list::-webkit-scrollbar { display: none; }
    #yith-woocompare-preview-bar .compare-list > li { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; }
    #yith-woocompare-preview-bar .compare-list > .product-placeholder { display: none !important; }
    #yith-woocompare-preview-bar .image-wrap, #yith-woocompare-preview-bar .image-wrap img { width: 52px; height: 52px; object-fit: contain; }
    #yith-woocompare-preview-bar footer { flex: 0 0 130px; width: 130px; padding: 0; margin: 0; }
    #yith-woocompare-preview-bar footer .button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; font-size: 12px; line-height: 1.4; white-space: normal; }
    body:has(#yith-woocompare-preview-bar.shown) { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
    /* Галерея с несколькими фото: общие правила большого изображения не
       распространяются на миниатюры. Переключение и увеличение остаются WC. */
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img { height: 220px; width: 100%; object-fit: contain; }
    .single-product .woocommerce-product-gallery .flex-control-thumbs { display: flex !important; flex-wrap: nowrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0; overflow-x: auto; }
    .single-product .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 56px !important; width: 56px !important; float: none !important; margin: 0; }
    .single-product .woocommerce-product-gallery .flex-control-thumbs img { width: 56px; height: 56px; object-fit: contain; cursor: pointer; }
    .single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:not(:first-child) { display: none; }
    /* На узком экране hover-увеличение закрывает исходное фото при касании.
       Полноэкранный просмотр по штатной кнопке галереи остаётся доступен. */
    .single-product .woocommerce-product-gallery .zoomImg { display: none !important; }
    /* Одна предсказуемая область фото до/после FlexSlider, включая загрузку
       нескольких кадров. Размеры zoomImg не применяются к исходному фото.
       У миниатюр убраны padding родительского ol и лишний нижний margin. */
    .gh-o-product-media .woocommerce-product-gallery { margin: 0 !important; }
    .single-product #content .gh-o-product-media .woocommerce-product-gallery .flex-viewport { height: var(--gh-media-height) !important; margin: 0; }
    .single-product .gh-o-product-media .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img { height: var(--gh-media-height); max-height: none; width: 100%; object-fit: contain; }
    .single-product .gh-o-product-media .woocommerce-product-gallery .flex-control-thumbs { padding: 0 !important; margin: 8px 0 0 !important; gap: 8px; }
    .single-product .gh-o-product-media .woocommerce-product-gallery .flex-control-thumbs li { flex-basis: 48px !important; width: 48px !important; }
    .single-product #content .gh-o-product-media .flex-control-thumbs li { margin: 0; padding: 0; }
    .single-product .gh-o-product-media .woocommerce-product-gallery .flex-control-thumbs img { width: 48px; height: 48px; }
}
/* #single-product родителя задаёт вложенным amount 40px и кнопке padding
   18px 52px. Сбрасываем только эти привязки внутри общего блока покупки. */
.single-product #content .gh-product-purchase p.gh-c-purchase-price { font-size: 28px; line-height: 1.25; }
.single-product #content .gh-product-purchase .price :is(.amount,bdi) { font: inherit; }
.single-product #content .gh-product-purchase .single_add_to_cart_button { padding: 12px 16px; min-height: 48px; line-height: 1.5; }
.single-product #content .gh-product-purchase .quantity input { box-sizing: border-box; height: 50px; min-height: 50px; margin: 0; }
.single-product #content .gh-o-product-heading > .product-brand { padding: 0; line-height: 1.5; }
.single-product .summary > p.price:empty { display: none; }