/* =====================================================================
   QL Product Page Prototype — "QuakeLogic instrument-grade" design system
   Scope: everything is namespaced under .qlpp-page; nothing leaks out.
   ===================================================================== */

.qlpp-page {
	/* Tokens */
	--qlpp-paper: #fafaf9;
	--qlpp-panel: #ffffff;
	--qlpp-ink: #14181d;
	--qlpp-body-c: #363c43;
	--qlpp-muted: #5d646c;
	--qlpp-hairline: #e5e6e4;
	--qlpp-hairline-dark: #d5d7d4;
	--qlpp-accent: #f06624;      /* brand orange — marks and small accents only */
	--qlpp-accent-ink: #bc4a06;  /* AA-compliant orange for text, links, CTAs   */
	--qlpp-accent-deep: #9a3c02;
	--qlpp-ease: cubic-bezier(0.25, 0.1, 0.25, 1);

	/* Type scale (restrained; clamp everywhere) */
	--qlpp-fs-h1: clamp(1.75rem, 1.29rem + 1.9vw, 2.7rem);      /* 28 → 43 px  */
	--qlpp-fs-h2: clamp(1.5rem, 1.28rem + 0.9vw, 2rem);         /* 24 → 32 px  */
	--qlpp-fs-h3: clamp(1.155rem, 1.08rem + 0.35vw, 1.375rem);  /* 18.5 → 22px */
	--qlpp-fs-lead: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem); /* 17 → 19  */
	--qlpp-fs-body: clamp(1rem, 0.99rem + 0.08vw, 1.0625rem);   /* 16 → 17 px  */
	--qlpp-fs-small: 0.9375rem;                                 /* 15 px       */
	--qlpp-fs-fine: 0.875rem;                                   /* 14 px       */

	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: var(--qlpp-fs-body);
	line-height: 1.65;
	color: var(--qlpp-body-c);
	background: var(--qlpp-paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.qlpp-container {
	max-width: 1220px;
	margin-inline: auto;
	padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.qlpp-measure { max-width: 72ch; }

/* ---------------------------------------------------------------------
   Base typography
   --------------------------------------------------------------------- */
.qlpp-page h1,
.qlpp-page h2,
.qlpp-page h3,
.qlpp-page h4 {
	font-family: inherit;
	color: var(--qlpp-ink);
	margin: 0;
	text-wrap: balance;
}

.qlpp-page p { margin: 0 0 1em; }
.qlpp-page a { color: var(--qlpp-accent-ink); text-decoration: none; transition: color 160ms var(--qlpp-ease); }
.qlpp-page a:hover { color: var(--qlpp-accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.qlpp-section > h2 {
	font-size: var(--qlpp-fs-h2);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
	padding-top: clamp(2.25rem, 5vw, 3.5rem);
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	border-top: 1px solid var(--qlpp-hairline-dark);
	position: relative;
}

.qlpp-section > h2::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 44px;
	height: 3px;
	background: var(--qlpp-accent);
}

.qlpp-section {
	margin-top: clamp(2.75rem, 7vw, 5rem);
	scroll-margin-top: calc(var(--qlpp-stick, 0px) + 72px);
}

.qlpp-section-intro {
	font-size: var(--qlpp-fs-lead);
	line-height: 1.6;
	color: var(--qlpp-muted);
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.qlpp-breadcrumb { padding-top: clamp(1.25rem, 3vw, 2rem); }
.qlpp-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
}
.qlpp-breadcrumb li { display: flex; align-items: center; }
.qlpp-breadcrumb li + li::before {
	content: "/";
	margin-inline: 0.55rem;
	color: var(--qlpp-hairline-dark);
}
.qlpp-breadcrumb a { color: var(--qlpp-muted); }
.qlpp-breadcrumb a:hover { color: var(--qlpp-ink); text-decoration: none; }
.qlpp-breadcrumb [aria-current] span { color: var(--qlpp-ink); font-weight: 600; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.qlpp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	padding-top: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

@media (min-width: 960px) {
	.qlpp-hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
	.qlpp-gallery { position: sticky; top: calc(var(--qlpp-stick, 0px) + 24px); }
}

.qlpp-gallery-main {
	margin: 0;
	background: var(--qlpp-panel);
	border: 1px solid var(--qlpp-hairline);
	border-radius: 8px;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: clamp(1rem, 3vw, 2rem);
}

.qlpp-gallery-main img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 180ms var(--qlpp-ease);
}

.qlpp-gallery-main img.is-fading { opacity: 0; }

.qlpp-gallery-thumbs {
	display: flex;
	gap: 0.625rem;
	margin-top: 0.75rem;
}

.qlpp-thumb {
	width: 64px;
	height: 64px;
	padding: 6px;
	background: var(--qlpp-panel);
	border: 1px solid var(--qlpp-hairline);
	border-radius: 6px;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: border-color 160ms var(--qlpp-ease);
}

.qlpp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.qlpp-thumb:hover { border-color: var(--qlpp-hairline-dark); }
.qlpp-thumb.is-active { border-color: var(--qlpp-accent); }
.qlpp-thumb:focus-visible,
.qlpp-page a:focus-visible,
.qlpp-page button:focus-visible,
.qlpp-page summary:focus-visible {
	outline: 2px solid var(--qlpp-accent-ink);
	outline-offset: 2px;
}

/* Summary column */
.qlpp-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin-bottom: 0.875rem;
}
.qlpp-eyebrow a { color: var(--qlpp-accent-ink); }

.qlpp-title {
	font-size: var(--qlpp-fs-h1);
	font-weight: 800;
	letter-spacing: -0.022em;
	line-height: 1.14;
	margin-bottom: 1rem;
}

/* "Name – Classification" titles: the name carries the visual weight,
   the classification reads as a subtitle. Both live inside the one H1. */
.qlpp-title-name { display: block; }
.qlpp-title-class {
	display: block;
	margin-top: 0.45rem;
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.4;
	color: var(--qlpp-muted);
	text-wrap: pretty;
}

.qlpp-lead {
	font-size: var(--qlpp-fs-lead);
	line-height: 1.6;
	color: var(--qlpp-muted);
	margin-bottom: 1.375rem;
}
.qlpp-lead p { margin: 0; }

.qlpp-diffs {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
	font-size: var(--qlpp-fs-small);
	line-height: 1.5;
	color: var(--qlpp-body-c);
}

.qlpp-diffs li {
	position: relative;
	padding-left: 1.15rem;
	font-weight: 500;
}

.qlpp-diffs li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 7px;
	height: 7px;
	background: var(--qlpp-accent);
}

/* Buy box */
.qlpp-buy {
	border-top: 1px solid var(--qlpp-hairline-dark);
	padding-top: 1.375rem;
}

.qlpp-buy-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.qlpp-price {
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.8125rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--qlpp-ink);
	margin: 0;
	font-variant-numeric: tabular-nums;
}
.qlpp-price del { color: var(--qlpp-muted); font-weight: 500; margin-right: 0.4rem; }
.qlpp-price ins { text-decoration: none; }

.qlpp-stock {
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
	margin: 0;
}
.qlpp-stock--in { color: #1d7a3d; font-weight: 600; }

/* WooCommerce form, restyled */
.qlpp-cart form.cart { margin: 0; }

.qlpp-cart .variations {
	width: 100%;
	border: 0;
	margin: 0 0 1rem;
	border-collapse: collapse;
}
.qlpp-cart .variations td,
.qlpp-cart .variations th { border: 0; padding: 0; vertical-align: middle; }
.qlpp-cart .variations .label { display: block; padding-bottom: 0.4rem; }
.qlpp-cart .variations .label label {
	font-size: var(--qlpp-fs-fine);
	font-weight: 700;
	color: var(--qlpp-ink);
	letter-spacing: 0.01em;
}
.qlpp-cart .variations select {
	width: 100%;
	max-width: 100%;
	height: 48px;
	padding: 0 2.5rem 0 0.875rem;
	font-family: inherit;
	font-size: var(--qlpp-fs-small);
	font-weight: 600;
	color: var(--qlpp-ink);
	background-color: var(--qlpp-panel);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%2314181d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	border: 1px solid var(--qlpp-hairline-dark);
	border-radius: 6px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 160ms var(--qlpp-ease);
}
.qlpp-cart .variations select:hover { border-color: var(--qlpp-muted); }
.qlpp-cart .variations select:focus-visible { outline: 2px solid var(--qlpp-accent-ink); outline-offset: 1px; }

.qlpp-cart .reset_variations {
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
	display: inline-block;
	margin-top: 0.4rem;
}

/* Both configurations share one price (already shown above the form);
   hide the duplicate. WooCommerce would still show a differing
   variation price here if prices ever diverge — re-enable then. */
.qlpp-cart .woocommerce-variation-price { display: none; }
.qlpp-cart .woocommerce-variation-availability { font-size: var(--qlpp-fs-fine); color: var(--qlpp-muted); }
.qlpp-cart .single_variation { margin-bottom: 0.5rem; }

.qlpp-cart .woocommerce-variation-add-to-cart,
.qlpp-cart form.cart:not(.variations_form) {
	display: flex;
	gap: 0.625rem;
	align-items: stretch;
}

.qlpp-cart .quantity {
	flex: 0 0 auto;
}
.qlpp-cart .quantity .qty {
	width: 76px;
	height: 52px;
	text-align: center;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--qlpp-ink);
	background: var(--qlpp-panel);
	border: 1px solid var(--qlpp-hairline-dark);
	border-radius: 6px;
	-moz-appearance: textfield;
}
.qlpp-cart .quantity .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.qlpp-cart .single_add_to_cart_button {
	flex: 1 1 auto;
	height: 52px;
	padding: 0 1.75rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.005em;
	color: #fff;
	background: var(--qlpp-accent-ink);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 170ms var(--qlpp-ease), transform 170ms var(--qlpp-ease);
}
.qlpp-cart .single_add_to_cart_button:hover { background: var(--qlpp-accent-deep); }
.qlpp-cart .single_add_to_cart_button:active { transform: translateY(1px); }
.qlpp-cart .single_add_to_cart_button.disabled,
.qlpp-cart .single_add_to_cart_button:disabled {
	background: var(--qlpp-hairline-dark);
	color: var(--qlpp-muted);
	cursor: not-allowed;
}

.qlpp-secondary-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 1rem;
}

.qlpp-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 44px;
	padding: 0 1.125rem;
	font-size: var(--qlpp-fs-fine);
	font-weight: 700;
	color: var(--qlpp-ink) !important;
	background: transparent;
	border: 1px solid var(--qlpp-hairline-dark);
	border-radius: 6px;
	transition: border-color 170ms var(--qlpp-ease), background-color 170ms var(--qlpp-ease);
}
.qlpp-btn-ghost:hover {
	border-color: var(--qlpp-ink);
	background: var(--qlpp-panel);
	text-decoration: none !important;
}
.qlpp-btn-ghost svg { color: var(--qlpp-accent-ink); flex: 0 0 auto; }

.qlpp-support-line {
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
	margin: 1.125rem 0 0;
}

/* ---------------------------------------------------------------------
   Sticky in-page navigation
   --------------------------------------------------------------------- */
.qlpp-subnav {
	position: sticky;
	top: var(--qlpp-stick, 0px);
	z-index: 80;
	margin-top: clamp(2.25rem, 5vw, 3.5rem);
	background: rgba(250, 250, 249, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--qlpp-hairline);
	border-bottom: 1px solid var(--qlpp-hairline);
}

.qlpp-subnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: clamp(1rem, 2.5vw, 2rem);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.qlpp-subnav ul::-webkit-scrollbar { display: none; }

.qlpp-subnav a {
	display: inline-block;
	white-space: nowrap;
	padding: 0.875rem 0 calc(0.875rem - 2px);
	font-size: var(--qlpp-fs-small);
	font-weight: 600;
	color: var(--qlpp-muted);
	border-bottom: 2px solid transparent;
	transition: color 170ms var(--qlpp-ease), border-color 170ms var(--qlpp-ease);
}
.qlpp-subnav a:hover { color: var(--qlpp-ink); text-decoration: none; }
.qlpp-subnav a.is-current { color: var(--qlpp-ink); border-bottom-color: var(--qlpp-accent); }

/* ---------------------------------------------------------------------
   Long-form prose (overview, software, applications, integration)
   --------------------------------------------------------------------- */
.qlpp-prose { font-size: var(--qlpp-fs-body); }
.qlpp-prose--lead { font-size: var(--qlpp-fs-lead); line-height: 1.62; }

.qlpp-prose h3 {
	font-size: var(--qlpp-fs-h3);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 2.25em 0 0.7em;
}
.qlpp-prose h3:first-child { margin-top: 0; }

.qlpp-prose h4 {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 1.6em 0 0.5em;
}
.qlpp-prose h4 strong { font-weight: inherit; }

.qlpp-prose ul {
	margin: 0 0 1.25em;
	padding-left: 1.2rem;
}
.qlpp-prose li { margin-bottom: 0.45em; }
.qlpp-prose li::marker { color: var(--qlpp-accent); }
.qlpp-prose ul ul { margin: 0.45em 0 0.25em; }
.qlpp-prose strong { color: var(--qlpp-ink); font-weight: 700; }

/* ---------------------------------------------------------------------
   Key features
   --------------------------------------------------------------------- */
.qlpp-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.125rem clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 760px) {
	.qlpp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qlpp-features li {
	position: relative;
	padding: 0.875rem 0 0;
	border-top: 1px solid var(--qlpp-hairline);
	font-size: var(--qlpp-fs-small);
	line-height: 1.58;
	color: var(--qlpp-body-c);
	font-weight: 500;
}

/* ---------------------------------------------------------------------
   Specifications
   --------------------------------------------------------------------- */
.qlpp-spec-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 860px) {
	.qlpp-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qlpp-spec-group h3 {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--qlpp-muted);
	margin-bottom: 0.625rem;
}

.qlpp-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--qlpp-fs-small);
}

.qlpp-spec-table th,
.qlpp-spec-table td {
	padding: 0.7rem 0;
	border: 0;
	border-top: 1px solid var(--qlpp-hairline);
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
	background: transparent;
}
.qlpp-spec-table tr:last-child th,
.qlpp-spec-table tr:last-child td { border-bottom: 1px solid var(--qlpp-hairline); }

.qlpp-spec-table th {
	width: 42%;
	font-weight: 500;
	color: var(--qlpp-muted);
	padding-right: 1.25rem;
	font-size: var(--qlpp-fs-fine);
}

.qlpp-spec-table td {
	font-weight: 600;
	color: var(--qlpp-ink);
	font-variant-numeric: tabular-nums;
}

.qlpp-spec-note {
	margin: 1.75rem 0 0;
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
}

/* ---------------------------------------------------------------------
   Downloads
   --------------------------------------------------------------------- */
.qlpp-downloads {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	max-width: 560px;
}

.qlpp-downloads a {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--qlpp-hairline-dark);
	border-radius: 8px;
	background: var(--qlpp-panel);
	color: var(--qlpp-ink);
	transition: border-color 170ms var(--qlpp-ease), transform 170ms var(--qlpp-ease);
}
.qlpp-downloads a:hover {
	border-color: var(--qlpp-ink);
	text-decoration: none;
	transform: translateY(-2px);
}
.qlpp-downloads svg { color: var(--qlpp-accent-ink); flex: 0 0 auto; }
.qlpp-downloads strong { display: block; font-size: var(--qlpp-fs-small); font-weight: 700; }
.qlpp-downloads em { display: block; font-style: normal; font-size: var(--qlpp-fs-fine); color: var(--qlpp-muted); margin-top: 2px; }

.qlpp-downloads-note { font-size: var(--qlpp-fs-fine); color: var(--qlpp-muted); margin: 0; }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.qlpp-faq details {
	border-top: 1px solid var(--qlpp-hairline);
}
.qlpp-faq details:last-child { border-bottom: 1px solid var(--qlpp-hairline); }

.qlpp-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 0;
	cursor: pointer;
	list-style: none;
}
.qlpp-faq summary::-webkit-details-marker { display: none; }

.qlpp-faq summary h3 {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	transition: color 160ms var(--qlpp-ease);
}
.qlpp-faq summary:hover h3 { color: var(--qlpp-accent-ink); }

.qlpp-faq-icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}
.qlpp-faq-icon::before,
.qlpp-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: var(--qlpp-muted);
	transition: transform 180ms var(--qlpp-ease);
}
.qlpp-faq-icon::after { transform: rotate(90deg); }
.qlpp-faq details[open] .qlpp-faq-icon::after { transform: rotate(0deg); }

.qlpp-faq-a { padding: 0 2rem 1.25rem 0; }
.qlpp-faq-a p { margin: 0; color: var(--qlpp-body-c); font-size: var(--qlpp-fs-small); line-height: 1.65; }

/* ---------------------------------------------------------------------
   Support band
   --------------------------------------------------------------------- */
.qlpp-band {
	margin-top: clamp(3.25rem, 8vw, 5.5rem);
	background: var(--qlpp-ink);
}

.qlpp-band-inner {
	display: grid;
	gap: 1.75rem;
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
	align-items: center;
}

@media (min-width: 900px) {
	.qlpp-band-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.qlpp-band-actions { justify-self: end; text-align: right; }
}

.qlpp-band h2 {
	color: #fff;
	font-size: var(--qlpp-fs-h2);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 0.625rem;
}

.qlpp-band p {
	color: #aeb4bb;
	font-size: var(--qlpp-fs-small);
	line-height: 1.65;
	margin: 0;
	max-width: 56ch;
}

.qlpp-btn-light {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 1.5rem;
	font-size: var(--qlpp-fs-small);
	font-weight: 700;
	color: var(--qlpp-ink) !important;
	background: #fff;
	border-radius: 6px;
	transition: background-color 170ms var(--qlpp-ease);
}
.qlpp-btn-light:hover { background: #e9eaec; text-decoration: none !important; }

.qlpp-band-tel {
	display: block;
	margin-top: 0.875rem;
	font-size: var(--qlpp-fs-small);
	font-weight: 600;
	color: #aeb4bb !important;
}
.qlpp-band-tel:hover { color: #fff !important; text-decoration: none !important; }

/* ---------------------------------------------------------------------
   Related products
   --------------------------------------------------------------------- */
.qlpp-related-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 980px) {
	.qlpp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.qlpp-related-grid { grid-template-columns: minmax(0, 1fr); }
}

.qlpp-related-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}
.qlpp-related-card a:hover { text-decoration: none; }

.qlpp-related-media {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	padding: 1.25rem;
	background: var(--qlpp-panel);
	border: 1px solid var(--qlpp-hairline);
	border-radius: 8px;
	transition: border-color 170ms var(--qlpp-ease);
	overflow: hidden;
}
.qlpp-related-card a:hover .qlpp-related-media { border-color: var(--qlpp-hairline-dark); }

.qlpp-related-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 200ms var(--qlpp-ease);
}
.qlpp-related-card a:hover .qlpp-related-media img { transform: scale(1.03); }

.qlpp-related-body { padding: 0.875rem 0.25rem 0; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }

.qlpp-related-cat {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--qlpp-muted);
}

.qlpp-related-card h3 {
	font-size: var(--qlpp-fs-small);
	font-weight: 600;
	line-height: 1.42;
	color: var(--qlpp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 160ms var(--qlpp-ease);
}
.qlpp-related-card a:hover h3 { color: var(--qlpp-accent-ink); }

.qlpp-related-price {
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: var(--qlpp-fs-small);
	font-weight: 700;
	color: var(--qlpp-ink);
	font-variant-numeric: tabular-nums;
}
.qlpp-related-price del { color: var(--qlpp-muted); font-weight: 500; }
.qlpp-related-price ins { text-decoration: none; }

/* ---------------------------------------------------------------------
   Further reading
   --------------------------------------------------------------------- */
.qlpp-reading { padding-bottom: clamp(3rem, 7vw, 5rem); }

.qlpp-reading-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 760px) {
	.qlpp-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qlpp-reading-card {
	display: flex;
	gap: 1.125rem;
	padding: 1.125rem;
	border: 1px solid var(--qlpp-hairline);
	border-radius: 8px;
	background: var(--qlpp-panel);
	color: inherit;
	transition: border-color 170ms var(--qlpp-ease), transform 170ms var(--qlpp-ease);
}
.qlpp-reading-card:hover {
	border-color: var(--qlpp-hairline-dark);
	transform: translateY(-2px);
	text-decoration: none;
}

.qlpp-reading-media {
	flex: 0 0 108px;
	border-radius: 6px;
	overflow: hidden;
	align-self: flex-start;
}
.qlpp-reading-media img { width: 108px; height: 81px; object-fit: cover; display: block; }

.qlpp-reading-body { min-width: 0; }
.qlpp-reading-card h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.35rem;
	transition: color 160ms var(--qlpp-ease);
}
.qlpp-reading-card:hover h3 { color: var(--qlpp-accent-ink); }
.qlpp-reading-card p {
	font-size: var(--qlpp-fs-fine);
	color: var(--qlpp-muted);
	line-height: 1.55;
	margin: 0 0 0.45rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qlpp-reading-time {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--qlpp-muted);
}

/* ---------------------------------------------------------------------
   Notices (WooCommerce messages)
   --------------------------------------------------------------------- */
.qlpp-notices:empty { display: none; }
.qlpp-notices .woocommerce-message,
.qlpp-notices .woocommerce-info,
.qlpp-notices .woocommerce-error {
	margin: 1rem 0 0;
	padding: 0.875rem 1.125rem;
	border: 1px solid var(--qlpp-hairline-dark);
	border-left: 3px solid var(--qlpp-accent);
	border-radius: 6px;
	background: var(--qlpp-panel);
	font-size: var(--qlpp-fs-small);
	list-style: none;
}

/* ---------------------------------------------------------------------
   Motion preferences
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
	.qlpp-page *,
	.qlpp-page *::before,
	.qlpp-page *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
