/*--------------------------------------------------------------
# Product search and directory grid
--------------------------------------------------------------*/

.section-heading {
	margin-bottom: 48px;
}

.section-heading h1,
.section-heading h2,
.coa-card h2,
.contact-intro h2 {
	margin: 14px 0;
	color: var(--color-navy-deep);
	font-size: var(--fs-section-title);
	line-height: 1.08;
}

.section-heading p {
	max-width: 660px;
	margin: 0;
	color: var(--color-muted);
	line-height: 1.8;
}

.split-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(420px, 100%);
	min-height: 52px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #bfd3df;
	border-radius: var(--radius-field);
	box-shadow: var(--shadow-search);
}

.search-box span {
	color: var(--color-teal);
	font-size: 26px;
}

.search-box input {
	width: 100%;
	min-width: 0;
	outline: 0;
	border: 0;
	background: transparent;
	color: var(--color-ink);
}

.search-box input::-webkit-search-cancel-button {
	margin-left: 8px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.product-card:hover,
.product-card:focus-visible {
	border-color: #97d6d4;
	transform: translateY(-6px);
	box-shadow: var(--shadow-card-hover);
}

.product-card.is-hidden {
	display: none;
}

.product-image {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	overflow: hidden;
	background:
		radial-gradient(circle at 65% 20%, rgba(19, 207, 197, 0.16), transparent 25%),
		linear-gradient(145deg, #edf7fb, #f9fcfd);
}

/* 卡片照片左上角的包装徽章（样式对齐参考站 innmi）。 */
.vial-pack-badge {
	position: absolute;
	top: 4.2%;
	left: 4.2%;
	z-index: 6;
	padding: 0.42em 0.85em;
	background: linear-gradient(110deg, #0849b5, #0869c8);
	border-radius: 999px;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.2;
	box-shadow: 0 4px 10px rgba(0, 54, 126, 0.18);
	pointer-events: none;
	white-space: nowrap;
}

.image-disclaimer {
	display: block;
	padding: 8px 14px 0;
	color: #8495a2;
	font-size: 9px;
	line-height: 1.35;
	text-align: center;
}

.product-copy {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 11px 18px 15px;
}

.product-code {
	display: block;
	color: var(--color-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.product-copy h3 {
	min-height: 0;
	margin: 6px 0 3px;
	color: var(--color-navy-deep);
	font-size: 19px;
	line-height: 1.22;
}

.product-copy p {
	margin: 0 0 10px;
	color: var(--color-muted);
	font-size: 13px;
}

.product-copy .text-link {
	display: inline-block;
	margin-top: auto;
	padding-top: 8px;
}

.products-section .empty-state {
	margin-top: 26px;
	border-color: #a7c1d2;
}

.load-more {
	display: flex;
	margin: 26px auto 0;
}

/*--------------------------------------------------------------
# Product media: card carousel and detail gallery
--------------------------------------------------------------*/

.product-media-carousel {
	position: relative;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: linear-gradient(145deg, #edf7fb, #f9fcfd);
}

.product-media-track {
	position: absolute;
	inset: 0;
}

.product-media-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.03);
	transition: opacity 0.55s var(--ease-carousel), transform 0.55s var(--ease-carousel), visibility 0.55s;
}

.product-media-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	z-index: 2;
}

.product-media-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-media-dots {
	position: absolute;
	right: 5%;
	bottom: 4%;
	z-index: 5;
	display: flex;
	gap: 5px;
	padding: 5px 7px;
	background: rgba(255, 255, 255, 0.82);
	border-radius: var(--radius-pill);
	box-shadow: 0 4px 14px rgba(9, 46, 92, 0.14);
}

.product-media-dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	background: rgba(8, 50, 92, 0.32);
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: width 0.2s, background 0.2s;
}

.product-media-dots button.is-active {
	width: 17px;
	background: #0868c1;
}

/* 单图产品：不显示圆点，不做轮播 */
.product-media-carousel:not(.has-slides) .product-media-dots {
	display: none;
}

# Responsive
--------------------------------------------------------------*/

@media (max-width: 1050px) {

	.product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {

	.section-heading {
		margin-bottom: 34px;
	}

	.split-heading {
		display: grid;
	}

	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 480px) {

	.product-grid {
		gap: 10px;
	}

	.product-copy {
		padding: 10px 12px 13px;
	}

	.product-copy h3 {
		font-size: 14px;
	}

	.product-copy p {
		font-size: 11px;
	}

	.image-disclaimer {
		padding-inline: 8px;
		font-size: 8px;
	}
}
