/**
 * Product Internal Page — Section 1 (Intro)
 * Namespaced entirely under .product-intro to avoid conflicts with
 * Elementor, WooCommerce, existing product cards, or theme styles.
 */

.product-intro {
	--pi-orange: #f07d1a;
	--pi-orange-dark: #d96c0f;
	--pi-blue: #1d4ed8;
	--pi-blue-bg: #eff4ff;
	--pi-blue-border: #c9d9fb;
	--pi-green: #22c55e;
	--pi-text: #1a1a1a;
	--pi-text-muted: #5b6472;
	--pi-border: #e2e5ea;
	--pi-gray-bg: #eceff2;
	--pi-radius: 10px;

	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px;
	color: var(--pi-text);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

.product-intro *,
.product-intro *::before,
.product-intro *::after {
	box-sizing: border-box;
}

.product-intro__inner {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

/* -------------------------------------------------- */
/* Gallery (left column)                               */
/* -------------------------------------------------- */

.product-intro__gallery {
	flex: 1 1 50%;
	max-width: 50%;
	min-width: 280px;
}

.product-intro__main-image {
	width: 100%;
	background: var(--pi-gray-bg);
	border-radius: var(--pi-radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-intro__main-image-el {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.product-intro__thumbnails {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
}

.product-intro__thumbnail {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	padding: 0;
	background: var(--pi-gray-bg);
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.product-intro__thumbnail:hover {
	border-color: var(--pi-blue-border);
}

.product-intro__thumbnail:focus-visible {
	outline: 2px solid var(--pi-blue);
	outline-offset: 2px;
}

.product-intro__thumbnail.is-active {
	border-color: var(--pi-blue);
}

.product-intro__thumbnail-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* -------------------------------------------------- */
/* Content (right column)                              */
/* -------------------------------------------------- */

.product-intro__content {
	flex: 1 1 50%;
	max-width: 50%;
	min-width: 280px;
}

.product-intro__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--pi-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.product-intro__eyebrow::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 2px;
	background: var(--pi-orange);
	flex-shrink: 0;
}

.product-intro__title {
	margin: 0 0 16px;
	font-size: 2.25rem;
	line-height: 1.2;
	font-weight: 800;
	color: var(--pi-text);
}

.product-intro__availability {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	color: var(--pi-text-muted);
	font-size: 0.95rem;
}

.product-intro__availability-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pi-green);
	flex-shrink: 0;
}

.product-intro__description {
	margin: 0 0 24px;
	color: var(--pi-text-muted);
	font-size: 1rem;
	max-width: 60ch;
}

.product-intro__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.product-intro__highlight {
	background: var(--pi-blue-bg);
	border: 1px solid var(--pi-blue-border);
	color: var(--pi-blue);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.product-intro__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
}

.product-intro__action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-intro__action--primary {
	background: var(--pi-orange);
	color: #fff;
	border: 1px solid var(--pi-orange);
}

.product-intro__action--primary:hover,
.product-intro__action--primary:focus-visible {
	background: var(--pi-orange-dark);
	border-color: var(--pi-orange-dark);
	color: #fff;
}

.product-intro__action--secondary {
	background: #fff;
	color: var(--pi-blue);
	border: 1px solid var(--pi-blue);
}

.product-intro__action--secondary:hover,
.product-intro__action--secondary:focus-visible {
	background: var(--pi-blue-bg);
	color: var(--pi-blue);
}

.product-intro__action--link {
	background: transparent;
	color: var(--pi-blue);
	border: 1px solid transparent;
	padding: 14px 8px;
	text-transform: none;
	font-weight: 600;
}

.product-intro__action--link:hover,
.product-intro__action--link:focus-visible {
	text-decoration: underline;
	color: var(--pi-blue);
}

.product-intro__action-icon {
	font-size: 1em;
	line-height: 1;
}

.product-intro__divider {
	border: none;
	border-top: 1px solid var(--pi-border);
	margin: 0 0 24px;
}

.product-intro__manufacturer {
	color: var(--pi-text-muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

.product-intro__manufacturer p {
	margin: 0;
}

.product-intro__manufacturer-line strong,
.product-intro__manufacturer-line b {
	color: var(--pi-text);
	font-weight: 700;
}

/* -------------------------------------------------- */
/* Tablet                                              */
/* -------------------------------------------------- */

@media (max-width: 1024px) {
	.product-intro__inner {
		gap: 28px;
	}

	.product-intro__title {
		font-size: 1.9rem;
	}

	.product-intro__action {
		padding: 12px 18px;
	}
}

/* -------------------------------------------------- */
/* Mobile — stacked layout                             */
/* -------------------------------------------------- */

@media (max-width: 768px) {
	.product-intro {
		padding: 24px 16px;
	}

	.product-intro__inner {
		flex-direction: column;
		gap: 24px;
	}

	.product-intro__gallery,
	.product-intro__content {
		max-width: 100%;
		flex-basis: 100%;
	}

	.product-intro__title {
		font-size: 1.6rem;
	}

	.product-intro__thumbnail {
		width: 72px;
		height: 72px;
	}

	.product-intro__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.product-intro__action {
		width: 100%;
		justify-content: center;
	}

	.product-intro__action--link {
		padding: 10px 8px;
	}
}