/* Single product: native Blocksy gallery plus one WooCommerce purchase column. */
body.single-product { --wg-focus: #159447; --wg-product-border: var(--wg-border-subtle, #e5e7eb); }
body.single-product .site-main { padding-bottom: 72px; }
body.single-product .ct-container,
body.single-product .ct-container-full { max-width: var(--wg-wide, 1180px); }

body.single-product .product-entry-wrapper:has(.woocommerce-product-gallery) {
	align-items: start;
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	grid-template-columns: minmax(0, 1.3fr) minmax(340px, .82fr);
	max-width: none;
	width: 100%;
}
body.single-product .product-entry-wrapper:has(.woocommerce-product-gallery) > .woocommerce-product-gallery,
body.single-product .product-entry-wrapper:has(.woocommerce-product-gallery) > .summary.entry-summary {
	box-sizing: border-box;
	float: none;
	margin: 0;
	max-width: none;
	min-width: 0;
	width: 100%;
}
body.single-product .woocommerce-product-gallery {
	background: #fff;
	border: 1px solid var(--wg-product-border);
	border-radius: 12px;
	overflow: hidden;
}
body.single-product .woocommerce-product-gallery[data-thumbs="left"] .flexy-pills { padding: 14px 0 14px 14px; }
body.single-product .woocommerce-product-gallery[data-thumbs="left"] .flexy-pills li {
	background: #fff;
	border: 1px solid var(--wg-product-border);
	border-radius: 8px;
	overflow: hidden;
}
body.single-product .woocommerce-product-gallery .ct-media-container img,
body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery__wrapper img {
	background: var(--wg-surface, #f9fafb);
	display: block;
	height: 100%;
	max-height: 680px;
	object-fit: contain;
	width: 100%;
}

body.single-product .wg-purchase-panel {
	background: #fff;
	border: 1px solid var(--wg-product-border);
	border-radius: 12px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(22px, 3vw, 34px);
}
body.single-product .wg-product-category {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .055em;
	margin: 0 0 10px;
	text-transform: uppercase;
}
body.single-product .wg-product-category a { color: var(--wg-green-dark, #08752f); text-decoration: none; }
body.single-product .product_title {
	font-family: Manrope, Arial, sans-serif;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1.1;
	margin: 0 0 14px;
}
body.single-product .woocommerce-product-rating { margin: 0 0 18px; }
body.single-product .woocommerce-product-rating .woocommerce-review-link { color: var(--wg-muted, #667085); }
body.single-product .wg-purchase-panel > .price {
	color: var(--wg-green-dark, #08752f);
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	font-weight: 750;
	margin: 0 0 20px;
}
body.single-product .price del { color: var(--wg-muted, #667085); font-size: .75em; font-weight: 500; }
body.single-product .price ins { text-decoration: none; }
body.single-product .wg-product-stock { display: grid; gap: 3px; margin-bottom: 16px; }
body.single-product .wg-product-stock .stock { color: var(--wg-muted, #667085); font-size: 14px; margin: 0; }

body.single-product .wg-product-logistics {
	border-block: 1px solid var(--wg-product-border);
	margin: 0 0 20px;
	padding: 18px 0 6px;
}
body.single-product .wg-product-logistics h2 { font-size: 1rem; margin: 0 0 10px; }
body.single-product .wg-delivery-option { display: grid; gap: 3px; padding: 8px 0 12px; }
body.single-product .wg-delivery-option span,
body.single-product .wg-delivery-empty { color: var(--wg-muted, #667085); font-size: 14px; line-height: 1.5; }
body.single-product .wg-delivery-empty { margin: 0; padding: 0 0 12px; }

body.single-product .wg-purchase-panel form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	width: 100%;
}
body.single-product form.cart .quantity .qty {
	border-color: var(--wg-border, #8b939e);
	border-radius: 6px;
	min-height: 48px;
	min-width: 78px;
}
body.single-product form.cart .single_add_to_cart_button {
	border-radius: 6px;
	flex: 1 1 180px;
	font-size: 15px;
	font-weight: 750;
	min-height: 48px;
}
body.single-product .product_meta {
	border-top: 1px solid var(--wg-product-border);
	color: var(--wg-muted, #667085);
	font-size: 13px;
	line-height: 1.65;
	margin-top: 20px;
	padding-top: 18px;
}
body.single-product .product_meta > span { display: block; }
body.single-product .product_meta a { color: var(--wg-green-dark, #08752f); font-weight: 600; }
body.single-product .wg-product-whatsapp { margin: 12px 0 0; }
body.single-product .wg-product-whatsapp__button {
	background: transparent;
	border: 1px solid var(--wg-border, #8b939e);
	border-radius: 6px;
	color: var(--wg-ink, #111827);
	font-weight: 700;
	width: 100%;
}
body.single-product .wg-mobile-copy,
body.single-product .wg-mobile-product-stock,
body.single-product .wg-cart-reassurance { display: none; }

body.single-product .wg-product-summary {
	border-top: 1px solid var(--wg-product-border);
	margin-top: clamp(36px, 6vw, 72px);
	padding-top: clamp(28px, 4vw, 44px);
}
body.single-product .wg-product-summary h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0 0 16px; }
body.single-product .wg-product-summary .woocommerce-product-details__short-description,
body.single-product .woocommerce-Tabs-panel {
	color: var(--wg-muted, #667085);
	font-size: 16px;
	line-height: 1.75;
	max-width: 76ch;
}
body.single-product .wg-product-summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
body.single-product form.cart .single_add_to_cart_button:focus-visible,
body.single-product .wg-product-whatsapp__button:focus-visible,
body.single-product .woocommerce-tabs a:focus-visible,
body.single-product .woocommerce-product-gallery__trigger:focus-visible {
	outline: 3px solid var(--wg-focus);
	outline-offset: 3px;
}
body.single-product .woocommerce-tabs { margin-top: clamp(32px, 5vw, 56px); }
body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.single-product .related.products li.product,
body.single-product .upsells.products li.product { width: auto; }
body.single-product .related.products li.product img,
body.single-product .upsells.products li.product img { aspect-ratio: 1; object-fit: contain; }

@media (max-width: 1024px) {
	body.single-product .product-entry-wrapper:has(.woocommerce-product-gallery) {
		gap: 28px;
		grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
	}
	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 689px) {
	body.single-product .site-main { padding-bottom: 40px; }
	body.single-product .product-entry-wrapper:has(.woocommerce-product-gallery) {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}
	body.single-product .woocommerce-product-gallery { border-radius: 10px; max-width: 100%; padding: 4px; width: 100%; }
	body.single-product .woocommerce-product-gallery[data-thumbs="left"] .flexy-pills { padding: 10px 0 0; }
	body.single-product .woocommerce-product-gallery .ct-media-container img,
	body.single-product .woocommerce-product-gallery__image img,
	body.single-product .woocommerce-product-gallery__wrapper img {
		aspect-ratio: auto !important;
		height: auto;
		max-height: min(70vh, 560px);
		object-fit: contain;
	}
	body.single-product .wg-purchase-panel { border: 0; border-radius: 0; padding: 0; width: 100%; }
	body.single-product .wg-desktop-copy { display: none; }
	body.single-product .wg-mobile-copy { display: inline; }
	body.single-product .wg-mobile-product-stock { color: var(--wg-muted, #667085); display: block; font-size: 14px; margin: 0 0 16px; }
	body.single-product .wg-mobile-product-stock.is-out-of-stock { color: var(--wg-error, #ba1a1a); }
	body.single-product .product_stock_scarcity { display: none; }
	body.single-product .wg-product-category { font-size: 11px; margin-bottom: 7px; }
	body.single-product .product_title { font-size: 25px; margin-bottom: 12px; }
	body.single-product .wg-purchase-panel > .price { font-size: 1.6rem; margin-bottom: 12px; }
	body.single-product .wg-product-stock { margin-bottom: 16px; }
	body.single-product .wg-product-stock > strong { display: none; }
	body.single-product .wg-purchase-panel form.cart { display: grid; gap: 12px; grid-template-columns: 1fr; }
	body.single-product form.cart .quantity,
	body.single-product form.cart .single_add_to_cart_button {
		box-sizing: border-box;
		max-width: none;
		width: 100%;
	}
	body.single-product form.cart .quantity {
		align-items: center;
		border: 1px solid var(--wg-border, #8b939e);
		border-radius: 8px;
		display: grid;
		grid-template-columns: 48px minmax(56px, 1fr) 48px;
		overflow: hidden;
	}
	body.single-product form.cart .quantity .qty {
		border: 0;
		border-inline: 1px solid var(--wg-product-border);
		border-radius: 0;
		min-height: 48px;
		min-width: 0;
		width: 100%;
	}
	body.single-product form.cart .quantity .ct-decrease,
	body.single-product form.cart .quantity .ct-increase {
		align-self: stretch;
		background: #fff;
		color: #111418;
		inset: auto;
		min-height: 48px;
		position: static;
		width: 48px;
	}
	body.single-product form.cart .quantity .ct-decrease { grid-column: 1; grid-row: 1; }
	body.single-product form.cart .quantity .qty { grid-column: 2; grid-row: 1; }
	body.single-product form.cart .quantity .ct-increase { grid-column: 3; grid-row: 1; }
	body.single-product form.cart .quantity .ct-decrease::before,
	body.single-product form.cart .quantity .ct-increase::before { font-family: inherit; font-size: 22px; margin: 0; }
	body.single-product form.cart .quantity .ct-decrease::before { content: "−"; }
	body.single-product form.cart .quantity .ct-increase::before { content: "+"; }
	body.single-product form.cart .single_add_to_cart_button {
		background: var(--wg-green-dark, #08752f);
		color: #fff;
		min-height: 48px;
	}
	body.single-product form.cart .single_add_to_cart_button:active { transform: translateY(1px); }
	body.single-product form.cart .single_add_to_cart_button.disabled,
	body.single-product form.cart .single_add_to_cart_button:disabled { background: #98a2b3; opacity: 1; }
	body.single-product .wg-cart-reassurance {
		color: var(--wg-muted, #667085);
		display: block;
		font-size: 14px;
		margin: 8px 0 0;
		text-align: center;
	}
	body.single-product .wg-product-logistics { border: 0; margin: 24px 0 8px; padding: 0; }
	body.single-product .wg-product-logistics h2 { color: #111418; font-size: 18px; margin-bottom: 12px; }
	body.single-product .wg-delivery-option {
		border: 1px solid var(--wg-product-border);
		border-radius: 10px;
		margin-bottom: 8px;
		padding: 14px 16px;
	}
	body.single-product .wg-product-whatsapp__button {
		background: #fff !important;
		border-color: var(--wg-green-dark, #08752f) !important;
		color: var(--wg-green-dark, #08752f) !important;
		min-height: 48px;
	}
	body.single-product .wg-product-summary { margin-top: 34px; padding-top: 28px; }
	body.single-product .wg-product-summary .woocommerce-product-details__short-description,
	body.single-product .woocommerce-Tabs-panel { font-size: 14px; line-height: 1.65; }
	body.single-product .woocommerce-tabs { margin-top: 28px; max-width: 100%; }
	body.single-product .woocommerce-tabs ul.tabs { display: none; }
	body.single-product .wg-tab-accordion { border-bottom: 1px solid var(--wg-product-border); }
	body.single-product .wg-tab-accordion__button {
		align-items: center;
		background: #fff;
		border: 0;
		border-top: 1px solid var(--wg-product-border);
		color: #111418;
		display: flex;
		font-size: 16px;
		font-weight: 700;
		justify-content: space-between;
		min-height: 48px;
		padding: 12px 0;
		text-align: left;
		width: 100%;
	}
	body.single-product .wg-tab-accordion__button::after { content: "+"; font-size: 22px; font-weight: 400; }
	body.single-product .wg-tab-accordion__button[aria-expanded="true"]::after { content: "−"; }
	body.single-product .wg-tab-accordion__button:focus-visible { outline: 3px solid var(--wg-focus); outline-offset: 2px; }
	body.single-product .wg-tab-accordion > .woocommerce-Tabs-panel { padding: 8px 0 20px; }
	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	body.single-product .site-main .hero-section,
	body.single-product .site-main .woocommerce-notices-wrapper,
	body.single-product .site-main div[id^="product-"].product {
		box-sizing: border-box;
		margin-inline: auto;
		max-width: 90%;
		width: 90%;
	}

	body.single-product .site-main .hero-section .ct-breadcrumbs {
		box-sizing: border-box;
		margin-inline: 0;
		max-width: 100%;
		width: 100%;
	}

	body.single-product .site-main div[id^="product-"].product > *,
	body.single-product .product-entry-wrapper,
	body.single-product .woocommerce-tabs,
	body.single-product .related.products,
	body.single-product .upsells.products {
		box-sizing: border-box;
		max-width: 100%;
		width: 100%;
	}
}
