/**
 * PDP v2 gallery — izolowane style (bez legacy klas galerii).
 */

/* —— PDP info accordion (materiał, szczegóły, rozmiar) —— */
.pdp-v2-info-accordion {
	width: 100%;
	margin-top: 24px;
	color: #1a1a1a;
	font-family: "rationaldisplay-book", sans-serif;
	border: none !important;
	border-top: none !important;
	box-shadow: none;
}

.pdp-v2-info-accordion::before,
.pdp-v2-info-accordion::after {
	content: none !important;
	display: none !important;
}

@media (min-width: 992px) {
	.pdp-v2-product-single .pdp-v2-info-accordion.d-none.d-lg-block {
		margin-top: 32px;
		padding-left: 30px !important;
		padding-right: 24px !important;
	}
}

.pdp-v2-info-accordion__item {
	border-top: none !important;
	border-bottom: 1px solid #e7e7e7;
}

.pdp-v2-info-accordion__item:first-child {
	border-top: none !important;
}

.pdp-v2-info-accordion__heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.pdp-v2-info-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 20px 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.pdp-v2-info-accordion__label {
	font-family: "rationaldisplay-medium", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.pdp-v2-info-accordion__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.pdp-v2-info-accordion__icon .pdp-v2-swiper-nav__svg {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.pdp-v2-info-accordion__trigger[aria-expanded="true"] .pdp-v2-info-accordion__icon .pdp-v2-swiper-nav__svg {
	transform: rotate(-90deg);
}

.pdp-v2-info-accordion__panel {
	max-height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
	transition: max-height 0.3s ease;
}

.pdp-v2-info-accordion__item.is-open .pdp-v2-info-accordion__panel {
	max-height: 1000px;
}

.pdp-v2-info-accordion__panel-inner {
	padding: 0;
	margin: 0;
	font-size: 14px;
	line-height: 24px;
	color: #3a3533;
}

.pdp-v2-info-accordion__item.is-open .pdp-v2-info-accordion__panel-inner {
	padding-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
	.pdp-v2-info-accordion__panel,
	.pdp-v2-info-accordion__icon .pdp-v2-swiper-nav__svg {
		transition: none;
	}

	.pdp-v2-info-accordion__item:not(.is-open) .pdp-v2-info-accordion__panel {
		max-height: 0;
	}

	.pdp-v2-info-accordion__item.is-open .pdp-v2-info-accordion__panel {
		max-height: none;
	}
}

.pdp-v2-info-accordion__richtext p:last-child {
	margin-bottom: 0;
}

.pdp-v2-info-accordion__advantages-grid .product-single-advantage h3 {
	font-size: 14px;
	line-height: 1.4;
	margin-top: 12px;
	white-space: normal;
}

.pdp-v2-info-accordion__advantages-grid img {
	max-width: 64px;
	height: auto;
}

.pdp-gallery-v2 {
	display: block;
	width: 100%;
	position: relative;
	padding: 16px;
}

@media (min-width: 992px) {
	.pdp-gallery-v2 {
		display: grid;
		grid-template-columns: 150px minmax(0, 1fr);
		column-gap: 20px;
		align-items: start;
	}

	.pdp-gallery-v2__thumbs-swiper {
		position: absolute;
		inset: 0;
		width: 150px;
		overflow: hidden;
		box-sizing: border-box;
		padding: 0;
	}
}

.pdp-gallery-v2__thumbs {
	position: relative;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	width: 150px;
	min-height: 0;
	box-sizing: border-box;
}

.pdp-gallery-v2__thumbs-nav,
.pdp-gallery-v2__main-nav {
	display: none;
}

@media (min-width: 992px) {
	.pdp-gallery-v2__thumbs.is-nav-active:hover .pdp-gallery-v2__thumbs-nav {
		display: flex;
	}
}

.pdp-gallery-v2__thumbs .pdp-gallery-v2__thumbs-nav.swiper-button-prev,
.pdp-gallery-v2__thumbs .pdp-gallery-v2__thumbs-nav.swiper-button-next {
	position: absolute;
	left: 50%;
	right: auto;
	z-index: 2;
	flex: 0 0 auto;
	margin-top: 0;
	margin-bottom: 0;
	display: none;
	justify-content: center;
	align-items: center;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 100%;
	color: #000;
}

.pdp-gallery-v2__thumbs .pdp-gallery-v2__thumbs-nav.swiper-button-prev {
	top: 0;
	bottom: auto;
	transform: translateX(-50%);
}

.pdp-gallery-v2__thumbs .pdp-gallery-v2__thumbs-nav.swiper-button-next {
	bottom: 0;
	top: auto;
	transform: translateX(-50%);
}

.pdp-gallery-v2__thumbs .pdp-gallery-v2__thumbs-nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.pdp-gallery-v2__thumbs-swiper .swiper-slide.pdp-gallery-v2__thumb-slide {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	flex-shrink: 0;
	box-sizing: border-box;
	padding-left: 1px;
	padding-right: 1px;
}

.pdp-gallery-v2__thumbs-swiper .swiper-slide.pdp-gallery-v2__thumb-slide:first-child {
	padding-top: 1px;
}

.pdp-gallery-v2__thumbs-swiper .swiper-slide.pdp-gallery-v2__thumb-slide:last-child {
	padding-bottom: 1px;
}

.pdp-gallery-v2__thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 16px;
	background: transparent;
	cursor: pointer;
	overflow: visible;
	appearance: none;
	-webkit-appearance: none;
	line-height: 0;
	font: inherit;
	outline: none;
	box-shadow: none;
}

.pdp-gallery-v2__thumb:hover,
.pdp-gallery-v2__thumb:focus,
.pdp-gallery-v2__thumb:focus-visible {
	outline: none;
	box-shadow: none;
	border: 0;
}

.pdp-gallery-v2__thumb.is-active {
	outline: 2px solid #000 !important;
	outline-offset: -1px;
	box-shadow: none;
	border: 0;
}

.pdp-gallery-v2__thumb-img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center top;
	display: block;
	border: 0;
	border-radius: 16px;
	outline: none;
	box-shadow: none;
}

.pdp-gallery-v2__main {
	position: relative;
	min-width: 0;
	width: 100%;
}

.pdp-gallery-v2__viewport.swiper {
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
}

.pdp-gallery-v2__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	box-sizing: border-box;
	padding: 16px;
	text-align: center;
	pointer-events: none;
}

.pdp-gallery-v2__bar-text {
	margin: 0;
	font-family: rationaldisplay-medium, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

@media (max-width: 991.98px) {
	.pdp-gallery-v2__bar-text {
		font-size: 16px;
	}
}

.pdp-gallery-v2__top-note {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 2;
	padding: 8px;
	background-color: #fff;
}

.pdp-gallery-v2__top-note span {
	font-size: 11px;
	line-height: 1.45;
	letter-spacing: 0.22px;
	text-transform: uppercase;
}

.pdp-gallery-v2__slide,
.pdp-gallery-v2__zoom-link {
	width: 100%;
}

.pdp-gallery-v2__zoom-link {
	outline: none !important;
	text-decoration: none;
}

.pdp-gallery-v2__slide-img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
	vertical-align: top;
}

@media (max-width: 991.98px) {
	.single-product .pdp-v2-gallery-shell {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-left: 0;
		padding-right: 0;
	}

	.pdp-v2-gallery-shell .pdp-gallery-v2 {
		display: block;
		width: 100%;
		padding: 0;
		-webkit-tap-highlight-color: transparent;
	}

	.pdp-gallery-v2__viewport.swiper,
	.pdp-gallery-v2__slide-img,
	.pdp-gallery-v2__zoom-link img {
		border-radius: 0 !important;
	}

	.pdp-gallery-v2__zoom-link {
		pointer-events: none;
		cursor: default;
	}

	.pdp-gallery-v2__zoom-link,
	.pdp-gallery-v2__zoom-link:focus,
	.pdp-gallery-v2__zoom-link:focus-visible,
	.pdp-gallery-v2__slide-img:focus,
	.pdp-gallery-v2__slide-img:focus-visible {
		outline: none !important;
		box-shadow: none !important;
	}

	.pdp-gallery-v2__fraction {
		position: absolute;
		left: 12px;
		bottom: 12px;
		z-index: 3;
		padding: 6px 8px;
		background: #fff;
		border-radius: 4px;
		pointer-events: none;
	}

	.pdp-gallery-v2__fraction-text {
		font-size: 12px;
		line-height: 1;
		letter-spacing: 0.02em;
		color: #1a1a1a;
	}

	.pdp-gallery-v2.is-main-nav-active .pdp-gallery-v2__main-nav {
		display: flex;
	}

	.pdp-gallery-v2__main-nav {
		position: absolute;
		top: 50%;
		z-index: 4;
		width: 32px;
		height: 32px;
		border: 0;
		padding: 0;
		margin: 0;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
		cursor: pointer;
		align-items: center;
		justify-content: center;
		color: #1a1a1a;
		box-sizing: border-box;
		transform: translateY(-50%);
	}

	.pdp-gallery-v2__main-nav--prev {
		left: 6px;
	}

	.pdp-gallery-v2__main-nav--next {
		right: 6px;
	}

	.pdp-gallery-v2__main-nav:disabled,
	.pdp-gallery-v2__main-nav.swiper-button-disabled {
		opacity: 0.35;
		cursor: default;
		pointer-events: none;
	}

}