/* ==========================================================================
   Benetech Sliders – front-end
   ========================================================================== */

.bts {
	--bts-accent: #e31e24;
	--bts-text: #111;
	--bts-muted: #666;
	--bts-radius: 16px;
	--bts-gap: 24px;
	position: relative;
	box-sizing: border-box;
	color: var(--bts-text);
	background: var(--bts-bg, transparent);
	width: 100%;
	max-width: min(var(--bts-w, 100%), 100%);
}
/* Podwójna klasa + !important: motywy i page buildery często nadpisują marginesy dzieci treści. */
.bts.bts {
	display: block;
	background-color: var(--bts-bg, transparent) !important;
	margin: var(--bts-mt, 0) var(--bts-mr, auto) var(--bts-mb, 2rem) var(--bts-ml, auto) !important;
	padding: var(--bts-pt, 0) var(--bts-pr, 0) var(--bts-pb, 0) var(--bts-pl, 0) !important;
	float: none;
}
@media (max-width: 767px) {
	.bts.bts {
		margin: var(--bts-mmt, 0) var(--bts-mmr, auto) var(--bts-mmb, 2rem) var(--bts-mml, auto) !important;
		padding: var(--bts-pmt, 0) var(--bts-pmr, 0) var(--bts-pmb, 0) var(--bts-pml, 0) !important;
	}
}
/* Rodzic flex (np. kontener Elementora) – wyrównanie przez align-self. */
.bts--align-center { align-self: center; }
.bts--align-left { align-self: flex-start; }
.bts--align-right { align-self: flex-end; }

/* Mniej slajdów niż miejsc – wyrównaj slajdy zgodnie z ustawieniem. */
.bts.no-nav.bts--align-center:not(.is-fade) .bts-track { justify-content: center; }
.bts.no-nav.bts--align-right:not(.is-fade) .bts-track { justify-content: flex-end; }
.bts *, .bts *::before, .bts *::after { box-sizing: border-box; }
.bts--full {
	width: 100vw;
	max-width: 100vw !important;
}
.bts img { max-width: 100%; height: auto; display: block; }

/* ---------- Rdzeń karuzeli ---------- */
.bts-stage { position: relative; }
.bts-viewport {
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.bts-track {
	display: flex;
	gap: var(--bts-gap);
	will-change: transform;
}
.bts-slide { flex: 0 0 100%; min-width: 0; }
.bts.is-dragging .bts-viewport { cursor: grabbing; }

/* Przed inicjalizacją JS – pokaż sensowny układ bez "skoku" */
.bts:not(.is-ready) .bts-track { overflow: hidden; }
.bts--products:not(.is-ready) .bts-slide,
.bts--testimonials:not(.is-ready) .bts-slide { flex-basis: calc((100% - 3 * var(--bts-gap)) / 4); }
@media (max-width: 1023px) {
	.bts--products:not(.is-ready) .bts-slide,
	.bts--testimonials:not(.is-ready) .bts-slide { flex-basis: calc((100% - var(--bts-gap)) / 2); }
}
@media (max-width: 639px) {
	.bts--products:not(.is-ready) .bts-slide,
	.bts--testimonials:not(.is-ready) .bts-slide { flex-basis: 100%; }
}

/* Efekt przenikania */
.bts.is-fade .bts-track { display: grid; transform: none !important; }
.bts.is-fade .bts-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	max-width: none !important;
}
.bts.is-fade .bts-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* Ukryj nawigację, gdy wszystko się mieści */
.bts.no-nav .bts-arrow,
.bts.no-nav .bts-dots,
.bts.no-nav .bts-counter { display: none !important; }

/* ---------- Strzałki ---------- */
.bts-arrow {
	appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	transition: background .2s, color .2s, opacity .2s, transform .2s;
	line-height: 1;
}
.bts-arrow:focus-visible { outline: 2px solid var(--bts-accent); outline-offset: 2px; }
.bts-arrow.is-disabled { opacity: .3; cursor: default; }

.bts-arrow--overlay,
.bts-arrow--dark {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}
.bts-arrow--overlay { background: rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.bts-arrow--overlay:hover:not(.is-disabled) { background: var(--bts-accent); color: #fff; }
.bts-arrow--overlay.bts-arrow--prev { left: 20px; }
.bts-arrow--overlay.bts-arrow--next { right: 20px; }

.bts-arrow--dark { background: #111; color: #fff; width: 54px; height: 54px; }
.bts-arrow--dark:hover:not(.is-disabled) { background: var(--bts-accent); }
.bts-arrow--dark.bts-arrow--prev { left: 0; }
.bts-arrow--dark.bts-arrow--next { right: 0; }

.bts-arrow--plain { background: transparent; color: #222; width: 40px; height: 40px; }
.bts-arrow--plain:hover:not(.is-disabled) { color: var(--bts-accent); background: #f4f4f4; }

/* ---------- Kropki ---------- */
.bts-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.bts-dot {
	appearance: none;
	border: 0;
	padding: 0;
	width: 10px;
	height: 10px;
	border-radius: 10px;
	background: #ccc;
	cursor: pointer;
	transition: width .25s, background .25s;
}
.bts-dot.is-active { width: 28px; background: var(--bts-accent); }
.bts--banners .bts-dots,
.bts--images .bts-dots {
	position: absolute;
	left: 0; right: 0; bottom: 18px;
	margin: 0;
	z-index: 5;
}
.bts--banners .bts-dot { background: rgba(255,255,255,.55); }
.bts--banners .bts-dot.is-active { background: #fff; }

/* ---------- Przyciski ---------- */
.bts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: background .2s, color .2s, transform .15s;
	text-align: center;
}
.bts-btn--primary { background: var(--bts-accent); color: #fff !important; }
.bts-btn--primary:hover { background: var(--bts-accent); filter: brightness(.88); color: #fff; }
.bts-btn--light { background: #fff; color: var(--bts-accent) !important; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; padding: 18px 28px; }
.bts-btn--light:hover { background: #fff3f3; }
.bts-btn--block { width: 100%; }
.bts-btn.loading { opacity: .6; pointer-events: none; }
.bts-btn.added::after { content: " ✓"; margin-left: 4px; }
.bts-card .added_to_cart { display: block; text-align: center; margin-top: 6px; font-size: .85rem; color: var(--bts-accent); }

/* ---------- Nagłówek sekcji ---------- */
.bts-head { margin-bottom: 32px; }
.bts-head--center { text-align: center; }
.bts-head__small { color: var(--bts-accent); font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; }
.bts-head__title { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--bts-text); }

/* ==========================================================================
   Slider produktów
   ========================================================================== */
.bts-products { display: grid; gap: 40px; align-items: stretch; }
.bts-products.has-panel.panel-left  { grid-template-columns: var(--bts-panel-w, 315px) minmax(0, 1fr); }
.bts-products.has-panel.panel-right { grid-template-columns: minmax(0, 1fr) var(--bts-panel-w, 315px); }
.bts-products.has-panel.panel-right .bts-panel { order: 2; }
.bts-products.has-panel.panel-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.bts-products__main { min-width: 0; display: flex; flex-direction: column; gap: 32px; justify-content: center; }

/* ---------- Panel boczny ---------- */
.bts-panel {
	position: relative;
	overflow: hidden;
	background: var(--bts-panel-bg, var(--bts-accent));
	color: var(--bts-panel-color, #fff);
	border-radius: var(--bts-panel-radius, 6px);
	display: flex;
}
.bts-panel__bg { position: absolute; inset: 0; z-index: 0; }
.bts-panel__bg img { width: 100% !important; height: 100% !important; object-fit: cover; }
.bts-panel.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--bts-panel-bg, var(--bts-accent));
	opacity: var(--bts-panel-overlay, .75);
}
.bts-panel.has-bg { background: #000; }
.bts-panel__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: calc(var(--bts-panel-pad, 44px) + 4px) var(--bts-panel-pad, 44px);
	display: flex;
	flex-direction: column;
	gap: 0;
}
.bts-panel--v-top .bts-panel__inner { justify-content: flex-start; }
.bts-panel--v-center .bts-panel__inner { justify-content: center; }
.bts-panel--v-bottom .bts-panel__inner { justify-content: flex-end; }
.bts-panel--v-between .bts-panel__inner { justify-content: space-between; }
.bts-panel--align-left { text-align: left; }
.bts-panel--align-center { text-align: center; }
.bts-panel--align-right { text-align: right; }

.bts-panel__icon { margin-bottom: 20px; }
.bts-panel__icon img { max-height: 64px; width: auto; display: inline-block; }
.bts-panel__title {
	color: inherit !important;
	margin: 0 0 22px;
	font-size: var(--bts-panel-title, 28px);
	font-weight: 700;
	line-height: 1.2;
}
.bts-panel__text { font-size: 1.15rem; line-height: 1.3; }
.bts-panel__text p { margin: 0 0 1em; color: inherit; }
.bts-panel__text a { color: inherit; text-decoration: underline; }
.bts-panel__text ul { margin: 0 0 1em 1.2em; padding: 0; }
.bts-panel__bottom { display: flex; flex-direction: column; gap: 14px; }
.bts-panel--align-center .bts-panel__bottom { align-items: center; }
.bts-panel--align-right .bts-panel__bottom { align-items: flex-end; }
.bts-panel--align-left .bts-panel__bottom { align-items: stretch; }
.bts-panel__sub { font-weight: 700; margin: .4em 0 2px; color: inherit; line-height: 1.4; }
.bts-panel__btn { letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; padding: 18px 28px; }
.bts-panel__btn--light   { background: #fff; color: var(--bts-accent) !important; }
.bts-panel__btn--light:hover { background: #fff3f3; }
.bts-panel__btn--outline { background: transparent; color: var(--bts-panel-color, #fff) !important; box-shadow: inset 0 0 0 2px currentColor; }
.bts-panel__btn--outline:hover { background: rgba(255,255,255,.12); }
.bts-panel__btn--dark    { background: #111; color: #fff !important; }
.bts-panel__btn--dark:hover { background: #333; }
.bts-panel__btn--accent  { background: var(--bts-accent); color: #fff !important; }
.bts-panel__btn--accent:hover { filter: brightness(.88); }
.bts-panel__link { color: inherit !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bts-panel__link:hover { opacity: .8; }

/* Panel nad sliderem – układ poziomy */
.panel-top .bts-panel__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.panel-top .bts-panel__top { flex: 1 1 380px; }
.panel-top .bts-panel__text p:last-child, .panel-top .bts-panel__title:last-child { margin-bottom: 0; }
.panel-top .bts-panel__bottom { flex: 0 0 auto; }

.bts-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 14px;
	padding: 14px 32px 14px 42px;
	min-height: 70px;
}
.bts-bar__title { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.bts-bar__titles .bts-head__small { font-size: .9rem; margin-bottom: 2px; }
.bts-bar__nav { display: flex; gap: 28px; }

.bts-card {
	background: #fff;
	border-radius: var(--bts-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bts-card__media {
	position: relative;
	display: block;
	aspect-ratio: var(--bts-img-ar, 1 / 1);
	height: var(--bts-img-h, auto);
	background: #f6f7f7;
	border-bottom: 1px solid #ececec;
	overflow: hidden;
}
.bts-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .4s ease;
	background: #fff;
}
.bts-card__img--placeholder { background: #f6f7f7 !important; }
.bts-card:hover .bts-card__media img { transform: scale(1.04); }
.bts-card__badge {
	position: absolute;
	top: 12px; left: 12px;
	background: var(--bts-accent);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}
.bts-card__body {
	padding: 22px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	text-align: center;
}
.bts-card__brand {
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 14px;
}
.bts-card__title { font-size: 1.1rem; font-weight: 500; line-height: 1.35; margin: 0 0 12px; }
.bts-card__title a { color: inherit; text-decoration: none; }
.bts-card__title a:hover { color: var(--bts-accent); }
.bts-card__price { font-weight: 700; margin-bottom: 10px; }
.bts-card__price del { color: #999; font-weight: 400; margin-right: 6px; }
.bts-card__price ins { text-decoration: none; color: var(--bts-accent); }
.bts-card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.bts-card__row { display: flex; align-items: center; gap: 10px; }

.bts-qty {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 10px;
	height: 46px;
	overflow: hidden;
	background: #fff;
}
.bts-qty__btn {
	appearance: none;
	border: 0;
	background: transparent;
	width: 36px;
	height: 100%;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	color: #222;
	padding: 0;
}
.bts-qty__btn:first-child { color: #999; }
.bts-qty__btn:hover { color: var(--bts-accent); }
.bts-qty__input {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: 0 !important;
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	height: 100%;
	-moz-appearance: textfield;
}
.bts-qty__input::-webkit-outer-spin-button,
.bts-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bts-stock {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bts-stock.is-in { background: #e3f6e6; color: #22a447; }
.bts-stock.is-out { background: #fde8e8; color: #c62828; }
.bts-stock__dot {
	position: absolute;
	top: 8px; right: 8px;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 2px #fff;
}

/* ==========================================================================
   Opinie
   ========================================================================== */
.bts--testimonials .bts-stage { padding: 0 76px; }
.bts--testimonials .bts-viewport { padding: 8px 6px 18px; }
.bts--testimonials .bts-track { align-items: flex-start; }
.bts--testimonials.bts--equal .bts-track { align-items: stretch; }
.bts--testimonials .bts-slide { display: flex; }

.bts .bts-quote {
	position: relative;
	margin: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #ececef;
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 30px -20px rgba(16, 24, 40, .28);
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: var(--bts-q-h, auto);
	aspect-ratio: var(--bts-q-ar, auto);
	font-style: normal;
	quotes: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
.bts .bts-quote:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 36px -18px rgba(16, 24, 40, .32); }
.bts--equal .bts-quote { height: 100%; }
.bts-quote--center { text-align: center; align-items: center; }

/* Treść – nadpisuje typowe style motywu (blockquote, p) */
.bts .bts-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	font-style: normal;
	flex: 1 1 auto;
	width: 100%;
}
.bts .bts-quote__text::before, .bts .bts-quote__text::after { content: none; }
.bts .bts-quote__text p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	letter-spacing: 0;
	color: #2b2b31;
	font-style: normal;
}
.bts-quote.has-clamp .bts-quote__text p {
	display: -webkit-box;
	-webkit-line-clamp: var(--bts-lines, 6);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Nagłówek karty: znak cytatu + gwiazdki */
.bts-quote__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.bts-quote--center .bts-quote__top { flex-direction: column; justify-content: center; gap: 10px; }
.bts-quote__mark { width: 34px; height: 34px; color: var(--bts-accent); opacity: .9; flex: 0 0 auto; }

.bts-stars { display: inline-flex; gap: 2px; color: #e2e2e6; font-size: 1.05rem; line-height: 1; letter-spacing: 0; margin: 0; }
.bts-stars .is-on { color: #f5b301; }

/* Stopka: awatar + autor */
.bts .bts-quote__meta {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid #f0f0f3;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
}
.bts-quote--center .bts-quote__meta { justify-content: center; }
.bts-quote__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bts .bts-quote__author { font-style: normal; font-weight: 700; font-size: .95rem; line-height: 1.3; color: #111; }
.bts-quote__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .82rem; line-height: 1.3; color: #7a7a85; }
.bts-quote__dot { opacity: .6; }
.bts-quote__about { color: var(--bts-accent); text-decoration: none; }
.bts-quote__about:hover { text-decoration: underline; }

.bts-avatar {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}
.bts-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bts-avatar__icon { width: 100%; height: 100%; display: block; }
.bts-avatar--initials span {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--bts-accent);
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Odpowiedź sprzedawcy, dopisek źródła */
.bts .bts-quote__answer {
	width: 100%;
	margin: -4px 0 0;
	padding: 10px 12px;
	background: #f6f6f8;
	border-left: 3px solid var(--bts-accent);
	border-radius: 0 8px 8px 0;
	font-size: .86rem;
	line-height: 1.45;
	color: #4a4a52;
	text-align: left;
}
.bts .bts-quote__answer strong { font-weight: 700; color: #111; }
.bts-quote__badge { display: inline-flex; align-items: center; gap: 4px; color: #4a4a52; font-weight: 600; }
.bts-quote__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bts-accent); }

/* Komentarze Allegro – podsumowanie nad sliderem */
.bts-allegro-sum {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 22px;
	margin: -.5rem 0 1.5rem;
	font-size: .95rem;
	line-height: 1.4;
	color: #4a4a52;
}
.bts-allegro-sum.is-alone { margin-top: 0; }
.bts-allegro-sum__score b { font-size: 1.25rem; font-weight: 800; color: #111; }
.bts-allegro-sum__link { color: var(--bts-accent); font-weight: 600; text-decoration: none; }
.bts-allegro-sum__link:hover { text-decoration: underline; }

/* Styl klasyczny – duży awatar na górze, wszystko wyśrodkowane */
.bts .bts-quote--classic { align-items: center; text-align: center; padding: 30px 26px 26px; gap: 14px; }
.bts-quote--classic .bts-quote__avatar .bts-avatar { width: 108px; height: 108px; }
.bts-quote--classic .bts-avatar--initials span { font-size: 1.8rem; }
.bts .bts-quote--classic .bts-quote__meta { justify-content: center; text-align: center; border-top: 0; padding-top: 0; margin-top: auto; }
.bts-quote--classic .bts-quote__who { align-items: center; }

@media (max-width: 767px) {
	.bts--testimonials .bts-stage { padding: 0 0 72px; }
	.bts-arrow--dark { top: auto; bottom: 0; transform: none; }
	.bts-arrow--dark.bts-arrow--prev { left: calc(50% - 62px); }
	.bts-arrow--dark.bts-arrow--next { right: calc(50% - 62px); }
	.bts .bts-quote { padding: 22px 20px 20px; }
}

/* ==========================================================================
   Banery
   ========================================================================== */
.bts--banners .bts-viewport { border-radius: 0; }
.bts-banner {
	position: relative;
	min-height: var(--bts-h, 520px);
	aspect-ratio: var(--bts-ar, auto);
	display: flex;
	align-items: center;
	background: #1d1d1d;
	color: #fff;
	overflow: hidden;
}
.bts-banner__bg { position: absolute; inset: 0; }
.bts-banner__bg-img { width: 100% !important; height: 100% !important; object-fit: cover; filter: blur(0); }
.bts-banner__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,var(--bts-overlay, .55));
}
.bts-banner__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px clamp(20px, 4vw, 60px);
	display: flex;
	align-items: center;
	gap: clamp(24px, 5vw, 80px);
}
.bts-banner--right .bts-banner__inner { justify-content: space-between; }
.bts-banner--left .bts-banner__inner { flex-direction: row-reverse; justify-content: space-between; }
.bts-banner--center .bts-banner__inner { flex-direction: column; text-align: center; justify-content: center; }

.bts-banner__media { position: relative; flex: 0 1 auto; width: min(var(--bts-media-w, 40%), var(--bts-media-max, 520px)); }
.bts-banner__circle {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--bts-circle-bg, #fff);
	border: var(--bts-circle-b, 8px) solid var(--bts-circle-bc, #222);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--bts-circle-pad, 6%);
	position: relative;
	box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.bts-banner__circle img { width: 100%; height: 100%; object-fit: contain; }

/* Ramka: prostokąt / kwadrat z zaokrągleniem i wybranymi proporcjami */
.bts-banner__frame {
	aspect-ratio: var(--bts-media-ar, 1 / 1);
	border-radius: var(--bts-media-r, 16px);
	background: var(--bts-circle-bg, #fff);
	border: var(--bts-circle-b, 8px) solid var(--bts-circle-bc, #222);
	overflow: hidden;
	position: relative;
}
.bts-banner__media.no-shadow .bts-banner__circle,
.bts-banner__media.no-shadow .bts-banner__frame { box-shadow: none; }
.bts-banner__media--frame.has-shadow .bts-banner__frame { box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.bts .bts-banner__circle .bts-rotator__img img,
.bts .bts-banner__frame .bts-rotator__img img { object-fit: var(--bts-media-fit, contain); }
.bts-banner__media.is-v-start { align-self: flex-start; }
.bts-banner__media.is-v-end { align-self: flex-end; }

/* Logo marki – bez białych marginesów, cienka ramka */
.bts-banner__badge {
	position: absolute;
	top: 2%;
	right: 2%;
	z-index: 3;
	width: var(--bts-badge-w, 26%);
	background: var(--bts-badge-bg, transparent);
	border: var(--bts-badge-b, 2px) solid var(--bts-badge-bc, #222);
	border-radius: var(--bts-badge-r, 6px);
	overflow: hidden;
	padding: 0;
	line-height: 0;
	box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.bts-banner__badge img { display: block; width: 100%; height: auto; }
.bts-badge--square .bts-banner__badge img { aspect-ratio: 1 / 1; height: auto; }
.bts-badge--wide .bts-banner__badge img { aspect-ratio: 3 / 2; height: auto; }
.bts-badge-fit--cover .bts-banner__badge img { object-fit: cover; }
.bts-badge-fit--contain .bts-banner__badge img { object-fit: contain; padding: 6%; }

/* Rotator zdjęć produktów – koło stałe, zmienia się zawartość */
/* Zdjęcia nakładają się dokładnie w miejscu, w którym wcześniej było jedno zdjęcie
   (obszar koła pomniejszony o odstęp od krawędzi). */
.bts-rotator__imgs { position: absolute; inset: var(--bts-circle-pad, 6%); }
.bts-rotator__img {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.bts-rotator__img.is-active { opacity: 1; visibility: visible; z-index: 2; }
.bts .bts-rotator__img img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.bts-rotator--zoom .bts-rotator__img { transform: scale(.85); }
.bts-rotator--zoom .bts-rotator__img.is-active { transform: scale(1); }
.bts-rotator--zoom .bts-rotator__img.is-prev { transform: scale(1.08); }
.bts-rotator--slide .bts-rotator__img { transform: translateX(60%); }
.bts-rotator--slide .bts-rotator__img.is-active { transform: none; }
.bts-rotator--slide .bts-rotator__img.is-prev { transform: translateX(-60%); }

/* Logo marek – każde w tym samym miejscu, zmiana razem ze zdjęciem */
.bts-rotator .bts-banner__badge.bts-rotator__item {
	opacity: 0;
	visibility: hidden;
	transform: scale(.85);
	transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.bts-rotator .bts-banner__badge.bts-rotator__item.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: .15s;
}
.bts-rotator__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; position: relative; z-index: 4; }
.bts-rotator__dot {
	appearance: none; border: 0; padding: 0; cursor: pointer;
	width: 8px; height: 8px; border-radius: 8px;
	background: rgba(255,255,255,.45);
	transition: width .3s, background .3s;
}
.bts-rotator__dot.is-active { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
	.bts-rotator__item, .bts-rotator__item * { transition: none !important; }
}
.bts-banner__content { max-width: 900px; }
.bts-banner--right .bts-banner__content { text-align: right; margin-left: auto; }
.bts-banner--right .bts-banner__content .bts-btn { margin-left: auto; }
.bts .bts-banner__title { color: #fff; font-size: var(--bts-title-fs, clamp(2rem, 4vw, 3.4rem)); font-weight: var(--bts-title-fw, 600); line-height: 1.1; margin: 0 0 .7em; }
.bts .bts-banner__text { font-size: var(--bts-text-fs, clamp(1rem, 1.4vw, 1.35rem)); line-height: 1.4; margin-bottom: 32px; color: #fff; }
.bts .bts-banner__text p { margin: 0 0 .6em; color: inherit; font-size: inherit; line-height: inherit; }
.bts-banner .bts-btn { padding: 1.1em 2.9em; font-size: var(--bts-btn-fs, 1.15rem); letter-spacing: .06em; }

/* Zdjęcie produktu w oryginalnym wyglądzie (bez koła i ramki) */
.bts-banner__plain { position: relative; line-height: 0; }
.bts-banner__plain .bts-rotator__imgs { position: relative; inset: auto; display: grid; place-items: center; }
.bts-banner__plain .bts-rotator__img { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; }
.bts .bts-banner__plain .bts-rotator__img img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(var(--bts-h, 520px) * var(--bts-plain-h, 85) / 100);
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--bts-media-r, 0);
}
.bts-banner__media--plain.has-shadow .bts-rotator__img img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.bts-banner__media--plain .bts-banner__badge { top: 0; right: 0; }
.bts-cover-link { position: absolute; inset: 0; z-index: 3; }

@media (max-width: 900px) {
	.bts-banner { min-height: var(--bts-h-m, 420px); aspect-ratio: var(--bts-ar-m, auto); }
	.bts-banner__inner,
	.bts-banner--left .bts-banner__inner,
	.bts-banner--right .bts-banner__inner { flex-direction: column; text-align: center; justify-content: center; padding-top: 32px; padding-bottom: 56px; }
	.bts-banner__media { width: min(90vw, var(--bts-media-w-m, 280px)); }
	.bts .bts-banner__title { font-size: var(--bts-title-fs-m, var(--bts-title-fs, clamp(2rem, 4vw, 3.4rem))); }
	.bts .bts-banner__text { font-size: var(--bts-text-fs-m, var(--bts-text-fs, clamp(1rem, 1.4vw, 1.35rem))); }
	.bts .bts-banner__plain .bts-rotator__img img { max-height: calc(var(--bts-h-m, 420px) * var(--bts-plain-h, 85) / 100); }
	.bts-banner__media.bts-rotator { position: relative; z-index: 4; }
	.bts-banner--right .bts-banner__content { text-align: center; margin: 0 auto; }
	.bts-banner .bts-btn { margin: 0 auto !important; padding: 16px 32px; }
	.bts-arrow--overlay { width: 40px; height: 40px; }
	.bts-arrow--overlay.bts-arrow--prev { left: 8px; }
	.bts-arrow--overlay.bts-arrow--next { right: 8px; }
}

/* ==========================================================================
   Pojedyncze zdjęcie
   ========================================================================== */
.bts--images .bts-viewport { border-radius: var(--bts-radius); background: #f2f2f2; }
.bts-photo { margin: 0; position: relative; height: var(--bts-ph, var(--bts-h, 520px)); aspect-ratio: var(--bts-ar, auto); }
.bts-photo a { display: block; height: 100%; }
.bts-photo__img { width: 100% !important; height: 100% !important; }
.bts-photo--cover .bts-photo__img { object-fit: cover; }
.bts-photo--contain .bts-photo__img { object-fit: contain; }
.bts-photo__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 48px 24px 22px;
	color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bts-photo__caption strong { font-size: 1.2rem; }
.bts-counter {
	position: absolute;
	top: 16px; right: 16px;
	z-index: 5;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: .85rem;
	padding: 4px 12px;
	border-radius: 20px;
}
@media (max-width: 900px) { .bts-photo { height: var(--bts-ph-m, var(--bts-h-m, 420px)); aspect-ratio: var(--bts-ar-m, auto); } }

/* ==========================================================================
   Pasek marek
   ========================================================================== */
.bts-marquee {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: var(--bts-bar-h, auto);
	aspect-ratio: var(--bts-bar-ar, auto);
}
.bts-marquee__track, .bts-marquee__group { height: 100%; }
.bts-marquee.has-fade {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.bts-marquee__track { display: flex; width: max-content; }
.bts.is-running .bts-marquee__track {
	animation: bts-marquee var(--bts-duration, 30s) linear infinite;
}
.bts-marquee.is-right .bts-marquee__track { animation-direction: reverse; }
.bts-marquee.pause-hover:hover .bts-marquee__track { animation-play-state: paused; }
.bts-marquee__group {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}
.bts-marquee__item {
	flex: 0 0 auto;
	margin: 0;
	padding: 0 calc(var(--bts-gap) * 2.5);
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--bts-item-h, var(--bts-logo-h, 110px));
}
.bts-marquee__item a { display: flex; align-items: center; height: 100%; }
.bts-logo { height: var(--bts-logo-h, 110px) !important; width: auto !important; max-width: 260px; object-fit: contain; transition: filter .3s, opacity .3s, transform .3s; }
.bts-marquee__item a:hover .bts-logo { transform: scale(1.05); }
.bts-marquee.is-gray .bts-logo { filter: grayscale(1); opacity: .7; }
.bts-marquee.is-gray .bts-marquee__item:hover .bts-logo { filter: none; opacity: 1; }
.bts-logo-text { font-size: 1.5rem; font-weight: 700; white-space: nowrap; color: #333; }

@keyframes bts-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--bts-shift, -50%), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.bts.is-running .bts-marquee__track { animation: none; }
	.bts-marquee { overflow-x: auto; }
	.bts-marquee__group.is-clone { display: none; }
}

/* ==========================================================================
   Responsywność – produkty
   ========================================================================== */
@media (max-width: 1023px) {
	.bts-products.has-panel.panel-left,
	.bts-products.has-panel.panel-right,
	.bts-products.has-panel.panel-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.bts-products.has-panel.panel-right .bts-panel { order: 0; }
	.bts-panel__inner { padding: min(var(--bts-panel-pad, 44px), 32px) min(var(--bts-panel-pad, 44px), 28px); }
	.bts-panel--align-left .bts-panel__bottom { align-items: flex-start; }
	.bts-bar { padding: 12px 16px 12px 24px; }
	.bts-bar__nav { gap: 8px; }

	.panel-m-bottom .bts-panel { order: 2 !important; }
	.panel-m-hide .bts-panel { display: none; }
	.panel-m-compact .bts-panel__icon,
	.panel-m-compact .bts-panel__text,
	.panel-m-compact .bts-panel__sub,
	.panel-m-compact .bts-panel__link { display: none; }
	.panel-m-compact .bts-panel__inner { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
	.panel-m-compact .bts-panel__top { flex: 1 1 auto; min-width: 0; }
	.panel-m-compact .bts-panel__bottom { flex: 0 0 auto; }
	.panel-m-compact .bts-panel__title { margin: 0; font-size: min(var(--bts-panel-title, 28px), 22px); }
	.panel-m-compact .bts-panel__btn { padding: 12px 18px; font-size: .8rem; }
}

/* Drobne poprawki */
.bts-marquee__item a, .bts-marquee__item a:hover { text-decoration: none; box-shadow: none; }
@media (max-width: 639px) {
	.bts--banners .bts-arrow--overlay { display: none; }
}

/* ==========================================================================
   Produkty – styl „Nowoczesny – jedna spójna sekcja”
   ========================================================================== */
.bts.no-nav .bts-bar.no-title { display: none; }
.bts.no-nav .bts-progress { display: none; }

.bts-products.style-section {
	--bts-sec-r: 28px;
	--bts-sec-pad: 14px;
	background: var(--bts-section-bg, #fff);
	border: 1px solid rgba(17, 24, 39, .06);
	border-radius: var(--bts-sec-r);
	padding: var(--bts-sec-pad);
	gap: 0;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -20px rgba(16, 24, 40, .18);
}

/* Panel jako część sekcji */
.style-section .bts-panel {
	border-radius: max(var(--bts-panel-radius, 0px), calc(var(--bts-sec-r) - var(--bts-sec-pad)));
	isolation: isolate;
}
.style-section .bts-panel__deco {
	position: absolute;
	z-index: 1;
	right: -90px;
	bottom: -90px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(255,255,255,.16), rgba(255,255,255,0) 68%);
	box-shadow: 0 0 0 46px rgba(255,255,255,.05), 0 0 0 92px rgba(255,255,255,.03);
	pointer-events: none;
}
.style-classic .bts-panel__deco { display: none; }
.style-section .bts-panel__inner { padding: var(--bts-panel-pad, 44px) calc(var(--bts-panel-pad, 44px) - 6px); }
.style-section .bts-panel__title { letter-spacing: -.015em; margin-bottom: 16px; }
.style-section .bts-panel__text { font-size: 1.05rem; line-height: 1.5; opacity: .92; }
.style-section .bts-panel__bottom {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.22);
	gap: 16px;
}
.style-section .bts-panel__sub { margin: 0; font-size: .95rem; }
.style-section .bts-panel__btn {
	justify-content: space-between;
	gap: 12px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	padding: 16px 20px;
	border-radius: 12px;
}
.style-section .bts-panel--align-center .bts-panel__btn { justify-content: center; }
.bts-btn__arrow { flex: 0 0 auto; transition: transform .25s ease; }
.bts-panel__btn:hover .bts-btn__arrow { transform: translateX(4px); }
.style-classic .bts-btn__arrow { display: none; }

/* Część z produktami */
.style-section .bts-products__main {
	padding: 22px 14px 12px 30px;
	gap: 0;
	justify-content: flex-start;
}
.style-section:not(.has-panel) .bts-products__main,
.style-section.panel-top .bts-products__main { padding: 22px 14px 12px; }
.style-section.panel-right .bts-products__main { padding: 22px 30px 12px 14px; }

.style-section .bts-bar {
	background: none;
	border: 0;
	border-radius: 0;
	min-height: 0;
	padding: 0 0 20px;
	align-items: flex-end;
}
.style-section .bts-bar.no-title { justify-content: flex-end; }
.style-section .bts-bar__title { font-size: 1.6rem; letter-spacing: -.015em; }
.style-section .bts-bar__titles .bts-head__small {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.style-section .bts-bar__nav { gap: 8px; align-items: center; }
.bts-bar__count { font-size: .9rem; color: #8a8a93; margin-right: 10px; font-variant-numeric: tabular-nums; }
.bts-bar__count b { color: #111; font-weight: 700; }

.bts-arrow--round {
	width: 42px;
	height: 42px;
	background: #fff;
	color: #111;
	box-shadow: inset 0 0 0 1px #e4e4e7;
}
.bts-arrow--round svg { width: 18px; height: 18px; }
.bts-arrow--round:hover:not(.is-disabled) { background: var(--bts-accent); color: #fff; box-shadow: none; }

/* Odstęp na cień kart przy przewijaniu */
.style-section .bts-viewport { padding: 4px; margin: -4px; }

/* Karty */
.style-section .bts-card {
	border: 1px solid #ececef;
	border-radius: 18px;
	box-shadow: none;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.style-section .bts-card:hover {
	border-color: #dcdce1;
	box-shadow: 0 14px 28px -16px rgba(16, 24, 40, .28);
	transform: translateY(-2px);
}
.style-section .bts-card__media {
	margin: 8px 8px 0;
	border-radius: 12px;
	background: #f5f5f7;
	border-bottom: 0;
}
.style-section .bts-card__media img {
	background: transparent;
	padding: 10%;
	mix-blend-mode: multiply;
}
.style-section .bts-card__img--placeholder { opacity: .5; }
.style-section .bts-card__badge { top: 10px; left: 10px; border-radius: 8px; }
.style-section .bts-card__body { padding: 16px 16px 16px; text-align: left; }
.style-section .bts-card__brand {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--bts-accent);
	margin-bottom: 6px;
}
.style-section .bts-card__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 14px;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.style-section .bts-card__price { font-size: 1.05rem; }
.style-section .bts-card__actions { gap: 8px; }
.style-section .bts-card__row { gap: 8px; }
.style-section .bts-qty { height: 42px; border-color: #e4e4e7; border-radius: 10px; }
.style-section .bts-stock { width: 42px; height: 42px; border-radius: 10px; }
.style-section .bts-card .bts-btn--primary {
	gap: 8px;
	height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: .9rem;
	white-space: nowrap;
}
.style-section .bts-card .bts-btn--primary span { overflow: hidden; text-overflow: ellipsis; }
.bts-btn__icon { flex: 0 0 auto; }

/* Pasek postępu */
.bts-progress {
	margin-top: 20px;
	height: 4px;
	border-radius: 4px;
	background: #ececef;
	overflow: hidden;
}
.bts-progress span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: var(--bts-accent);
	transition: width .45s ease, margin-left .45s cubic-bezier(.25,.8,.25,1);
}

@media (max-width: 1023px) {
	.bts-products.style-section { --bts-sec-r: 22px; --bts-sec-pad: 10px; }
	.style-section .bts-products__main,
	.style-section.panel-right .bts-products__main,
	.style-section:not(.has-panel) .bts-products__main { padding: 20px 8px 8px; }
	.style-section.has-panel { gap: 0; }
	.style-section .bts-bar__title { font-size: 1.3rem; }
	.style-section .bts-panel__bottom { margin-top: 20px; padding-top: 18px; }
	.style-section.panel-m-compact .bts-panel__bottom { margin: 0; padding: 0; border: 0; }
	.style-section.panel-m-compact .bts-panel__btn { padding: 10px 14px; font-size: .85rem; }
	.style-section.panel-m-compact .bts-panel__btn .bts-btn__arrow { width: 16px; }
}
@media (max-width: 639px) {
	.bts-bar__count { display: none; }
	.style-section .bts-bar { align-items: center; }
}
@media (min-width: 1024px) {
	.style-section.panel-top .bts-panel__bottom { border-top: 0; margin-top: 0; padding-top: 0; min-width: 260px; }
}
