/* ==== Single product page: centered container ==== */
body.single-product #primary {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	float: none !important;
	width: 100% !important;
}

/* ==== Two-column layout (flex overrides Astra's float layout) ==== */
body.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px;
	padding: 32px 0 60px;
}
body.single-product div.product .images,
body.single-product div.product .woocommerce-product-gallery {
	float: none;
	width: 100%;
	flex: 1 1 440px;
	max-width: 480px;
	margin: 0 !important;
}
body.single-product div.product .summary {
	float: none;
	width: 100%;
	flex: 1 1 400px;
	max-width: none;
	margin: 0 !important;
}

/* ==== Breadcrumb + category tag ==== */
body.single-product .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--pa-ink-muted);
	margin-bottom: 10px;
}
body.single-product .single-product-category a {
	display: inline-block;
	background: var(--pa-green-50);
	color: var(--pa-green-600);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
	text-decoration: none;
}

/* ==== Title ==== */
body.single-product .product_title.entry-title {
	font-size: clamp(24px, 3vw, 32px) !important;
	font-weight: 700 !important;
	margin: 0 0 14px !important;
	line-height: 1.2;
	color: var(--pa-ink);
}

/* ==== Price ==== */
body.single-product .summary p.price {
	font-size: 30px !important;
	font-weight: 700 !important;
	color: var(--pa-green-600) !important;
	margin: 0 0 18px !important;
}
body.single-product .summary p.price .woocommerce-Price-currencySymbol {
	font-size: 0.6em;
	font-weight: 600;
}

/* ==== Short description ==== */
body.single-product .woocommerce-product-details__short-description {
	color: var(--pa-ink-muted);
	font-size: 15px;
	line-height: 1.65;
	margin-bottom: 20px;
}
body.single-product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* ==== Stock ==== */
body.single-product .ast-stock-detail {
	font-size: 13px;
	margin: 0 0 24px !important;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--pa-border);
}
body.single-product .ast-stock-avail { color: var(--pa-ink-muted); }
body.single-product .stock.in-stock { color: var(--pa-green-600); font-weight: 600; }
body.single-product .stock.out-of-stock { color: #c0392b; font-weight: 600; }

/* ==== Quantity + Add to cart ==== */
body.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0 !important;
}
body.single-product form.cart .quantity { margin: 0 !important; }
body.single-product form.cart .quantity .qty {
	height: 50px;
	width: 80px;
	text-align: center;
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius-md);
	font-size: 16px;
}
body.single-product form.cart .single_add_to_cart_button.button {
	flex: 1;
	min-width: 220px;
	height: 50px;
	line-height: 50px;
	padding: 0 24px !important;
	background: var(--pa-green-500) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--pa-radius-md) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	text-transform: none !important;
	transition: background 0.15s ease;
}
body.single-product form.cart .single_add_to_cart_button.button:hover { background: var(--pa-green-600) !important; }

/* ==== Product meta (category footer line) ==== */
body.single-product .product_meta {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--pa-border);
	font-size: 13px;
	color: var(--pa-ink-muted);
}
body.single-product .product_meta a { color: var(--pa-green-600); }

/* ==== Gallery ==== */
body.single-product .woocommerce-product-gallery img { border-radius: var(--pa-radius-lg); }

/* ==== Mobile ==== */
@media (max-width: 782px) {
	body.single-product div.product {
		flex-direction: column;
		gap: 24px;
		padding: 20px 0 40px;
	}
	body.single-product div.product .images,
	body.single-product div.product .summary {
		max-width: 100%;
		flex-basis: 100%;
	}
	body.single-product form.cart .single_add_to_cart_button.button {
		width: 100%;
		flex: 1 1 100%;
	}
	body.single-product form.cart .quantity,
	body.single-product form.cart .quantity .qty {
		width: 100%;
	}
}
