.single-product div.product {
	display: flex;
	flex-wrap: wrap;
}

.single-product div.product > .product_title {
	flex: 1 1 100%;
	order: -1;
	width: 100%;
}

.single-product div.product > .woocommerce-product-gallery {
	flex: 0 0 calc(30% - 1em);
	max-width: calc(30% - 1em);
	order: 1;
}

.single-product div.product > .summary.entry-summary {
	flex: 0 0 calc(70% - 1em);
	max-width: calc(70% - 1em);
	order: 2;
}

.single-product .entry-title {
	font-size: 1.5em;
}

@media (max-width: 768px) {
	.single-product div.product > .woocommerce-product-gallery,
	.single-product div.product > .summary.entry-summary {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.single-product div.product > .summary.entry-summary {
		order: 1;
	}
	.single-product div.product > .woocommerce-product-gallery {
		order: 2;
	}
}

.summary.entry-summary {
	display: flex;
	flex-direction: column;
}

/* Remove breadcrumb and standalone category link */
.summary.entry-summary > .woocommerce-breadcrumb,
.summary.entry-summary > .single-product-category {
	display: none;
}

/* Remove "Categorie:" from the meta line too */
.summary.entry-summary .product_meta .posted_in {
	display: none;
}

/* Swap order: short description first, then price */
.summary.entry-summary > .woocommerce-product-details__short-description {
	order: 1;
}
.summary.entry-summary > .price {
	order: 2;
}
.summary.entry-summary > form.cart {
	order: 3;
}
.summary.entry-summary > .product_meta {
	order: 4;
}

/* 1. Remove category (in case caching or specificity beat the earlier rule) */
.summary.entry-summary > .single-product-category,
.summary.entry-summary .product_meta .posted_in {
	display: none !important;
}

/* 2. Space after the last paragraph of the description text */
#tab-description {
	margin-bottom: 2em;
}

/* 3. Gap between the columns (gallery + summary) when side by side */
.single-product div.product {
	gap: 2em;
}

/* 4. Remove the line between the variations table and quantity+button */
.single_variation_wrap,
.woocommerce-variation-add-to-cart {
	border-top: none !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* 5. Remove the line between quantity+button and SKU */
.product_meta {
	border-top: none !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

table.variations {
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

#main .alignwide {
	margin: 0 !important;
}
