/*
 * „Сезонно“ и решенията (455-podborki.php) — по дъските Sezonno-kompyutar / -telefon.
 * Общото (заглавие, трохи, мрежата с картите на 440) — от 470 (produkti.css).
 */

html body .sp-pb {
	gap: var(--sp-6);
}

html body .sp-pb .sp-pb__glava {
	gap: 10px;
}

/* Етикетът над заглавието: срокът на сезона / „Решение“. */
html body .sp-pb__etiket {
	align-self: flex-start;
	height: 26px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 13px;
	background: var(--sp-marka-svetlo);
	color: var(--sp-marka);
	font-size: 13px;
	font-weight: 700;
}

html body .sp-pb .sp-ikona,
html body .sp-pb-plochki .sp-ikona {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* Бутончетата по категории. */
html body .sp-pb__chipove {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

html body .sp-pb__chip {
	height: 40px;
	margin: 0;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--sp-linia);
	border-radius: var(--sp-ugal);
	background: var(--sp-byalo);
	box-shadow: none;
	color: var(--sp-mastilo);
	font-family: var(--sp-shrift);
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

html body .sp-pb__chip span {
	color: var(--sp-sivo);
	font-weight: 400;
}

html body .sp-pb__chip:hover {
	border-color: var(--sp-marka);
}

html body .sp-pb__chip[aria-pressed="true"] {
	padding: 0 13px;
	border: 2px solid var(--sp-marka);
	background: var(--sp-marka-svetlo);
	color: var(--sp-marka);
	font-weight: 700;
}

html body .sp-pb__chip[aria-pressed="true"] span {
	color: var(--sp-marka);
	font-weight: 500;
}

html body .sp-pb__chip:focus-visible {
	outline: 2px solid var(--sp-marka);
	outline-offset: 2px;
}

/* Броят и подредбата. */
html body .sp-pb__red {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: calc(-1 * var(--sp-2));
}

html body .sp-pb__broy {
	color: var(--sp-grafit);
	font-size: 15px;
	line-height: 20px;
}

html body .sp-pb__broy b {
	color: var(--sp-mastilo);
	font-weight: 700;
}

html body .sp-pb__podredba {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--sp-grafit);
	font-size: 15px;
	font-weight: 500;
}

html body .sp-pb__izbor {
	position: relative;
	display: inline-flex;
}

html body .sp-pb__izbor select {
	width: 250px;
	height: 44px;
	margin: 0;
	padding: 0 40px 0 12px;
	border: 1px solid var(--sp-ramka);
	border-radius: var(--sp-ugal);
	background: var(--sp-byalo);
	box-shadow: none;
	color: var(--sp-mastilo);
	font-family: var(--sp-shrift);
	font-size: 15px;
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

html body .sp-pb__izbor .sp-ikona {
	position: absolute;
	right: 12px;
	top: 13px;
	pointer-events: none;
	color: var(--sp-mastilo);
}

html body .sp-pb__izbor select:focus {
	outline: none;
	border-color: var(--sp-marka);
	box-shadow: inset 0 0 0 1px var(--sp-marka);
}

/* „Покажи още продукти“. */
html body .sp-pb__mreja {
	margin-bottom: 0 !important;
}

html body .sp-pb__mreja > li[hidden] {
	display: none !important;
}

html body .sp-pb__oshte {
	padding-top: var(--sp-2);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--sp-grafit);
	font-size: 14px;
}

html body .sp-pb__oshte[hidden] {
	display: none;
}

html body .sp-pb__oshte b {
	color: var(--sp-mastilo);
}

html body .sp-pb__oshte-buton {
	height: 48px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid var(--sp-mastilo);
	border-radius: var(--sp-ugal);
	background: var(--sp-byalo);
	box-shadow: none;
	color: var(--sp-mastilo);
	font-family: var(--sp-shrift);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

html body .sp-pb__oshte-buton:hover {
	background: var(--sp-fon);
}

/* ---------- Плочките на решенията (и на началната) ---------- */

html body ul.sp-pb-plochki {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

html body ul.sp-pb-plochki > li {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
}

html body ul.sp-pb-plochki > li::before {
	display: none !important;
}

html body ul.sp-pb-plochki > li[hidden] {
	display: none;
}

html body a.sp-pb-plochka {
	flex: 1 1 auto;
	min-height: 72px;
	box-sizing: border-box;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--sp-linia);
	border-radius: var(--sp-ugal-karta);
	background: var(--sp-byalo);
	color: var(--sp-mastilo) !important;
	text-decoration: none !important;
	font-family: var(--sp-shrift);
}

html body a.sp-pb-plochka:hover {
	border-color: var(--sp-marka);
	box-shadow: 0 6px 18px rgba(0, 20, 50, 0.08);
}

html body .sp-pb-plochka__ikona {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--sp-marka-svetlo);
	color: var(--sp-marka);
}

html body .sp-pb-plochka__ime {
	font-size: 15px;
	line-height: 19px;
	font-weight: 700;
}

@media (max-width: 1023px) {
	html body .sp-pb {
		gap: var(--sp-4);
	}

	html body .sp-pb__etiket {
		height: 24px;
		padding: 0 10px;
		font-size: 12px;
	}

	html body .sp-pb .sp-pr__ime {
		font-size: 24px !important;
		line-height: 30px !important;
	}

	/* Бутончетата — лента, която се плъзга до ръба. */
	html body .sp-pb__chipove {
		margin: 0 calc(-1 * var(--sp-4));
		padding: 4px var(--sp-4) 0;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	html body .sp-pb__chipove::-webkit-scrollbar {
		display: none;
	}

	html body .sp-pb__chip {
		flex-shrink: 0;
	}

	html body .sp-pb__red {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 0;
	}

	html body .sp-pb__podredba > span:first-child {
		display: none;
	}

	html body .sp-pb__izbor,
	html body .sp-pb__izbor select {
		width: 100%;
	}

	html body .sp-pb__oshte-buton {
		width: 100%;
	}

	html body ul.sp-pb-plochki {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	html body a.sp-pb-plochka {
		padding: 10px 12px;
		gap: 10px;
	}

	html body .sp-pb-plochka__ikona {
		width: 40px;
		height: 40px;
		border-radius: 10px;
	}

	html body .sp-pb-plochka__ime {
		font-size: 14px;
		line-height: 18px;
	}
}
