/**
 * Головна (Home v2; design-spec/01-home.md). Картки товарів — з catalog.css.
 */
.sh-home p, .sh-home h1, .sh-home h2, .sh-home h3, .sh-home ul { margin: 0; }
.sh-home ul { padding: 0; list-style: none; }
.sh-home li { margin: 0; }
.sh-home li::before { content: none; }
:where(.sh-home) a { border-bottom: 0; } /* :where — щоб рамки кнопок і чипів (.sh-chip, .sh-btn) не зникали */
.sh-home .sh-chip.is-selected, .sh-home a.sh-chip.is-selected { color: #fff; }

/* ── Секції ── */
.sh-section { padding-top: var(--sh-space-80); }
.sh-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sh-space-12) var(--sh-space-24); margin-bottom: var(--sh-space-28); }
.sh-section__title { color: var(--sh-color-text-primary); font: 600 40px/1.2 var(--sh-font); letter-spacing: -1px; text-transform: none; }
.sh-section__link { display: inline-flex; align-items: center; gap: var(--sh-space-8); min-height: 44px; color: var(--sh-color-primary-dark); font: 600 18px/1.2 var(--sh-font); text-decoration: none; }
.sh-home a.sh-section__link { color: var(--sh-color-primary-dark); }
.sh-section__link:hover .sh-icon { transform: translateX(3px); }
.sh-section__link .sh-icon { transition: transform var(--sh-transition); }
.sh-section__meta { color: var(--sh-color-text-meta); font: 500 16px/1.5 var(--sh-font); }

/* ── Перший екран ── */
.sh-hero { position: relative; padding: 20px 40px 0; }
.sh-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 32px; }
.sh-hero__track::-webkit-scrollbar { display: none; }
.sh-hero__slide { position: relative; flex: 0 0 100%; display: flex; align-items: center; min-height: 609px; overflow: hidden; scroll-snap-align: start; background: var(--sh-color-bg-hero-fallback); }
.sh-hero__media { position: absolute; inset: 0; }
.sh-hero__img { width: 100%; height: 100%; object-fit: cover; }
.sh-hero__slide:has(.sh-hero__img) { background: transparent; } /* темна підкладка просвічувала на заокругленому куті світлого фото */
.sh-hero__track { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); } /* Safari: обрізати кути разом із прокруткою */
.sh-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0ad1 0%, #0a0a0a8c 40%, #0a0a0a00 75%); }
.sh-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sh-space-24); max-width: 620px; padding: 64px 80px; color: #fff; }
.sh-hero__overline { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border-radius: var(--sh-radius-full); background: var(--sh-color-white-16); backdrop-filter: blur(10px); font: 600 12px/16px var(--sh-font); letter-spacing: 1px; text-transform: uppercase; }
.sh-hero__title { color: #fff; font: 600 64px/1.04 var(--sh-font); letter-spacing: -2px; text-transform: none; }
.sh-hero__title strong { font-weight: 800; }
.sh-hero__text { max-width: 500px; color: var(--sh-color-text-hero-light); font: 500 18px/1.5 var(--sh-font); }
.sh-hero__dots { position: absolute; left: 50%; bottom: 24px; display: flex; gap: var(--sh-space-8); transform: translateX(-50%); }
.sh-hero__dot { width: 14px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--sh-color-white-45); cursor: pointer; transition: width var(--sh-transition), background-color var(--sh-transition); }
.sh-hero__dot::before { content: ""; display: block; margin: -12px -4px; height: 28px; } /* більша зона натискання */
.sh-hero__dot.is-active { width: 32px; background: #fff; }

/* ── Банер збору ── */
.sh-donate { padding-top: var(--sh-space-24); }
.sh-donate__card { display: flex; align-items: center; gap: var(--sh-space-40); padding: 36px 80px; border-radius: var(--sh-radius-24); background: var(--sh-color-bg-warm); }
.sh-donate__note { display: flex; align-items: center; gap: var(--sh-space-16); flex: 1 1 auto; color: var(--sh-color-text-primary); font: 600 20px/1.3 var(--sh-font); }
.sh-donate__note .sh-icon { color: var(--sh-color-primary-accessible); }
.sh-donate__progress { flex: 0 0 420px; display: flex; flex-direction: column; gap: var(--sh-space-10); padding-left: var(--sh-space-40); border-left: 1px solid var(--sh-color-border-warm); }
.sh-donate__nums { display: flex; justify-content: space-between; gap: var(--sh-space-12); color: var(--sh-color-text-muted); font: 500 14px/20px var(--sh-font); }
.sh-donate__nums strong { color: var(--sh-color-text-primary); }
.sh-donate__nums .woocommerce-Price-amount { font: inherit; }
.sh-donate__bar { height: 8px; border-radius: 4px; background: var(--sh-color-border-warm); overflow: hidden; }
.sh-donate__bar span { display: block; height: 100%; border-radius: inherit; background: var(--sh-color-primary-accessible); }
.sh-donate__btn { flex: none; }

/* ── Категорії ── */
.sh-cats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sh-space-20); }
.sh-cat { position: relative; display: block; height: 320px; border-radius: var(--sh-radius-16); background: var(--sh-color-bg-warm); overflow: hidden; color: #fff; text-decoration: none; }
.sh-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sh-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #0000 40%, #000000b8 100%); }
.sh-cat:hover .sh-cat__img { transform: scale(1.04); }
.sh-cat__label { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sh-space-12); font: 600 24px/1.2 var(--sh-font); letter-spacing: -0.5px; }
.sh-home a.sh-cat { color: #fff; }
.sh-cat__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sh-color-white-16); backdrop-filter: blur(10px); transition: background-color var(--sh-transition); }
.sh-cat:hover .sh-cat__arrow { background: var(--sh-color-primary-accessible); }
.sh-cat--accent .sh-cat__label > span:first-child { color: #fff; }

/* ── Нове та хіти ── */
.sh-new__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sh-space-12); min-height: 60px; margin-bottom: var(--sh-space-28); padding-bottom: var(--sh-space-12); border-bottom: 1px solid var(--sh-color-border-warm); }
.sh-new__chips { display: flex; gap: var(--sh-space-8); overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; } /* запас, щоб прокрутка не обрізала рамки кнопок */
.sh-new__chips::-webkit-scrollbar { display: none; }
.sh-new__chips .sh-chip { flex: none; }
.sh-new__count { color: var(--sh-color-text-meta); font: 500 14px/20px var(--sh-font); }
.sh-new__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-new__more { display: flex; justify-content: center; margin-top: var(--sh-space-40); }

/* ── Історії ── */
.sh-stories__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sh-space-24); margin-bottom: var(--sh-space-40); }
.sh-stories__sub { max-width: 632px; margin-top: var(--sh-space-12) !important; color: var(--sh-color-text-secondary); font: 500 16px/1.5 var(--sh-font); }
.sh-stories__nav { display: flex; gap: var(--sh-space-12); }
.sh-iconbtn--shadow { box-shadow: var(--sh-shadow-small); }
.sh-iconbtn:disabled { opacity: 0.4; cursor: default; }
.sh-stories__track { display: flex; gap: var(--sh-space-20); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-stories__track::-webkit-scrollbar { display: none; }
.sh-story-card { position: relative; flex: 0 0 392px; height: 528px; border: 0.3px solid var(--sh-color-stroke-opaque); border-radius: var(--sh-radius-12); background: var(--sh-color-bg-hero-fallback); overflow: hidden; box-shadow: var(--sh-shadow-card); scroll-snap-align: start; }
.sh-story-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-story-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, #0000, #000000cc); }
.sh-story-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sh-space-16); padding: 24px; }
.sh-story-card__name { display: flex; flex-direction: column; gap: 4px; color: #fff; font: 600 20px/1.2 var(--sh-font); }
.sh-story-card__name span { color: var(--sh-color-white-80); font: 500 14px/20px var(--sh-font); }
.sh-play { display: inline-flex; align-items: center; gap: var(--sh-space-10); flex: none; padding: 4px 4px 4px 16px; border: 0; border-radius: 400px; background: var(--sh-color-fill-glass-white); backdrop-filter: blur(20px); color: var(--sh-color-text-primary); font: 600 16px/1 var(--sh-font); text-decoration: none; cursor: pointer; }
.sh-home a.sh-play { color: var(--sh-color-text-primary); }
.sh-play__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.sh-play:hover .sh-play__icon { background: var(--sh-color-primary-accessible); color: #fff; }

.sh-video { width: min(960px, calc(100vw - 32px)); margin: auto; padding: 0; background: #000; overflow: visible; }
.sh-video .sh-modal__close { position: absolute; top: -52px; right: 0; background: #fff; }
.sh-video__frame { aspect-ratio: 16 / 9; }
.sh-video__frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--sh-radius-24); }
.sh-modal { border: 0; border-radius: var(--sh-radius-24); }
.sh-modal::backdrop { background: rgba(0, 0, 0, 0.75); }
.sh-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--sh-color-bg-warm); color: var(--sh-color-text-primary); cursor: pointer; }

/* ── Обирають ── */
.sh-picks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sh-space-20); }
.sh-pick { display: flex; flex-direction: column; gap: var(--sh-space-8); }
.sh-pick__media { position: relative; display: block; aspect-ratio: 305 / 408; border-radius: var(--sh-radius-16); background: var(--sh-color-bg-warm); overflow: hidden; }
.sh-pick__img { width: 100%; height: 100%; object-fit: cover; }
.sh-pick__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, #0000, #0000008c); }
.sh-pick__nick { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font: 600 24px/1.2 var(--sh-font); letter-spacing: -0.5px; }
.sh-pick__title { margin-top: var(--sh-space-8) !important; font: 600 18px/1.2 var(--sh-font); text-transform: none; }
.sh-pick__title a { color: var(--sh-color-text-primary); text-decoration: none; }
.sh-pick__price { font: 700 16px/1.5 var(--sh-font); }
.sh-pick__price .woocommerce-Price-amount { font: inherit; }

.sh-home { padding-bottom: var(--sh-space-80); } /* відступ до чорного блоку «Доставка, оплата…» */

@media (max-width: 1279px) {
	.sh-hero { padding: 16px 24px 0; }
	.sh-hero__content { padding: 48px; }
	.sh-hero__title { font-size: 52px; }
	.sh-donate__card { padding: 32px 40px; gap: var(--sh-space-24); }
	.sh-donate__progress { flex-basis: 300px; padding-left: var(--sh-space-24); }
	.sh-new__grid, .sh-picks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sh-new__grid > :nth-child(n+7) { display: none; }
}
@media (max-width: 1023px) {
	.sh-donate__card { flex-wrap: wrap; }
	.sh-donate__progress { flex: 1 1 100%; order: 2; padding: var(--sh-space-16) 0 0; border-left: 0; border-top: 1px solid var(--sh-color-border-warm); }
	.sh-cat { height: 260px; }
}
@media (max-width: 767px) {
	.sh-home { padding-bottom: var(--sh-space-48); }
	.sh-section { padding-top: var(--sh-space-48); }
	.sh-section__head { margin-bottom: var(--sh-space-20); }
	.sh-section__title { font: 800 24px/1.2 var(--sh-font); letter-spacing: -1px; text-transform: uppercase; }
	.sh-section__link { font-size: 16px; }
	.sh-section__meta { flex-basis: 100%; font-size: 14px; }

	.sh-hero { padding: 0; }
	.sh-hero__track { border-radius: 0; }
	.sh-hero__slide { align-items: flex-end; min-height: 560px; }
	.sh-hero__img { object-position: 72% center; } /* люди на широкому фото — праворуч; для телефона краще окреме вертикальне фото */
	.sh-hero__slide::after { background: linear-gradient(to bottom, #0a0a0a00 25%, #0a0a0ad9 85%); }
	.sh-hero__content { gap: var(--sh-space-16); padding: 24px 16px 56px; }
	.sh-hero__title { font: 800 36px/1.05 var(--sh-font); letter-spacing: -1px; text-transform: uppercase; }
	.sh-hero__text { font-size: 16px; }
	.sh-hero__content .sh-btn { align-self: stretch; }
	.sh-hero__dots { bottom: 20px; }

	.sh-donate { padding-top: var(--sh-space-16); }
	.sh-donate__card { flex-direction: column; align-items: stretch; padding: 20px; gap: var(--sh-space-16); }
	.sh-donate__note { font-size: 16px; }
	.sh-donate__progress { padding-top: 0; border-top: 0; }

	.sh-cats__grid { gap: var(--sh-space-12); }
	.sh-cat { height: 180px; }
	.sh-cat__label { left: 12px; right: 12px; bottom: 12px; font-size: 18px; }
	.sh-cat__arrow { width: 32px; height: 32px; }

	.sh-new__bar { margin-left: calc(-1 * var(--sh-gutter-mobile)); margin-right: calc(-1 * var(--sh-gutter-mobile)); padding-left: var(--sh-gutter-mobile); padding-right: var(--sh-gutter-mobile); }
	.sh-new__chips { flex-basis: 100%; }
	.sh-new__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sh-new__grid > :nth-child(n+7) { display: block; }
	.sh-new__more .sh-btn { width: 100%; }

	.sh-stories__head { margin-bottom: var(--sh-space-24); }
	.sh-stories__nav { display: none; }
	.sh-stories__track { gap: var(--sh-space-12); margin: 0 calc(-1 * var(--sh-gutter-mobile)); padding: 0 var(--sh-gutter-mobile); scroll-padding-inline: var(--sh-gutter-mobile); }
	.sh-story-card { flex-basis: 78%; height: auto; aspect-ratio: 392 / 528; }
	.sh-story-card__body { flex-direction: column; align-items: flex-start; padding: 16px; }
	.sh-picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sh-space-12); }
	.sh-pick__nick { left: 12px; bottom: 10px; font-size: 16px; }
	.sh-pick__title { font-size: 14px; }
	.sh-pick__price { font-size: 14px; }
	.sh-home > :last-child { padding-bottom: var(--sh-space-48); }
}

/* ── Відео в картці історії ── */
.sh-story-card__video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sh-story-card.is-playing::after, .sh-story-card.is-playing .sh-story-card__body { opacity: 0; visibility: hidden; }
.sh-story-card__product {
	position: absolute; top: 12px; left: 12px; z-index: 4;
	display: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
	border-radius: var(--sh-radius-full); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: var(--sh-color-text-primary); font: 600 14px/1 var(--sh-font); text-decoration: none;
}
.sh-home a.sh-story-card__product { color: var(--sh-color-text-primary); }
.sh-story-card.is-playing .sh-story-card__product { display: inline-flex; animation: sh-pick-in 0.25s ease-out; }
.sh-story-card__product:hover { background: #fff; }
@keyframes sh-pick-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
