/* Japan Heat — акценти, підсвітка, анімації (поверх main.css; кольори з skin.css) */

/* Кнопки */
.jh-btn--accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-text); box-shadow: 0 8px 22px -8px var(--accent-glow); position: relative; overflow: hidden; isolation: isolate; }
.jh-btn--accent:hover { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); box-shadow: 0 12px 28px -8px var(--accent-glow); color: var(--accent-text); }
.jh-btn--accent::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; z-index: -1; }
.jh-btn--accent:hover::after { transform: translateX(120%); }
.jh-btn--glow { animation: jh-pulse 2.6s ease-in-out infinite; }
@keyframes jh-pulse {
	0%, 100% { box-shadow: 0 8px 22px -8px var(--accent-glow), 0 0 0 0 var(--accent-glow); }
	50% { box-shadow: 0 8px 22px -8px var(--accent-glow), 0 0 0 8px rgba(184, 58, 38, 0); }
}
.jh-hero .jh-btn--accent { min-height: 56px; padding: 0 32px; font-size: 17px; }
.jh-logo__mark { background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent)); box-shadow: 0 0 0 4px var(--accent-soft); }
.jh-hl { color: var(--accent); }
.jh-eyebrow { font-weight: 600; }
.jh-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--eyebrow); font-size: 14px; font-weight: 600; }
.jh-link { text-decoration-color: var(--accent); }

/* Фото без фону: тепле світло під обігрівачем */
.jh-hero__media, .jh-card__img, .jh-gallery__main, .jh-quiz__model img, .jh-line__img, .jh-addon img, .jh-upsell__item img {
	background: radial-gradient(120% 85% at 50% 100%, #FFE3CF 0%, #FFF4EC 42%, #FFFFFF 75%);
}
.jh-hero__media img, .jh-card__img img, .jh-gallery__main img { mix-blend-mode: normal; filter: drop-shadow(0 18px 22px rgba(60, 30, 10, .18)); position: relative; }
.jh-card__img img { width: 78%; height: 78%; transition: transform .35s ease; }
.jh-quiz__model img { mix-blend-mode: normal; padding: 8px; }
.jh-hero__media::before { content: ''; position: absolute; left: 15%; right: 15%; bottom: 8%; height: 18%; background: radial-gradient(closest-side, rgba(211, 89, 63, .45), transparent); filter: blur(10px); }

/* Цифри-лічильники */
.jh-stats { background: radial-gradient(80% 140% at 50% 120%, rgba(184, 58, 38, .35), transparent 60%), var(--dark); }
.jh-stats strong { color: #FFFFFF; font-variant-numeric: tabular-nums; }
.jh-stats strong span { background: linear-gradient(180deg, #F4C3B4, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Картки моделей: підсвітка за курсором + анімований контур */
@property --jh-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes jh-spin { to { --jh-a: 360deg; } }
.jh-card { position: relative; border: 1px solid var(--line-soft); transition: transform .3s ease, box-shadow .3s ease; isolation: isolate; }
.jh-card::before {
	content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
	background: conic-gradient(from var(--jh-a), transparent 0 55%, var(--accent-2) 70%, var(--accent) 80%, transparent 95%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 2;
}
.jh-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(211, 89, 63, .14), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: -1; }
.jh-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(90, 40, 10, .35); }
.jh-card:hover::before { opacity: 1; animation: jh-spin 3s linear infinite; }
.jh-card:hover::after { opacity: 1; }
.jh-card:hover .jh-card__img img { transform: scale(1.05); }
.jh-card--hit::before { opacity: 1; animation: jh-spin 4s linear infinite; }
.jh-card__img { position: relative; }
.jh-card__badge { position: absolute; left: 12px; top: 12px; background: var(--dark); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.jh-card--hit .jh-card__badge { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

/* Поява при прокрутці */
.jh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms), box-shadow .3s ease; }
.jh-reveal.is-in { opacity: 1; transform: none; }
.jh-card.jh-reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }

/* Смуга «Підбір» */
.jh-band { background: radial-gradient(60% 90% at 85% 20%, rgba(211, 89, 63, .28), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(184, 58, 38, .16), transparent 70%), #F2E8E0; }
.jh-band h2 { font-size: clamp(32px, 4.2vw, 48px); }
.jh-band__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.jh-band__list li { display: flex; align-items: center; gap: 10px; }
.jh-band__list .jh-ico { color: var(--accent); }
.jh-band .jh-quiz { position: relative; box-shadow: 0 30px 60px -30px rgba(100, 35, 20, .45), 0 0 0 1px rgba(184, 58, 38, .15); }
.jh-band .jh-quiz::before {
	content: ''; position: absolute; inset: -2px; border-radius: calc(var(--r-lg) + 2px); padding: 2px;
	background: conic-gradient(from var(--jh-a), transparent 0 60%, var(--accent-2) 75%, var(--accent) 85%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: jh-spin 5s linear infinite; pointer-events: none;
}
.jh-quiz__opts button { transition: border-color .15s ease, background-color .15s ease, transform .15s ease; font-weight: 500; }
.jh-quiz__opts button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.jh-quiz__bar span { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.jh-quiz__count { color: var(--eyebrow); font-weight: 600; }
.jh-quiz__price { color: var(--accent); }

/* Смуга «Калькулятор» (темна) */
.jh-band--dark { background: radial-gradient(55% 80% at 90% 10%, rgba(211, 89, 63, .30), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(184, 58, 38, .22), transparent 70%), var(--dark); color: var(--dark-text); }
.jh-band--dark .jh-lead-txt { color: var(--dark-muted); }
.jh-soon { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 2px 0 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--eyebrow); font-size: 13px; font-weight: 600; line-height: 1.3; }
.jh-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jh-band--dark .jh-badge { background: rgba(211, 89, 63, .18); color: #F2C1B3; }
.jh-band--dark .jh-hl { color: var(--accent-2); }
.jh-band--dark .jh-calc { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); color: var(--dark-text); }
.jh-band--dark .jh-calc__label { color: var(--dark-muted); display: flex; justify-content: space-between; gap: 12px; }
.jh-band--dark .jh-calc__label strong { color: #FFFFFF; font-size: 18px; white-space: nowrap; }
.jh-band--dark .jh-pills button { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--dark-text); }
.jh-band--dark .jh-pills button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #FFFFFF; }
.jh-band--dark .jh-calc__out div { background: rgba(255, 255, 255, .07); }
.jh-band--dark .jh-calc__out strong { color: #FFFFFF; }
.jh-band--dark .jh-calc__out div:first-child strong { color: var(--accent-2); }
.jh-band--dark .jh-calc__out span, .jh-band--dark .jh-note { color: var(--dark-muted); }
.jh-calc__out { grid-template-columns: repeat(3, 1fr); }
.jh-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)) 0 / var(--p, 30%) 100% no-repeat, rgba(128, 128, 128, .3); margin: 6px 0 0; cursor: pointer; }
.jh-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; border: 0; box-shadow: 0 0 0 6px rgba(211, 89, 63, .35); }
.jh-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; border: 0; box-shadow: 0 0 0 6px rgba(211, 89, 63, .35); }
.jh-range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); margin-top: -4px; }
.jh-band--dark .jh-range__scale { color: var(--dark-muted); }

/* Відео */
.jh-video { border-radius: calc(var(--r-lg) + 6px); overflow: hidden; background: var(--dark); aspect-ratio: 16 / 9; max-height: 560px; width: 100%; }
.jh-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.jh-steps__n { color: var(--accent); }

/* Відгуки */
.jh-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
@media (min-width: 761px) { .jh-reviews { grid-template-columns: repeat(2, 1fr); } }
.jh-review-card { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.jh-stars { color: #F2A33A; letter-spacing: 3px; font-size: 18px; }
.jh-review-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); flex: 1; }
.jh-review-card figcaption { display: flex; align-items: center; gap: 12px; }
.jh-review-card figcaption > span:last-child { display: flex; flex-direction: column; }
.jh-review-card small { color: var(--soft); font-size: 13px; }
.jh-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.jh-demo-tag { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--soft); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 8px; }

/* Комплект */
.jh-bundle { background: radial-gradient(60% 90% at 100% 0%, rgba(211, 89, 63, .35), transparent 70%), var(--dark); }
.jh-bundle__price strong { color: var(--accent-2); }
.jh-bundle__media { display: flex; align-items: center; justify-content: center; gap: 8px; aspect-ratio: auto; }
.jh-bundle__item { flex: 1; aspect-ratio: 3 / 4; border-radius: var(--r-md); background: radial-gradient(120% 80% at 50% 100%, rgba(211, 89, 63, .35), rgba(255, 255, 255, .04) 70%); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; padding: 14px; min-width: 0; }
.jh-bundle__item--main { flex: 1.5; }
.jh-bundle__media .jh-bundle__item img { width: 100%; height: 100%; object-fit: contain; background: none; padding: 0; aspect-ratio: auto; border-radius: 0; grid-row: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); }
.jh-bundle__plus { color: var(--accent-2); font-size: 28px; font-weight: 300; flex: none; }

/* Форма-заклик: окрема акцентна смуга */
.jh-cta--accent { background: radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #D3593F 0%, #B83A26 55%, #8E2A1A 100%); color: #FFFFFF; box-shadow: 0 30px 60px -30px rgba(120, 40, 25, .5); }
.jh-cta--accent .jh-lead-txt { color: rgba(255, 255, 255, .9); }
.jh-cta--accent .jh-lead { background: #FFFFFF; color: var(--text); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 20px 40px -20px rgba(80, 20, 0, .5); }
.jh-cta--accent .jh-lead .jh-btn--accent { min-height: 54px; font-size: 17px; }

/* Картка товару, кошик, оформлення */
.jh-keys div { border: 1px solid var(--line-soft); }
.jh-keys strong { color: var(--accent); }
.jh-addon:has(input:checked) { border-color: var(--accent); background: #FFF8F3; }
.jh-addon input { accent-color: var(--accent); }
.jh-pdp__buy .jh-btn { min-height: 54px; font-size: 17px; }
.jh-gallery__thumb[aria-current="true"] { border-color: var(--accent); }
.jh-feature .jh-ico, .jh-trust .jh-ico { color: var(--accent); }
.jh-tile--dark { background: radial-gradient(90% 90% at 100% 0%, rgba(211, 89, 63, .35), transparent 70%), var(--dark); }
.jh-pills button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.jh-drawer__foot .jh-btn--accent { min-height: 54px; font-size: 17px; }
#place_order { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 24px -10px var(--accent-glow); }

@media (max-width: 640px) {
	.jh-calc__out { grid-template-columns: 1fr 1fr; }
	.jh-calc__out div:first-child { grid-column: 1 / -1; }
	.jh-cta--accent .jh-lead { padding: 20px; }
	.jh-bundle__media { gap: 4px; }
	.jh-bundle__item { padding: 8px; }
	.jh-video { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
	.jh-card::before, .jh-band .jh-quiz::before, .jh-btn--glow { animation: none !important; }
}

/* правки v2.1 */
.jh-stats strong span { font-size: inherit; display: inline; }
.jh-bundle__media { align-items: stretch; height: 240px; }
.jh-bundle__item { aspect-ratio: auto; height: 100%; }
.jh-bundle__plus { align-self: center; }
@media (max-width: 640px) { .jh-bundle__media { height: 160px; } }

/* Кнопка комплекту: світиться і «дихає», щоб не зливалася з темним фоном */
.jh-bundle__btn { min-height: 60px; padding: 0 30px; font-size: 17px; gap: 10px; border: 1px solid rgba(255, 215, 200, .45); background: linear-gradient(135deg, #D3593F, var(--accent) 60%, #8E2A1A); box-shadow: 0 0 0 0 rgba(211, 89, 63, .6), 0 14px 34px -10px rgba(184, 58, 38, .75); animation: jh-bundle-glow 2.4s ease-in-out infinite; }
.jh-bundle__btn::after { transform: translateX(-120%); animation: jh-shine 3.2s ease-in-out infinite; }
.jh-bundle__btn .jh-ico:last-child { transition: transform .2s ease; }
.jh-bundle__btn:hover .jh-ico:last-child { transform: translateX(4px); }
.jh-bundle__btn:hover { animation-play-state: paused; box-shadow: 0 0 0 6px rgba(211, 89, 63, .25), 0 18px 40px -10px rgba(184, 58, 38, .9); }
@keyframes jh-bundle-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(211, 89, 63, .55), 0 14px 34px -10px rgba(184, 58, 38, .75); }
	50% { box-shadow: 0 0 0 12px rgba(211, 89, 63, 0), 0 14px 40px -6px rgba(184, 58, 38, .95); }
}
@keyframes jh-shine {
	0%, 55% { transform: translateX(-120%); }
	85%, 100% { transform: translateX(120%); }
}
@media (max-width: 640px) { .jh-bundle__btn { padding: 0 18px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .jh-bundle__btn, .jh-bundle__btn::after { animation: none !important; } }

/* «Купити частинами» — посилання на monoбазар під кнопкою кошика */
.jh-btn--parts { margin-top: 10px; min-height: 52px; flex-direction: column; gap: 0; line-height: 1.2; border: 1.5px solid var(--accent); color: var(--accent); background: transparent; font-size: 16px; }
.jh-btn--parts small { font-size: 12px; font-weight: 400; opacity: .75; }
.jh-btn--parts:hover { background: var(--accent); color: var(--accent-text); }
.jh-parts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.jh-parts .jh-btn--parts { margin-top: 0; }
.jh-parts__or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.jh-parts__or::before, .jh-parts__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.jh-parts .jh-note { font-size: 13px; }
.woocommerce .jh-parts a.jh-btn--parts { color: var(--accent); }
.woocommerce .jh-parts a.jh-btn--parts:hover { color: var(--accent-text); }
.jh-parts-pill { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; padding: 10px 16px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.jh-parts-pill strong { font-weight: 600; }
.jh-parts-pill:hover { background: var(--accent); color: var(--accent-text); }
/* Місце під «Купити частинами» в картці без посилання — щоб ціни в сітці були на одному рівні */
.jh-btn--parts-ph { display: block; min-height: 52px; margin-top: 10px; visibility: hidden; }
.jh-stats strong { white-space: nowrap; }
.jh-stats__pre { font-size: .55em; font-weight: 500; }
.jh-acc-head { margin-top: 48px; }
/* Паливо й візок на головній — тим самим розміром, що й картки моделей */
@media (min-width: 761px) { .jh-grid--acc { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1100px) { .jh-grid--acc { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; } }
.jh-acc-head { margin-bottom: 20px; }

/* Оплата */
.jh-paynote { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.45; color: var(--text); }
.jh-drawer__foot .jh-paynote { margin: 0; }
.jh-card__paynote { margin-top: auto; align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--bg); border-left: 3px solid var(--accent); font-size: 13px; font-weight: 500; line-height: 1.35; }
.jh-card__paynote + .jh-card__price { margin-top: 6px; }
#payment li.jh-pay-locked label { cursor: not-allowed; opacity: .6; }
#payment .jh-pay-locked__msg { display: block; margin-top: 6px; font-size: 14px; color: var(--accent); }
.jh-paybox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--accent); }
.jh-paybox strong { font-size: 18px; }
.jh-paybox p { margin: 0; }
.jh-paybox .jh-btn--accent, .jh-paybox .jh-btn--accent:hover { color: var(--accent-text); text-decoration: none; }
.woocommerce-customer-details .woocommerce-column--shipping-address { display: none; }

/* Наявність: «Немає в наявності» + лист очікування (0.2.19) */
.jh-stock--out .jh-stock__dot { background: #C27A1A; }
.jh-card .jh-stock { font-size: 14px; margin: 6px 0 2px; }
.jh-card .jh-stock .jh-note { font-weight: 400; }
.jh-btn--wait { border: 1.5px solid var(--text); color: var(--text); background: transparent; gap: 8px; }
.jh-btn--wait:hover { background: var(--text); color: var(--bg); }
.jh-card .jh-btn--wait { margin-top: 12px; min-height: 52px; }
.jh-bundle .jh-btn--wait { border-color: currentColor; color: inherit; }
.jh-wait { margin: 18px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.jh-wait h3 { margin: 0 0 6px; font-size: 20px; }
.jh-wait > p { margin: 0 0 14px; color: var(--muted); }
.jh-wait .jh-lead { padding: 0; background: none; box-shadow: none; }
.jh-bundle .jh-btn--wait:hover { background: var(--dark-text); color: var(--dark); }
.jh-bundle .jh-stock { margin: 4px 0 14px; }
.jh-bundle .jh-stock .jh-note { color: var(--dark-muted); }
.jh-card .jh-btn--wait { width: 100%; padding: 0 14px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }
.jh-card .jh-btn--wait svg { flex: none; }
.jh-card .jh-stock { flex-direction: column; align-items: flex-start; gap: 2px; }
.jh-card .jh-stock__dot { display: none; }
.jh-card .jh-stock--out { color: #9A5A0E; }

/* 5 обігрівачів в один ряд на широких екранах (з 16.11.2026, Tosai) */
@media (min-width: 1200px) { .jh-grid[data-filter-grid], .jh-grid--models:not(.jh-grid--acc) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
