/* ==========================================================================
   HeavyParts — основные стили
   1. Переменные и база      6. Главная
   2. Кнопки, формы          7. Каталог WooCommerce
   3. Шапка                  8. Страница товара
   4. Мега-меню, drawer      9. Корзина, оформление, кабинет
   5. Подвал, модалка        10. Блог, страницы, адаптив
   ========================================================================== */

/* 1. Переменные и база
   ========================================================================== */
:root {
	--hp-accent: #f5b400;
	--hp-accent-dark: #d89e00;
	--hp-ink: #17191c;
	--hp-ink-2: #22262b;
	--hp-ink-3: #2e3339;
	--hp-text: #1d2126;
	--hp-muted: #69717b;
	--hp-line: #e2e5e9;
	--hp-bg: #f3f4f6;
	--hp-surface: #fff;
	--hp-success: #188a4a;
	--hp-warn: #c26a00;
	--hp-danger: #c62828;
	--hp-radius: 6px;
	--hp-radius-lg: 10px;
	--hp-shadow: 0 1px 2px rgba(16, 20, 24, .06), 0 4px 16px rgba(16, 20, 24, .06);
	--hp-shadow-lg: 0 12px 40px rgba(16, 20, 24, .16);
	--hp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hp-font-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
	--hp-container: 1320px;
	--hp-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--hp-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--hp-text);
	background: var(--hp-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* страховка от горизонтального скролла, не ломает sticky */
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hp-accent-dark); }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hp-font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .01em;
	margin: 0 0 .6em;
	color: var(--hp-ink);
}

.hp-h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 0; }
.hp-h3 { font-size: 22px; margin: 0 0 .3em; }

.container {
	width: 100%;
	max-width: var(--hp-container);
	margin: 0 auto;
	padding: 0 24px;
}
.container--narrow { max-width: 860px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	left: 12px; top: 12px; z-index: 1000;
	padding: 10px 16px; background: var(--hp-accent); color: var(--hp-ink);
}

:focus-visible { outline: 3px solid var(--hp-accent); outline-offset: 2px; }

.hp-icon { width: 20px; height: 20px; flex: none; }
.hp-muted { color: var(--hp-muted); }
.hp-note { padding: 12px 16px; background: #fff8e1; border-left: 3px solid var(--hp-accent); font-size: 14px; }

.hp-stripe {
	height: 8px;
	background: repeating-linear-gradient(-45deg, var(--hp-accent) 0 14px, var(--hp-ink) 14px 28px);
}

.hp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--hp-font-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hp-accent);
	margin-bottom: 14px;
}
.hp-eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

/* 2. Кнопки и формы
   ========================================================================== */
.hp-btn,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: var(--hp-radius);
	font: 600 14px/1.2 var(--hp-font);
	letter-spacing: .02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
	background: var(--hp-ink);
	color: #fff;
}
.hp-btn:active { transform: translateY(1px); }

.hp-btn--accent,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce a.checkout-button,
.woocommerce #place_order,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
input[type="submit"] {
	background: var(--hp-accent);
	color: var(--hp-ink);
}
.hp-btn--accent:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
input[type="submit"]:hover {
	background: var(--hp-accent-dark);
	color: var(--hp-ink);
}

.hp-btn--dark, .button, .woocommerce a.button, .woocommerce button.button { background: var(--hp-ink); color: #fff; }
.hp-btn--dark:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--hp-ink-3); color: #fff; }

.hp-btn--ghost { background: transparent; border-color: var(--hp-line); color: var(--hp-ink); }
.hp-btn--ghost:hover { border-color: var(--hp-ink); color: var(--hp-ink); background: transparent; }

.hp-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 15px; }

.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; padding: 10px 20px; }
.woocommerce a.button.loading { opacity: .7; }
.woocommerce a.added_to_cart { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; }

.hp-link {
	padding: 0; border: 0; background: none;
	font: inherit; color: inherit;
	text-decoration: underline dashed; text-underline-offset: 4px;
	cursor: pointer;
}
.hp-link:hover { color: var(--hp-accent-dark); }

.hp-icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	padding: 0; border: 0; border-radius: var(--hp-radius);
	background: transparent; color: inherit; cursor: pointer;
}
.hp-icon-btn:hover { background: rgba(0, 0, 0, .06); }
.hp-icon-btn .hp-icon { width: 24px; height: 24px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #cfd4da;
	border-radius: var(--hp-radius);
	background: #fff;
	font: 15px/1.4 var(--hp-font);
	color: var(--hp-text);
	transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
select {
	appearance: none;
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2317191c' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
select:disabled { background-color: #f3f4f6; color: var(--hp-muted); }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--hp-accent-dark);
	box-shadow: 0 0 0 3px rgba(245, 180, 0, .25);
}
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }

label { font-size: 13px; font-weight: 600; color: var(--hp-ink-3); }
.hp-field { display: flex; flex-direction: column; gap: 6px; }
.hp-field label .req, .required { color: var(--hp-danger); text-decoration: none; }
.hp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--hp-muted); cursor: pointer; }
.hp-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--hp-ink); flex: none; }
.hp-check a { color: inherit; }
.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Поиск */
.hp-search {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	background: #fff;
	border: 2px solid var(--hp-ink);
	border-radius: var(--hp-radius);
}
.hp-search:focus-within { border-color: var(--hp-accent-dark); box-shadow: 0 0 0 3px rgba(245, 180, 0, .25); }
.hp-search__icon { display: grid; place-items: center; padding-left: 14px; color: var(--hp-muted); }
.hp-search__input,
.hp-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	padding: 8px 12px;
}
.hp-search__input::-webkit-search-cancel-button { cursor: pointer; }
.hp-search__btn {
	flex: none;
	margin: 3px;
	padding: 0 22px;
	border: 0;
	border-radius: 4px;
	background: var(--hp-accent);
	color: var(--hp-ink);
	font: 600 14px var(--hp-font);
	cursor: pointer;
}
.hp-search__btn:hover { background: var(--hp-accent-dark); }

.hp-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: -2px; right: -2px;
	z-index: 60;
	background: #fff;
	border-radius: var(--hp-radius-lg);
	box-shadow: var(--hp-shadow-lg);
	overflow: hidden;
	color: var(--hp-text);
}
.hp-live { list-style: none; margin: 0; padding: 6px; }
.hp-live a {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 8px 10px;
	border-radius: var(--hp-radius);
	text-decoration: none;
}
.hp-live a:hover, .hp-live a.is-active { background: var(--hp-bg); color: inherit; }
.hp-live img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--hp-line); border-radius: 4px; }
.hp-live__title { font-size: 14px; font-weight: 500; line-height: 1.3; display: block; }
.hp-live__sku { font-size: 12px; color: var(--hp-muted); }
.hp-live__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.hp-live__foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hp-line); font-size: 13px; }
.hp-live__foot a { font-weight: 600; }
.hp-live__empty { padding: 16px; font-size: 14px; color: var(--hp-muted); }
.hp-live__empty button { margin-top: 10px; }

/* 3. Шапка
   ========================================================================== */
.hp-topbar { background: var(--hp-ink); color: #aeb4bb; font-size: 13px; }
.hp-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.hp-topbar__info { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.hp-topbar__info li { display: inline-flex; align-items: center; gap: 7px; }
.hp-topbar__info .hp-icon { width: 15px; height: 15px; color: var(--hp-accent); }
.hp-topbar a { color: #dfe3e7; text-decoration: none; }
.hp-topbar a:hover { color: var(--hp-accent); }
.hp-topbar__menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

.hp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 var(--hp-line);
	transition: box-shadow .2s;
}
.admin-bar .hp-header { top: 32px; }
.hp-header.is-stuck { box-shadow: 0 6px 24px rgba(16, 20, 24, .1); }
.hp-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--hp-header-h);
}
.hp-burger { display: none; }

.hp-logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.hp-logo img { max-height: 52px; width: auto; }
.hp-logo--text { gap: 10px; color: var(--hp-ink); }
.hp-logo--text:hover { color: var(--hp-ink); }
.hp-logo__mark {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border-radius: var(--hp-radius);
	background: var(--hp-accent);
	color: var(--hp-ink);
}
.hp-logo__mark .hp-icon { width: 26px; height: 26px; stroke-width: 2.2; }
.hp-logo__text { display: flex; flex-direction: column; }
.hp-logo__name { font: 700 22px/1 var(--hp-font-head); text-transform: uppercase; letter-spacing: .02em; }
.hp-logo__desc { font-size: 11px; color: var(--hp-muted); margin-top: 4px; max-width: 180px; line-height: 1.25; }

.hp-catalog-btn { flex: none; min-height: 48px; padding: 0 20px; font-size: 15px; }
.hp-catalog-btn__icon { position: relative; display: inline-grid; }
.hp-catalog-btn__icon .hp-icon--close { position: absolute; inset: 0; opacity: 0; }
.hp-catalog-btn[aria-expanded="true"] .hp-icon--grid { opacity: 0; }
.hp-catalog-btn[aria-expanded="true"] .hp-icon--close { opacity: 1; }

.hp-header__search { flex: 1; min-width: 200px; }
.hp-header__search .hp-search { border-width: 2px; }

.hp-header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; }
.hp-header__phone { font: 600 19px/1.2 var(--hp-font-head); color: var(--hp-ink); text-decoration: none; white-space: nowrap; letter-spacing: .02em; }
.hp-header__phone:hover { color: var(--hp-accent-dark); }
.hp-header__callback { font-size: 13px; color: var(--hp-muted); }

.hp-header__actions { display: flex; gap: 4px; flex: none; }
.hp-action {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 10px;
	border-radius: var(--hp-radius);
	text-decoration: none;
	color: var(--hp-ink);
}
.hp-action:hover { background: var(--hp-bg); color: var(--hp-ink); }
.hp-action__icon { position: relative; display: grid; }
.hp-action__icon .hp-icon { width: 26px; height: 26px; }
.hp-action__label { display: flex; flex-direction: column; line-height: 1.2; }
.hp-action__title { font-size: 12px; color: var(--hp-muted); }
.hp-cart-total { font-size: 14px; font-weight: 700; white-space: nowrap; }
.hp-cart-count {
	position: absolute; top: -6px; right: -8px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px; border: 2px solid #fff;
	background: var(--hp-accent); color: var(--hp-ink);
	font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.hp-cart-count.is-empty { display: none; }

.hp-nav { border-top: 1px solid var(--hp-line); }
.hp-nav__menu { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.hp-nav__menu > li { position: relative; }
.hp-nav__menu a {
	display: block;
	padding: 12px 0;
	font-size: 14px; font-weight: 500;
	text-decoration: none;
	color: var(--hp-ink-3);
	border-bottom: 2px solid transparent;
}
.hp-nav__menu > li > a:hover, .hp-nav__menu > .current-menu-item > a { border-color: var(--hp-accent); color: var(--hp-ink); }
.hp-nav__menu .sub-menu {
	position: absolute; top: 100%; left: -16px; z-index: 40;
	min-width: 220px; padding: 8px; margin: 0; list-style: none;
	background: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.hp-nav__menu li:hover > .sub-menu, .hp-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hp-nav__menu .sub-menu a { padding: 8px 12px; border: 0; border-radius: 4px; }
.hp-nav__menu .sub-menu a:hover { background: var(--hp-bg); }

/* 4. Мега-меню и мобильное меню
   ========================================================================== */
.hp-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff;
	border-top: 1px solid var(--hp-line);
	box-shadow: 0 24px 48px rgba(16, 20, 24, .18);
	max-height: calc(100vh - var(--hp-header-h) - 40px);
	overflow: auto;
}
.hp-mega__inner { padding-top: 28px; padding-bottom: 32px; }
.hp-mega__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 32px;
	list-style: none; margin: 0; padding: 0;
}
.hp-mega__list > li > a,
.hp-mega__link {
	display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
	padding-bottom: 8px; margin-bottom: 8px;
	border-bottom: 2px solid var(--hp-accent);
	font: 600 16px/1.2 var(--hp-font-head);
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none;
	color: var(--hp-ink);
}
.hp-mega__count { font: 500 12px var(--hp-font); color: var(--hp-muted); }
.hp-mega__sub, .hp-mega__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.hp-mega__sub a, .hp-mega__list .sub-menu a { display: block; padding: 4px 0; font-size: 14px; color: var(--hp-ink-3); text-decoration: none; }
.hp-mega__sub a:hover, .hp-mega__list .sub-menu a:hover { color: var(--hp-accent-dark); text-decoration: underline; }
.hp-mega__empty { margin: 0; color: var(--hp-muted); }

.hp-drawer { position: fixed; inset: 0; z-index: 200; }
.hp-drawer__overlay { position: absolute; inset: 0; background: rgba(10, 12, 14, .55); animation: hp-fade .2s; }
.hp-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: min(380px, 88vw);
	overflow-y: auto;
	background: #fff;
	animation: hp-slide .25s ease-out;
}
.hp-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hp-line); }
.hp-drawer__search, .hp-drawer__section { padding: 16px; border-bottom: 1px solid var(--hp-line); }
.hp-drawer__title { font: 600 13px var(--hp-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--hp-muted); margin-bottom: 8px; }
.hp-drawer__catalog .hp-mega__list { grid-template-columns: 1fr; gap: 0; }
.hp-drawer__catalog .hp-mega__list > li > a,
.hp-drawer__catalog .hp-mega__link { border: 0; margin: 0; padding: 10px 0; font-size: 15px; }
.hp-drawer__catalog .hp-mega__sub, .hp-drawer__catalog .sub-menu { display: none; }
.hp-drawer__menu { list-style: none; margin: 0; padding: 0; }
.hp-drawer__menu a { display: block; padding: 9px 0; text-decoration: none; font-weight: 500; }
.hp-drawer__contacts p { color: var(--hp-muted); font-size: 13px; margin: 4px 0 12px; }
.hp-drawer__contacts .hp-btn { width: 100%; }
.hp-drawer__contacts .hp-messengers { margin-top: 12px; }

@keyframes hp-fade { from { opacity: 0; } }
@keyframes hp-slide { from { transform: translateX(-100%); } }
@keyframes hp-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

body.hp-lock { overflow: hidden; }

/* 5. Подвал, модальное окно, нижняя панель
   ========================================================================== */
.hp-footer { margin-top: 72px; background: var(--hp-ink); color: #a7aeb6; font-size: 14px; }
.hp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.hp-footer .hp-logo--text, .hp-footer .hp-logo--text:hover { color: #fff; }
.hp-footer .hp-logo__desc { color: #858d96; }
.hp-footer__about { margin: 18px 0; max-width: 340px; }
.hp-footer__title {
	font: 600 15px var(--hp-font-head);
	text-transform: uppercase; letter-spacing: .1em;
	color: #fff; margin: 0 0 16px;
}
.hp-footer__list, .hp-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.hp-footer__list li, .hp-footer .widget li { margin: 0 0 8px; }
.hp-footer a { color: #c9ced4; text-decoration: none; }
.hp-footer a:hover { color: var(--hp-accent); }
.hp-footer__phone { display: block; font: 600 22px var(--hp-font-head); color: #fff !important; letter-spacing: .02em; }
.hp-footer__phone--sm { font-size: 17px; }
.hp-footer__info { list-style: none; margin: 14px 0 18px; padding: 0; }
.hp-footer__info li { display: flex; gap: 10px; margin-bottom: 8px; }
.hp-footer__info .hp-icon { width: 17px; height: 17px; color: var(--hp-accent); margin-top: 2px; }
.hp-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7d858e; }
.hp-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.hp-pay { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hp-pay li { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; color: #b5bcc3; font-size: 12px; white-space: nowrap; }

.hp-messengers { display: flex; gap: 8px; }
.hp-messenger {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	color: #fff !important;
}
.hp-messenger--tg { background: #229ed9; }
.hp-messenger--wa { background: #25d366; }
.hp-messenger:hover { filter: brightness(1.1); }

.hp-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.hp-modal__overlay { position: absolute; inset: 0; background: rgba(10, 12, 14, .6); animation: hp-fade .2s; }
.hp-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 36px 32px 28px;
	border-radius: var(--hp-radius-lg);
	background: #fff;
	box-shadow: var(--hp-shadow-lg);
	animation: hp-pop .22s ease-out;
}
.hp-modal__stripe { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: var(--hp-radius-lg) var(--hp-radius-lg) 0 0; background: repeating-linear-gradient(-45deg, var(--hp-accent) 0 12px, var(--hp-ink) 12px 24px); }
.hp-modal__close { position: absolute; top: 14px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--hp-bg); cursor: pointer; }
.hp-modal__close:hover { background: var(--hp-line); }
.hp-modal__title { font-size: 28px; text-transform: uppercase; margin-bottom: 8px; padding-right: 40px; }
.hp-modal__text { color: var(--hp-muted); margin-bottom: 22px; }

.hp-request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-request-form .hp-field--wide, .hp-request-form .hp-request-form__status, .hp-request-form__product { grid-column: 1 / -1; }
.hp-request-form__product {
	display: flex; gap: 10px; align-items: center;
	padding: 10px 14px;
	background: var(--hp-bg);
	border-left: 3px solid var(--hp-accent);
	border-radius: 4px;
	font-size: 14px; font-weight: 600;
}
.hp-request-form__product[hidden] { display: none; }
.hp-request-form__status:empty { display: none; }
.hp-request-form__status { padding: 12px 14px; border-radius: var(--hp-radius); font-size: 14px; }
.hp-request-form__status.is-ok { background: #e8f6ee; color: var(--hp-success); }
.hp-request-form__status.is-error { background: #fdecec; color: var(--hp-danger); }
.hp-request-form.is-sent .hp-field, .hp-request-form.is-sent .hp-check, .hp-request-form.is-sent button[type="submit"] { display: none; }
.hp-field.has-error input { border-color: var(--hp-danger); }

.hp-bottom-bar { display: none; }

/* 6. Главная
   ========================================================================== */
.hp-hero {
	position: relative;
	overflow: hidden;
	background: var(--hp-ink);
	color: #c4cad1;
}
.hp-hero__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(800px 420px at 85% 30%, rgba(245, 180, 0, .18), transparent 60%),
		linear-gradient(transparent 0 calc(100% - 1px), rgba(255, 255, 255, .04) 0) 0 0 / 100% 48px,
		linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255, 255, 255, .04) 0) 0 0 / 48px 100%;
}
.hp-hero__bg::after {
	content: "";
	position: absolute; right: -80px; bottom: -40px;
	width: 55%; height: 120px;
	background: repeating-linear-gradient(-45deg, var(--hp-accent) 0 26px, transparent 26px 52px);
	opacity: .12;
	transform: skewY(-6deg);
}
.hp-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: 40px;
	padding-top: 72px;
	padding-bottom: 104px;
}
.hp-hero__title {
	font-size: clamp(34px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.04;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 18px;
}
.hp-hero__text { font-size: 17px; max-width: 580px; margin-bottom: 28px; }
.hp-search--hero { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 640px; }
.hp-search--hero .hp-search__input { min-height: 56px; font-size: 16px; }
.hp-search--hero .hp-search__btn { padding: 0 32px; font-size: 15px; }
.hp-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.hp-hero__tags span { color: #8b939c; margin-right: 4px; }
.hp-hero__tags a {
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 20px;
	color: #dfe3e7; text-decoration: none;
	transition: .15s;
}
.hp-hero__tags a:hover { border-color: var(--hp-accent); color: var(--hp-accent); }
.hp-hero__stats { display: flex; gap: 40px; list-style: none; margin: 40px 0 0; padding: 0; }
.hp-hero__stats li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--hp-accent); }
.hp-hero__stats b { font: 700 30px/1 var(--hp-font-head); color: #fff; }
.hp-hero__stats span { font-size: 13px; margin-top: 6px; }
.hp-hero__media { position: relative; }
.hp-hero__media img { width: 100%; max-height: 460px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }
.hp-hero__svg { width: 100%; height: auto; display: block; }

.hp-section { padding: 64px 0 0; }
.hp-section--muted { margin-top: 64px; padding: 56px 0 64px; background: #e9ebee; }
.hp-section--muted + .hp-section { padding-top: 64px; }
.hp-section--overlap { position: relative; z-index: 2; margin-top: -56px; padding-top: 0; }
.hp-section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hp-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
.hp-more .hp-icon { width: 18px; transition: transform .15s; }
.hp-more:hover .hp-icon { transform: translateX(3px); }

.hp-fitment-box {
	display: grid;
	grid-template-columns: minmax(260px, 340px) 1fr;
	align-items: center;
	gap: 32px;
	padding: 28px 32px;
	background: #fff;
	border-radius: var(--hp-radius-lg);
	box-shadow: var(--hp-shadow-lg);
	border-top: 4px solid var(--hp-accent);
}
.hp-fitment-box__head { display: flex; gap: 16px; align-items: center; }
.hp-fitment-box__head p { margin: 0; font-size: 14px; color: var(--hp-muted); }
.hp-fitment-box__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: var(--hp-radius); background: var(--hp-ink); color: var(--hp-accent); }
.hp-fitment-box__icon .hp-icon { width: 32px; height: 32px; }

.hp-fitment { display: grid; gap: 12px; }
.hp-fitment--wide { grid-template-columns: 1fr 1fr auto; align-items: end; }
.hp-fitment--wide .hp-btn { min-height: 46px; }
.hp-fitment--widget .hp-btn { width: 100%; }

.hp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-cat {
	position: relative;
	display: flex; flex-direction: column;
	min-height: 220px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius-lg);
	text-decoration: none;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hp-cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hp-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .2s; }
.hp-cat:hover { border-color: transparent; box-shadow: var(--hp-shadow-lg); transform: translateY(-2px); color: inherit; }
.hp-cat:hover::before { transform: none; }
.hp-cat__media { display: grid; place-items: center; height: 120px; margin-bottom: 14px; color: #c2c7cd; }
.hp-cat__media img { max-height: 120px; width: auto; object-fit: contain; transition: transform .3s; }
.hp-cat:hover .hp-cat__media img { transform: scale(1.05); }
.hp-cat__media .hp-icon { width: 64px; height: 64px; stroke-width: 1.2; }
.hp-cat__body { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-right: 36px; }
.hp-cat__name { font: 600 18px/1.15 var(--hp-font-head); text-transform: uppercase; color: var(--hp-ink); }
.hp-cat__count { font-size: 13px; color: var(--hp-muted); }
.hp-cat__arrow {
	position: absolute; right: 16px; bottom: 18px;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--hp-bg);
	transition: .15s;
}
.hp-cat__arrow .hp-icon { width: 18px; height: 18px; }
.hp-cat:hover .hp-cat__arrow { background: var(--hp-accent); }

.hp-tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border-radius: var(--hp-radius); border: 1px solid var(--hp-line); }
.hp-tabs__btn { padding: 8px 16px; border: 0; border-radius: 4px; background: transparent; font: 600 14px var(--hp-font); color: var(--hp-muted); cursor: pointer; }
.hp-tabs__btn[aria-selected="true"] { background: var(--hp-ink); color: #fff; }
.hp-tabs__btn:not([aria-selected="true"]):hover { color: var(--hp-ink); }

.hp-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hp-benefit { padding: 26px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.hp-benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: var(--hp-radius); background: #fff4cc; color: var(--hp-ink); }
.hp-benefit__icon .hp-icon { width: 28px; height: 28px; }
.hp-benefit h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 6px; }
.hp-benefit p { margin: 0; color: var(--hp-muted); font-size: 14px; }

.hp-cta { position: relative; margin-top: 72px; background: var(--hp-ink); color: #b9c0c7; }
.hp-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hp-cta .hp-h2 { color: #fff; margin-bottom: 14px; }
.hp-cta__text > p { font-size: 16px; max-width: 520px; }
.hp-checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.hp-checklist li { display: flex; gap: 10px; align-items: center; color: #e3e7eb; }
.hp-checklist .hp-icon { color: var(--hp-accent); stroke-width: 2.6; }
.hp-cta__form { padding: 28px; background: #fff; border-radius: var(--hp-radius-lg); color: var(--hp-text); }

.hp-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hp-brand {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	height: 96px; padding: 14px;
	background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius-lg);
	text-decoration: none; transition: .15s;
}
.hp-brand img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: .15s; }
.hp-brand:hover { border-color: var(--hp-accent); box-shadow: var(--hp-shadow); }
.hp-brand:hover img { filter: none; opacity: 1; }
.hp-brand__name { font: 700 20px var(--hp-font-head); text-transform: uppercase; color: var(--hp-ink); letter-spacing: .03em; }
.hp-brand__models { font-size: 12px; color: var(--hp-muted); }

.hp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--hp-radius-lg); overflow: hidden; border: 1px solid var(--hp-line); }
.hp-post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--hp-ink-2); overflow: hidden; }
.hp-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hp-post-card:hover .hp-post-card__media img { transform: scale(1.04); }
.hp-post-card__ph { display: grid; place-items: center; height: 100%; color: var(--hp-accent); background: repeating-linear-gradient(-45deg, var(--hp-ink-2) 0 18px, var(--hp-ink-3) 18px 36px); }
.hp-post-card__ph .hp-icon { width: 48px; height: 48px; }
.hp-post-card__body { padding: 20px; }
.hp-post-card__title { font-size: 20px; margin: 6px 0 8px; }
.hp-post-card__title a { text-decoration: none; }
.hp-post-card__excerpt { margin: 0; color: var(--hp-muted); font-size: 14px; }
.hp-post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--hp-muted); }
.hp-post-meta a { color: var(--hp-accent-dark); text-decoration: none; }

/* 7. Каталог WooCommerce
   ========================================================================== */
.hp-shop { padding-top: 20px; }
.woocommerce-breadcrumb, .woocommerce .woocommerce-breadcrumb {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--hp-muted);
}
.woocommerce-breadcrumb a { color: var(--hp-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--hp-ink); }
.woocommerce-breadcrumb .sep { margin: 0 8px; opacity: .5; }

.hp-shop__layout { display: block; }
.hp-shop__layout.has-sidebar { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.hp-shop__main { min-width: 0; }
.hp-shop__sidebar { position: sticky; top: calc(var(--hp-header-h) + 60px); display: grid; gap: 16px; }
.hp-shop__sidebar-head { display: none; }
.hp-shop__sidebar .widget { padding: 20px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.hp-shop__sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.hp-shop__sidebar .widget li { padding: 5px 0; font-size: 14px; }
.hp-shop__sidebar .widget li a { text-decoration: none; }
.hp-shop__sidebar .widget .count { color: var(--hp-muted); font-size: 12px; }

.woocommerce-products-header__title, .hp-shop .page-title {
	font-size: clamp(28px, 3vw, 40px);
	text-transform: uppercase;
	margin: 0 0 12px;
}
.term-description, .woocommerce-products-header .page-description { color: var(--hp-muted); max-width: 820px; margin-bottom: 20px; }
.hp-seo-text { margin-top: 40px; padding: 28px; background: #fff; border-radius: var(--hp-radius-lg); color: var(--hp-muted); font-size: 14px; }

.hp-toolbar {
	display: flex; align-items: center; gap: 16px;
	margin-bottom: 20px; padding: 10px 10px 10px 16px;
	background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius-lg);
}
.hp-toolbar .woocommerce-result-count { margin: 0 auto 0 0 !important; font-size: 14px; color: var(--hp-muted); float: none !important; }
.hp-toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.hp-toolbar .woocommerce-ordering select { min-height: 40px; min-width: 240px; font-size: 14px; }
.hp-toolbar__filters { display: none; min-height: 40px; }

/* Сетка товаров */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 32px;
	padding: 0;
}
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 14px;
	float: none !important;
	background: #fff;
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius-lg);
	transition: box-shadow .15s, border-color .15s;
}
.woocommerce ul.products li.product:hover { border-color: transparent; box-shadow: var(--hp-shadow-lg); }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }

.hp-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	border-radius: var(--hp-radius);
	background: #fff;
	overflow: hidden;
}
.woocommerce ul.products li.product .hp-card__media img {
	width: 100%; height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform .3s;
}
.woocommerce ul.products li.product:hover .hp-card__media img { transform: scale(1.04); }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	position: absolute; top: 8px; left: 8px; right: auto; z-index: 2;
	min-width: 0; min-height: 0; margin: 0;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--hp-danger); color: #fff;
	font: 600 12px/1.3 var(--hp-font);
	text-transform: uppercase; letter-spacing: .04em;
}
.hp-badge {
	position: absolute; bottom: 8px; left: 8px; z-index: 2;
	padding: 3px 9px;
	border-radius: 4px;
	background: var(--hp-ink); color: #fff;
	font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
.hp-badge--original { background: var(--hp-accent); color: var(--hp-ink); }
.hp-badge--used { background: #6b7280; }
.hp-badge--reman { background: #2563eb; }

.hp-card__sku { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 4px; font-size: 12px; color: var(--hp-muted); }
.hp-card__sku b { color: var(--hp-ink-3); font-weight: 600; }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	padding: 0;
	margin: 0 0 10px;
	font: 500 14px/1.35 var(--hp-font);
	color: var(--hp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.woocommerce ul.products li.product .star-rating { margin: 0 0 8px; font-size: 12px; }
.woocommerce ul.products li.product .price {
	display: block;
	margin: auto 0 6px;
	font: 700 20px/1.2 var(--hp-font);
	color: var(--hp-ink);
}
.woocommerce ul.products li.product .price del { font-size: 14px; font-weight: 400; color: var(--hp-muted); opacity: 1; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--hp-danger); }
.hp-price-request { font-size: 16px; font-weight: 600; color: var(--hp-ink-3); }

.hp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.hp-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hp-stock--in { color: var(--hp-success); }
.hp-stock--order { color: var(--hp-warn); }
.hp-stock--out { color: var(--hp-muted); }

.hp-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hp-card__actions .button, .hp-card__actions .hp-btn { flex: 1; min-height: 42px; margin: 0 !important; }
.hp-card__actions .button.add_to_cart_button { background: var(--hp-accent); color: var(--hp-ink); }
.hp-card__actions .button.add_to_cart_button:hover { background: var(--hp-accent-dark); }
.hp-card__actions .added_to_cart { flex-basis: 100%; text-align: center; margin: 0 !important; }

/* Подкатегории в сетке */
.woocommerce ul.products li.product-category a { text-decoration: none; }
.woocommerce ul.products li.product-category img { aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.woocommerce ul.products li.product-category h2 { font: 600 16px var(--hp-font-head) !important; text-transform: uppercase; }
.woocommerce ul.products li.product-category mark { background: none; color: var(--hp-muted); font-weight: 400; }

/* Пагинация */
.woocommerce nav.woocommerce-pagination ul, .nav-links { display: flex; justify-content: center; gap: 6px; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.nav-links .page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 10px;
	background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
	font-weight: 600; text-decoration: none; color: var(--hp-ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current, .nav-links .page-numbers.current { background: var(--hp-ink); border-color: var(--hp-ink); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover, .nav-links a.page-numbers:hover { border-color: var(--hp-ink); background: #fff; }

/* Фильтр цены */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background: var(--hp-accent); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--hp-ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--hp-ink); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--hp-line); }
.woocommerce .widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 6px 14px; font-size: 13px; }

/* Уведомления */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	border: 0 !important;
	border-left: 4px solid var(--hp-accent) !important;
	border-radius: var(--hp-radius) !important;
	background: #fff !important;
	box-shadow: var(--hp-shadow);
	padding: 16px 20px 16px 52px !important;
	color: var(--hp-text) !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--hp-accent-dark) !important; top: 16px !important; left: 20px !important; }
.woocommerce-error { border-left-color: var(--hp-danger) !important; }
.woocommerce-error::before { color: var(--hp-danger) !important; top: 16px !important; left: 20px !important; }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 36px; padding: 6px 14px; }
.wc-block-components-notice-banner { border-radius: var(--hp-radius) !important; }

.hp-no-products { padding: 40px; background: #fff; border-radius: var(--hp-radius-lg); text-align: center; }
.hp-no-products h2 { font-size: 26px; text-transform: uppercase; }
.hp-no-products p { color: var(--hp-muted); max-width: 520px; margin: 0 auto 20px; }

/* 8. Страница товара
   ========================================================================== */
.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding: 32px;
	background: #fff;
	border-radius: var(--hp-radius-lg);
	border: 1px solid var(--hp-line);
}
.woocommerce div.product > .onsale { top: 20px; left: 20px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }

.woocommerce div.product > * { min-width: 0; }
.woocommerce div.product div.images { max-width: 100%; overflow: hidden; }
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; }
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper { border: 0; border-radius: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image { position: relative; overflow: hidden; background: #fff; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
/* Лупа при наведении нужна только мышью; на сенсорных экранах — полноэкранный просмотр */
@media (hover: none), (pointer: coarse) {
	.woocommerce div.product div.images .zoomImg { display: none !important; }
}
.woocommerce div.product div.images img { object-fit: contain; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px !important; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 76px !important; border: 1px solid var(--hp-line); border-radius: 4px; overflow: hidden; }
.woocommerce div.product div.images .flex-control-thumbs li img { opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li:hover img { opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: #fff; box-shadow: var(--hp-shadow); }

.woocommerce div.product .product_title { font-size: clamp(24px, 2.6vw, 34px); text-transform: none; margin-bottom: 10px; }
.hp-single-sku { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hp-muted); margin-bottom: 10px; }
.hp-single-sku b { color: var(--hp-ink); font-size: 15px; }
.hp-copy { padding: 2px 8px; border: 1px dashed #c5cbd1; border-radius: 4px; background: none; font-size: 12px; color: var(--hp-muted); cursor: pointer; }
.hp-copy:hover, .hp-copy.is-copied { border-color: var(--hp-success); color: var(--hp-success); }
.hp-single-stock { margin: 0 0 14px; }
.hp-single-stock .hp-stock { padding: 5px 12px; border-radius: 20px; background: currentColor; }
.hp-single-stock .hp-stock { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

.woocommerce div.product p.price, .woocommerce div.product span.price {
	font: 700 34px/1.1 var(--hp-font);
	color: var(--hp-ink);
	margin: 6px 0 18px;
}
.woocommerce div.product p.price del { font-size: 18px; font-weight: 400; color: var(--hp-muted); }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--hp-danger); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--hp-ink-3); margin-bottom: 18px; }

.hp-specs { margin: 0 0 22px; border-top: 1px solid var(--hp-line); }
.hp-specs__row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--hp-line); font-size: 14px; }
.hp-specs dt { color: var(--hp-muted); }
.hp-specs dd { margin: 0; font-weight: 500; }
.hp-specs dd a { color: var(--hp-ink); }

.woocommerce div.product form.cart {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin: 0 0 22px;
	padding: 18px;
	background: var(--hp-bg);
	border-radius: var(--hp-radius-lg);
}
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 6px 8px 6px 0; vertical-align: middle; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; flex: 1; min-height: 52px; font-size: 16px; }

.quantity { display: inline-flex; align-items: stretch; background: #fff; border: 1px solid #cfd4da; border-radius: var(--hp-radius); }
.quantity .qty { width: 56px !important; min-height: 50px; border: 0 !important; box-shadow: none !important; text-align: center; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hp-qty-btn { width: 40px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--hp-ink); cursor: pointer; }
.hp-qty-btn:hover { background: var(--hp-bg); }

.hp-single-request { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; padding: 18px; background: var(--hp-bg); border-radius: var(--hp-radius-lg); }
.hp-single-request__note { flex-basis: 100%; font-size: 13px; color: var(--hp-muted); }
.hp-single-request .yith-add-to-wishlist-button-block, .hp-single-request .tinv-wraper { margin: 0 !important; }

.hp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0 0 16px; padding: 0; }
.hp-trust li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); font-size: 12px; color: var(--hp-muted); line-height: 1.35; }
.hp-trust b { display: block; color: var(--hp-ink); font-size: 13px; margin-bottom: 2px; }
.hp-trust .hp-icon { color: var(--hp-accent-dark); width: 24px; height: 24px; }
.hp-single-help { font-size: 14px; color: var(--hp-muted); }
.hp-single-help a { font-weight: 600; color: var(--hp-ink); white-space: nowrap; }

/* Вкладки */
.woocommerce div.product .woocommerce-tabs { margin-top: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 4px;
	margin: 0 0 24px !important; padding: 0 !important;
	border-bottom: 2px solid var(--hp-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 0 -2px !important; padding: 0 !important;
	background: none !important; border: 0 !important; border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 18px !important;
	font: 600 15px var(--hp-font-head) !important; text-transform: uppercase; letter-spacing: .04em;
	color: var(--hp-muted) !important;
	border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--hp-ink) !important; border-color: var(--hp-accent); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 0 24px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h3 { font-size: 18px; text-transform: uppercase; margin: 0 0 14px; }

.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--hp-line); font-style: normal; }
.woocommerce table.shop_attributes th { width: 260px; font-weight: 500; color: var(--hp-muted); text-align: left; }
.woocommerce table.shop_attributes tr:nth-child(even) td, .woocommerce table.shop_attributes tr:nth-child(even) th { background: var(--hp-bg); }

.hp-fit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 28px; }
.hp-fit-list__brand { padding: 14px 16px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); }
.hp-fit-list__brand b { display: block; font: 600 16px var(--hp-font-head); text-transform: uppercase; margin-bottom: 6px; }
.hp-fit-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hp-fit-list li a, .hp-cross a { display: inline-block; padding: 3px 10px; background: var(--hp-bg); border-radius: 4px; font-size: 13px; text-decoration: none; }
.hp-fit-list li a:hover, .hp-cross a:hover { background: var(--hp-accent); color: var(--hp-ink); }
.hp-cross { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hp-cross a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2, .cross-sells > h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 20px; }
.woocommerce div.product .related ul.products li.product,
.woocommerce div.product .upsells ul.products li.product { background: var(--hp-surface); }

/* Отзывы */
.woocommerce #reviews #comments ol.commentlist li .comment-text { border-radius: var(--hp-radius); border-color: var(--hp-line); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--hp-accent-dark); }

/* 9. Корзина, оформление, кабинет
   ========================================================================== */
.hp-page--wc .hp-entry { max-width: none; }
.woocommerce table.shop_table { border-radius: var(--hp-radius-lg); border-color: var(--hp-line); background: #fff; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--hp-font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-size: 13px; color: var(--hp-muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; border-color: var(--hp-line); }
.woocommerce-cart table.cart img { width: 72px; border-radius: 4px; border: 1px solid var(--hp-line); }
.woocommerce a.remove { color: var(--hp-danger) !important; }
.woocommerce a.remove:hover { background: var(--hp-danger); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order {
	padding: 24px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line);
}
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 22px; text-transform: uppercase; }
.woocommerce-checkout #payment { background: var(--hp-bg) !important; border-radius: var(--hp-radius-lg) !important; }
.woocommerce form .form-row label { margin-bottom: 4px; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: var(--hp-radius); text-decoration: none; font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--hp-ink); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--hp-bg); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a:hover { background: var(--hp-ink); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border-radius: var(--hp-radius-lg) !important; border-color: var(--hp-line) !important; background: #fff; }

/* Блочные корзина и оформление */
.wc-block-cart, .wc-block-checkout { background: transparent; }
.wp-block-woocommerce-cart .wc-block-cart__main, .wc-block-checkout__main { padding: 0; }
.wc-block-components-sidebar { padding: 24px !important; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.wc-block-components-title.wc-block-components-title { font-family: var(--hp-font-head); text-transform: uppercase; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--hp-radius) !important; }
.wc-block-components-button:not(.is-link) { min-height: 50px; }

/* 10. Блог, страницы, 404
   ========================================================================== */
.hp-page-header { padding: 24px 0 28px; background: #fff; border-bottom: 1px solid var(--hp-line); margin-bottom: 32px; }
.hp-page-title { font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; margin: 0; }
.hp-page-title span { color: var(--hp-accent-dark); }
.hp-page-subtitle { margin-top: 10px; color: var(--hp-muted); max-width: 760px; }
.hp-page-header .hp-post-meta { margin-top: 12px; }

.hp-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.hp-layout__sidebar .widget { padding: 20px; margin-bottom: 16px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.hp-layout__sidebar .widget ul { padding-left: 18px; }
.hp-posts--list { grid-template-columns: repeat(2, 1fr); }
.hp-layout:not(.has-sidebar) .hp-posts--list { grid-template-columns: repeat(3, 1fr); }

.hp-entry { font-size: 16px; line-height: 1.7; }
.hp-page .hp-entry:not(.hp-page--wc .hp-entry) { max-width: 860px; }
.hp-entry > * { max-width: 100%; }
.hp-entry h2 { font-size: 28px; margin-top: 1.6em; }
.hp-entry h3 { font-size: 22px; margin-top: 1.4em; }
.hp-entry ul, .hp-entry ol { padding-left: 1.3em; }
.hp-entry blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--hp-accent); background: #fff; font-size: 17px; }
.hp-entry table { width: 100%; border-collapse: collapse; background: #fff; }
.hp-entry th, .hp-entry td { padding: 10px 14px; border: 1px solid var(--hp-line); text-align: left; }
.hp-entry img { border-radius: var(--hp-radius); }
.hp-entry a:not(.hp-btn):not(.button) { color: var(--hp-accent-dark); }
.hp-single article { padding: 32px; background: #fff; border-radius: var(--hp-radius-lg); border: 1px solid var(--hp-line); }
.hp-single__thumb { margin: -32px -32px 28px; }
.hp-single__thumb img { width: 100%; border-radius: var(--hp-radius-lg) var(--hp-radius-lg) 0 0; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.hp-tags a { padding: 4px 12px; background: var(--hp-bg); border-radius: 20px; font-size: 13px; text-decoration: none; color: var(--hp-ink) !important; }
.hp-inline-cta {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	margin: 24px 0; padding: 22px 24px;
	background: var(--hp-ink); color: #c4cad1;
	border-radius: var(--hp-radius-lg);
	border-left: 6px solid var(--hp-accent);
}
.hp-inline-cta b { display: block; color: #fff; font: 600 20px var(--hp-font-head); text-transform: uppercase; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px 20px; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius-lg); text-decoration: none; font-weight: 600; }
.post-navigation a span { display: block; font-size: 12px; font-weight: 400; color: var(--hp-muted); margin-bottom: 4px; }
.post-navigation .nav-next { text-align: right; }
.hp-comments { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 16px; margin-bottom: 12px; background: #fff; border-radius: var(--hp-radius); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }

.hp-empty { padding: 40px; background: #fff; border-radius: var(--hp-radius-lg); display: grid; gap: 16px; justify-items: start; }
.hp-empty .hp-search { max-width: 520px; }

.hp-404 { padding: 72px 24px 24px; text-align: center; }
.hp-404__code {
	font: 700 clamp(120px, 20vw, 220px)/1 var(--hp-font-head);
	color: transparent;
	background: repeating-linear-gradient(-45deg, var(--hp-accent) 0 22px, var(--hp-ink) 22px 44px);
	-webkit-background-clip: text; background-clip: text;
	margin-bottom: 8px;
}
.hp-404 p { color: var(--hp-muted); }
.hp-404__search { max-width: 600px; margin: 20px auto 24px; }
.hp-404__actions { display: flex; justify-content: center; gap: 12px; }

.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 13px; color: var(--hp-muted); }
.sticky .hp-post-card__title::before { content: "★ "; color: var(--hp-accent-dark); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
	.hp-header__contacts .hp-header__callback { display: none; }
	.hp-action--account .hp-action__label, .hp-cart-link .hp-action__label { display: none; }
	.hp-mega__list { grid-template-columns: repeat(3, 1fr); }
	.hp-brands { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce ul.products.columns-4, .woocommerce ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hp-cats { grid-template-columns: repeat(3, 1fr); }
	.hp-footer__grid { grid-template-columns: 1fr 1fr; }
	.hp-hero__inner { grid-template-columns: 1fr; padding-bottom: 96px; }
	.hp-hero__media { display: none; }
	.hp-fitment-box { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 960px) {
	:root { --hp-header-h: 64px; }
	.hp-topbar { display: none; }
	.hp-burger { display: inline-grid; margin-left: -10px; }
	.hp-catalog-btn, .hp-header__contacts, .hp-nav, .hp-action--account { display: none; }
	.hp-header__inner { gap: 8px; flex-wrap: wrap; padding-bottom: 10px; min-height: 0; padding-top: 10px; }
	.hp-header__search { order: 5; flex-basis: 100%; }
	.hp-header__actions { margin-left: auto; }
	.hp-logo__desc { display: none; }
	.hp-logo__name { font-size: 20px; }
	.hp-logo__mark { width: 36px; height: 36px; }
	.hp-mega { display: none !important; }

	.hp-shop__layout.has-sidebar { display: block; }
	.hp-toolbar__filters { display: inline-flex; }
	.hp-shop__sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 220;
		width: min(360px, 90vw);
		padding: 0 16px 24px;
		overflow-y: auto;
		background: var(--hp-bg);
		transform: translateX(-105%);
		transition: transform .25s ease-out;
		display: block;
	}
	.hp-shop__sidebar .widget { margin-bottom: 12px; }
	.hp-shop__sidebar.is-open { transform: none; box-shadow: var(--hp-shadow-lg); }
	.hp-shop__sidebar-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; margin: 0 -16px 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--hp-line); font: 600 18px var(--hp-font-head); text-transform: uppercase; }
	.hp-filters-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(10, 12, 14, .55); }

	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 24px; }
	.hp-cta__inner { grid-template-columns: 1fr; gap: 28px; }
	.hp-benefits { grid-template-columns: 1fr 1fr; }
	.hp-posts, .hp-layout:not(.has-sidebar) .hp-posts--list { grid-template-columns: 1fr 1fr; }
	.hp-layout.has-sidebar { grid-template-columns: 1fr; }

	/* нижняя панель */
	body { padding-bottom: 64px; }
	.hp-bottom-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: repeat(4, 1fr);
		height: 64px;
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff;
		border-top: 1px solid var(--hp-line);
		box-shadow: 0 -4px 20px rgba(16, 20, 24, .06);
	}
	.hp-bottom-bar > a, .hp-bottom-bar > button {
		position: relative;
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: none;
		font: 500 11px var(--hp-font);
		color: var(--hp-ink-3); text-decoration: none; cursor: pointer;
	}
	.hp-bottom-bar .hp-icon { width: 22px; height: 22px; }
	.hp-bottom-bar__call { background: var(--hp-accent) !important; color: var(--hp-ink) !important; font-weight: 600 !important; }
	.hp-bottom-bar .hp-cart-count { top: 6px; right: calc(50% - 22px); }
}

@media (max-width: 782px) {
	.admin-bar .hp-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .hp-header { top: 0; }
}

@media (max-width: 720px) {
	body { font-size: 14px; }
	.container { padding: 0 16px; }
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.woocommerce ul.products li.product { padding: 10px; }
	.woocommerce ul.products li.product .price { font-size: 17px; }
	.hp-card__actions .button, .hp-card__actions .hp-btn { padding: 8px 10px; font-size: 13px; }
	.hp-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hp-cat { min-height: 0; padding: 14px; }
	.hp-cat__media { height: 80px; }
	.hp-cat__media img { max-height: 80px; }
	.hp-cat__name { font-size: 15px; }
	.hp-cat__arrow { display: none; }
	.hp-cat__body { padding-right: 0; }
	.hp-hero__inner { padding-top: 40px; padding-bottom: 80px; }
	.hp-hero__text { font-size: 15px; }
	.hp-hero__stats { gap: 18px; }
	.hp-hero__stats b { font-size: 22px; }
	.hp-hero__stats li { padding-left: 10px; }
	.hp-search--hero .hp-search__input { min-height: 50px; }
	.hp-search--hero .hp-search__btn { padding: 0 18px; }
	.hp-search__icon { display: none; }
	.hp-fitment--wide { grid-template-columns: 1fr; }
	.hp-fitment-box { padding: 20px; }
	.hp-benefits, .hp-posts, .hp-posts--list, .hp-layout:not(.has-sidebar) .hp-posts--list { grid-template-columns: 1fr; }
	.hp-benefit { padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; }
	.hp-benefit__icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
	.hp-brands { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.hp-brand { height: 76px; }
	.hp-brand__name { font-size: 16px; }
	.hp-section { padding-top: 44px; }
	.hp-section--muted { margin-top: 44px; padding: 40px 0 44px; }
	.hp-section__head { margin-bottom: 18px; }
	.hp-tabs { width: 100%; overflow-x: auto; }
	.hp-tabs__btn { flex: 1; white-space: nowrap; }
	.hp-cta__form { padding: 20px; }
	.hp-request-form { grid-template-columns: 1fr; }
	.hp-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.hp-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
	.hp-toolbar { flex-wrap: wrap; padding: 10px; }
	.hp-toolbar .woocommerce-result-count { order: 3; flex-basis: 100%; }
	.hp-toolbar .woocommerce-ordering { flex: 1; }
	.hp-toolbar .woocommerce-ordering select { min-width: 0; }
	.hp-trust { grid-template-columns: 1fr; }
	.hp-specs__row { grid-template-columns: 120px 1fr; }
	.woocommerce div.product p.price { font-size: 28px; }
	.hp-modal__dialog { padding: 30px 20px 20px; }
	.hp-modal__title { font-size: 23px; }
	.hp-inline-cta { flex-direction: column; align-items: flex-start; }
	.hp-single article { padding: 20px; }
	.hp-single__thumb { margin: -20px -20px 20px; }
	.woocommerce table.shop_attributes th { width: 40%; }

	/* Карточка товара на телефоне */
	.hp-shop { padding-top: 12px; }
	.hp-shop .woocommerce-breadcrumb { margin-bottom: 12px; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.woocommerce div.product { margin: 0 -16px; padding: 0 16px 20px; gap: 18px; border-radius: 0; border-left: 0; border-right: 0; }
	.woocommerce div.product div.images { margin: 0 -16px !important; width: calc(100% + 32px) !important; max-width: none; }
	.woocommerce div.product div.images .flex-viewport,
	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border: 0; border-radius: 0; border-bottom: 1px solid var(--hp-line); }
	.woocommerce div.product div.images .woocommerce-product-gallery__image img { max-height: 56vh; }
	.woocommerce div.product div.images .flex-control-thumbs { padding: 0 16px !important; overflow-x: auto; flex-wrap: nowrap; }
	.woocommerce div.product div.images .flex-control-thumbs li { flex: none; width: 64px !important; }
	.woocommerce div.product > .onsale { top: 12px; left: 12px; }
	.woocommerce div.product .product_title { font-size: 24px; overflow-wrap: anywhere; }
	.hp-single-sku { flex-wrap: wrap; }
	.woocommerce div.product form.cart { padding: 12px; gap: 10px; }
	.woocommerce div.product form.cart .button { min-height: 50px; min-width: 0; padding-left: 12px; padding-right: 12px; }
	.woocommerce div.product form.cart .quantity .qty { width: 40px !important; }
	.woocommerce div.product form.cart .hp-qty-btn { width: 32px; }
	.hp-single-request { padding: 12px; }
	.hp-single-request .hp-btn { flex: 1; }
	.hp-specs__row { grid-template-columns: 110px minmax(0, 1fr); }
	.hp-specs dd { overflow-wrap: anywhere; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: none; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 12px !important; font-size: 14px !important; white-space: nowrap; }
	.woocommerce div.product .woocommerce-tabs .panel { overflow-x: auto; }
	.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Избранное (TI WooCommerce Wishlist)
   ========================================================================== */
.hp-has-wishlist { --hp-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.5 7.7 3.7 4.5 7 4.5c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.2 4.3 6.6-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E"); --hp-heart-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.5 7.7 3.7 4.5 7 4.5c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.2 4.3 6.6-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E"); }

.hp-has-wishlist .tinv-wraper.tinv-wishlist { margin: 0 !important; padding: 0 !important; font-size: 0; line-height: 0; }
.hp-has-wishlist .tinv-wraper .tinv-wishlist-clear,
.hp-has-wishlist .tinv-wraper .tinvwl-tooltip { display: none !important; }

/* Кнопка-контур с сердцем */
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid #cfd4da;
	border-radius: var(--hp-radius);
	background: #fff;
	color: var(--hp-ink) !important;
	font: 600 14px/1.2 var(--hp-font) !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button:hover { border-color: var(--hp-ink); }
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button::before {
	content: "" !important;
	display: block !important;
	flex: none;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	font-size: 0 !important;
	background: currentColor;
	-webkit-mask: var(--hp-heart) center / contain no-repeat;
	mask: var(--hp-heart) center / contain no-repeat;
	transition: transform .2s;
}
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button:hover::before { transform: scale(1.12); }
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button .tinvwl_remove_from_wishlist-text,
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button .tinvwl_already_on_wishlist-text { font: inherit !important; margin: 0 !important; text-decoration: none; }

/* В избранном: залитое красное сердце */
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { border-color: #f3c2c2; background: #fff5f5; color: var(--hp-danger) !important; }
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before { -webkit-mask-image: var(--hp-heart-fill); mask-image: var(--hp-heart-fill); }
.hp-has-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-make-remove { opacity: .6; pointer-events: none; }

/* Страница товара: в одной строке с «В корзину» */
.hp-has-wishlist div.product form.cart .tinv-wraper { order: 3; flex: none; }
.hp-has-wishlist div.product .woocommerce-variation-add-to-cart .tinv-wraper { flex: none; }
.hp-has-wishlist div.product .summary > .tinv-wraper { display: block; margin: -10px 0 22px !important; }

/* Каталог: круглая иконка на фото */
.hp-has-wishlist ul.products li.product .tinv-wraper { position: absolute; top: 22px; right: 22px; z-index: 3; }
.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button {
	width: 40px; min-height: 40px; height: 40px; padding: 0 !important;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 8px rgba(16, 20, 24, .15);
}
.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button::before { width: 20px !important; height: 20px !important; }
.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { background: #fff; }

@media (max-width: 720px) {
	/* На телефоне — квадратная кнопка-иконка, подпись остаётся для экранных дикторов */
	.hp-has-wishlist div.product :is(form.cart, .hp-single-request) .tinv-wishlist .tinvwl_add_to_wishlist_button { width: 50px; min-height: 50px; padding: 0 !important; }
	.hp-has-wishlist div.product :is(form.cart, .hp-single-request) .tinv-wishlist .tinvwl_add_to_wishlist_button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hp-has-wishlist ul.products li.product .tinv-wraper { top: 16px; right: 16px; }
	.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button { width: 34px; height: 34px; min-height: 34px; }
	.hp-has-wishlist ul.products li.product .tinv-wishlist .tinvwl_add_to_wishlist_button::before { width: 18px !important; height: 18px !important; }
}

/* ---------- Избранное: YITH WooCommerce Wishlist ---------- */
.hp-wishlist-yith .yith-add-to-wishlist-button-block { margin: 0 !important; padding: 0 !important; }
.hp-wishlist-yith .yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist a.add_to_wishlist,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid #cfd4da !important;
	border-radius: var(--hp-radius) !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--hp-ink) !important;
	font: 600 14px/1.2 var(--hp-font) !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.hp-wishlist-yith .yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button:hover,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist a.add_to_wishlist:hover { border-color: var(--hp-ink) !important; }
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button .yith-wcwl-icon-svg__wrapper { display: grid; place-items: center; }
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button .yith-wcwl-icon,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist .yith-wcwl-icon-svg,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist svg {
	width: 22px !important; height: 22px !important; margin: 0 !important;
	color: currentColor !important; stroke: currentColor;
	transition: transform .2s;
}
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon { transform: scale(1.12); }
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button__label { font: inherit !important; color: inherit !important; margin: 0 !important; }

/* Добавлено в избранное */
.hp-wishlist-yith .yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.hp-wishlist-yith .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a {
	border-color: #f3c2c2 !important;
	background: #fff5f5 !important;
	color: var(--hp-danger) !important;
}
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button--added svg { fill: currentColor; }
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button--loading { opacity: .6; pointer-events: none; }

/* Страница товара */
.hp-wishlist-yith div.product form.cart .yith-add-to-wishlist-button-block,
.hp-wishlist-yith div.product form.cart .yith-wcwl-add-to-wishlist { order: 3; flex: none; margin: 0 !important; }
.hp-wishlist-standalone { margin: -6px 0 22px; }
.hp-wishlist-yith div.product .summary > .yith-add-to-wishlist-button-block,
.hp-wishlist-yith div.product .summary > .yith-wcwl-add-to-wishlist { margin: -6px 0 22px !important; }

/* Каталог: круглая иконка на фото */
.hp-wishlist-yith ul.products li.product .yith-add-to-wishlist-button-block,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist { position: absolute; top: 22px; right: 22px; z-index: 3; margin: 0 !important; }
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist-button,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist a {
	width: 40px; height: 40px; min-height: 40px; padding: 0 !important;
	border: 0 !important; border-radius: 50% !important;
	background: rgba(255, 255, 255, .92) !important;
	box-shadow: 0 2px 8px rgba(16, 20, 24, .15) !important;
}
.hp-wishlist-yith ul.products li.product .yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added { background: #fff !important; }
.hp-wishlist-yith .yith-wcwl-add-to-wishlist-button-anchor-wrapper { display: inline-flex; text-decoration: none !important; }
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist-button svg,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist svg { width: 20px !important; height: 20px !important; }
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist-button__label,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist a span,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist .feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist .separator,
.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist .view-wishlist { display: none !important; }

@media (max-width: 720px) {
	.hp-wishlist-yith div.product :is(form.cart, .hp-single-request) .yith-wcwl-add-to-wishlist-button,
	.hp-wishlist-yith div.product :is(form.cart, .hp-single-request) .yith-wcwl-add-to-wishlist a { width: 50px; min-height: 50px; padding: 0 !important; }
	.hp-wishlist-yith div.product :is(form.cart, .hp-single-request) .yith-wcwl-add-to-wishlist-button__label,
	.hp-wishlist-yith div.product :is(form.cart, .hp-single-request) .yith-wcwl-add-to-wishlist a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hp-wishlist-yith ul.products li.product .yith-add-to-wishlist-button-block,
	.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist { top: 16px; right: 16px; }
	.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist-button,
	.hp-wishlist-yith ul.products li.product .yith-wcwl-add-to-wishlist a { width: 34px; height: 34px; min-height: 34px; }
}
