/* SW3 London child: one-of-one product page (feature product_page). Loaded on one-of-one product pages only. */

.sw3c-pp {
	--sw3c-red: #ef110f;
	--sw3c-ink: #000;
	--sw3c-muted: #555;
	--sw3c-line: #e3e3e3;
	max-width: 1320px;
	margin: 0 auto;
	padding: 12px 16px 0;
	color: var(--sw3c-ink);
}

/* ---------- Breadcrumb ---------- */
.sw3c-pp__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	color: var(--sw3c-muted);
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.sw3c-pp__crumbs a {
	color: var(--sw3c-muted);
	text-decoration: none;
}

.sw3c-pp__crumbs a:hover {
	color: var(--sw3c-ink);
	text-decoration: underline;
}

.sw3c-pp__crumbs [aria-current] {
	color: var(--sw3c-ink);
}

/* ---------- Two columns ---------- */
.sw3c-pp__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 992px) {
	.sw3c-pp {
		padding: 24px 24px 0;
	}

	.sw3c-pp__top {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 40px;
		align-items: start;
	}

	.sw3c-pp__summary {
		position: sticky;
		top: 90px;
	}
}

/* ---------- Gallery + layout shift fix ---------- */
.sw3c-pp .woocommerce-product-gallery {
	position: relative;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* Before the gallery script runs, WooCommerce prints every photo stacked:
   only the first one takes space until the slider is built. */
.sw3c-pp .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) {
	display: none;
}

/* Thumbnails: one scrolling row (space reserved before the script, below). */
.sw3c-pp .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 8px 0 0 !important;
	padding: 0 0 4px !important;
	overflow-x: auto;
	scrollbar-width: thin;
}

.sw3c-pp .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 calc(22% - 6px);
	width: calc(22% - 6px) !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

.sw3c-pp .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid transparent;
}

.sw3c-pp .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--sw3c-ink);
}

/* Reserve the thumbnail row before the script adds it (thumbnails ~ 1650x900 photos). */
.sw3c-pp__gallery--thumbs .woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper) {
	padding-bottom: calc((22% - 6px) * .5455 + 12px);
}

.sw3c-pp .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
}

.sw3c-pp .onsale {
	display: none; /* the sale % is shown next to the price */
}

/* ---------- Summary ---------- */
.sw3c-pp__kicker {
	margin: 0 0 4px;
	color: var(--sw3c-muted);
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.sw3c-pp .sw3c-pp__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: .5px;
	text-transform: uppercase;
}

@media (min-width: 1200px) {
	.sw3c-pp .sw3c-pp__title {
		font-size: 38px;
	}
}

.sw3c-pp__by {
	margin: 0 0 14px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.sw3c-pp__by a,
.sw3c-pp__by span {
	color: var(--sw3c-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sw3c-pp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

/* Parent price row (price.php): keep the price only. */
.sw3c-pp__price .sing_prod_price {
	margin: 0;
	padding: 0 !important;
}

.sw3c-pp__price .sing_prod_price > div {
	flex: 0 0 auto;
	max-width: none;
	width: auto;
	padding: 0;
}

.sw3c-pp__price .prod_delivery_msg {
	display: none !important;
}

.sw3c-pp__badge {
	padding: 3px 8px;
	background: var(--sw3c-red);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.sw3c-pp__size {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 0 0 16px;
	font-size: 14px;
}

.sw3c-pp__size-label {
	color: var(--sw3c-muted);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.sw3c-pp__size-value {
	font-weight: 600;
}

.sw3c-pp__only {
	color: var(--sw3c-red);
	font-size: 13px;
}

/* BUY: full width. */
.sw3c-pp__buy form.cart {
	margin: 0 0 8px !important;
}

.woocommerce .sw3c-pp__buy button.single_add_to_cart_button.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	border-radius: 0;
	background: var(--sw3c-red);
	color: #fff;
	font-size: 16px;
	letter-spacing: 2px;
}

.woocommerce .sw3c-pp__buy button.single_add_to_cart_button.button:hover {
	background: #000;
	color: #fff;
}

.sw3c-pp__buy .arrow_buy_btn {
	width: 36px;
	height: auto;
}

.sw3c-pp__sold {
	margin: 0 0 12px;
	padding: 14px;
	border: 1px solid var(--sw3c-ink);
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

/* Reassurance row. */
.sw3c-pp__trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 18px 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.sw3c-pp__trust li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	line-height: 1.25;
}

.sw3c-pp__icon {
	color: var(--sw3c-ink);
}

/* Expandable sections. */
.sw3c-pp__sections {
	border-top: 1px solid var(--sw3c-line);
}

.sw3c-pp__section {
	border-bottom: 1px solid var(--sw3c-line);
}

.sw3c-pp__section > summary {
	position: relative;
	padding: 14px 28px 14px 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	list-style: none;
}

.sw3c-pp__section > summary::-webkit-details-marker {
	display: none;
}

.sw3c-pp__section > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	font-size: 20px;
	font-weight: 400;
}

.sw3c-pp__section[open] > summary::after {
	content: "\2212";
}

.sw3c-pp__section-body {
	padding: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
}

.sw3c-pp__section-body p {
	margin: 0 0 10px;
}

.sw3c-pp__section-body a {
	color: var(--sw3c-red);
}

.sw3c-pp__share {
	margin: 16px 0 0;
}

/* ---------- Artist block ---------- */
.sw3c-pp__artist {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 32px 0 0;
	background: #0b0b0b;
	color: #fff;
}

@media (min-width: 768px) {
	.sw3c-pp__artist {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	.sw3c-pp__artist--noimg {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sw3c-pp__artist-img img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
}

.sw3c-pp__artist-body {
	padding: 24px 20px;
	align-self: center;
}

@media (min-width: 992px) {
	.sw3c-pp__artist-body {
		padding: 40px;
	}
}

.sw3c-pp__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: .75;
}

.sw3c-pp .sw3c-pp__artist-name {
	margin: 0 0 8px;
	color: #fff;
	font-size: 30px;
	line-height: 1.1;
	text-transform: uppercase;
}

.sw3c-pp__artist-tagline {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
}

.sw3c-pp__artist-bio {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	opacity: .9;
}

.sw3c-pp__artist-link {
	display: inline-block;
	padding: 12px 20px;
	border: 1px solid #fff;
	color: #fff;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-decoration: none;
	text-transform: uppercase;
}

.sw3c-pp__artist-link:hover {
	background: #fff;
	color: #000;
	text-decoration: none;
}

/* ---------- Process block (shown only when SW3's text is set) ---------- */
.sw3c-pp__process {
	margin: 0;
	padding: 24px 20px;
	background: #f4f4f4;
}

.sw3c-pp .sw3c-pp__process-title {
	margin: 0 0 10px;
	font-size: 24px;
	text-transform: uppercase;
}

.sw3c-pp__process-text {
	font-size: 14px;
	line-height: 1.6;
}
