.psl-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.psl-track {
	display: flex;
	gap: 16px;
	scroll-behavior: smooth;
	transition: transform 0.45s ease;
	will-change: transform;
	cursor: grab;
	touch-action: pan-y;
}

.psl-track.psl-dragging {
	transition: none !important;
	cursor: grabbing;
}

.psl-slide {
	min-width: 280px;
	flex: 0 0 280px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.psl-slide .psl-thumb {
	display: block;
	margin-bottom: 8px;
}

.psl-info .added_to_cart {
	color: #717171 !important;
	font-size: 12px !important;
	text-align: center !important;
}

.psl-img {
	width: 100%;
	height: 100% !important;
	height: auto;
	border-radius: 6px;
	object-fit: contain;
	aspect-ratio: 4/5;
}

.psl-img--placeholder {
	width: 100%;
	aspect-ratio: 4/5;
	border-radius: 6px;
	background: repeating-linear-gradient(
		45deg,
		#e3e3e3,
		#e3e3e3 10px,
		#d5d5d5 10px,
		#d5d5d5 20px
	);
}

.psl-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
}

.psl-title {
	font-size: 16px;
	margin: 0;
	line-height: 1.3;
	font-weight: 700;
	color: var(--Foundation-Grey-G900, #1e1e1e);
	height: 100%;
}

.psl-title a {
	text-decoration: none;
	color: #222;
}

.psl-title a:hover {
	text-decoration: underline;
}

.psl-cats {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--Foundation-Grey-G900, #1e1e1e);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
}

.psl-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	color: var(--Foundation-Grey-G900, #1e1e1e);
}

.psl-price {
	margin-bottom: -15px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--Foundation-Grey-G900, #1e1e1e);
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	width: fit-content;
	margin-left: auto;
}

.psl-price-sale {
	color: var(--Foundation-Grey-G900, #1e1e1e);
	line-height: 192%;
	font-size: 24px;
	font-weight: 700;
}

.psl-price-regular {
	color: var(--Foundation-Grey-G900, #1e1e1e);
	text-decoration: line-through;
	font-size: 16px;
	font-weight: 700;
	line-height: 250%;
	align-self: end;
}

.psl-nav {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	background: rgba(30, 30, 30, 0.4);
	color: #fff;
	border: 1px solid rgba(30, 30, 30, 0.3);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	transition: all 0.3s ease;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 10;
}

.psl-nav:hover {
	opacity: 1;
	background: rgba(30, 30, 30, 0.95);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transform: translateY(-50%) scale(1.05);
}

.psl-nav span {
	display: none;
}

.psl-nav svg {
	width: 24px;
	height: 24px;
}

.psl-prev {
	left: 10px;
}

.psl-prev::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="15 18 9 12 15 6"%3E%3C/polyline%3E%3C/svg%3E');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.psl-next {
	right: 10px;
}

.psl-next::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="9 18 15 12 9 6"%3E%3C/polyline%3E%3C/svg%3E');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.psl-dots {
	margin-top: 20px;
	display: flex !important;
	gap: 8px;
	justify-content: center;
	visibility: visible !important;
}

.psl-dot {
	width: 74px;
	height: 4px !important;
	border-radius: 999px;
	background: var(--Foundation-Orange-O50, #fbece6);
	cursor: pointer;
	border: none;
	padding: 0;
	transition: all 0.3s ease;
}

.psl-dot:hover {
	background: rgba(30, 30, 30, 0.3);
}

.psl-dot[aria-current="true"] {
	background: var(--Foundation-Grey-G900, #1e1e1e);
}

.psl-debug-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
	background: #000;
	color: #fff;
	opacity: 0.6;
	padding: 4px 6px;
	font-size: 10px;
	line-height: 1;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	z-index: 2;
}

.psl-debug-btn:hover,
.psl-debug-btn:focus {
	opacity: 1;
	outline: none;
}

/* Modal debug */
.psl-debug-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 9999;
}

.psl-debug-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 640px;
	max-height: 80vh;
	overflow: auto;
	border-radius: 8px;
	padding: 20px 24px 28px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	font-family: monospace;
	font-size: 12px;
	line-height: 1.4;
}

.psl-debug-modal h4 {
	margin: 0 0 12px;
	font-family: system-ui, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.psl-debug-modal pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.psl-debug-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #eee;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 12px;
}

.psl-debug-close:hover {
	background: #ddd;
}

/* Dopasowanie szerokości gdy wszystkie produkty mieszczą się w jednej "ramce" */
.psl-slider-wrapper.psl-fit {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.psl-slider-wrapper.psl-fit .psl-track {
	cursor: default;
}

.psl-slider-wrapper.psl-fit .psl-nav,
.psl-slider-wrapper.psl-fit .psl-dots {
	display: none !important;
}

/* Blokada selekcji (zachowujemy) */
.psl-slider-wrapper,
.psl-slider-wrapper * {
	-webkit-user-select: none;
	user-select: none;
}

/* Usunięto pointer-events:none z img – tylko blokada drag przez JS / draggable */
.psl-slider-wrapper img {
	-webkit-user-drag: none;
}

.psl-price-wrapper {
	text-align: end;
}

.psl-price-description {
	margin: 0 !important;
	color: var(--Foundation-Grey-G900, #1e1e1e);
	text-align: right;
	gap: 7px;
	font-size: 10px;
	font-weight: 400;
	justify-content: end;
	align-items: center;
}

/* Status magazynowy */
.psl-stock-status {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	text-align: right;
	font-size: 12px;
	font-weight: 600;
}

.psl-stock-status::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: currentColor;
}

.psl-stock-available {
	color: #28a745;
	/* Zielony */
}

.psl-stock-unavailable {
	color: #dc3545;
	/* Czerwony */
}

/* Przycisk "Dodaj do koszyka" */
.psl-add-to-cart-btn {
	display: inline-block;
	width: 100%;
	margin-top: 12px;
	padding: 12px 20px;
	background-color: #1e1e1e;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.psl-add-to-cart-btn:hover {
	background-color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #fff;
	text-decoration: none;
}

.psl-add-to-cart-btn:active {
	transform: translateY(0);
}

/* Przy mobilnych szerokościach */
@media (max-width: 900px) {
	.psl-slide {
		min-width: 250px;
		flex: 0 0 250px;
	}
}

@media (max-width: 600px) {
	.psl-track {
		gap: 12px;
	}

	.psl-slide {
		min-width: 230px;
		flex: 0 0 230px;
		padding: 10px;
	}

	.psl-nav {
		width: 32px;
		height: 32px;
	}
}
