/* Перший екран без ціни, плаваючі кнопки, мобільне доопрацювання */

/* Перший екран: десктоп — текст ліворуч, фото праворуч; мобільний — заголовок, фото, текст */
.jh-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "head media" "body media"; row-gap: 26px; align-items: end; }
.jh-hero__head { grid-area: head; display: flex; flex-direction: column; gap: 22px; align-self: end; }
.jh-hero__body { grid-area: body; display: flex; flex-direction: column; gap: 24px; align-self: start; }
.jh-hero__media { grid-area: media; align-self: center; }
.jh-hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.jh-hero__points li { display: flex; align-items: center; gap: 8px; }
.jh-hero__points .jh-ico { color: var(--accent); }

/* Плаваючі кнопки */
.jh-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: transform .25s ease; }
.jh-float__btn { height: 52px; min-width: 52px; border-radius: 26px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); }
.jh-float__top { background: var(--surface); color: var(--text); border: 1px solid var(--line); opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.jh-float__top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.jh-float__tg { background: #229ED9; color: #FFFFFF; padding: 0 20px 0 16px; font-weight: 600; font-size: 15px; }
.jh-float__tg:hover { background: #1C8CC2; color: #FFFFFF; }
.jh-link--tg { display: inline-flex; align-items: center; gap: 6px; color: #1C8CC2; text-decoration-color: #229ED9; }
.jh-pdp__ask { display: flex; flex-wrap: wrap; gap: 10px 24px; }
html.jh-lock .jh-float { display: none; }

/* Липка панель купівлі (картка товару, мобільний) */
.jh-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.jh-stickybuy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jh-stickybuy__info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jh-stickybuy__info strong { font-size: 19px; }
.jh-stickybuy .jh-btn { min-height: 48px; padding: 0 20px; }
body.jh-has-sticky .jh-float { transform: translateY(-72px); }
body.jh-has-sticky { padding-bottom: 72px; }

/* Кнопка «Додати до кошика» на картці: ціна не вилазить */
.jh-pdp__buy .jh-add { white-space: normal; text-align: center; line-height: 1.2; }

@media (max-width: 860px) {
	.jh-hero { grid-template-columns: 1fr; grid-template-areas: "head" "media" "body"; row-gap: 22px; padding-top: 24px; }
	.jh-hero__media { aspect-ratio: auto; height: min(62vw, 340px); border-radius: var(--r-lg); }
	.jh-hero__media img { width: auto; height: 88%; }
}

@media (max-width: 640px) {
	.jh-hero h1 { font-size: 34px; }
	.jh-hero__head { gap: 14px; }
	.jh-hero__body { gap: 20px; }
	.jh-hero__points { gap: 8px 16px; font-size: 14px; }
	.jh-hero .jh-row .jh-btn { flex: 1 1 100%; }

	.jh-float { right: 14px; bottom: 14px; }
	.jh-header__act { gap: 8px; }

	/* Картка товару: кількість + ціна в рядку, кнопка на всю ширину */
	.jh-pdp__buy .jh-buy { gap: 10px; }
	.jh-pdp__buy .jh-buy .jh-btn { flex: 1 1 100%; order: 2; }
	.jh-pdp { gap: 28px; padding-bottom: 40px; }
	.jh-pdp__info h1 { font-size: 28px; }
	.jh-pdp__price strong { font-size: 28px; }
	.jh-gallery__main { aspect-ratio: 4 / 3; }

	/* Картки моделей на мобільному компактніші */
	.jh-card { padding: 16px; }
	.jh-card__img { aspect-ratio: 4 / 3; }
	.jh-card__desc { min-height: 0; }
	.jh-buy .jh-btn { min-width: 0; }

	/* Заголовки секцій і відступи */
	h2 { font-size: 27px; }
	.jh-band h2 { font-size: 30px; }
	.jh-sec { padding-top: 56px; padding-bottom: 56px; }
	.jh-stats__in { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 44px; padding-bottom: 44px; }
	.jh-stats strong { font-size: 36px; }
	.jh-stats span { font-size: 14px; }
	.jh-trust__in { grid-template-columns: 1fr 1fr; gap: 14px; font-size: 14px; }
	.jh-trust__in div:last-child { grid-column: 1 / -1; }
	.jh-tile, .jh-feature { padding: 20px; }
	.jh-grid--5 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.jh-grid--5 .jh-feature:last-child { grid-column: 1 / -1; }
	.jh-feature h3 { font-size: 16px; }
	.jh-feature p { font-size: 14px; }
	.jh-steps { gap: 18px; }
	.jh-steps > div { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 4px; }
	.jh-steps__n { grid-row: span 2; font-size: 32px; }
	.jh-info { gap: 22px; }
	.jh-bundle h2 { font-size: 28px; }
	.jh-bundle__text .jh-btn { width: 100%; }
	.jh-cta h2 { font-size: 28px; }
	.jh-footer__in { grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 96px; }
	.jh-footer__in > div:first-child { grid-column: 1 / -1; }
	.jh-crumbs { padding-top: 14px; font-size: 13px; }
}

.jh-iconbtn--tg { color: #229ED9; }
.jh-iconbtn--tg:hover { background: #E8F5FC; }

/* Порівняння: на мобільному — картки зі свайпом замість таблиці */
.jh-cmp-cards { display: none; }
.jh-pick { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jh-pick a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.jh-pick a:hover { border-color: var(--accent); background: var(--accent-soft); }
.jh-pick span { font-size: 14px; color: var(--muted); }
.jh-pick strong { font-size: 16px; }
.jh-pick strong::after { content: ' →'; color: var(--accent); }
.jh-sfty-hero--single { grid-template-columns: 1fr; }
.jh-faq-page__side { position: sticky; top: 100px; gap: 18px !important; }
.jh-faq-page h1 { font-size: clamp(32px, 4.4vw, 48px); }
.jh-btn .jh-ico { flex: none; }
.jh-calc [data-calc-mode] { display: grid; grid-template-columns: repeat(3, 1fr); }
.jh-calc [data-calc-mode] button { padding: 10px 6px; }
.jh-swipe-hint { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); margin-top: -12px; }

@media (max-width: 640px) {
	.jh-table-wrap { display: none; }
	.jh-cmp-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 4px 24px 12px; scroll-padding: 0 24px; scrollbar-width: none; }
	.jh-cmp-cards::-webkit-scrollbar { display: none; }
	.jh-cmp-card { flex: 0 0 78%; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
	.jh-cmp-card__img { height: 120px; border-radius: var(--r-md); background: radial-gradient(120% 85% at 50% 100%, #FFE3CF 0%, #FFF4EC 42%, #FFFFFF 75%); display: flex; align-items: center; justify-content: center; }
	.jh-cmp-card__img img { height: 88%; width: auto; }
	.jh-cmp-card strong { font-size: 18px; }
	.jh-cmp-card dl { margin: 0; display: flex; flex-direction: column; }
	.jh-cmp-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
	.jh-cmp-card dt { color: var(--soft); }
	.jh-cmp-card dd { margin: 0; text-align: right; }
	.jh-cmp-card__price { font-size: 20px; font-weight: 600; color: var(--accent); }

	/* Моделі та відгуки — стрічка зі свайпом */
	.jh-grid--models, .jh-reviews { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 4px 24px 16px; scroll-padding: 0 24px; scrollbar-width: none; }
	.jh-grid--models::-webkit-scrollbar, .jh-reviews::-webkit-scrollbar { display: none; }
	.jh-grid--models > .jh-card { flex: 0 0 82%; scroll-snap-align: start; }
	.jh-reviews > .jh-review-card { flex: 0 0 86%; scroll-snap-align: start; }
	.jh-swipe-hint { display: flex; }
	.jh-faq-page__side { position: static; }
	.jh-faq-page { gap: 28px; }
}

@media (max-width: 640px) {
	.jh-grid--models .jh-reveal, .jh-reviews .jh-reveal { opacity: 1; transform: none; }
}
