/* Suplicki – Sklep Produkty :: front-end */

.ssp-wrap,
.ssp-shop {
	--ssp-accent: #1B4DCA;
	--ssp-radius: 16px;
	--ssp-card-bg: #ffffff;
	--ssp-media-bg: #f3f3f4;
	--ssp-border: #ececec;
	--ssp-text: #0b0b0b;
	--ssp-muted: #9a9a9a;
	--ssp-cols: 4;

	box-sizing: border-box;
	font-family: var(--ssp-font, "Helvetica Neue", Helvetica, "Arial Nova", Arial, "Segoe UI", system-ui, sans-serif);
	color: var(--ssp-text);
	-webkit-font-smoothing: antialiased;
}

.ssp-wrap *,
.ssp-shop * {
	box-sizing: border-box;
}

/* ---------- Nagłówek sekcji ---------- */
.ssp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.ssp-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ssp-muted);
}

.ssp-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ssp-accent);
	flex: 0 0 auto;
}

.ssp-title {
	margin: 0;
	font-size: clamp(32px, 5vw, 64px);
	line-height: 0.98;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--ssp-text);
	max-width: 12ch;
}

/* ---------- Zakładki ---------- */
.ssp-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 6px;
	background: #f4f4f5;
	border-radius: 999px;
}

.ssp-tab {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: #4b4b4f;
	font-family: inherit;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ssp-tab:hover {
	color: var(--ssp-text);
}

.ssp-tab.is-active {
	background: #fff;
	color: var(--ssp-text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 8px rgba(0, 0, 0, .04);
}

/* ---------- Siatka ---------- */
.ssp-grid {
	display: grid;
	grid-template-columns: repeat(var(--ssp-cols), minmax(0, 1fr));
	gap: 24px;
}

.ssp-grid.is-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s ease;
}

.ssp-empty {
	grid-column: 1 / -1;
	color: var(--ssp-muted);
	padding: 40px 0;
}

/* ---------- Karta ---------- */
.ssp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ssp-card-bg);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ssp-card:hover {
	border-color: #dcdcdc;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.ssp-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: var(--ssp-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 6px 12px;
	border-radius: 8px;
	text-transform: uppercase;
}

.ssp-media-link {
	display: block;
	text-decoration: none;
}

.ssp-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--ssp-media-bg);
}

.ssp-media.has-img {
	padding: 0;
}

.ssp-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ssp-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: #fff;
	color: #b6b6ba;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

/* ---------- Treść karty ---------- */
.ssp-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.ssp-line {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--ssp-muted);
	text-transform: uppercase;
}

.ssp-name {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ssp-name a {
	color: var(--ssp-text);
	text-decoration: none;
}

.ssp-name a:hover {
	color: var(--ssp-accent);
}

.ssp-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}

.ssp-price {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ssp-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ssp-accent);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.ssp-more svg {
	transition: transform .18s ease;
}

.ssp-more:hover svg {
	transform: translateX(3px);
}

.ssp-sub {
	font-size: 13px;
	color: var(--ssp-muted);
}

/* ---------- Widok sklepu (sidebar) ---------- */
.ssp-shop {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.ssp-sidebar {
	position: sticky;
	top: 24px;
}

.ssp-catlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ssp-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	color: #4b4b4f;
	font-family: inherit;
	transition: background-color .15s ease, color .15s ease;
}

.ssp-cat:hover {
	background: #f4f4f5;
	color: var(--ssp-text);
}

.ssp-cat.is-active {
	background: var(--ssp-text);
	color: #fff;
}

.ssp-count {
	font-size: 12px;
	opacity: .55;
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
	.ssp-shop {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ssp-sidebar {
		position: static;
	}

	.ssp-catlist {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.ssp-cat {
		width: auto;
	}
}

@media (max-width: 760px) {
	.ssp-head {
		margin-bottom: 28px;
	}

	.ssp-tabs {
		overflow-x: auto;
		max-width: 100%;
	}
}

/* =====================================================================
   Katalog (widget Elementora / [ssp_katalog])
   ===================================================================== */

.ssp-catalog {
	--ssp-accent: #1B4DCA;
	--ssp-radius: 16px;
	--ssp-card-bg: #ffffff;
	--ssp-media-bg: #f3f3f4;
	--ssp-border: #ececec;
	--ssp-text: #0b0b0b;
	--ssp-muted: #9a9a9a;
	--ssp-cols: 3;
	--ssp-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

	box-sizing: border-box;
	font-family: var(--ssp-font, "Helvetica Neue", Helvetica, "Arial Nova", Arial, "Segoe UI", system-ui, sans-serif);
	color: var(--ssp-text);
	-webkit-font-smoothing: antialiased;
}

.ssp-catalog * {
	box-sizing: border-box;
}

/* Nagłówek */
.ssp-c-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 44px;
}

.ssp-c-status {
	margin: 8px 0 0;
	font-family: var(--ssp-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--ssp-muted);
	text-transform: uppercase;
}

/* Układ: sidebar + siatka */
.ssp-c-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.ssp-c-aside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.ssp-fgroup {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ssp-flabel {
	margin: 0 0 6px;
	font-family: var(--ssp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ssp-muted);
}

.ssp-flist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ssp-fitem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	padding: 12px 16px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #2a2a2e;
	transition: background-color .15s ease, color .15s ease;
}

.ssp-fitem:hover {
	background: #f4f4f5;
}

.ssp-fitem.is-active {
	background: var(--ssp-text);
	color: #fff;
}

.ssp-fcount {
	font-family: var(--ssp-mono);
	font-size: 13px;
	color: var(--ssp-muted);
}

.ssp-fitem.is-active .ssp-fcount {
	color: rgba(255, 255, 255, .65);
}

/* Siatka kart */
.ssp-c-grid {
	display: grid;
	grid-template-columns: repeat(var(--ssp-cols), minmax(0, 1fr));
	gap: 24px;
}

.ssp-c-grid.is-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s ease;
}

/* Karta */
.ssp-c-card {
	display: flex;
	flex-direction: column;
	background: var(--ssp-card-bg);
	border: 1px solid var(--ssp-border);
	border-radius: var(--ssp-radius);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ssp-c-card:hover {
	border-color: #dcdcdc;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.ssp-c-top {
	position: relative;
}

.ssp-c-dot {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.ssp-c-orig {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	background: var(--ssp-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 6px 12px;
	border-radius: 8px;
	text-transform: uppercase;
}

.ssp-c-media-link {
	display: block;
	text-decoration: none;
}

.ssp-c-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 0.92;
	background: var(--ssp-media-bg);
}

.ssp-c-media .ssp-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ssp-c-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 20px;
	background: #fff;
	color: #b6b6ba;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.ssp-c-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ssp-c-line {
	font-family: var(--ssp-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--ssp-muted);
	text-transform: uppercase;
}

.ssp-c-name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ssp-c-name a {
	color: var(--ssp-text);
	text-decoration: none;
}

.ssp-c-name a:hover {
	color: var(--ssp-accent);
}

.ssp-c-sku {
	font-family: var(--ssp-mono);
	font-size: 12.5px;
	color: var(--ssp-muted);
}

.ssp-c-stock {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ssp-mono);
	font-size: 13px;
	margin-top: 2px;
}

.ssp-c-stockdot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.ssp-c-stock.is-in {
	color: #15803d;
}

.ssp-c-stock.is-in .ssp-c-stockdot {
	background: #16a34a;
}

.ssp-c-stock.is-out {
	color: var(--ssp-muted);
}

.ssp-c-stock.is-out .ssp-c-stockdot {
	background: #c0c0c4;
}

.ssp-c-buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}

.ssp-c-price {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ssp-c-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ssp-text);
	color: #fff;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .15s ease, background-color .15s ease;
}

.ssp-c-add:hover {
	opacity: .88;
	color: #fff;
}

.ssp-c-add.added {
	background: #16a34a;
}

.ssp-c-add.loading {
	opacity: .6;
	pointer-events: none;
}

.ssp-c-add.is-disabled {
	background: #f0f0f1;
	color: #a0a0a5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pokaż więcej */
.ssp-c-more-wrap {
	margin-top: 36px;
	text-align: center;
}

.ssp-c-more {
	appearance: none;
	border: 1px solid var(--ssp-border);
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--ssp-text);
	padding: 13px 28px;
	border-radius: 999px;
	transition: border-color .15s ease, background-color .15s ease;
}

.ssp-c-more:hover {
	border-color: #c8c8c8;
	background: #fafafa;
}

/* Responsywność katalogu */
@media (max-width: 1100px) {
	.ssp-c-layout {
		gap: 36px;
	}
}

@media (max-width: 880px) {
	.ssp-c-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ssp-c-aside {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px 36px;
	}

	.ssp-fgroup {
		flex: 1 1 200px;
	}
}

/* Katalog: tryb bez panelu filtrów (pełna szerokość) */
.ssp-catalog--full .ssp-c-layout {
	grid-template-columns: 1fr;
}

/* Katalog: poziomy pasek sortowania nad produktami */
.ssp-c-sortbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.ssp-c-sortbar .ssp-flabel {
	margin: 0 4px 0 0;
}

.ssp-c-sortbar .ssp-flist {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
}

.ssp-c-sortbar .ssp-fitem {
	width: auto;
	justify-content: center;
	padding: 9px 18px;
	border-radius: 999px;
	background: #f4f4f5;
	font-size: 15px;
}

.ssp-c-sortbar .ssp-fitem:hover {
	background: #ececee;
}

.ssp-c-sortbar .ssp-fitem.is-active {
	background: var(--ssp-text);
	color: #fff;
}

/* =====================================================================
   Przełączniki widoczności (klasy modyfikujące na elemencie głównym)
   ===================================================================== */
.ssp-hide-price .ssp-price,
.ssp-hide-price .ssp-c-price { display: none; }

.ssp-hide-netto .ssp-sub { display: none; }

.ssp-hide-more .ssp-more { display: none; }

.ssp-hide-stock .ssp-c-stock { display: none; }

.ssp-hide-add .ssp-c-add { display: none; }

.ssp-hide-sku .ssp-c-sku { display: none; }

/* Gdy w wierszu zakupu zostaje sam przycisk – dosuń go do prawej */
.ssp-hide-price .ssp-c-buy { justify-content: flex-end; }
.ssp-hide-price .ssp-price-row { justify-content: flex-end; }
