/**
 * FSE BOM Kits - Kit product template styles.
 *
 * Styles for the custom single-product-kit.php template.
 * Designed to work with Storefront + Elementor.
 */

/* ─── Kit product layout ─── */

.fse-kit-product {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.fse-kit-product-header {
	text-align: center;
	padding: 30px 0 20px;
	border-bottom: 2px solid #e74c3c;
	margin-bottom: 30px;
}

.fse-kit-product-header .product_title {
	font-size: 2em;
	margin-bottom: 10px;
}

.fse-kit-short-description {
	font-size: 1.1em;
	color: #555;
	max-width: 700px;
	margin: 0 auto;
}

/* ─── Two-column layout ─── */

.fse-kit-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}

@media (max-width: 768px) {
	.fse-kit-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ─── Left column: media + what's included ─── */

.fse-kit-media {
	position: relative;
}

.fse-kit-media .woocommerce-product-gallery {
	margin-bottom: 24px;
}

/* ─── What's included panel ─── */

.fse-kit-whats-included {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px;
}

.fse-kit-whats-included h3 {
	margin: 0 0 14px;
	font-size: 1.1em;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
}

.fse-kit-components-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fse-kit-component-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.fse-kit-component-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.fse-kit-component-thumb {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	overflow: hidden;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.fse-kit-component-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fse-kit-component-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fse-kit-component-info strong {
	font-size: 0.95em;
	color: #222;
}

.fse-kit-component-name {
	font-size: 0.85em;
	color: #666;
}

.fse-kit-component-qty {
	font-size: 0.8em;
	color: #888;
}

.fse-kit-component-qty em {
	color: #e74c3c;
	font-style: normal;
	font-weight: 500;
}

/* ─── Right column: configurator ─── */

.fse-kit-configurator {
	position: sticky;
	top: 80px;
}

.fse-kit-configurator-header {
	background: #c0392b;
	color: #fff;
	padding: 20px 24px;
	border-radius: 6px 6px 0 0;
	margin-bottom: 0;
}

.fse-kit-configurator-header h2 {
	color: #fff;
	margin: 0 0 6px;
	font-size: 1.3em;
}

.fse-kit-configurator-subtitle {
	margin: 0;
	font-size: 0.9em;
	opacity: 0.9;
}

.fse-kit-summary {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 6px 6px;
	padding: 24px;
}

/* Make the price prominent in the configurator */
.fse-kit-summary .price {
	font-size: 1.8em;
	color: #c0392b;
	margin-bottom: 16px;
	display: block;
}

/* Style add-to-cart within configurator */
.fse-kit-summary .single_add_to_cart_button {
	width: 100%;
	padding: 14px 24px;
	font-size: 1.1em;
	background: #e74c3c;
	border-color: #e74c3c;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.fse-kit-summary .single_add_to_cart_button:hover {
	background: #c0392b;
	border-color: #c0392b;
}

/* ─── Uni CPO form overrides within kit template ─── */

.fse-kit-summary .uni-cpo-module {
	margin-bottom: 16px;
}

.fse-kit-summary .uni-cpo-module label {
	font-weight: 600;
	margin-bottom: 6px;
	display: block;
}

/* ─── Bottom details section ─── */

.fse-kit-details {
	border-top: 1px solid #eee;
	padding-top: 30px;
	clear: both;
}

/* ─── Responsive adjustments ─── */

@media (max-width: 768px) {
	.fse-kit-configurator {
		position: static;
	}

	.fse-kit-product-header {
		padding: 20px 0 15px;
	}

	.fse-kit-product-header .product_title {
		font-size: 1.5em;
	}

	.fse-kit-summary .price {
		font-size: 1.4em;
	}
}
