/*
 * KBA-7 product page — image left, summary right (title, description, size,
 * spec attributes, price + buy button, copyright notice). Mobile-first, stacks
 * to a single column; two columns from desktop width up.
 */

.kba-product {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Storefront's woocommerce.css forces div.product .woocommerce-product-gallery /
   .images to width:41% + float:left (its own 2-column layout maths) — fights our
   flex-based .kba-product-image column, shrinking the gallery a second time
   inside it. Neutralize so the gallery fills its flex column instead. */
.kba-product-image .woocommerce-product-gallery,
.kba-product-image .images {
	width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
}

.kba-product-image img {
	display: block;
	width: 100%;
	height: auto;
}

.kba-product-title {
	margin: 0 0 16px;
	text-transform: uppercase;
}

.kba-product-field {
	margin: 0 0 16px;
}

.kba-product-field p {
	margin: 0.5em 0 0;
}

.kba-product-note {
	margin: -8px 0 16px;
	font-size: 0.9rem;
	color: #666;
}

.kba-product-purchase {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.kba-product-price {
	font-size: 1.4rem;
	font-weight: bold;
}

.kba-product-purchase .stock {
	margin: 0;
	font-weight: bold;
}

.kba-product-purchase .stock.out-of-stock {
	color: #c0392b;
}

.kba-product-purchase .stock.in-stock {
	color: var( --kba-heading-color, #1abc9c );
}

.kba-product-purchase form.cart {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.kba-product-purchase .quantity {
	display: none;
}

.kba-product-purchase .single_add_to_cart_button {
	background: var( --kba-heading-color, #1abc9c );
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-weight: bold;
	cursor: pointer;
}

.kba-product-copyright {
	font-size: 0.85rem;
	color: #666;
}

@media ( min-width: 769px ) {
	.kba-product {
		flex-direction: row;
		align-items: flex-start;
		padding: 48px 32px;
	}

	.kba-product-image {
		flex: 0 0 45%;
	}

	.kba-product-summary {
		flex: 1;
	}
}
