/**
 * T-466 mobile SEO UX pack (items 2–6): active filter chips, home/PDP mobile slice,
 * sticky clearance. Enqueued sitewide (filemtime cache-bust).
 */

/* --- 2. Active filter remove-chips (default catalog, not only ?filter_ui=) --- */
.shop-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 16px;
}

.shop-active-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-active-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid var(--line, #d8dee6);
	border-radius: 999px;
	background: #fff;
	color: var(--ink, #1a1f2c);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.shop-active-filter:hover {
	border-color: var(--accent, #e85d04);
	color: var(--accent-dark, #c44d00);
	text-decoration: none;
}

.shop-active-filter__x {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	opacity: 0.7;
}

.shop-active-filters__clear {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-soft, #5b6577);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (min-width: 901px) {
	.shop-active-filters {
		margin-top: 4px;
	}
}

/* --- 3–4. Mobile: cap visible recommendation / home cards; keep HTML for SEO --- */
.product-related__more,
.product-tariff-line__more {
	margin: 12px 0 0;
}

.product-related__more a,
.product-tariff-line__more a {
	font-weight: 700;
	text-decoration: none;
}

.product-related__more a:hover,
.product-tariff-line__more a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	/* Home offer-tabs: show 4 cards like desktop (OWNER 2026-07-27; was n+3 = 2 cards) */
	.home-offer-tabs .products > li.product:nth-child(n + 5) {
		display: none !important;
	}

	/* Tariff line siblings: show 4 cards on mobile */
	.product-tariff-line__products > li.product:nth-child(n + 5) {
		display: none !important;
	}

	.product-related__title,
	.product-tariff-line__title {
		font-size: 24px;
		margin-bottom: 16px;
	}
}

/* --- 6. Fixed panels clearance (legal + sticky buy / filter FAB) --- */
@media (max-width: 900px) {
	body.single-product .site-footer {
		padding-bottom: calc(var(--site-legal-h, 35px) + 88px);
	}

	body.single-product .product-sticky-purchase {
		bottom: var(--site-legal-h, 35px);
		z-index: 40;
	}

	/* Filter FAB stays above legal strip (chrome E has no tab bar) */
	body.tax-product_cat .shop-filters-toggle,
	body.post-type-archive-product .shop-filters-toggle {
		bottom: calc(var(--site-legal-h, 35px) + env(safe-area-inset-bottom, 0px) + 12px);
	}
}
