/**
 * Картка товару, каталог, фільтри, пагінація.
 * Figma: Product card, Catalog, Filters sheet — design-spec/02-atoms.md, 03-catalog.md, 07-mobile.md.
 */

/* ── Бейдж і кружок кольору ── */
.sh-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	border-radius: var(--sh-radius-16);
	background: var(--sh-color-primary-accessible);
	color: #fff;
	font: 700 12px/16px var(--sh-font);
}
.sh-swatch {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
	border: 2px solid var(--sh-color-label-primary-18);
	border-radius: 50%;
	background: var(--sw, #cececa);
}

/* ── Картка товару ── */
/* Старий paragraphs.css стилізує все всередині <article> (пунктир під посиланнями, відступи) */
.sh-card a, .sh-card a:hover { border-bottom: 0; }
.sh-card p, .sh-card h3 { margin: 0; padding: 0; }

.sh-card { position: relative; display: flex; flex-direction: column; gap: var(--sh-space-16); min-width: 0; }
.sh-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--sh-radius-16);
	background: var(--sh-color-bg-warm);
}
.sh-card__visual { position: relative; z-index: 2; } /* фото й кнопка — над прозорим шаром посилання картки, інакше не працюють свайп і наведення */
.sh-card__media { z-index: 2; }
/* Легке затемнення знизу, щоб смужки фото було видно на світлих фото */
.sh-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to top, rgba(0,0,0,0.18), rgba(0,0,0,0)); pointer-events: none; }
.sh-card__dots { z-index: 1; }
.sh-card__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.sh-card__track::-webkit-scrollbar { display: none; }
.sh-card__img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	scroll-snap-align: start;
}
.sh-card__img--empty { display: block; background: var(--sh-color-bg-warm); }
.sh-card__badge { position: absolute; top: 12px; left: 12px; }
.sh-card__count {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: var(--sh-space-8);
	min-height: 24px;
	padding: 0 10px;
	border-radius: var(--sh-radius-full);
	background: var(--sh-color-label-primary-62);
	color: #fff;
	font: 500 12px/16px var(--sh-font);
}
.sh-card__dots {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	gap: var(--sh-space-8);
	pointer-events: none;
}
.sh-card__dot { flex: 1; height: 3px; border-radius: var(--sh-radius-full); background: var(--sh-color-white-40); transition: background-color var(--sh-transition); }
.sh-card__dot.is-active { background: #fff; }
.sh-card__stock {
	position: absolute;
	left: 12px;
	bottom: 24px;
	padding: 4px 10px;
	border-radius: var(--sh-radius-full);
	background: rgba(255, 255, 255, 0.9);
	color: var(--sh-color-text-primary);
	font: 600 12px/16px var(--sh-font);
}
.sh-card.is-out .sh-card__img { opacity: 0.6; }

.sh-card__body { display: flex; flex-direction: column; gap: var(--sh-space-8); }
.sh-card__kicker { margin: 0 0 -4px; color: var(--sh-color-text-meta); font: 500 12px/16px var(--sh-font); }

/* «Додати в кошик» на фото: на комп'ютері з'являється при наведенні (без зсуву сторінки — не мерехтить) */
.sh-card__add {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 26px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sh-space-8);
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--sh-radius-full);
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: var(--sh-shadow-small);
	color: var(--sh-color-text-primary);
	font: 600 14px/1 var(--sh-font);
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.sh-card:hover .sh-card__add,
.sh-card__add:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.sh-card__add:hover { background: var(--sh-color-text-primary); color: #fff; }
.sh-card__add.is-loading { pointer-events: none; }
.sh-card__add.is-loading .sh-icon { animation: sh-spin 0.8s linear infinite; }
.sh-card__add.is-done { background: var(--sh-color-text-primary); color: #fff; }
.sh-card.is-picking .sh-card__add { opacity: 0; pointer-events: none; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* Вибір розміру / кольору на фото */
.sh-card__pick {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 4;
	padding: 12px 40px 14px 14px;
	border-radius: var(--sh-radius-12);
	background: #fff;
	box-shadow: var(--sh-shadow-tooltip);
	animation: sh-pick-in 0.22s ease-out;
}
.sh-card__pick[hidden] { display: none; }
@keyframes sh-pick-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sh-card__pick-title { margin: 0 0 10px; color: var(--sh-color-text-primary); font: 600 13px/16px var(--sh-font); }
.sh-card__pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-card__pick-chip {
	min-width: 44px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--sh-color-border-warm);
	border-radius: var(--sh-radius-full);
	background: #fff;
	color: var(--sh-color-text-primary);
	font: 600 13px/1 var(--sh-font);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sh-card__pick-chip:hover { border-color: var(--sh-color-text-primary); }
.sh-card__pick-chip.is-loading { background: var(--sh-color-text-primary); border-color: var(--sh-color-text-primary); color: #fff; pointer-events: none; }
.sh-card__pick-color {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	background: var(--sw, #cececa);
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}
.sh-card__pick-color:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sh-color-text-primary); }
.sh-card__pick-close {
	position: absolute;
	top: 4px;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sh-color-text-meta);
	cursor: pointer;
}
.sh-card__pick-close:hover { background: var(--sh-color-bg-warm); color: var(--sh-color-text-primary); }
.sh-card__pick-close svg, .sh-added svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Телефон / планшет без мишки: кругла кнопка з кошиком завжди видна */
@media (hover: none) {
	.sh-card__add {
		left: auto;
		right: 8px;
		bottom: 8px;
		width: 40px;
		height: 40px;
		min-height: 0;
		padding: 0;
		border-radius: 50%;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
	.sh-card__add-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.sh-card:has(.sh-card__add) .sh-card__dots { right: 56px; }
}
.sh-card__title { margin: 0; font: 600 16px/20px var(--sh-font); letter-spacing: 0; text-transform: none; }
.sh-card__title a { color: var(--sh-color-text-primary); text-decoration: none; }
.sh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* уся картка клікабельна */
.sh-card__title a:focus-visible { outline: none; }
.sh-card:has(.sh-card__title a:focus-visible) { outline: 2px solid var(--sh-color-primary-accessible); outline-offset: 4px; border-radius: var(--sh-radius-16); }
.sh-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sh-space-8); margin: 0; }
.sh-card__price-now { color: var(--sh-color-text-primary); font: 700 16px/24px var(--sh-font); }
.sh-card__price-now.is-sale { color: var(--sh-color-primary-dark); }
.sh-card__price-old { color: var(--sh-color-text-meta); font: 500 14px/20px var(--sh-font); }
.sh-card__price .woocommerce-Price-amount { font: inherit; color: inherit; }
.sh-card__colors { display: flex; align-items: center; gap: var(--sh-space-8); margin: 0; }
/* Клікабельний кружок: видимий 20px, зона натискання 32px; над шаром посилання картки */
.sh-swatch--btn { position: relative; z-index: 2; padding: 0; cursor: pointer; transition: box-shadow var(--sh-transition); }
.sh-swatch--btn::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.sh-swatch--btn:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sh-color-border-strong); }
.sh-swatch--btn[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sh-color-text-primary); }
.sh-card__colors:has(.sh-swatch--btn) { gap: var(--sh-space-12); }
.sh-card__colors-label { color: var(--sh-color-text-meta); font: 500 12px/16px var(--sh-font); }

@media (hover: hover) {
	.sh-card__track { scroll-behavior: auto; }
	.sh-card__dots { display: none; } /* на комп'ютері друге фото — при наведенні, смужки не потрібні */
	.sh-card:hover .sh-card__title a { color: var(--sh-color-primary-dark); }
}

@media (max-width: 767px) {
	.sh-card { gap: var(--sh-space-8); }
	.sh-card__media { border-radius: var(--sh-radius-12); }
	.sh-card__badge { top: 8px; left: 8px; }
	.sh-card__count { top: 8px; right: 8px; }
	.sh-card__dots { left: 12px; right: 12px; bottom: 8px; }
	.sh-card__body { gap: var(--sh-space-4); }
	.sh-card__title { font-size: 14px; line-height: 20px; }
	.sh-card__price-now { font-size: 14px; line-height: 20px; }
	.sh-card__price-old { font-size: 12px; line-height: 16px; }
}

/* ── Сітка карток ── */
.sh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px var(--sh-space-20);
	margin: 0;
	padding: 0;
	list-style: none;
}
.sh-grid > li { margin: 0; min-width: 0; }
@media (max-width: 767px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--sh-space-16); } }

/* ── Каталог: розкладка ── */
.sh-catalog { padding: 32px 0 80px; }
.sh-catalog__layout {
	display: grid;
	grid-template-columns: 305px minmax(0, 1fr);
	gap: var(--sh-space-20);
	align-items: start;
}
.sh-catalog__main { display: flex; flex-direction: column; gap: var(--sh-space-24); min-width: 0; }
/* Фільтри на комп'ютері: стоять на місці під шапкою, а довгий список гортається всередині (як у великих магазинах) */
@media (min-width: 1024px) {
	.sh-filters {
		position: sticky;
		top: 101px;
		max-height: calc(100vh - 125px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--sh-color-border-warm) transparent;
		padding-right: 8px;
		margin-right: -8px;
	}
	.admin-bar .sh-filters { top: 133px; max-height: calc(100vh - 157px); }
}

.sh-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sh-space-8); margin: 0; padding: 0; list-style: none; }
.sh-crumbs li { display: inline-flex; align-items: center; gap: var(--sh-space-8); color: var(--sh-color-text-tertiary); font: 500 12px/1.5 var(--sh-font); }
.sh-crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sh-color-text-tertiary); }
.sh-crumbs a { color: inherit; text-decoration: none; padding: 10px 0; }
.sh-crumbs a:hover { color: var(--sh-color-text-primary); }
.sh-crumbs [aria-current] { color: var(--sh-color-text-primary); }

.sh-catalog__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sh-space-16); margin-top: calc(-1 * var(--sh-space-16)); }
.sh-catalog__title { margin: 0; color: var(--sh-color-text-primary); font: 600 48px/1.2 var(--sh-font); letter-spacing: -2px; text-transform: none; }
.sh-catalog__count { margin: 0; color: var(--sh-color-text-meta); font: 500 18px/1.5 var(--sh-font); }

/* Сортування */
.sh-sortbar {
	display: flex;
	align-items: center;
	gap: var(--sh-space-12);
	padding: 12px 0;
	border-block: 1px solid var(--sh-color-border-warm);
}
.sh-sortbar__label { color: var(--sh-color-text-meta); font: 500 14px/20px var(--sh-font); }
.sh-sortbar__tabs { display: flex; flex-wrap: wrap; gap: var(--sh-space-4); margin: 0; padding: 0; list-style: none; }
.sh-sorttab {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--sh-radius-full);
	color: var(--sh-color-text-primary);
	font: 600 14px/19px var(--sh-font);
	text-decoration: none;
	transition: background-color var(--sh-transition), border-color var(--sh-transition);
}
.sh-sorttab:hover { border-color: var(--sh-color-border-warm); }
.sh-sorttab.is-selected { background: var(--sh-color-text-primary); border-color: var(--sh-color-text-primary); color: #fff; }

.sh-mobilebar { display: none; }

/* Пагінація */
.sh-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sh-space-16);
	margin-top: var(--sh-space-16);
	padding-top: var(--sh-space-32);
	border-top: 1px solid var(--sh-color-border-warm);
}
.sh-pager__info { margin: 0; color: var(--sh-color-text-meta); font: 500 14px/20px var(--sh-font); }
.sh-pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sh-space-8); margin: 0; padding: 0; list-style: none; }
.sh-pager__page, .sh-pager__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid var(--sh-color-border-warm);
	border-radius: var(--sh-radius-full);
	color: var(--sh-color-text-primary);
	font: 600 14px/1 var(--sh-font);
	text-decoration: none;
}
.sh-pager__page:hover, .sh-pager__step:hover { border-color: var(--sh-color-text-primary); }
.sh-pager__page.is-current { background: var(--sh-color-text-primary); border-color: var(--sh-color-text-primary); color: #fff; }
.sh-pager__gap { color: var(--sh-color-text-meta); padding: 0 4px; }

.sh-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sh-space-12); padding: 48px 0; }
.sh-empty__title { margin: 0; font: 600 24px/1.2 var(--sh-font); letter-spacing: -0.5px; }
.sh-empty__text { margin: 0 0 var(--sh-space-8); color: var(--sh-color-text-muted); }

/* ── Фільтри ── */
.sh-filters__form { display: flex; flex-direction: column; }
.sh-filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--sh-space-12); }
.sh-filters__title { margin: 0; color: var(--sh-color-text-primary); font: 600 20px/1.2 var(--sh-font); letter-spacing: -0.25px; text-transform: none; }
.sh-filters__picked { color: var(--sh-color-text-tertiary); font: 500 14px/20px var(--sh-font); letter-spacing: 0; }
.sh-filters__close { display: none; }
.sh-filters__actions { display: none; }
.sh-filters__help { padding-top: var(--sh-space-20); border-top: 1px solid var(--sh-color-border-warm); }
.sh-pill--warm { background: var(--sh-color-bg-warm); min-height: 40px; padding: 0 16px; font-size: 14px; }
.sh-pill--warm:hover { background: var(--sh-color-border-warm); }

.sh-fgroup { padding: 6px 0; border-top: 1px solid var(--sh-color-border-warm); }
.sh-fgroup:first-of-type { padding-top: 16px; }
.sh-fgroup__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	margin: 0;
	color: var(--sh-color-text-meta);
	font: 600 12px/16px var(--sh-font);
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
section.sh-fgroup > .sh-fgroup__title { min-height: auto; padding-bottom: 6px; cursor: default; }
.sh-fgroup__title::-webkit-details-marker { display: none; }
.sh-fgroup__plus, .sh-fgroup__minus { color: var(--sh-color-text-primary); }
details[open] > .sh-fgroup__title .sh-fgroup__plus,
details:not([open]) > .sh-fgroup__title .sh-fgroup__minus { display: none; }
.sh-fgroup__links, .sh-fgroup__list { display: flex; flex-direction: column; gap: var(--sh-space-4); margin: 0 0 10px; padding: 0; border: 0; list-style: none; min-width: 0; }
.sh-fgroup__list--chips { flex-direction: row; flex-wrap: wrap; gap: var(--sh-space-8); }

.sh-fitem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	padding: 0 12px;
	border-radius: var(--sh-radius-12);
	color: var(--sh-color-text-primary);
	font: 500 16px/22px var(--sh-font);
	text-decoration: none;
	cursor: pointer;
}
.sh-fitem:hover { background: var(--sh-color-bg-warm); }
.sh-fitem.is-selected { background: var(--sh-color-bg-warm); font-weight: 700; }
.sh-fitem:has(input:focus-visible) { outline: 2px solid var(--sh-color-primary-accessible); outline-offset: 2px; }
.sh-fitem__count { margin-left: auto; color: var(--sh-color-text-meta); font: 500 14px/17px var(--sh-font); }
.sh-fitem.is-selected .sh-fitem__count { color: var(--sh-color-text-primary); }

/* Пункт-галочка (колір, тип, колаборація) */
.sh-fcheck {
	display: flex;
	align-items: center;
	gap: var(--sh-space-12);
	min-height: 40px;
	padding: 0 4px;
	border-radius: var(--sh-radius-8);
	color: var(--sh-color-text-primary);
	font: 500 16px/24px var(--sh-font);
	cursor: pointer;
}
.sh-fcheck input, .sh-size-chip input {
	position: absolute;
	width: 1px; height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.sh-fcheck__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	border: 1px solid var(--sh-color-border-strong);
	border-radius: var(--sh-radius-8);
	background: #fff;
	color: transparent;
	transition: background-color var(--sh-transition), border-color var(--sh-transition);
}
.sh-fcheck:hover .sh-fcheck__box { border-color: var(--sh-color-text-primary); }
.sh-fcheck input:checked + .sh-fcheck__box { background: var(--sh-color-text-primary); border-color: var(--sh-color-text-primary); color: #fff; }
.sh-fcheck input:focus-visible + .sh-fcheck__box { outline: 2px solid var(--sh-color-primary-accessible); outline-offset: 2px; }
.sh-fcheck__name { flex: 1; min-width: 0; }

/* Розмір — чипи */
.sh-size-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid var(--sh-color-border-strong);
	border-radius: var(--sh-radius-full);
	background: #fff;
	color: var(--sh-color-text-primary);
	font: 600 14px/1 var(--sh-font);
	cursor: pointer;
}
.sh-size-chip:hover { border-color: var(--sh-color-text-primary); }
.sh-size-chip.is-selected, .sh-size-chip:has(input:checked) { background: var(--sh-color-text-primary); border-color: var(--sh-color-text-primary); color: #fff; }
.sh-size-chip:has(input:focus-visible) { outline: 2px solid var(--sh-color-primary-accessible); outline-offset: 2px; }

/* Ціна */
.sh-price-range { display: flex; align-items: flex-end; gap: var(--sh-space-8); margin-bottom: 12px; }
.sh-price-range label { display: flex; flex: 1; flex-direction: column; gap: 4px; color: var(--sh-color-text-meta); font: 500 12px/16px var(--sh-font); }
.sh-price-range input {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sh-color-border-warm);
	border-radius: var(--sh-radius-14);
	background: #fff;
	color: var(--sh-color-text-primary);
	font: 500 16px/24px var(--sh-font);
}
.sh-price-range__cur { padding-bottom: 12px; color: var(--sh-color-text-meta); }

/* ── Планшет / телефон ── */
@media (max-width: 1023px) {
	.sh-catalog__layout { grid-template-columns: minmax(0, 1fr); }
	.sh-catalog { padding-top: 16px; }
	.sh-sortbar { display: none; }
	.sh-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sh-space-8); }
	.sh-mobilebar__btn, .sh-mobilebar__sort {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--sh-space-8);
		min-height: 44px;
		box-sizing: border-box;
		border: 1px solid var(--sh-color-border-warm);
		border-radius: var(--sh-radius-full);
		background: #fff;
		color: var(--sh-color-text-primary);
		font: 600 16px/20px var(--sh-font);
		cursor: pointer;
	}
	.sh-mobilebar__sort select {
		position: absolute;
		inset: 0;
		width: 100%;
		padding: 0 34px 0 14px;
		border: 0;
		border-radius: var(--sh-radius-full);
		background: transparent;
		color: inherit;
		font: 600 14px/19px var(--sh-font);
		appearance: none;
		-webkit-appearance: none;
		text-align: center;
		cursor: pointer;
	}
	.sh-mobilebar__sort .sh-icon { position: absolute; right: 14px; pointer-events: none; }
	.sh-mobilebar__n {
		min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
		border-radius: 10px; background: var(--sh-color-text-primary); color: #fff;
		font: 700 12px/20px var(--sh-font);
	}

	/* Фільтри — повноекранна панель (Filters sheet) */
	.sh-filters {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: none;
		background: #fff;
	}
	.sh-filters.is-open { display: block; }
	.admin-bar .sh-filters { top: 46px; }
	.sh-filters__form { height: 100%; }
	.sh-filters__head { min-height: 68px; padding: 12px 16px; box-sizing: border-box; border-bottom: 1px solid var(--sh-color-stroke-opaque); }
	.sh-filters__close { display: inline-flex; }
	.sh-filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; }
	.sh-filters__actions {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: var(--sh-space-12);
		padding: 16px 16px 24px;
		border-top: 1px solid var(--sh-color-stroke-opaque);
	}
}
@media (max-width: 767px) {
	.sh-catalog { padding-bottom: 40px; }
	.sh-catalog__main { gap: var(--sh-space-16); }
	.sh-crumbs { display: none; }
	.sh-catalog__head { margin-top: 0; gap: var(--sh-space-10); }
	.sh-catalog__title { font-size: 28px; line-height: 1.16; letter-spacing: -1px; }
	.sh-catalog__count { font-size: 14px; line-height: 20px; }
	.sh-pager { justify-content: center; }
	.sh-pager__info { flex-basis: 100%; text-align: center; }
}

/* ── Телефон/планшет: категорії рядком чипів ── */
.sh-catchips { display: none; }
@media (max-width: 1023px) {
	.sh-catchips {
		display: flex;
		gap: var(--sh-space-8);
		margin: 0 calc(-1 * var(--sh-gutter-mobile)) var(--sh-space-12);
		padding: 0 var(--sh-gutter-mobile) 2px;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-padding-inline: var(--sh-gutter-mobile);
	}
	.sh-catchips::-webkit-scrollbar { display: none; }
	.sh-catchips .sh-chip { flex: none; border-bottom: 2px solid var(--sh-color-border-warm); }
	.sh-catchips .sh-chip.is-selected { border-color: var(--sh-color-text-primary); color: #fff; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.sh-catchips { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
}
