/*
 * Blocksy renders the gallery and purchase summary as direct children of
 * .product-entry-wrapper. Keep the product's tabs and related products in
 * their native flow after this wrapper.
 */
body.magnets-storefront.single-product .product-entry-wrapper {
	display: grid;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

body.magnets-storefront.single-product .product-entry-wrapper > .woocommerce-product-gallery,
body.magnets-storefront.single-product .product-entry-wrapper > .summary {
	float: none;
	margin: 0;
	min-width: 0;
	width: auto;
}

body.magnets-storefront.single-product .product-entry-wrapper > .woocommerce-product-gallery {
	grid-column: 1;
	max-width: 720px;
	width: 100%;
}

body.magnets-storefront.single-product .product-entry-wrapper > .summary {
	grid-column: 2;
	width: 100%;
}

body.magnets-storefront.single-product .woocommerce-product-gallery .ct-media-container {
	background: var(--magnets-surface-soft);
	border-radius: 8px;
	margin: 0;
	overflow: hidden;
}

body.magnets-storefront.single-product .woocommerce-product-gallery .ct-media-container img {
	display: block;
	max-height: min(60vw, 640px);
	object-fit: contain;
	width: 100%;
}

body.magnets-storefront.single-product .product_title {
	font-size: clamp(2.5rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1.08;
}

body.magnets-storefront.single-product .entry-summary .price {
	color: var(--magnets-text);
	font-size: 2rem;
	font-weight: 700;
}

body.magnets-storefront.single-product .entry-summary .ct-cart-actions {
	display: grid;
	gap: 12px;
	grid-template-columns: auto minmax(0, 1fr);
}

body.magnets-storefront.single-product .quantity .qty,
body.magnets-storefront.single-product form.cart .single_add_to_cart_button,
body.magnets-storefront.single-product table.variations select {
	min-height: 48px;
}

body.magnets-storefront.single-product form.cart .single_add_to_cart_button {
	background: var(--magnets-accent);
	border-radius: 6px;
	color: #ffffff;
	min-width: 0;
	transition: background-color 160ms ease, transform 160ms ease;
}

body.magnets-storefront.single-product form.cart .single_add_to_cart_button:hover {
	background: var(--magnets-accent-hover);
}

body.magnets-storefront.single-product form.cart .single_add_to_cart_button:active {
	transform: translateY(1px);
}

@media (max-width: 768px) {
	body.magnets-storefront.single-product .product-entry-wrapper {
		display: block;
	}

	body.magnets-storefront.single-product .product-entry-wrapper > .woocommerce-product-gallery,
	body.magnets-storefront.single-product .product-entry-wrapper > .summary {
		margin-bottom: 40px;
		max-width: none;
	}

	body.magnets-storefront.single-product .woocommerce-product-gallery .ct-media-container img {
		max-height: none;
	}
}

@media (max-width: 479px) {
	body.magnets-storefront.single-product .entry-summary .ct-cart-actions {
		grid-template-columns: 1fr;
	}

	body.magnets-storefront.single-product .entry-summary .ct-cart-actions .quantity,
	body.magnets-storefront.single-product .entry-summary .ct-cart-actions .single_add_to_cart_button {
		width: 100%;
	}
}
