/**
 * Peletto — auction-style product page.
 *
 * Loaded only for products using the new layout. Base tokens, panels,
 * buttons, specs and docs come from the Peletto Aukcje stylesheet
 * (all scoped to .pa-page); this file adapts the WooCommerce purchase panel
 * and adds the product-only variant/media/FAQ cards.
 */

/* ---------------------------------------------------------
   Page shell / breadcrumbs
   --------------------------------------------------------- */

.pp-single {
	padding-bottom: 34px;
}

/*
 * The theme adds 40px above the WooCommerce content wrapper. The auction
 * layout starts with its own breadcrumb bar, so the extra gap is removed for
 * new product pages only.
 */
body.pp-new-product-layout .main-items__content {
	padding-top: 0;
}

.pp-breadcrumbs {
	min-width: 0;
	color: var(--pa-muted);
	font-size: 11px;
	line-height: 1.5;
}

.pp-breadcrumbs #breadcrumbs,
.pp-breadcrumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0;
	color: var(--pa-muted);
	font-size: 11px;
}

.pp-breadcrumbs a {
	color: var(--pa-muted);
	font-weight: 500;
}

.pp-breadcrumbs a:hover,
.pp-breadcrumbs a:focus {
	color: var(--pa-ink);
}

.pp-breadcrumbs .breadcrumb_last {
	color: var(--pa-ink);
	font-weight: 600;
}

.pp-crumb-sep {
	color: var(--pa-border-strong);
}

.pp-single .pa-single__topbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/*
 * The auction stylesheet makes .pa-gallery sticky from 781px up. In the
 * product layout the purchase panel is stacked below the gallery at tablet
 * widths, so the sticky gallery makes the panel scroll over the photos in
 * Chrome. Sticky is therefore restricted to the two-column desktop layout.
 */
.pp-single .pa-gallery {
	position: relative;
	top: auto;
}

/*
 * Restore the auction sticky-gallery behaviour only for the true two-column
 * desktop layout. Below 1101px the purchase panel is stacked under the
 * gallery, so sticky would make the panel scroll over the photos.
 */
@media (min-width: 1101px) {
	.pp-single .pa-gallery {
		position: sticky;
		top: 24px;
	}
}

/*
 * Fallback while slick is loading (or if another script throws before it
 * initialises). Without this the main slider is `display:none`, the gallery
 * collapses and the purchase panel jumps above the photos in Chrome.
 */
.pp-single .product-slider__main:not(.slick-initialized) {
	display: block;
	width: 100%;
}

.pp-single .product-slider__main:not(.slick-initialized) .product-slider__main-item {
	display: none;
}

.pp-single .product-slider__main:not(.slick-initialized) .product-slider__main-item:first-child {
	display: block;
}

.pp-single .product-slider__thmb:not(.slick-initialized) {
	display: flex;
	gap: 10px;
	overflow: hidden;
	margin-top: 10px;
}

.pp-single .product-slider__thmb:not(.slick-initialized) .product-slider__thmb-item {
	flex: 0 0 25%;
	width: 25%;
	padding-left: 0;
}

/* ---------------------------------------------------------
   Purchase panel (replaces the auction bid panel)
   --------------------------------------------------------- */

.pp-purchase {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pp-purchase .pa-bid-panel__title {
	margin-bottom: 12px;
	font-size: clamp(22px, 2.2vw, 30px);
}

.pp-purchase .pa-bid-panel__meta {
	gap: 6px 18px;
}

.pp-purchase .pa-bid-panel__meta .pp-meta-wide {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	flex-basis: 100%;
	width: 100%;
}

.pp-purchase .pa-bid-panel__meta .pp-meta-wide > span {
	flex: 0 0 auto;
	white-space: nowrap;
}

.pp-purchase .pa-bid-panel__meta .pp-meta-wide > strong {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.pp-purchase .pa-bid-panel__meta strong a {
	color: var(--pa-ink);
}

.pp-purchase .pa-bid-panel__meta strong a:hover,
.pp-purchase .pa-bid-panel__meta strong a:focus {
	color: var(--pa-accent);
}

.pp-purchase__lead {
	margin-top: 14px;
	color: var(--pa-muted);
	font-size: 13px;
	line-height: 1.6;
}

.pp-purchase__lead p {
	margin: 0;
}

.pp-purchase__lead p + p {
	margin-top: 8px;
}

.pp-purchase__body {
	padding-top: 18px;
}

/*
 * The WooCommerce add-to-cart template prints its own title, SKU list and
 * stock line. The purchase panel already prints them above, so hide the
 * duplicates. The price / options / quantity / buttons stay untouched.
 */
.pp-purchase__body > .stock,
.pp-purchase__body .title_big,
.pp-purchase__body .short-characteristics {
	display: none;
}

/* ---------------------------------------------------------
   Options
   --------------------------------------------------------- */

.pp-purchase .product-options {
	margin: 0 0 18px;
	padding: 12px;
	border: 0;
	border-left: 5px solid var(--pa-accent);
	border-radius: 4px;
	background: #0f1115;
	box-shadow: none;
}

.pp-purchase .product-options__head {
	display: block;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pp-purchase .product-options__title {
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.pp-purchase .product-options__lead {
	margin: 6px 0 0;
	color: #9ca3af;
	font-size: 11.5px;
	line-height: 1.4;
}

.pp-purchase .product-options__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pp-purchase .product-option {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pp-purchase .product-option__label {
	color: #d1d5db;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.pp-purchase .product-option__field {
	position: relative;
}

.pp-purchase .product-option select {
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 40px 0 12px;
	border: 2px solid transparent;
	border-radius: 3px;
	background: #fff;
	color: #0f1115;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.pp-purchase .product-option select:focus {
	border-color: var(--pa-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(224, 81, 0, .25);
}

.pp-purchase .woocommerce-variation-price {
	margin: 10px 0;
	padding: 12px 14px;
	border: 1px solid var(--pa-border);
	border-radius: 4px;
	background: var(--pa-surface);
	font-size: 13px;
}

.pp-purchase .woocommerce-variation-availability {
	margin: 10px 0;
	font-size: 12px;
}

/* ---------------------------------------------------------
   Price, quantity and buttons
   --------------------------------------------------------- */

.pp-purchase .product-page__top-wrapper {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	margin: 20px 0 18px;
	padding: 18px 0;
}

.pp-purchase .prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
}

.pp-purchase .prices br {
	display: none;
}

.pp-purchase .prices__price {
	margin: 0;
	color: var(--pa-muted);
	font-size: 12px;
	font-weight: 500;
}

.pp-purchase .prices__price_netto {
	color: var(--pa-muted);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}

.pp-purchase .prices__price_big {
	color: var(--pa-ink);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.7px;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.pp-purchase .prices__variation-name {
	flex-basis: 100%;
	min-height: 0;
	margin-top: 2px;
	color: var(--pa-muted);
	font-size: 12px;
}

.pp-purchase .quantity {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	width: max-content;
	padding: 4px;
	border: 1px solid var(--pa-border);
	border-radius: 999px;
	background: var(--pa-surface);
}

/* WooCommerce wraps the input in a nested .quantity element; reset it. */
.pp-purchase .quantity .quantity {
	display: flex;
	align-items: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.pp-purchase .quantity > .quantity__minus,
.pp-purchase .quantity > .quantity__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--pa-ink);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(20, 23, 27, .08);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.pp-purchase .quantity > .quantity__minus:hover,
.pp-purchase .quantity > .quantity__plus:hover {
	background: var(--pa-accent);
	color: #fff;
	box-shadow: 0 2px 6px rgba(224, 81, 0, .25);
}

.pp-purchase .quantity input {
	width: 42px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pa-ink);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.pp-purchase .quantity input::-webkit-outer-spin-button,
.pp-purchase .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pp-purchase .quantity input:focus {
	outline: none;
}

.pp-purchase .btn-block {
	margin-top: 18px;
}

.pp-purchase .btn-block .row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
}

.pp-purchase .btn-block .col {
	width: auto;
	padding: 0;
}

.pp-purchase .btn-block .btn,
.pp-purchase .btn-block .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .4px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pp-purchase .btn-block .single_add_to_cart_button {
	background: var(--pa-accent);
	border-color: var(--pa-accent);
	color: #fff;
}

.pp-purchase .btn-block .single_add_to_cart_button:hover,
.pp-purchase .btn-block .single_add_to_cart_button:focus {
	background: var(--pa-accent-dark);
	border-color: var(--pa-accent-dark);
	color: #fff;
}

.pp-purchase .btn-block a.btn {
	background: var(--pa-ink);
	border-color: var(--pa-ink);
	color: #fff;
}

.pp-purchase .btn-block a.btn:hover,
.pp-purchase .btn-block a.btn:focus {
	background: #2b313a;
	border-color: #2b313a;
	color: #fff;
}

.pp-purchase .btn-block .btn_tr,
.pp-purchase .btn-block a.btn_tr {
	background: #fff;
	border-color: var(--pa-accent);
	color: var(--pa-accent);
}

.pp-purchase .btn-block .btn_tr:hover,
.pp-purchase .btn-block a.btn_tr:hover,
.pp-purchase .btn-block .btn_tr:focus,
.pp-purchase .btn-block a.btn_tr:focus {
	background: #fff;
	border-color: var(--pa-accent);
	color: var(--pa-accent);
	box-shadow: 0 2px 8px rgba(224, 81, 0, .14);
}

.pp-purchase .btn-block .btn span {
	pointer-events: none;
}

.pp-financing-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--pa-border-strong);
	border-radius: 4px;
	background: #fff;
	color: var(--pa-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.pp-financing-btn svg {
	flex: 0 0 auto;
	color: var(--pa-accent);
}

.pp-financing-btn:hover,
.pp-financing-btn:focus {
	border-color: var(--pa-accent);
	background: #fff;
	color: var(--pa-accent);
}

.pp-purchase__tags {
	margin-top: 12px;
	color: var(--pa-muted);
	font-size: 11px;
	line-height: 1.55;
}

.pp-purchase__tags > span {
	font-weight: 700;
}

.pp-purchase__tags a {
	color: var(--pa-muted);
	text-decoration: underline;
	text-decoration-color: var(--pa-border-strong);
	text-underline-offset: 2px;
}

.pp-purchase__tags a:hover,
.pp-purchase__tags a:focus {
	color: var(--pa-ink);
}

/* ---------------------------------------------------------
   Content panels
   --------------------------------------------------------- */

.pp-content {
	padding-top: 8px;
}

/* Plain bullet lists inside the description (no duplicated check icons). */
.pp-desc-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 1.1em;
	padding: 0;
	list-style: none;
}

.pp-desc-list:last-child {
	margin-bottom: 0;
}

.pp-desc-list li {
	position: relative;
	padding-left: 16px;
	color: var(--pa-text);
	font-size: 14px;
	line-height: 1.65;
}

.pp-desc-list li::before {
	content: "";
	position: absolute;
	top: .64em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--pa-accent);
}

.pp-desc-list--warn li::before {
	background: var(--pa-amber);
}

.pp-specs__group-title {
	margin: 0 0 10px;
	color: var(--pa-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.pp-specs__group-title:not(:first-child) {
	margin-top: 22px;
}

/* Variants */

.pp-variants {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.pp-variant {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pa-border);
	border-radius: 8px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.pp-variant:hover {
	border-color: var(--pa-border-strong);
	box-shadow: var(--pa-shadow);
}

.pp-variant__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 170px;
	overflow: hidden;
	background: var(--pa-surface);
}

.pp-variant__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 300px;
	object-fit: cover;
}

.pp-variant__media--empty {
	color: var(--pa-soft);
}

.pp-variant__body {
	padding: 16px 18px 18px;
}

.pp-variant__title {
	margin: 0 0 6px;
	color: var(--pa-ink);
	font-size: 15px;
	line-height: 1.35;
}

.pp-variant__desc {
	color: var(--pa-text);
	font-size: 13px;
	line-height: 1.65;
}

.pp-variant__desc p {
	margin: 0 0 .7em;
}

.pp-variant__desc p:last-child {
	margin-bottom: 0;
}

/* Animations / video / drawings */

.pp-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.pp-media {
	margin: 0;
}

.pp-media__frame {
	display: block;
	overflow: hidden;
	border: 1px solid var(--pa-border);
	border-radius: 8px;
	background: var(--pa-surface);
}

.pp-media__frame img {
	display: block;
	width: 100%;
	height: auto;
}

.pp-media__frame--video {
	position: relative;
	background: #000;
	aspect-ratio: 16 / 9;
}

.pp-media__frame--video iframe,
.pp-media__frame--video video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.pp-media__frame--drawing {
	display: block;
	width: 100%;
	padding: 0;
	font: inherit;
	text-align: left;
	cursor: zoom-in;
	appearance: none;
}

.pp-media__frame--drawing:hover,
.pp-media__frame--drawing:focus {
	border-color: var(--pa-border-strong);
}

/* Videos get the whole row; GIFs stay in a compact two-column grid. */
#pp-media .pp-media--video {
	grid-column: 1 / -1;
}

/* Technical drawings should be readable, so they use the full content width. */
#pp-rysunki .pp-media-grid {
	grid-template-columns: 1fr;
}

#pp-rysunki .pp-media__frame--drawing {
	background: #fff;
}

#pp-rysunki .pp-media__frame--drawing img {
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	max-height: none;
	object-fit: contain;
}

.pp-media__caption {
	margin-top: 8px;
	color: var(--pa-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* FAQ */

.pp-faq {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pp-faq__item {
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.pp-faq__item[open] {
	border-color: transparent;
}

.pp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--pa-border);
	color: var(--pa-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	outline: none;
}

.pp-faq__q:focus-visible {
	color: var(--pa-accent);
}

.pp-faq__q::-webkit-details-marker {
	display: none;
}

.pp-faq__mark {
	position: relative;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

.pp-faq__mark::before,
.pp-faq__mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--pa-accent);
	transform: translate(-50%, -50%);
}

.pp-faq__mark::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.pp-faq__item[open] .pp-faq__mark::after {
	transform: translate(-50%, -50%) rotate(0);
}

.pp-faq__a {
	padding: 12px 0 16px;
	color: var(--pa-text);
	font-size: 13.5px;
	line-height: 1.7;
}

.pp-faq__a p {
	margin: 0 0 .7em;
}

.pp-faq__a p:last-child {
	margin-bottom: 0;
}

/* See also */

.pp-see-also {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
}

.pp-see-also li {
	min-width: 0;
	margin: 0;
}

.pp-see-also a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--pa-ink);
	text-decoration: none;
	transition: color .18s ease;
}

.pp-see-also a:hover,
.pp-see-also a:focus {
	color: var(--pa-accent);
}

.pp-link-card__copy {
	display: block;
	min-width: 0;
}

.pp-link-card__meta {
	display: none;
}

.pp-link-card__title {
	display: block;
	color: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.pp-see-also a:hover .pp-link-card__title,
.pp-see-also a:focus .pp-link-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pp-link-card__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	background: transparent;
	color: var(--pa-accent);
	transition: transform .18s ease;
}

.pp-see-also a:hover .pp-link-card__arrow,
.pp-see-also a:focus .pp-link-card__arrow {
	background: transparent;
	color: var(--pa-accent);
	transform: translateX(3px);
}

/* Terms in the sidebar are always stacked vertically. */
.pp-single .pa-terms {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pp-single .pa-terms__item {
	width: 100%;
}

/* Managers */

.pp-managers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.pp-manager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--pa-border);
	border-radius: 6px;
	background: var(--pa-surface);
}

.pp-manager__copy strong {
	display: block;
	color: var(--pa-ink);
	font-size: 13.5px;
}

.pp-manager__copy span {
	color: var(--pa-muted);
	font-size: 11.5px;
}

.pp-manager__phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pa-accent);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* Manager contacts inside the seller panel. */
.pp-seller-managers {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--pa-border);
}

.pp-seller-managers__head {
	margin-bottom: 10px;
}

.pp-seller-managers__head strong {
	display: block;
	color: var(--pa-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .7px;
	line-height: 1.3;
	text-transform: uppercase;
}

.pp-seller-managers__head span {
	display: block;
	margin-top: 3px;
	color: var(--pa-muted);
	font-size: 11px;
	line-height: 1.45;
}

.pp-managers--seller {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pp-manager--seller {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: center;
	gap: 4px 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.pp-manager--seller .pp-manager__avatar {
	display: inline-flex;
	grid-column: 1;
	grid-row: 1 / span 2;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f5f5f5;
	color: var(--pa-accent);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .4px;
	line-height: 1;
}

.pp-manager--seller .pp-manager__copy {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.pp-manager--seller .pp-manager__copy strong {
	font-size: 12.5px;
	line-height: 1.3;
}

.pp-manager--seller .pp-manager__copy span {
	display: block;
	margin-top: 1px;
	font-size: 10.5px;
	line-height: 1.35;
}

.pp-manager--seller .pp-manager__phone {
	grid-column: 2;
	grid-row: 2;
	justify-self: start;
	font-size: 12px;
	line-height: 1.3;
	text-decoration: none;
}

.pp-manager--seller .pp-manager__phone svg {
	flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
	.pp-single .pa-single__layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.pp-single .pa-gallery {
		order: 1;
		width: 100%;
		min-width: 0;
	}

	.pp-single .pp-purchase {
		order: 2;
		width: 100%;
		max-width: none;
	}

	.pp-single .pa-single__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.pp-single .pa-single__layout {
		padding-top: 20px;
		padding-bottom: 16px;
	}

	.pp-single .pp-content {
		padding-top: 0;
	}

	.pp-single .pa-single__main {
		gap: 12px;
	}

	.pp-single .pa-panel__head {
		padding: 14px 12px;
	}

	.pp-single .pa-panel__body {
		padding: 12px;
	}

	.pp-single .pa-prose p {
		margin-bottom: .85em;
	}

	#pp-warianty .pa-panel__body {
		padding-left: 0;
		padding-right: 0;
	}

	#pp-warianty .pp-variants {
		gap: 12px;
	}
}

/* ---------------------------------------------------------
   WooCommerce integration blocks
   --------------------------------------------------------- */

/*
 * The auction promo is printed above the product layout. It keeps the exact
 * markup used on classic product pages, so the plugin's countdown, analytics
 * and responsive rules continue to work.
 */
.pp-product-promo-slot {
	margin: 18px 0 0;
}

.pp-product-promo-slot:empty {
	display: none;
}

/*
 * Standard woocommerce_before_single_product_summary output (sale flash and
 * add-on badges). The core gallery callback is disabled for this layout.
 */
.pp-gallery-hooks {
	display: block;
	margin: 0 0 10px;
}

.pp-gallery-hooks:empty {
	display: none;
}

.pp-gallery-hooks .onsale {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 8px 8px 0;
	padding: 5px 10px;
	border-radius: 3px;
	background: var(--pa-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .6px;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Rating is rendered by the standard woocommerce_single_product_summary hook. */
.pp-purchase__body .woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 14px;
}

.pp-purchase__body .woocommerce-review-link {
	color: var(--pa-muted);
	font-size: 11.5px;
}

.pp-purchase__body .woocommerce-review-link:hover,
.pp-purchase__body .woocommerce-review-link:focus {
	color: var(--pa-accent);
}

.pp-purchase__body .star-rating {
	position: relative;
	display: inline-block;
	overflow: hidden;
	width: 5.4em;
	height: 1em;
	color: var(--pa-accent);
	font-family: star;
	font-size: 13px;
	line-height: 1;
}

.pp-purchase__body .star-rating::before {
	content: "sssss";
	position: absolute;
	top: 0;
	left: 0;
	color: #d7d9de;
}

.pp-purchase__body .star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.pp-purchase__body .star-rating span::before {
	content: "SSSSS";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--pa-accent);
}

/*
 * WooCommerce Brands and other meta_end callbacks are printed after the
 * custom meta list. Keep them visually attached to it.
 */
.pp-purchase .brand,
.pp-purchase .product_meta {
	margin: 10px 0 0;
	color: var(--pa-muted);
	font-size: 11.5px;
	line-height: 1.5;
}

.pp-purchase .brand a,
.pp-purchase .product_meta a {
	color: var(--pa-ink);
	font-weight: 600;
}

.pp-purchase .brand a:hover,
.pp-purchase .brand a:focus,
.pp-purchase .product_meta a:hover,
.pp-purchase .product_meta a:focus {
	color: var(--pa-accent);
}

/* Standard notices must keep the same width as the product content. */
body.pp-new-product-layout .woocommerce-notices-wrapper {
	margin: 0 20px 14px;
}

body.pp-new-product-layout .woocommerce-message,
body.pp-new-product-layout .woocommerce-info,
body.pp-new-product-layout .woocommerce-error {
	margin: 0 0 10px;
	padding: 11px 14px;
	border-radius: 4px;
	font-size: 12.5px;
	line-height: 1.5;
}

body.pp-new-product-layout .woocommerce-message {
	background: #0a7d5a;
	color: #fff;
}

body.pp-new-product-layout .woocommerce-message a {
	color: #fff;
	text-decoration: underline;
}

body.pp-new-product-layout .woocommerce-info {
	border: 1px solid var(--pa-border);
	color: var(--pa-ink);
}

body.pp-new-product-layout .woocommerce-error {
	background: #b42318;
	color: #fff;
}

body.pp-new-product-layout .woocommerce-error a {
	color: #fff;
}

/*
 * Plugin-added WooCommerce tabs keep the standard markup. Default tabs are
 * filtered out for this layout, but third-party tabs still render here.
 */
.pp-single .woocommerce-tabs {
	margin: 0 0 32px;
	padding: 24px;
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius);
	background: #fff;
}

.pp-single .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
	border-bottom: 1px solid var(--pa-border);
	list-style: none;
}

.pp-single .woocommerce-tabs ul.tabs::before,
.pp-single .woocommerce-tabs ul.tabs::after {
	display: none;
}

.pp-single .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.pp-single .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 12px;
	border-bottom: 2px solid transparent;
	color: var(--pa-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	text-decoration: none;
	text-transform: uppercase;
}

.pp-single .woocommerce-tabs ul.tabs li.active a,
.pp-single .woocommerce-tabs ul.tabs li a:hover,
.pp-single .woocommerce-tabs ul.tabs li a:focus {
	border-bottom-color: var(--pa-accent);
	color: var(--pa-ink);
}

.pp-single .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
}

/* Standard upsells keep their native markup and use the theme card styles. */
.pp-single .upsells.products {
	margin: 0 0 40px;
}

.pp-single .upsells.products > h2 {
	margin: 0 0 18px;
	color: var(--pa-ink);
	font-size: clamp(20px, 2.2vw, 30px);
	font-weight: 700;
	letter-spacing: -.4px;
	line-height: 1.2;
}

/* Variant cards without a photo should not reserve a giant empty area. */
.pp-variant__media--empty {
	min-height: 0;
	padding: 0;
	background: transparent;
}

@media (max-width: 780px) {
	.pp-variants,
	.pp-media-grid,
	.pp-managers,
	.pp-see-also {
		grid-template-columns: 1fr;
	}

	/*
	 * On phones the media block should not become a full-screen wall of
	 * GIF/video. Keep a predictable 16:9 video box and cap tall images.
	 */
	#pp-media .pp-media__frame {
		width: 100% !important;
		height: auto !important;
	}

	#pp-media .pp-media__frame--video {
		aspect-ratio: 16 / 9;
	}

	#pp-media .pp-media__frame img {
		display: block;
		width: auto !important;
		max-width: 100%;
		height: auto !important;
		max-height: 55vh;
		margin: 0 auto;
		object-fit: contain;
	}

	.pp-purchase .btn-block .row {
		grid-template-columns: 1fr;
	}

	.pp-purchase .pa-bid-panel__title {
		font-size: 24px;
	}

	.pp-purchase .prices__price_big {
		font-size: 24px;
	}
}
