/**
 * Product page (Figma: Products / single, desktop 1640 and mobile 375).
 * Hero: gallery flush left, summary in the container's right part. Below: the
 * full-width sections (features, information tabs, FAQ, care CTA, reviews).
 * Cards and rows: cards.css.
 */

.product-page {
	--section-space: 64px;
}

@media (min-width: 1024px) {
	.product-page {
		--section-space: 126px;
	}
}

/* ---- Hero ------------------------------------------------------------ */

.product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.product-hero {
		grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
		align-items: start;
	}
}

.product-summary,
.woocommerce div.product-page div.product-summary {
	/* WooCommerce floats .summary at 48% and a plugin centres .entry-summary. */
	float: none;
	width: auto;
	padding: 30px var(--gutter) 0;
	text-align: left;
}

@media (min-width: 1024px) {
	.product-summary,
	.woocommerce div.product-page div.product-summary {
		/* Right edge on the container's edge, 51px from the gallery (Figma). */
		padding: 30px max(var(--gutter), calc((100vw - 1280px) / 2)) 0 51px;
	}
}

.product-summary .product_title {
	margin: 0 0 var(--space-6);
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h2);
	line-height: var(--leading-h2);
}

.product-summary__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2) var(--space-6);
	margin-bottom: var(--space-3);
}

.product-summary .price {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: var(--text-h5);
	line-height: var(--leading-h5);
}

/* WAPF's "Prices from" label: regular weight. */
.product-summary .price .wapf-price-before {
	margin-right: var(--space-2);
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: var(--weight-gilroy-regular);
	font-size: var(--text-body);
}

/* Regular price first, light and struck through; current price bold.
   Lighter by 0.8 rather than WooCommerce's 0.7, which left the text below
   the 4.5:1 contrast for small text. */
.woocommerce div.product .product-summary .price del {
	opacity: 0.8;
}

.product-summary .price del {
	margin-right: var(--space-2);
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: var(--weight-gilroy-regular);
	font-size: var(--text-body);
	text-decoration: line-through;
}

.product-summary .price ins {
	text-decoration: none;
}

.product-summary__rating-link {
	color: var(--color-text);
	text-decoration: none;
}

.product-summary__rating-link:hover .rating__text {
	text-decoration: underline;
}

.product-summary .woocommerce-product-details__short-description {
	position: relative;
	margin-bottom: var(--space-6);
	font-size: var(--text-body);
	line-height: var(--leading-body);
}

/* Two lines, then "… Read more" over the end of the second line (product.js adds
   the button only when the text is longer, and "is-short" when it is not).
   Two lines from the start, not once product.js has run: the page below would
   jump up (layout shift), later still with WP Rocket's delayed JS. Without
   JavaScript, the whole text (inc/product.php). */
.product-summary .woocommerce-product-details__short-description:not(.is-expanded, .is-short) {
	max-height: calc(2 * var(--leading-body));
	overflow: hidden;
}

.product-summary .woocommerce-product-details__short-description > :first-child {
	margin-top: 0;
}

.short-description__more {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-primary);
	font: inherit;
	font-weight: var(--weight-gilroy-medium);
	text-decoration: underline;
	cursor: pointer;
}

.short-description__more:hover {
	color: var(--color-primary-hover);
}

.is-clamped:not(.is-expanded) > .short-description__more {
	position: absolute;
	right: 0;
	bottom: 0;
	padding-left: 40px;
	/* From the page colour at 0 alpha, not "transparent": Safari blended that
	   through black, a grey patch over the text. */
	background: linear-gradient(to right, rgba(254, 253, 253, 0), var(--color-page) 32px);
	background: linear-gradient(to right, rgb(from var(--color-page) r g b / 0), var(--color-page) 32px);
}

/* The space as a margin: Gilroy has no no-break space, Safari drew a box. */
.is-clamped:not(.is-expanded) > .short-description__more::before {
	content: "\2026";
	margin-right: 0.3em;
	color: var(--color-text);
	font-weight: var(--weight-gilroy-regular);
	text-decoration: none;
	display: inline-block;
}

.product-summary .woocommerce-product-details__short-description p {
	margin: 0 0 var(--space-2);
}

/* Product meta: kept for the hooks on it (CusRev review data in the Product JSON-LD), not in the design. */
.product-summary .product_meta {
	display: none;
}

/* Trust links */
.trust-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3) var(--space-6);
	margin: 0 0 var(--space-2);
	padding: 0;
	list-style: none;
}

.trust-links a,
.trust-links button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-heading);
	font: var(--weight-gilroy-medium) 14px / 20px var(--font-body);
	text-decoration: none;
	cursor: pointer;
}

.trust-links a:hover,
.trust-links button:hover {
	text-decoration: underline;
}

/* Variation form (simple design: "Size" select in a Soft Ivory card, then a full-width button). */
.product-summary form.variations_form table.variations {
	width: 100%;
	margin: 0 0 var(--space-6);
	padding: 26px;
	border: 0;
	border-collapse: separate;
	border-radius: var(--radius-card);
	background: var(--color-surface);
}

.product-summary table.variations tr {
	display: grid;
	gap: var(--space-2);
}

.product-summary table.variations tr + tr {
	margin-top: var(--space-4);
}

.product-summary table.variations th,
.product-summary table.variations td {
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.product-summary table.variations th label {
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: var(--text-eyebrow);
	line-height: var(--leading-eyebrow);
	text-transform: uppercase;
}

.product-summary table.variations select {
	width: 100%;
	height: var(--control-height);
	padding: 0 var(--space-4);
	border: 1px solid var(--color-input-border);
	border-radius: var(--radius-control);
	background-color: var(--color-warm-off-white);
	color: var(--color-heading);
	font: 16px / 24px var(--font-body);
}

.product-summary .reset_variations {
	display: inline-block;
	margin-top: var(--space-2);
	font-size: var(--text-small);
}

.product-summary .woocommerce-variation-price {
	margin-bottom: var(--space-4);
}

.product-summary form.cart:not(.how-wizard) .woocommerce-variation-add-to-cart,
.product-summary form.cart:not(.how-wizard):not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

.product-summary form.cart:not(.how-wizard) .single_add_to_cart_button {
	flex: 1 1 100%;
	width: 100%;
}

/* No quantity field (not in Figma): every product is added one at a time; the
   cart can change the quantity. WooCommerce still posts quantity=1. !important:
   WooCommerce's variation script shows it again with an inline style. */
.product-summary form.cart .quantity {
	display: none !important;
}

/* Options and price in one card, as in Figma: the size select (variations),
   then the chosen variation and the WAPF fields, ending with the total bar;
   the button below the card. */
.product-summary form.cart:not(.how-wizard) .wapf {
	flex: 1 1 100%;
	box-sizing: border-box;
	padding: 26px;
	border-radius: var(--radius-card);
	background: var(--color-surface);
}

.product-summary form.cart:not(.how-wizard) .wapf-product-totals {
	margin-top: var(--space-5);
}

/* Variable products: the card continues below the size select. */
.product-summary form.variations_form:not(.how-wizard):is(:has(.wapf), :has(.woocommerce-variation-add-to-cart-enabled)) table.variations {
	margin-bottom: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.product-summary form.variations_form:not(.how-wizard) .single_variation {
	padding: 0 26px;
	background: var(--color-surface);
}

.product-summary form.variations_form:not(.how-wizard):not(:has(.wapf)) .single_variation {
	margin-bottom: var(--space-6);
	padding-bottom: 26px;
	border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.product-summary form.variations_form:not(.how-wizard) .wapf {
	padding-top: var(--space-5);
	border-top-right-radius: 0;
	border-top-left-radius: 0;
}

/* With a WAPF total, the variation's own price is left out (the total bar shows
   it), and the total waits for a size: without one it would read $0.00. */
.product-summary form.variations_form:not(.how-wizard):has(.wapf-product-totals) .woocommerce-variation-price,
.product-summary form.variations_form:not(.how-wizard):has(.woocommerce-variation-add-to-cart-disabled) .wapf-product-totals {
	display: none;
}

.woocommerce div.product-page form.cart .button.alt.disabled,
.woocommerce div.product-page form.cart .button.alt:disabled {
	/* WooCommerce's purple "select options first" state, in our colours. */
	background: var(--color-primary);
	color: var(--color-on-primary);
	opacity: 0.5;
}

/* ---- Gallery --------------------------------------------------------- */

.product-gallery {
	min-width: 0;
}

.product-gallery__stage {
	position: relative;
	background: #efefef;
}

.product-gallery__slides {
	position: relative;
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
	aspect-ratio: 804 / 711;
	/* The photo fits the first screen below the header (full width, cropped);
	   the thumbnails may fall below it. */
	width: 100%;
	max-height: calc(100svh - var(--announcement-bar) - var(--header-bar) - 1px);
}

.product-gallery__slides::-webkit-scrollbar {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.product-gallery__slides {
		scroll-behavior: smooth;
	}
}

.product-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.product-gallery__slide img,
.product-gallery__slide iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* A clip over its photo (CommerceKit's video gallery); the photo stays under
   it for its size and alt text. */
.product-gallery__slide .gallery-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.product-gallery__play {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.product-gallery__play::after,
.product-gallery__thumb--video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(34, 51, 60, 0.35);
}

.play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--color-warm-off-white);
	color: var(--color-heading);
	transform: translate(-50%, -50%);
}

.product-gallery__thumb .play-icon {
	width: 40px;
	height: 40px;
}

.gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	place-items: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--color-dark-sage);
	border-radius: 50%;
	background: var(--color-warm-off-white);
	box-shadow: 0 2px 12px rgba(33, 51, 61, 0.18);
	color: var(--color-heading);
	transform: translateY(-50%);
	cursor: pointer;
}

.gallery-arrow--prev {
	left: 20px;
}

.gallery-arrow--next {
	right: 20px;
}

.gallery-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

@media (hover: hover) and (pointer: fine) {
	.gallery-arrow {
		display: grid;
	}
}

/* Phones: a slider, the arrows over the photo (user, 2026-11-02). */
@media (max-width: 767px) {
	.product-gallery__stage .gallery-arrow {
		display: grid;
		width: 36px;
		height: 36px;
	}

	.product-gallery__stage .gallery-arrow--prev {
		left: 12px;
	}

	.product-gallery__stage .gallery-arrow--next {
		right: 12px;
	}
}

.product-gallery__counter {
	position: absolute;
	right: 12px;
	bottom: 14px;
	z-index: 2;
	margin: 0;
	padding: 5px 12px;
	border-radius: 17px;
	background: var(--color-warm-off-white);
	color: var(--color-heading);
	font-size: 16px;
	line-height: 24px;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 16px var(--gutter) 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 767px) {
	/* Phones: no thumbnails, the photo with arrows and the counter (user,
	   2026-11-02; before, a grid of up to six tiles). A tap on the photo still
	   opens the full-size view with all of them. */
	.product-gallery__thumbs {
		display: none;
	}
}

@media (min-width: 768px) {
	/* One row of up to five thumbnails (148 × 118 at 1640); with more, the fifth is "+N" (Figma). */
	/* Tablets: the gallery is full width, so the strip keeps the page margin;
	   desktop: under the gallery, flush with it (Figma). */
	.product-gallery__thumbs {
		display: flex;
		margin: 20px var(--gutter) 0;
	}

	@media (min-width: 1024px) {
		.product-gallery__thumbs {
			margin: 20px 0 0;
		}
	}

	.product-gallery__thumbs li {
		flex: 0 0 calc((100% - 4 * 16px) / 5);
	}

	.product-gallery__thumbs--more li:nth-child(n+5):not(.product-gallery__more-item) {
		display: none;
	}
}

.product-gallery__thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	background: #efefef;
	aspect-ratio: 148 / 118;
	cursor: pointer;
}

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

.product-gallery__thumb[aria-current="true"] {
	border-color: var(--color-heading);
}

.product-gallery__more::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(34, 51, 60, 0.55);
}

.product-gallery__more-count {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	color: #fff;
	font: var(--weight-gilroy-medium) 20px / 1 var(--font-body);
}

/* "Back to [listing]" on the gallery's top left corner (inc/product.php). */
.product-hero {
	position: relative;
}

.product-back {
	position: absolute;
	top: 14px;
	left: 12px;
	z-index: 3;
	max-width: calc(100% - 24px);
	margin: 0;
}

.product-back[hidden] {
	display: none;
}

.product-back__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-height: 36px;
	box-sizing: border-box;
	padding: 0 16px 0 10px;
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: 0 2px 12px rgba(33, 51, 61, 0.18);
	color: var(--color-heading);
	font-family: var(--font-body);
	font-weight: var(--weight-gilroy-medium);
	font-size: 15px;
	line-height: 20px;
	text-decoration: none;
}

.product-back__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.product-back__link svg {
	flex: none;
}

.product-back__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.product-back {
		top: 20px;
		left: 20px;
		max-width: calc(49% - 40px);
	}
}

/* "Watch video" on the stage: the full-size view at the product's video. */
.gallery-watch {
	position: absolute;
	bottom: 14px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px 0 12px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-dark-sage);
	box-shadow: 0 2px 12px rgba(33, 51, 61, 0.18);
	color: #fff;
	font-family: var(--font-body);
	font-weight: var(--weight-gilroy-medium);
	font-size: 15px;
	line-height: 20px;
	cursor: pointer;
}

.gallery-watch[hidden] {
	display: none;
}

.gallery-watch:hover,
.gallery-watch:focus-visible {
	background: var(--color-primary-hover);
}

/* A photo on the stage opens the full-size view. */
.product-gallery__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

/* ---- Full-size view (lightbox; from a photo or the "+N" tile; not in Figma) ---- */

dialog.gallery-lightbox {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: rgba(20, 28, 33, 0.96);
	color: #fff;
}

dialog.gallery-lightbox::backdrop {
	background: transparent;
}

.gallery-lightbox__slides {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.gallery-lightbox__slides::-webkit-scrollbar {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.gallery-lightbox__slides {
		scroll-behavior: smooth;
	}
}

.gallery-lightbox__slide {
	box-sizing: border-box;
	display: grid;
	flex: 0 0 100%;
	place-items: center;
	padding: 72px var(--gutter);
	scroll-snap-align: start;
}

.gallery-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	margin: 0;
}

.gallery-lightbox__slide img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100svh - 144px);
	object-fit: contain;
}

/* The photo's Image Caption under it ("Mini Piping Design"); room is kept for
   two lines of it. */
.gallery-lightbox__figure:has(.gallery-lightbox__caption:not(:empty)) img {
	max-height: calc(100svh - 144px - 64px);
}

/* In the full-size view the clip takes the photo's place. */
.gallery-lightbox__figure .gallery-video {
	display: block;
	max-width: 100%;
	max-height: calc(100svh - 144px);
}

.gallery-lightbox__figure .gallery-video + img {
	display: none;
}

.gallery-lightbox__caption {
	max-width: 720px;
	color: var(--color-warm-off-white);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
	line-height: 24px;
	text-align: center;
}

.gallery-lightbox__caption:empty {
	display: none;
}

.gallery-lightbox__slide .product-gallery__play {
	width: auto;
	height: auto;
}

.gallery-lightbox__slide iframe {
	width: min(100%, calc((100svh - 144px) * 16 / 9));
	border: 0;
	aspect-ratio: 16 / 9;
}

.gallery-lightbox__counter {
	right: auto;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
}

.gallery-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-warm-off-white);
	color: var(--color-heading);
	cursor: pointer;
}

@media (min-width: 768px) {
	.gallery-lightbox__slide {
		padding: 72px 96px;
	}
}

/* ---- Features ("What makes our wool special", configurator design) ----
   Figma: cards 245 × 107 (desktop), two per screen on mobile (179 wide). */

/* Tighter than the other sections (client review 2026-10-28): 40px on mobile,
   64px on desktop above it and before Product information. */
.product-features {
	--features-space: 40px;
	padding-top: var(--features-space);
}

.product-features + .product-info {
	margin-top: 40px;
}

@media (min-width: 1024px) {
	.product-features {
		--features-space: 64px;
	}

	.product-features + .product-info {
		margin-top: 64px;
	}
}

.product-features__title {
	flex: 1 1 auto;
	margin: 0;
	font-weight: var(--weight-mont-bold);
	font-size: var(--text-h5);
	line-height: var(--leading-h5);
}

.product-features__list.card-row__track {
	gap: 10px;
}

.product-feature {
	display: flex;
	flex: 0 0 179px;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	min-height: 105px;
	padding: 17px;
	border: 1px solid var(--color-pale-oat);
	scroll-snap-align: start;
}

@media (min-width: 1024px) {
	.product-features__list.card-row__track {
		gap: 14px;
	}

	.product-feature {
		flex-basis: 245px;
		min-height: 107px;
		padding: 25px 20px 20px;
	}
}

/* .product-feature: over WooCommerce's .woocommerce img { height: auto }. */
.product-feature .product-feature__icon {
	width: auto;
	max-width: 48px;
	height: 28px;
	object-fit: contain;
	object-position: left center;
}

.product-feature__title {
	color: var(--color-heading);
	font-size: var(--text-small);
	line-height: var(--leading-small);
}

/* ---- Product information tabs -------------------------------------- */

.product-info {
	margin-top: var(--section-space);
	padding: var(--section-space) 0;
	background: var(--color-surface);
}

.product-info__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.product-info__title {
	margin: 0 0 var(--space-6);
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
}

.info-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	width: 100%;
	padding: 16px 20px;
	border: 0;
	border-radius: 12px;
	background: none;
	color: var(--color-text);
	font: var(--weight-gilroy-medium) 16px / 24px var(--font-body);
	text-align: left;
	cursor: pointer;
}

.info-tab .icon {
	flex: none;
	visibility: hidden;
}

.info-tab:not([aria-expanded="true"]):hover {
	background: color-mix(in srgb, var(--color-pale-oat) 45%, transparent);
	color: var(--color-heading);
}

@media (prefers-reduced-motion: no-preference) {
	.info-tab {
		transition: background-color 0.2s, color 0.2s;
	}
}

.info-tab[aria-expanded="true"] {
	background: var(--color-warm-off-white);
	box-shadow: 0 2px 12px rgba(33, 51, 61, 0.06);
	color: var(--color-heading);
	font-weight: var(--weight-gilroy-regular);
}

.info-tab[aria-expanded="true"] .icon {
	visibility: visible;
}

.info-panel {
	margin: var(--space-2) 0 var(--space-4);
	padding: 24px 20px;
	border-radius: var(--radius-card);
	background: var(--color-warm-off-white);
	color: #1e1e1e;
	font-size: var(--text-body-l);
	line-height: var(--leading-body-l);
}

.info-panel > :first-child {
	margin-top: 0;
}

.info-panel > :last-child {
	margin-bottom: 0;
}

.info-panel :is(ul, ol) {
	padding-left: 1.2em;
}

.info-panel h2,
.info-panel h3,
.info-panel h4 {
	margin: var(--space-4) 0 0;
	color: var(--color-heading);
	font-family: var(--font-body);
	font-weight: var(--weight-gilroy-medium);
	font-size: inherit;
	line-height: inherit;
}

/* Tab texts (Figma): 4px from a title to its text; list lead-ins in the heading colour. */
.info-panel :is(h2, h3, h4) + :is(p, ul, ol) {
	margin-top: 4px;
}

/* Lists written in the editor (no class), not the review cards. */
.info-panel :is(ul, ol):not([class]) > li + li {
	margin-top: 8px;
}

.info-panel li > strong:first-child {
	color: var(--color-heading);
	font-weight: var(--weight-gilroy-medium);
}

@media (min-width: 1024px) {
	/* Title and tabs in a 360px column, the open panel beside them (Figma). The
	   last row (1fr) takes the panel's extra height so the tabs stay together. */
	.product-info__inner {
		grid-template-columns: 360px minmax(0, 1fr);
		grid-template-rows: repeat(var(--rows, 7), auto) 1fr;
		column-gap: 72px;
		row-gap: 4px;
	}

	.product-info__title {
		grid-column: 1;
		margin: 29px 0 24px;
	}

	.info-tab {
		grid-column: 1;
	}

	.info-panel {
		grid-column: 2;
		grid-row: 1 / -1;
		min-height: 0;
		margin: 0;
		padding: 50px;
	}
}

/* Benefits: two columns of icon + title + text. */
.benefits {
	display: grid;
	gap: var(--space-6) var(--space-8);
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

@media (min-width: 768px) {
	.benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.benefit {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

/* Figma: a 44px circle with a 20px icon (12px inset), 14px from the text. */
.benefit__icon {
	flex: none;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 12px;
	border-radius: 50%;
	background: var(--color-pale-sage);
	object-fit: contain;
}

.benefit__text {
	font-size: var(--text-small);
	line-height: var(--leading-small);
}

.benefit__title {
	display: block;
	margin-bottom: 4px;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 16px;
	line-height: 24px;
}

/* Reviews tab: the same cards as "What customers say", in a grid */
.product-reviews__summary {
	margin: 0 0 var(--space-6);
}

/* .info-panel: over the panel's own list styles. Cards keep their own height. */
/* One column, full width. */
.info-panel .product-reviews__list {
	display: grid;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-reviews__list .review-card[hidden] {
	display: none;
}

.product-reviews__list .review-card__text {
	font-size: var(--text-body);
	line-height: var(--leading-body);
}

.product-reviews__list .review-card__text p {
	margin: 0 0 var(--space-3);
}

.product-reviews__list .review-card__text p:last-child {
	margin-bottom: 0;
}

/* button.: over the theme's and WooCommerce's button display and margins. */
.product-reviews button.product-reviews__more {
	display: flex;
	width: fit-content;
	margin: var(--space-8) auto 0;
}

/* ---- Care CTA ("Love Your Wool") ----------------------------------- */

.care-cta {
	background: var(--color-pale-oat);
}

.care-cta__inner {
	display: grid;
	gap: var(--space-6);
	justify-items: center;
	padding-bottom: var(--space-10);
	text-align: center;
}

.care-cta__image {
	width: calc(100% + 2 * var(--gutter));
	max-width: none;
	height: auto;
	margin: 0 calc(-1 * var(--gutter));
	object-fit: cover;
	aspect-ratio: 375 / 276;
}

.care-cta__title {
	margin: 0 0 var(--space-3);
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h3);
	line-height: var(--leading-h3);
}

.care-cta__text p {
	margin: 0;
	font-size: var(--text-body);
	line-height: var(--leading-body);
}

@media (min-width: 1024px) {
	.care-cta__inner {
		grid-template-columns: 542px minmax(0, 1fr) auto;
		gap: 0 89px;
		align-items: center;
		justify-items: start;
		max-width: calc(1460px + 2 * var(--gutter));
		padding: 51px var(--gutter);
		text-align: left;
	}

	.care-cta__image {
		width: 542px;
		margin: 0;
		aspect-ratio: 542 / 421;
	}

	.care-cta__text p {
		max-width: 334px;
	}
}

/* Small laptops (1024 to 1279): photo and text side by side, the button
   under the text (three columns leave the text a few words wide). */
@media (min-width: 1024px) and (max-width: 1279px) {
	.care-cta__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px 56px;
	}

	.care-cta__image {
		grid-row: 1 / 3;
		width: 100%;
	}

	.care-cta__text {
		align-self: end;
	}

	.care-cta__button {
		align-self: start;
	}
}

/* ---- Ram spiral decoration ------------------------------------------- */

/* Figma's ram vector, one file (images/ram.svg) used as a mask and tinted per
   section. Desktop: Product information (left), Love Your Wool (right),
   Customer favourites (left). Mobile: Love Your Wool only. */
.product-info,
.care-cta,
.product-page .card-row--favourites {
	position: relative;
	overflow: clip;
	isolation: isolate;
}

.product-info::before,
.care-cta::before,
.product-page .card-row--favourites::before {
	content: "";
	position: absolute;
	z-index: -1;
	background: rgba(222, 211, 194, 0.2); /* natural oat, 20% */
	-webkit-mask: url(../images/ram.svg) no-repeat 0 0 / 100% 100%;
	mask: url(../images/ram.svg) no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}

.care-cta::before {
	bottom: 0;
	left: calc(50% - 153px);
	width: 307px;
	height: 220px;
}

.product-info::before,
.product-page .card-row--favourites::before {
	display: none;
}

@media (min-width: 1024px) {
	.product-info::before,
	.product-page .card-row--favourites::before {
		display: block;
	}

	/* Positions follow the content (as in the 1640 frame), not the window edge:
	   .container content starts at max(gutter, 50% - 640px); the care CTA's
	   content ends at min(100% - gutter, 50% + 730px). */
	.product-info::before {
		top: 203px;
		left: calc(max(var(--gutter), 50% - 640px) - 294px);
		width: 703px;
		height: 498px;
	}

	.care-cta::before {
		top: 0;
		bottom: auto;
		left: calc(min(100% - var(--gutter), 50% + 730px) - 525px);
		width: 729px;
		height: 523px;
	}

	.product-page .card-row--favourites::before {
		top: 58px;
		left: calc(max(var(--gutter), 50% - 640px) - 180px);
		width: 1021px;
		height: 730px;
		background: rgba(238, 232, 222, 0.3); /* pale oat, 30% */
	}
}

/* WooCommerce's "Clear" link under the variations: never shown (it holds space
   even when nothing is selected). */
.product-summary .reset_variations {
	display: none !important;
}

/* ---- Mobile and tablet rhythm (client review 2026-10-28) ----------------
   One section spacing (48px): from a section's top to its first content and
   from its last content to its bottom, so the brown and white bands look even.
   Long texts in the information tabs at 14px. */

@media (max-width: 1023px) {
	.product-page {
		--section-space: 48px;
	}

	/* Summary → What makes our wool special: the form and summary margins and
	   WAPF's empty coupon holder (a form gap) added up to 132px. Selectors over
	   WooCommerce's .woocommerce div.product div.summary / form.cart. */
	.woocommerce div.product-page div.product-summary,
	.woocommerce div.product-page .product-summary form.cart {
		margin-bottom: 0;
	}

	.product-summary form.cart > .pdf-coupon-fields:empty {
		display: none;
	}

	.product-features {
		--features-space: var(--section-space);
	}

	.product-features + .product-info {
		margin-top: var(--section-space);
	}

	/* The last tab's own 16px padding counts as space at the bottom. */
	.product-info {
		padding-bottom: calc(var(--section-space) - 16px);
	}

	.info-panel,
	.info-panel .review-card__text {
		font-size: 14px;
		line-height: 22px;
	}

	.care-cta__inner {
		padding-bottom: var(--section-space);
	}

	/* img.: over WooCommerce's .woocommerce img { max-width: 100% }, which kept
	   the photo inside the gutter. */
	.care-cta img.care-cta__image {
		max-width: none;
	}

	.customer-reviews {
		padding-bottom: var(--section-space);
	}

	.card-row .card-row__intro {
		margin-top: var(--space-2);
	}
}

/* Returns & Refunds and the Size Guide on phones: a sheet up from the bottom
   over the dimmed product page, which stays in view above it (client,
   2026-11-20); a side drawer from 768 px. */
@media (max-width: 767px) {
	dialog.returns-summary,
	dialog.size-guide {
		inset: auto 0 0;
		width: 100%;
		height: auto;
		max-height: calc(100dvh - 80px);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 30px rgba(34, 51, 60, 0.15);
		overscroll-behavior: contain;
	}

	.returns-summary .drawer__head,
	.size-guide .drawer__head {
		padding: 16px var(--gutter);
	}

	.returns-summary .drawer__body,
	.size-guide .drawer__body {
		padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
	}

	@media (prefers-reduced-motion: no-preference) {
		dialog.returns-summary[open],
		dialog.size-guide[open] {
			animation: returns-sheet-in 0.45s cubic-bezier(0.32, 0.72, 0, 1);
		}

		dialog.returns-summary[open]::backdrop,
		dialog.size-guide[open]::backdrop {
			animation: returns-fade-in 0.45s ease;
		}
	}
}

@keyframes returns-sheet-in {
	from {
		transform: translateY(100%);
	}
}

@keyframes returns-fade-in {
	from {
		opacity: 0;
	}
}
