/**
 * Lightweight Medical Product Catalog — frontend styles (single product).
 *
 * The archive product-card and sidebar-filter rules live in the inline
 * critical CSS printed by mpc_critical_inline_css() (with !important) so
 * they reliably override core/global block styles. This file holds the
 * single-product styles, which the theme does not contest.
 */

.mpc-single-product .mpc-product {
	max-width: 960px;
	margin: 0 auto;
}

/* Product gallery (left column) */
.mpc-product-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

.mpc-product-gallery .mpc-gallery-figure {
	margin: 0;
}

.mpc-product-gallery .mpc-gallery-figure.is-featured {
	flex-basis: 100%;
}

.mpc-product-gallery .mpc-gallery-figure img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}

/* Keep the featured photo modest in size */
.mpc-product-gallery .mpc-gallery-figure.is-featured img {
	max-width: 480px;
}

/* Section headings inside the info column */
.mpc-section-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid #e6e8eb;
}

/* Product information + specifications */
.mpc-product-information,
.mpc-product-specifications {
	margin: 0 0 1.25rem;
}

.mpc-info-list,
.mpc-spec-list {
	display: grid;
	grid-template-columns: minmax(120px, max-content) 1fr;
	column-gap: 1rem;
	row-gap: 0;
	margin: 0;
}

.mpc-info-list dt,
.mpc-spec-list dt {
	font-weight: 600;
	color: #6b7177;
	font-size: 0.82rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f0f1f3;
}

.mpc-info-list dd,
.mpc-spec-list dd {
	margin: 0;
	font-size: 0.82rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f0f1f3;
}

.mpc-info-list > :nth-last-child(-n+2),
.mpc-spec-list > :nth-last-child(-n+2) {
	border-bottom: 0;
}

/* Inquiry button */
.mpc-product-inquiry {
	margin-top: 1.5rem;
}

/* Inquiry CTA box (right of product information) */
.mpc-inquiry-box {
	box-sizing: border-box;
	margin: 0;
	padding: 1.1rem 1rem 1.25rem;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	background: #f7f8f9;
	text-align: center;
}

.mpc-inquiry-heading {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7177;
	font-weight: 700;
}

.mpc-inquiry-box .mpc-product-inquiry {
	margin: 0;
}

.mpc-inquiry-box .mpc-inquiry-button {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 1rem;
}

.mpc-inquiry-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: #1e7e34;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, transform 0.15s ease;
}

.mpc-inquiry-button:hover,
.mpc-inquiry-button:focus {
	background: #155724;
	color: #fff;
	transform: translateY(-1px);
}

/* Product card grids (archive + related) */
.mpc-related-products {
	margin-top: 1rem;
}

.mpc-related-grid,
.mpc-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.mpc-no-products {
	grid-column: 1 / -1;
	text-align: center;
	color: #6b7177;
	padding: 2rem 0;
}

.mpc-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6e8eb;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.mpc-card:hover {
	border-color: #d2d6db;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	transform: translateY(-4px);
}

.mpc-card__media {
	display: block;
	width: 100%;
	background: #f4f5f6;
	overflow: hidden;
	line-height: 0;
}

.mpc-card__media .mpc-card__img,
.mpc-card__media .mpc-card__placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.mpc-card__placeholder {
	background: #eef0f2;
}

.mpc-card:hover .mpc-card__img {
	transform: scale(1.05);
}

.mpc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem 1.1rem;
}

.mpc-card__cat {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1e7e34;
	font-weight: 600;
}

.mpc-card__title {
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.3;
}

.mpc-card:hover .mpc-card__title {
	color: #1e7e34;
}

/* Sidebar: keep sticky on wide screens */
.mpc-filters {
	position: sticky;
	top: 1rem;
}

@media (max-width: 782px) {
	.mpc-filters {
		position: static;
	}
}