/* SpeedSzop Outlet — style frontu. Kolory z tokenów motywu (--ss-*) z wartościami zapasowymi. */

.sso-badge,
.woocommerce span.onsale.sso-badge {
	display: inline-flex;
	align-items: center;
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--ss-green, #83bc08);
	color: #fff;
	font-family: var(--ss-font-body, Inter, system-ui, sans-serif);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sso-omnibus {
	display: block;
	margin-top: 4px;
	color: var(--ss-text-muted, #4b5563);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}
.sso-omnibus .woocommerce-Price-amount {
	font-weight: 600;
}

/* ---------- Hero ---------- */
.sso-hero {
	margin: 0 0 32px;
	padding: 40px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ss-navy, #0e1533) 0%, var(--ss-navy-2, #131e4a) 55%, var(--ss-navy-3, #182559) 100%);
	color: #fff;
	animation: ssoFade .4s ease both;
}
.sso-hero__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--ss-green, #83bc08);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.sso-hero__title {
	margin: 0 0 8px;
	color: #fff;
	font-family: var(--ss-font-display, Manrope, Inter, sans-serif);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.1;
}
.sso-hero__text {
	max-width: 640px;
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: 16px;
	line-height: 1.6;
}
.sso-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ss-green-light, #a8d93e);
	font-weight: 700;
}

/* ---------- Layout ---------- */
.sso-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.sso-sidebar {
	position: sticky;
	top: 100px;
}

/* ---------- Filtry ---------- */
.sso-filters {
	padding: 20px;
	border: 1px solid var(--ss-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
}
.sso-filters__toggle {
	margin-bottom: 8px;
	color: var(--ss-navy, #0e1533);
	font-family: var(--ss-font-display, Manrope, Inter, sans-serif);
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}
.sso-filters__toggle::-webkit-details-marker {
	display: none;
}
.sso-filter-group + .sso-filter-group {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ss-border, #e5e7eb);
}
.sso-filter-group__title {
	margin: 0 0 10px;
	color: var(--ss-text, #1f2937);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.sso-filter-group__list {
	max-height: 260px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}
.sso-filter-term {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	color: var(--ss-text, #1f2937);
	font-size: 14px;
	text-decoration: none;
}
.sso-filter-term:hover .sso-filter-term__name {
	color: var(--ss-blue, #2141b7);
}
.sso-filter-term__box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background: #fff center / 12px no-repeat;
	transition: background-color .15s, border-color .15s;
}
.sso-filter-term.is-active .sso-filter-term__box {
	border-color: var(--ss-blue, #2141b7);
	background-color: var(--ss-blue, #2141b7);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sso-filter-term.is-active .sso-filter-term__name {
	font-weight: 600;
}
.sso-filter-term__count {
	margin-left: auto;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--ss-bg-light, #f5f7fb);
	color: var(--ss-text-muted, #4b5563);
	font-size: 12px;
}

/* ---------- Aktywne filtry ---------- */
.sso-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.sso-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ss-bg-light, #f5f7fb);
	color: var(--ss-navy, #0e1533);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.sso-chip:hover {
	background: #e8edf8;
}
.sso-chip--clear {
	background: transparent;
	color: var(--ss-blue, #2141b7);
	text-decoration: underline;
}

/* ---------- Puste stany ---------- */
.sso-empty {
	padding: 48px 24px;
	border: 1px dashed var(--ss-border, #e5e7eb);
	border-radius: 16px;
	background: var(--ss-bg-light, #f5f7fb);
	text-align: center;
}
.sso-empty h2 {
	margin: 0 0 8px;
	color: var(--ss-navy, #0e1533);
	font-family: var(--ss-font-display, Manrope, Inter, sans-serif);
}
.sso-button,
.woocommerce a.button.sso-button {
	border-radius: 8px;
	background: var(--ss-blue, #2141b7);
	color: #fff;
}
.sso-button:hover,
.woocommerce a.button.sso-button:hover {
	background: #1a35a0;
	color: #fff;
}

/* ---------- Karta produktu ---------- */
.sso-info {
	margin: 12px 0 20px;
	padding: 14px 16px;
	border: 1px solid #d9ecb0;
	border-radius: 12px;
	background: #f6fbea;
	color: var(--ss-text, #1f2937);
	font-size: 14px;
}
.sso-info__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.sso-info p {
	margin: 8px 0 0;
}
.sso-info__end {
	color: var(--ss-text-muted, #4b5563);
	font-size: 13px;
}
.sso-var-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	font-size: 13px;
}
.sso-var-info__end {
	color: var(--ss-text-muted, #4b5563);
}

/* ---------- Blok na stronę główną ---------- */
.sso-block {
	margin: 48px 0;
}
.sso-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.sso-block__eyebrow {
	color: var(--ss-green, #83bc08);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.sso-block__title {
	margin: 4px 0;
	color: var(--ss-navy, #0e1533);
	font-family: var(--ss-font-display, Manrope, Inter, sans-serif);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
}
.sso-block__subtitle {
	margin: 0;
	color: var(--ss-text-muted, #4b5563);
}
.sso-block__more {
	color: var(--ss-blue, #2141b7);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sso-block__more:hover {
	color: #1a35a0;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.sso-hero {
		padding: 28px 20px;
	}
	.sso-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.sso-sidebar {
		position: static;
	}
	.sso-filters:not([open]) .sso-filters__toggle {
		margin-bottom: 0;
	}
	.sso-filters__toggle::after {
		content: " +";
	}
	.sso-filters[open] .sso-filters__toggle::after {
		content: " −";
	}
}

@keyframes ssoFade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.sso-hero { animation: none; }
}
