.product-page {
	background-color: var(--color-white);
}

/* Hero */
.product-hero {
	background-color: var(--color-white);
}

.product-hero__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 2.5rem var(--space-inline) 5rem; /* 40px top, 80px bottom */
}

.product-hero__gallery {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem; /* 20px */
	flex: 1 1 0;
	min-width: 0;
	max-width: 46.875rem; /* 750px */
}

.product-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 1.25rem; /* 20px */
	flex: 0 0 6.75rem; /* 108px */
}

.product-gallery__thumb {
	width: 100%;
	height: 6.9375rem; /* 111px */
	padding: 0;
	border: 0;
	background-color: var(--color-stroke);
	overflow: hidden;
	opacity: 0.4;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
	opacity: 1;
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__main {
	flex: 1 1 auto;
	width: 100%;
	max-width: 38.875rem; /* 622px */
	height: auto;
	aspect-ratio: 622 / 740;
	overflow: hidden;
	background-color: var(--color-stroke);
}

.product-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-hero__summary {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	max-width: 46.875rem; /* 750px */
	min-height: 0;
	padding: 0.5rem; /* 8px */
}

.product-summary {
	display: flex;
	flex-direction: column;
	gap: 3rem; /* 48px */
	width: 30.875rem; /* 494px */
	max-width: 100%;
}

.product-summary__meta {
	display: flex;
	align-items: center;
	gap: 1.625rem; /* 26px */
}

.product-summary__heading {
	display: flex;
	flex-direction: column;
	gap: 2.5rem; /* 40px */
	text-transform: uppercase;
	color: var(--color-dark);
}

.product-summary__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.875rem; /* 30px */
	font-weight: 400;
	line-height: 1.1;
}

.product-summary__price {
	font-family: var(--font-serif);
	font-size: 1.375rem; /* 22px */
	font-weight: 400;
	line-height: 1.1;
}

.product-summary__price .woocommerce-Price-amount {
	font-family: inherit;
}

.product-summary__description {
	margin: 0;
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
}

.product-summary__purchase .shop-product__form,
.product-summary__purchase .shop-product__actions--out {
	width: 100%;
}

.product-summary__add {
	flex: 0 0 20.75rem; /* 332px */
	max-width: 20.75rem;
}

/* Accordion */
.product-accordion {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
	width: 100%;
}

.product-accordion__divider {
	height: 0.0625rem; /* 1px */
	background-color: var(--color-stroke);
}

.product-accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
	cursor: pointer;
}

.product-accordion__icon {
	flex-shrink: 0;
	width: 0.75rem; /* 12px */
	height: 0.75rem;
	background: url('../images/icon-plus.svg') center / contain no-repeat;
}

.product-accordion__toggle[aria-expanded="true"] .product-accordion__icon {
	background-image: url('../images/icon-minus.svg');
}

.product-accordion__content {
	margin: 0;
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
}

.product-accordion__content p {
	margin: 0 0 1rem;
}

.product-accordion__content p:last-child {
	margin-bottom: 0;
}

.product-summary__pdf,
.product-summary__pdf--static {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 3.375rem; /* 54px */
	padding: 0 3.125rem; /* 50px */
	border: 0.0625rem solid var(--color-dark);
	background-color: transparent;
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	text-align: center;
	color: var(--color-dark);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.product-summary__pdf:hover {
	opacity: 0.75;
	color: var(--color-dark);
	text-decoration: none;
}

.product-summary__pdf--static {
	opacity: 0.5;
	cursor: default;
}

/* Related products */
.product-related {
	padding: 5rem var(--space-inline) 7.5rem; /* 80px top, 120px bottom */
	background-color: var(--color-white);
}

.product-related__inner {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
}

.product-related__title {
	margin: 0 0 3.8125rem; /* 61px — grid starts at 181px from section top */
	font-family: var(--font-serif);
	font-size: 3rem; /* 48px */
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-dark);
}

.product-related__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 5rem 1.25rem; /* 80px 20px */
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-related__grid .shop-product {
	display: flex;
	flex-direction: column;
	width: calc((100% - 2.5rem) / 3);
	height: 100%;
	max-width: 30.8125rem; /* 493px */
}

.product-related__grid .shop-product__image {
	height: 25rem; /* 400px — same compressed related layout as experience */
}

.product-related__grid .shop-product__meta {
	min-height: 2.75rem; /* keep badge/location row height consistent */
}

.product-related__grid .shop-product__details {
	flex: 1 1 auto;
	/* 2-line title + 24px + price + 40px + volume */
	min-height: 10.05rem;
}

.product-related__grid .shop-product__name {
	min-height: 3.025rem; /* 2 lines @ 22px / 1.1 */
}

.product-related__grid .shop-product__volume {
	min-height: calc(var(--text-link) * var(--line-height-ui));
}

.product-related__grid .shop-product__actions {
	margin-top: auto;
}

.product-related__grid::before,
.product-related__grid::after {
	display: none;
}

@media (max-width: 75rem) {
	.product-hero__inner {
		flex-direction: column;
		gap: 1.875rem; /* 30px — gallery to summary */
		padding: 0.625rem var(--space-inline) 3.75rem; /* 10px below header, 60px bottom */
	}

	.product-hero__gallery {
		flex: none;
		flex-direction: column-reverse;
		gap: 1.25rem; /* 20px — main image to thumbs */
		width: 100%;
		max-width: none;
	}

	.product-gallery__thumbs {
		flex-direction: row;
		flex-wrap: nowrap;
		flex: none;
		gap: 0.625rem; /* 10px */
		width: 100%;
	}

	.product-gallery__thumb {
		flex: 0 0 5rem; /* 80px */
		width: 5rem;
		height: 5.625rem; /* 90px */
	}

	.product-gallery__main {
		width: 100%;
		max-width: none;
		height: 21.6875rem; /* 347px */
		aspect-ratio: auto;
	}

	.product-hero__summary {
		flex: none;
		width: 100%;
		max-width: none;
		min-height: 0;
		padding: 0;
	}

	.product-summary {
		gap: 1.875rem; /* 30px */
		width: 100%;
	}

	.product-summary__meta .shop-product__badge,
	.product-summary__meta .shop-product__location {
		font-size: var(--text-link);
		letter-spacing: var(--letter-spacing-link);
	}

	.product-summary__heading {
		gap: 1.875rem; /* 30px */
	}

	.product-summary__title,
	.product-summary__price {
		font-size: 1.375rem; /* 22px */
	}

	.product-summary__description,
	.product-accordion__toggle,
	.product-accordion__content {
		font-size: var(--text-link);
		letter-spacing: var(--letter-spacing-link);
	}

	.product-summary__purchase .shop-product__form,
	.product-summary__purchase .shop-product__actions--out {
		flex-direction: row;
		align-items: flex-end;
		gap: 1.25rem; /* 20px */
	}

	.product-summary__purchase .shop-product__quantity {
		flex: 0 0 8.75rem; /* 140px */
		width: 8.75rem;
	}

	.product-summary__add,
	.product-summary__purchase .shop-product__add--out {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}

	.product-related {
		padding: 3.75rem var(--space-inline) 5rem; /* 60px top */
	}

	.product-related__title {
		margin-bottom: 2rem; /* 32px — title to first card */
		font-size: 1.875rem; /* 30px */
	}

	.product-related__grid {
		gap: 3.75rem; /* 60px */
	}

	.product-related__grid .shop-product {
		width: 100%;
		max-width: none;
	}

	.product-related__grid .shop-product__image {
		height: 24.75rem; /* 396px — same as experience related mobile */
	}
}

@media (min-width: 100.0625rem) {
	.product-hero__gallery,
	.product-hero__summary {
		flex: 0 0 46.875rem;
		max-width: 46.875rem;
	}

	.product-hero__summary {
		min-height: 46.25rem; /* 740px */
	}

	.product-gallery__main {
		width: 38.875rem;
		height: 46.25rem;
		aspect-ratio: auto;
	}
}

@media (max-width: 48rem) {
	.product-summary__purchase .shop-product__quantity {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.product-summary__add,
	.product-summary__purchase .shop-product__add--out {
		flex: 1 1 0;
	}
}
