/* IA Link single-product visual layer. Scoped to WooCommerce product pages only. */

body.single-product .site-content {
	overflow-x: clip;
}

body.single-product .site-content,
body.single-product #primary,
body.single-product #main,
body.single-product .ast-woocommerce-container,
body.single-product div.product,
body.single-product div.product > *,
body.single-product .summary,
body.single-product .woocommerce-product-gallery {
	max-width: 100%;
	min-width: 0;
}

body.single-product .ast-container {
	max-width: 1240px;
}

/* Astra outputs a separate post entry header above the WooCommerce product.
 * It duplicates the product title and was creating the large empty band seen
 * below the site header. Hide only that product-page wrapper; header/footer are
 * untouched. */
body.single-product #primary > .entry-header {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .site-content > .ast-container {
	padding-top: 18px !important;
}

body.single-product .ast-woocommerce-container {
	padding-top: 0;
}

body.single-product .woocommerce-breadcrumb {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

body.single-product .woocommerce-breadcrumb a {
	color: #4b5563;
	text-decoration: none;
}

body.single-product .woocommerce-breadcrumb a:hover {
	color: #0d5ce5;
}

body.single-product .ial-pdp-breadcrumb-sep {
	display: inline-block;
	margin: 0 9px;
	color: #a0a7b2;
}

body.single-product div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
	column-gap: 38px;
	row-gap: 24px;
	align-items: start;
}

body.single-product div.product > .woocommerce-product-gallery,
body.single-product div.product > .summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.single-product div.product > .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
}

body.single-product div.product > .summary {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	padding: 4px 0 0;
}

/* Astra may register some summary callbacks at different priorities. Explicit
 * flex ordering keeps the approved visual hierarchy without replacing the
 * native WooCommerce form or product data. */
body.single-product .summary > .ial-pdp-brand { order: 10; }
body.single-product .summary > .product_title { order: 20; }
body.single-product .summary > .price { order: 30; }
body.single-product .summary > .ial-pdp-saving { order: 40; }
body.single-product .summary > .woocommerce-product-details__short-description { order: 50; }
body.single-product .summary > .ial-pdp-stock { order: 60; }
body.single-product .summary > .ial-pdp-features { order: 70; }
body.single-product .summary > form.cart { order: 80; }
body.single-product .summary > .ial-pdp-extra-ctas { order: 90; }
body.single-product .summary > .product_meta { order: 100; }

body.single-product div.product > .onsale {
	position: absolute;
	z-index: 8;
	left: 16px;
	top: 16px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 11px;
	border-radius: 7px;
	background: #0d5ce5;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

/* Gallery */
body.single-product .woocommerce-product-gallery {
	position: relative;
}

body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
}

body.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
	border: 0;
	border-radius: 0;
}

body.single-product .woocommerce-product-gallery__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 28px;
	background: #fff;
}

body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: contain;
}

body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	top: auto;
	right: 18px;
	bottom: 18px;
	width: 42px;
	height: 42px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 7px;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active {
	outline: 2px solid #0d5ce5;
	outline-offset: -2px;
}

/* Summary */
body.single-product .single-product-category {
	display: none !important;
}

body.single-product .ial-pdp-brand {
	margin: 0 0 7px;
	color: #0d5ce5;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}

body.single-product div.product .product_title {
	margin: 0 0 14px;
	font-size: clamp(28px, 2.55vw, 36px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: #111827;
}

body.single-product div.product p.price {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0;
	color: #0d5ce5;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
}

body.single-product div.product p.price ins {
	order: -1;
	background: transparent;
	text-decoration: none;
	font-weight: 800;
}

body.single-product div.product p.price del {
	color: #8b8f97;
	font-size: 17px;
	font-weight: 500;
	opacity: 1;
}

body.single-product .ial-pdp-saving {
	display: inline-flex;
	width: max-content;
	max-width: 100%;
	margin: 8px 0 0;
	padding: 7px 10px;
	border-radius: 8px;
	background: #ffe9ea;
	color: #d92d38;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

body.single-product .woocommerce-product-details__short-description {
	margin: 14px 0 0;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.55;
}

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

body.single-product .woocommerce-product-details__short-description > *:last-child {
	margin-bottom: 0;
}

body.single-product .ial-pdp-stock {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 13px 0 0;
	font-size: 14px;
	font-weight: 800;
	color: #0a9d49;
}

body.single-product .ial-pdp-stock__dot {
	width: 10px;
	height: 10px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: currentColor;
}

body.single-product .ial-pdp-stock.is-out-of-stock {
	color: #dc2626;
}

body.single-product .ial-pdp-stock.is-backorder {
	color: #b7791f;
}

body.single-product .ial-pdp-features {
	display: grid;
	gap: 9px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

body.single-product .ial-pdp-features li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin: 0;
	color: #374151;
	font-size: 14px;
	line-height: 1.45;
}

body.single-product .ial-pdp-feature-check {
	display: grid;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	place-items: center;
	margin-top: 1px;
	border: 2px solid #0d5ce5;
	border-radius: 50%;
	color: #0d5ce5;
}

/* Native WooCommerce Add to Cart, visually rebuilt rather than replaced. */
body.single-product div.product form.cart:not(.variations_form) {
	display: grid;
	grid-template-columns: 125px minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
	margin: 20px 0 0;
}

body.single-product div.product form.cart .quantity {
	display: grid;
	grid-template-columns: 34px minmax(36px, 1fr) 34px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	border: 1px solid #d7dbe2;
	border-radius: 9px;
	overflow: hidden;
	background: #fff;
}

body.single-product div.product form.cart .quantity .qty {
	width: 100% !important;
	min-width: 0;
	height: 52px;
	padding: 0 2px;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff;
	box-shadow: none !important;
	text-align: center;
	font-weight: 700;
	-moz-appearance: textfield;
}

body.single-product div.product form.cart .quantity .qty::-webkit-outer-spin-button,
body.single-product div.product form.cart .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.single-product div.product form.cart .ast-qty-placeholder {
	display: grid;
	place-items: center;
	width: 34px;
	height: 52px;
	padding: 0;
	color: #6b7280;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	background: #fff;
}

body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product .ial-pdp-buy-now,
body.single-product .ial-pdp-whatsapp {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0 !important;
	padding: 12px 18px !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.single-product div.product form.cart .single_add_to_cart_button,
body.single-product .ial-pdp-buy-now {
	border: 1px solid #0d5ce5 !important;
	background: linear-gradient(135deg, #0d5ce5, #0b4fd0) !important;
	color: #fff !important;
}

body.single-product div.product form.cart .single_add_to_cart_button:hover,
body.single-product .ial-pdp-buy-now:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(13, 92, 229, .18) !important;
}

body.single-product .ial-pdp-extra-ctas {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

body.single-product .ial-pdp-whatsapp {
	border: 1.5px solid #10b95a !important;
	background: #fff !important;
	color: #0a9d49 !important;
}

body.single-product .ial-pdp-whatsapp:hover {
	background: #f3fff8 !important;
}

/* Variable products retain WooCommerce's variation system. */
body.single-product div.product form.variations_form {
	margin-top: 20px;
}

body.single-product div.product form.variations_form table.variations {
	width: 100%;
	margin-bottom: 14px;
}

body.single-product div.product form.variations_form .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: 125px minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
}

/* Everything below the top product area spans both columns. */
body.single-product div.product > .woocommerce-tabs,
body.single-product div.product > .related,
body.single-product div.product > .up-sells,
body.single-product div.product > section,
body.single-product div.product > .ial-pdp-trust,
body.single-product div.product > .ial-pdp-description {
	grid-column: 1 / -1;
}

/* Single trust strip ------------------------------------------------------ */
body.single-product .ial-pdp-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	margin: 4px 0 0;
	border: 1px solid #bcd5ff;
	border-radius: 12px;
	background: #fbfdff;
	overflow: hidden;
}

body.single-product .ial-pdp-trust__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 18px 20px;
}

body.single-product .ial-pdp-trust__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22%;
	right: 0;
	width: 1px;
	height: 56%;
	background: #e2e8f0;
}

body.single-product .ial-pdp-trust__icon {
	display: grid;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	place-items: center;
	color: #0d5ce5;
}

body.single-product .ial-pdp-trust__icon svg {
	display: block;
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.single-product .ial-pdp-trust__copy {
	display: block;
	min-width: 0;
}

body.single-product .ial-pdp-trust__copy strong {
	display: block;
	margin: 0;
	color: #0d5ce5;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

body.single-product .ial-pdp-trust__copy small {
	display: block;
	margin-top: 4px;
	color: #6b7280;
	font-size: 11px;
	line-height: 1.35;
}

/* Long description ------------------------------------------------------- */
body.single-product .ial-pdp-description {
	width: 100%;
	margin: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

body.single-product .ial-pdp-description__heading {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 16px 24px 14px;
	border-bottom: 1px solid #e5e7eb;
}

body.single-product .ial-pdp-description__heading::after {
	content: "";
	position: absolute;
	left: 24px;
	bottom: -1px;
	width: 118px;
	height: 2px;
	background: #0d5ce5;
}

body.single-product .ial-pdp-description__heading svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	fill: none;
	stroke: #0d5ce5;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.single-product .ial-pdp-description__heading h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
}

body.single-product .ial-pdp-description__content {
	padding: 22px 28px 24px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

body.single-product .ial-pdp-description__content > *:first-child {
	margin-top: 0;
}

body.single-product .ial-pdp-description__content > *:last-child {
	margin-bottom: 0;
}

body.single-product .ial-pdp-description__content h2,
body.single-product .ial-pdp-description__content h3,
body.single-product .ial-pdp-description__content h4 {
	color: #111827;
	line-height: 1.3;
}

body.single-product .ial-pdp-description__content img,
body.single-product .ial-pdp-description__content iframe,
body.single-product .ial-pdp-description__content video {
	max-width: 100%;
	height: auto;
}

body.single-product .ial-pdp-description__content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	-webkit-overflow-scrolling: touch;
}

/* Native WooCommerce related products, visually matched to the prototype. */
body.single-product div.product > section.related.products {
	width: 100%;
	margin: 0;
	padding: 0;
}

body.single-product section.related.products > h2 {
	margin: 2px 0 12px;
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

body.single-product section.related.products ul.products,
body.single-product section.related.products ul.products.columns-4 {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product section.related.products ul.products::before,
body.single-product section.related.products ul.products::after {
	display: none !important;
}

body.single-product section.related.products ul.products li.product {
	position: relative;
	display: flex;
	float: none !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 12px !important;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	overflow: hidden;
}

body.single-product section.related.products .astra-shop-thumbnail-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 9px;
	background: #fbfbfc;
	overflow: hidden;
}

body.single-product section.related.products .astra-shop-thumbnail-wrap > a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

body.single-product section.related.products .astra-shop-thumbnail-wrap img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 9px;
	object-fit: contain;
}

body.single-product section.related.products .astra-shop-thumbnail-wrap .onsale {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	bottom: auto !important;
	display: grid !important;
	place-items: center;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	max-width: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #0d5ce5 !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-align: center;
	z-index: 3;
}

body.single-product section.related.products .astra-shop-summary-wrap {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 10px 2px 2px;
}

body.single-product section.related.products .ast-woo-product-category,
body.single-product section.related.products .add_to_cart_button,
body.single-product section.related.products .added_to_cart {
	display: none !important;
}

body.single-product section.related.products h2.woocommerce-loop-product__title {
	min-height: 38px;
	margin: 0 0 7px !important;
	padding: 0 !important;
	color: #111827;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

body.single-product section.related.products .price {
	display: flex !important;
	align-items: baseline;
	gap: 7px;
	flex-wrap: wrap;
	margin: auto 0 0 !important;
	color: #0d5ce5 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.3;
}

body.single-product section.related.products .price ins {
	order: -1;
	background: transparent;
	color: #0d5ce5;
	font-weight: 800;
	text-decoration: none;
}

body.single-product section.related.products .price del {
	color: #9ca3af;
	font-size: 11px;
	font-weight: 500;
	opacity: 1;
}

@media (max-width: 980px) {
	body.single-product .ial-pdp-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-product .ial-pdp-trust__item:nth-child(2)::after {
		display: none;
	}

	body.single-product .ial-pdp-trust__item:nth-child(-n+2)::before {
		content: "";
		position: absolute;
		left: 18px;
		right: 18px;
		bottom: 0;
		height: 1px;
		background: #e2e8f0;
	}

	body.single-product section.related.products ul.products,
	body.single-product section.related.products ul.products.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-product .ast-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	body.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	body.single-product div.product > .woocommerce-product-gallery,
	body.single-product div.product > .summary {
		grid-column: 1;
	}

	body.single-product div.product > .woocommerce-product-gallery {
		grid-row: 1;
	}

	body.single-product div.product > .summary {
		grid-row: 2;
	}

	body.single-product div.product > .onsale {
		top: 14px;
		left: 14px;
	}
}

@media (max-width: 720px) {
	body.single-product .ial-pdp-trust__item {
		gap: 10px;
		padding: 14px;
	}

	body.single-product .ial-pdp-trust__copy strong {
		font-size: 13px;
	}

	body.single-product .ial-pdp-trust__copy small {
		font-size: 10px;
	}

	body.single-product .ial-pdp-description__heading {
		padding: 15px 16px 12px;
	}

	body.single-product .ial-pdp-description__heading::after {
		left: 16px;
	}

	body.single-product .ial-pdp-description__content {
		padding: 17px 16px 20px;
		font-size: 13px;
	}

	body.single-product section.related.products ul.products,
	body.single-product section.related.products ul.products.columns-4 {
		gap: 10px;
	}

	body.single-product section.related.products ul.products li.product {
		padding: 9px !important;
	}

	body.single-product section.related.products h2.woocommerce-loop-product__title {
		min-height: 42px;
		font-size: 12px !important;
	}

	body.single-product .site-content,
	body.single-product .ast-container,
	body.single-product .ast-woocommerce-container,
	body.single-product #primary,
	body.single-product #main,
	body.single-product div.product {
		width: 100%;
		max-width: 100%;
	}

	body.single-product .ast-container {
		padding-left: 10px;
		padding-right: 10px;
	}

	body.single-product .woocommerce-breadcrumb {
		display: block;
		max-width: 100%;
		margin-bottom: 12px;
		overflow: hidden;
		font-size: 11px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	body.single-product div.product {
		row-gap: 18px;
	}

	body.single-product .woocommerce-product-gallery__image a {
		padding: 20px;
	}

	body.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
		display: flex;
		gap: 9px;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 0 0 4px !important;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li {
		width: 78px !important;
		min-width: 78px;
		flex: 0 0 78px;
	}

	body.single-product div.product .product_title {
		font-size: clamp(24px, 7vw, 29px);
		line-height: 1.12;
	}

	body.single-product div.product p.price {
		font-size: 27px;
	}

	body.single-product .woocommerce-product-details__short-description {
		font-size: 14px;
	}

	body.single-product div.product form.cart:not(.variations_form),
	body.single-product div.product form.variations_form .woocommerce-variation-add-to-cart {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 8px;
	}

	body.single-product div.product form.cart .quantity .qty,
	body.single-product div.product form.cart .ast-qty-placeholder {
		height: 48px;
	}

	body.single-product div.product form.cart .single_add_to_cart_button,
	body.single-product .ial-pdp-buy-now,
	body.single-product .ial-pdp-whatsapp {
		min-height: 48px;
		padding-left: 10px !important;
		padding-right: 10px !important;
		font-size: 15px !important;
	}

	body.single-product .summary,
	body.single-product .woocommerce-product-details__short-description,
	body.single-product .ial-pdp-features,
	body.single-product .ial-pdp-extra-ctas {
		max-width: 100%;
		min-width: 0;
		word-break: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 380px) {
	body.single-product .ial-pdp-trust {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product .ial-pdp-trust__item::after,
	body.single-product .ial-pdp-trust__item::before {
		display: none !important;
	}

	body.single-product .ial-pdp-trust__item:not(:last-child) {
		border-bottom: 1px solid #e2e8f0;
	}

	body.single-product div.product form.cart .quantity,
	body.single-product div.product form.variations_form .woocommerce-variation-add-to-cart .quantity {
		flex-basis: 94px !important;
		width: 94px !important;
		grid-template-columns: 29px minmax(30px, 1fr) 29px;
	}

	body.single-product div.product form.cart .ast-qty-placeholder {
		width: 29px;
	}
}

/* Conflict guards ---------------------------------------------------------
 * The product H1 is present in WooCommerce's rendered markup and Astra's
 * single-product title setting is enabled. A site-level style is suppressing
 * it visually, so the PDP layer explicitly restores the native title without
 * touching Astra core files or the header/footer templates.
 */
body.single-product div.product .summary h1.product_title.entry-title,
body.single-product div.product .summary .product_title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	clip: auto !important;
	clip-path: none !important;
	transform: none !important;
	font-size: clamp(28px, 2.55vw, 36px) !important;
	line-height: 1.08 !important;
	color: #111827 !important;
}

/* Keep quantity + Add to Cart on one row. Astra's WooCommerce layout can
 * impose its own flex sizing at some breakpoints, so this rule deliberately
 * wins only inside the single-product purchase form. */
body.single-product div.product .summary form.cart:not(.variations_form),
body.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.single-product div.product .summary form.cart .quantity,
body.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity {
	flex: 0 0 125px !important;
	width: 125px !important;
	max-width: 125px !important;
	min-width: 0 !important;
}

body.single-product div.product .summary form.cart .single_add_to_cart_button,
body.single-product div.product .summary form.variations_form .single_add_to_cart_button {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	white-space: nowrap !important;
}

@media (max-width: 720px) {
	body.single-product div.product .summary h1.product_title.entry-title,
	body.single-product div.product .summary .product_title {
		font-size: clamp(24px, 7vw, 29px) !important;
		line-height: 1.12 !important;
	}

	body.single-product div.product .summary form.cart:not(.variations_form),
	body.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart {
		gap: 8px !important;
	}

	body.single-product div.product .summary form.cart .quantity,
	body.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity {
		flex-basis: 104px !important;
		width: 104px !important;
		max-width: 104px !important;
	}
}

@media (max-width: 380px) {
	body.single-product div.product .summary form.cart .quantity,
	body.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart .quantity {
		flex-basis: 94px !important;
		width: 94px !important;
		max-width: 94px !important;
	}
}
