/**
 * Supplier premium product page — design/BOZPOshop PUMA kategoria a produkt (1).html,
 * "Turn 8" (8a–8c). Loaded only for products of a supplier with the premium
 * template on (inc/supplier-template.php), on top of single-product.css.
 *
 * The supplier/collection palette arrives as --sup-* custom properties on
 * body.bozpo-sup (inline style); fixed colours are tokens.
 *
 * @package Bozpo_Custom
 */

.bozpo-sup {
	--sup-head-bg: var(--c-hero-band);
	--sup-head-line: var(--c-hero-line);
	--sup-accent: var(--color-primary);
	--sup-accent-dark: var(--color-primary-strong);
	--sup-dark: var(--c-band-dark);
	--sup-chip-bg: var(--surface-soft);
	--sup-chip-line: var(--color-border);
}

/* ============================== Hero band ============================== */
.sup-hero {
	position: relative;
	overflow: hidden;
	padding-bottom: var(--space-20);
	background: var(--sup-head-bg);
}

/* Campaign photo, fading out from the top-right corner. */
.sup-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 1000px;
	height: 300px;
	background: var(--sup-photo) right top / cover no-repeat;
	opacity: .4;
	-webkit-mask-image: radial-gradient(100% 90% at 100% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(100% 90% at 100% 0%, #000 20%, transparent 75%);
	pointer-events: none;
}

.sup-hero > * {
	position: relative;
}

.sup-hero .crumb {
	background: transparent;
	border-bottom: 0;
}

.sup-hero .crumb__current {
	color: var(--c-hero-ink);
}

.bozpo-sup .product {
	padding-top: var(--space-6);
	row-gap: var(--space-18);
}

/* Mobile order: brand strip → gallery → title → buy area. */
.bozpo-sup .gallery {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.bozpo-sup .product-title {
	order: 2;
}

.bozpo-sup .info {
	order: 3;
}

/* ------------------------------ Gallery ------------------------------ */
.bozpo-sup .stage {
	order: 2;
	background: var(--surface);
	border: 0;
	border-radius: var(--radius-14);
	box-shadow: var(--shadow-sup-card);
}

.bozpo-sup .stage__img {
	max-width: 88%;
	max-height: 88%;
}

.sup-linetag,
.sup-saletag {
	position: absolute;
	top: var(--space-16);
	z-index: 2;
	padding: var(--space-6) var(--space-11);
	color: var(--on-primary);
	font-size: var(--text-10-5);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: var(--radius-pill);
}

.sup-linetag {
	left: var(--space-16);
	background: var(--sup-dark);
}

.sup-saletag {
	right: var(--space-16);
	font-size: var(--text-11);
	font-weight: 700;
	letter-spacing: .06em;
	background: var(--c-sale);
}

.sup-saletag[hidden] {
	display: none;
}

/* Brand + collection strip. */
.sup-strip {
	order: 1;
	display: flex;
	align-items: center;
	gap: var(--space-10);
	padding: var(--space-8) var(--space-12) var(--space-8) var(--space-8);
	background: var(--surface-glass-strong);
	border-radius: var(--radius-10);
	box-shadow: var(--shadow-sup-strip);
}

.sup-strip__logo {
	display: block;
	flex: none;
	width: 30px;
	height: 30px;
	object-fit: cover;
	border-radius: var(--radius-6);
}

.sup-strip__brand {
	display: none;
	color: var(--sup-accent-dark);
	font-size: var(--text-11-5);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sup-strip__sep {
	display: none;
	flex: none;
	width: 1px;
	height: 20px;
	background: var(--sup-head-line);
}

.sup-strip__line {
	color: var(--c-hero-ink);
	font-family: var(--font-display);
	font-size: var(--text-16);
	font-weight: 600;
	line-height: var(--leading-tight);
}

.sup-strip__link {
	display: none;
	align-items: center;
	gap: var(--space-8);
	margin-left: auto;
	color: var(--sup-accent-dark);
	font-size: var(--text-13);
	font-weight: 600;
	white-space: nowrap;
}

.sup-strip__link svg {
	width: 13px;
	height: 13px;
}

.sup-strip__link:hover {
	color: var(--sup-accent);
}

/* Thumbnails: wrapping 5-column grid. */
.bozpo-sup .thumbs-wrap {
	order: 3;
	margin: 0;
}

.bozpo-sup .thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-10);
	overflow: visible;
}

.bozpo-sup .thumb {
	width: auto;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: var(--space-6);
	background: var(--surface);
	border: 1px solid var(--sup-head-line);
	border-radius: var(--radius-10);
}

.bozpo-sup .thumb.active {
	border: 2px solid var(--sup-accent);
}

/* ----------------------------- Buy card ------------------------------ */
.bozpo-sup .product-title__name {
	color: var(--c-hero-ink);
}

.bozpo-sup .sku {
	margin: var(--space-6) 0 0;
	color: var(--color-muted);
	font-size: var(--text-12);
	letter-spacing: 0;
}

.sup-lead {
	margin: var(--space-16) 0 0;
	color: var(--c-ink-lead);
	font-size: var(--text-14);
	line-height: var(--leading-160);
}

.sup-price {
	margin: var(--space-16) 0 var(--space-20);
}

.sup-price .pricebox {
	margin: 0;
}

/* Sale box. */
.sup-sale {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: var(--space-6) var(--space-16);
	padding: var(--space-10) var(--space-14);
	background: var(--c-sale-bg);
	border: 1px solid var(--c-sale-line);
	border-radius: var(--radius-12);
}

.sup-sale__prices {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sup-sale__was {
	color: var(--color-muted);
	font-size: var(--text-13);
	white-space: nowrap;
}

.sup-sale__now {
	color: var(--c-sale);
	font-family: var(--font-display);
	font-size: var(--text-30);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.sup-sale__save {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6);
	padding-bottom: var(--space-3);
	color: var(--c-sale);
	font-size: var(--text-12);
	font-weight: 700;
}

.sup-sale__pct {
	padding: var(--space-2) var(--space-7);
	color: var(--on-primary);
	background: var(--c-sale);
	border-radius: var(--radius-pill);
}

.sup-sale__note {
	grid-column: 1 / -1;
	padding-top: var(--space-6);
	color: var(--c-hero-body);
	font-size: var(--text-11-5);
	border-top: 1px solid var(--c-sale-line);
}

.sup-sale__note:empty {
	display: none;
}

/* Variation pills take the collection accent. */
.bozpo-sup .buybar {
	--swatch-accent: var(--sup-accent);
}

.bozpo-sup .buybar .opt {
	margin-bottom: var(--space-18);
}

/* Lead-time chip between the pills and the qty + cart row. */
.sup-leadtime {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	margin: var(--space-2) 0 var(--space-20);
	padding: var(--space-9) var(--space-14);
	color: var(--sup-accent-dark);
	font-size: var(--text-12-5);
	font-weight: 600;
	background: var(--sup-chip-bg);
	border: 1px solid var(--sup-chip-line);
	border-radius: var(--radius-8);
}

.sup-leadtime svg {
	flex: none;
	width: 14px;
	height: 14px;
}

.bozpo-sup .mini-trust {
	padding-top: var(--space-18);
	border-top: 1px solid var(--c-sup-divider);
}

/* ======================= "O kolekcii" dark section ===================== */
.sup-about-wrap {
	position: relative;
	padding-top: var(--space-12);
}

.sup-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12);
	overflow: hidden;
	padding: var(--space-22) var(--space-16);
	color: var(--on-primary);
	background: var(--sup-dark);
	border-radius: var(--radius-16);
}

.sup-about__photo {
	aspect-ratio: 16 / 9;
	background: var(--sup-photo) right top / cover no-repeat;
	border-radius: var(--radius-12);
}

.sup-about__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-14);
}

.sup-about__eyebrow {
	color: var(--c-on-dark-70);
	font-size: var(--text-11);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.sup-about__title {
	margin: 0;
	color: var(--on-primary);
	font-family: var(--font-display);
	font-size: var(--text-26);
	font-weight: 700;
	line-height: var(--leading-105);
}

.sup-about__features {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12);
}

.sup-about__feature {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding: var(--space-14);
	background: var(--surface-on-dark-3);
	border: 1px solid var(--surface-on-dark-12);
	border-radius: var(--radius-12);
}

.sup-about__feature::before {
	content: "";
	width: 22px;
	height: 3px;
	background: var(--sup-accent);
	border-radius: var(--radius-2);
}

.sup-about__feature b {
	font-family: var(--font-display);
	font-size: var(--text-17);
	font-weight: 600;
}

.sup-about__feature span {
	color: var(--c-on-dark-72);
	font-size: var(--text-12-5);
	line-height: var(--leading-normal);
}

.sup-about__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	color: var(--on-primary);
	font-size: var(--text-13-5);
	font-weight: 600;
}

.sup-about__link svg {
	width: 13px;
	height: 13px;
}

.sup-about__link:hover {
	color: var(--c-on-dark-86);
}

/* ======================= Tabs, help box, related ======================= */
.bozpo-sup .ptab.active {
	color: var(--sup-accent);
	border-bottom-color: var(--sup-accent);
}

.bozpo-sup .help-box {
	background: var(--sup-head-bg);
	border-color: var(--sup-head-line);
}

.bozpo-sup .help-list .hi {
	color: var(--sup-accent-dark);
}

.related--sup .sec-title {
	font-size: var(--text-26);
}

.related--sup .products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-12);
	overflow: visible;
	scroll-snap-type: none;
}

.related--sup .products > li.product-card {
	flex: none;
}

/* Supplier cards (outline + badge) are styled in components/product-card.css. */


/* ============================== Breakpoints ============================ */
@media (min-width: 561px) {
	.sup-about__features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sup-strip__brand,
	.sup-strip__sep,
	.sup-strip__link {
		display: inline-flex;
	}
}

@media (min-width: 981px) {
	.sup-hero {
		padding-bottom: var(--space-40);
	}

	.sup-hero::before {
		height: 760px;
		opacity: .55;
		-webkit-mask-image: radial-gradient(110% 90% at 100% 0%, #000 30%, rgba(0, 0, 0, .35) 60%, transparent 82%);
		mask-image: radial-gradient(110% 90% at 100% 0%, #000 30%, rgba(0, 0, 0, .35) 60%, transparent 82%);
	}

	.bozpo-sup .product {
		column-gap: var(--space-32);
		padding-top: var(--space-16);
	}

	/* Gallery left, buy card right; not sticky so both start level. */
	.bozpo-sup .gallery {
		order: 0;
		position: static;
	}

	.bozpo-sup .info-col {
		order: 1;
	}

	/* Desktop gallery order: stage → strip → thumbs. */
	.bozpo-sup .stage {
		order: 1;
		border-radius: var(--radius-16);
	}

	.sup-strip {
		order: 2;
		gap: var(--space-14);
		padding: var(--space-10) var(--space-16) var(--space-10) var(--space-10);
		border-radius: var(--radius-12);
	}

	.sup-strip__logo {
		width: 40px;
		height: 40px;
		border-radius: var(--radius-8);
	}

	.sup-strip__line {
		font-size: var(--text-21);
	}

	/* The whole right column is one white card. */
	.bozpo-sup .info-col {
		padding: var(--space-28);
		background: var(--surface);
		border-radius: var(--radius-16);
		box-shadow: var(--shadow-sup-card);
	}

	.bozpo-sup .product-title {
		margin-bottom: 0;
	}

	.sup-sale__now {
		font-size: var(--text-32);
	}

	.sup-about {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 0;
		padding: 0;
	}

	.sup-about__photo {
		aspect-ratio: auto;
		min-height: 240px;
		border-radius: 0;
	}

	.sup-about__body {
		padding: var(--space-28) var(--space-32);
	}

	.sup-about__title {
		font-size: var(--text-32);
	}

	.related--sup .products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-20);
	}
}
