/*
 * QIYUAN BIOTECH public display layer (catalog 2.2.1, English UI).
 *
 * Loaded after the legacy draphor style (handle "qiyuan" depends on
 * "draphor"). Everything is scoped to .qy-* selectors emitted by the Qiyuan
 * templates, inc/qiyuan-display.php and inc/qiyuan-catalog.php. The legacy
 * style.css below this layer is intentionally untouched.
 *
 * Visual direction aligned with the public reference storefront: white
 * sticky header, black split hero with gold accents, core GOLD #D99A08 CTAs
 * with #EABE12 hover, WHITE 4-column product grid with #dedede borders and
 * 4px radius plus a restrained CSS-only clarity filter on product photos,
 * alphabet Filters, compact company/FAQ/contact sections, a restrained
 * neutral base (#111111 text, #767676 muted) and a near-black (#090909)
 * 4-column footer with white headings, #b0b0b0 links and gold accent. The
 * English logo variant bitmap (assets/qiyuan-logo-english.png, same canvas
 * and centered bounding box as the archived original) is used as supplied;
 * only its proven CSS crop is applied. All empty-vial photography is the
 * visual focus.
 */

:root {
	--qy-gold: #d99a08;
	--qy-gold-bright: #eabe12;
	--qy-black: #0a0a0a;
	--qy-black-deep: #050505;
	--qy-ink: #111111;
	--qy-ink-soft: #111111;
	--qy-muted: #767676;
	--qy-line: #ececec;
	--qy-silver: #f7f7f7;
	--qy-wa: var(--qy-gold);
	--qy-wa-deep: var(--qy-gold-bright);
	--qy-max: 1180px;
	--qy-shadow: 0 10px 30px rgba(5, 5, 5, 0.08);
}

/* ---------- Generic shell / focus / buttons ---------- */

.qy-site {
	background: #ffffff;
	color: var(--qy-ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	line-height: 1.6;
}

.qy-site h1,
.qy-site h2,
.qy-site h3 {
	font-family: inherit;
	color: var(--qy-ink);
}

.qy-shell {
	max-width: var(--qy-max);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 28px);
}

.qy-site a {
	color: inherit;
}

.qy-site :is(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--qy-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.qy-site .qy-main,
.qy-site .qy-page-content {
	padding-block: clamp(32px, 6vw, 60px);
}

.qy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Gold accent CTA (reference storefront style). */
.qy-site .qy-button--primary {
	color: #ffffff;
	background: var(--qy-gold);
}

.qy-site .qy-button--primary:hover {
	background: var(--qy-gold-bright);
}

.qy-site .qy-button--whatsapp {
	color: #ffffff;
	background: var(--qy-wa);
}

.qy-site .qy-button--whatsapp:hover {
	color: #ffffff;
	background: var(--qy-wa-deep);
}

.qy-site .qy-button--ghost {
	color: var(--qy-ink);
	background: #ffffff;
	border-color: var(--qy-line);
}

.qy-site .qy-button--ghost:hover {
	border-color: var(--qy-gold);
	background: #ffffff;
	color: var(--qy-ink);
}

/* ---------- Skip link ---------- */

.qy-site .skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 10px 18px;
	background: var(--qy-black);
	color: #ffffff;
	border-radius: 0 0 8px 0;
	text-decoration: none;
}

.qy-site .skip-link:focus {
	left: 0;
}

/* ---------- Header (white sticky, compact) ---------- */

.qy-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid var(--qy-line);
}

.qy-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
}

/* Logo crop percentages were measured against the original 1280x853 bitmap
   (artwork near x55..1260, y170..570) and remain valid for the proportional
   English asset (1536x1024, same 1.5:1 aspect and equivalent artwork box).
   The English variant raster is used as supplied; no CSS changes. */
.qy-brand {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.qy-logo {
	position: relative;
	display: block;
	overflow: hidden;
	width: clamp(140px, 18vw, 185px);
	aspect-ratio: 1205 / 400;
	flex: none;
}

.qy-logo img {
	position: absolute;
	display: block;
	width: 106.224%;
	height: auto;
	max-width: none;
	left: -4.5643%;
	top: -42.5%;
	margin: 0;
}

.qy-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 28px);
}

.qy-nav a {
	position: relative;
	padding: 8px 2px;
	font-size: 0.93rem;
	font-weight: 600;
	color: var(--qy-ink);
	text-decoration: none;
}

.qy-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 2px;
	height: 2px;
	background: var(--qy-gold);
	transition: right 0.2s ease;
}

.qy-nav a:hover::after,
.qy-nav a:focus-visible::after {
	right: 0;
}

.qy-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.qy-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--qy-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--qy-ink);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

/* ---------- Hero (black split, white heading, gold subtitle) ---------- */

.qy-hero {
	background: linear-gradient(90deg, var(--qy-black-deep) 0%, var(--qy-black) 100%);
	overflow: hidden;
}

.qy-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
	padding-block: clamp(48px, 7vw, 92px);
}

.qy-hero-eyebrow {
	color: var(--qy-gold);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	margin: 0;
}

.qy-site .qy-hero h1 {
	color: #ffffff;
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.12;
	margin: 14px 0 12px;
}

.qy-hero-lead {
	color: var(--qy-gold);
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
}

.qy-hero-intro {
	color: rgba(255, 255, 255, 0.78);
	max-width: 52ch;
	margin: 0;
}

.qy-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.qy-hero-actions .qy-button--outline {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.45);
}

.qy-hero-actions .qy-button--outline:hover,
.qy-hero-actions .qy-button--outline:focus-visible {
	border-color: var(--qy-gold-bright);
	color: var(--qy-gold-bright);
}

.qy-hero-note {
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85rem;
}

.qy-hero-art {
	display: flex;
	justify-content: center;
}

/* Dark empty-vial photograph, ~40-45% of the hero width on desktop. */
.qy-hero-photo {
	display: block;
	width: min(100%, 560px);
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--qy-black-deep);
}

/* ---------- Product photographs (empty-vial assets contract) ---------- */

/* Semantic photos: 1254x1254 intrinsic square, object-fit contain. */
.qy-site .qy-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

/* ---------- Sections ---------- */

.qy-section {
	padding-block: clamp(48px, 7vw, 72px);
}

.qy-section + .qy-section {
	border-top: 1px solid var(--qy-line);
}

.qy-eyebrow {
	color: var(--qy-gold);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0;
}

.qy-section-heading {
	max-width: 720px;
	margin: 0 0 clamp(24px, 4vw, 40px);
}

.qy-site .qy-section-heading h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 8px 0 10px;
}

.qy-section-heading p {
	color: var(--qy-muted);
}

.qy-section-heading--row {
	max-width: none;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
}

.qy-text-link {
	flex: 0 0 auto;
	color: var(--qy-gold);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.qy-text-link:hover,
.qy-text-link:focus-visible {
	color: var(--qy-gold-bright);
	border-bottom-color: var(--qy-gold-bright);
}

/* ---------- Catalog tools (search + alphabet letter chips) ---------- */

.qy-catalog-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 16px 22px;
	margin-bottom: 26px;
}

.qy-catalog-search-label {
	display: block;
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--qy-ink);
	margin-bottom: 6px;
}

.qy-site .qy-catalog-tools input[type="search"] {
	width: min(340px, 100%);
	padding: 10px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #ffffff;
	color: var(--qy-ink);
	font-size: 0.95rem;
}

.qy-site .qy-catalog-tools input[type="search"]::placeholder {
	color: #9a9a9a;
}

.qy-chip-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.qy-chip-filter {
	min-width: 40px;
	padding: 8px 13px;
	border: 1px solid var(--qy-line);
	border-radius: 6px;
	background: #ffffff;
	color: var(--qy-ink);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qy-chip-filter:hover {
	border-color: var(--qy-gold);
}

.qy-chip-filter.is-active {
	background: var(--qy-gold);
	border-color: var(--qy-gold);
	color: #ffffff;
}

.qy-catalog-count {
	flex-basis: 100%;
	margin: 0;
	color: var(--qy-muted);
	font-size: 0.9rem;
}

/* ---------- Product grid (WHITE, 4 columns at 1440, 2 at 390) ---------- */

.qy-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}

/* Crisper card edges: slightly stronger neutral border, tighter 4px radius. */
.qy-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qy-product-card:hover {
	border-color: #cccccc;
	box-shadow: var(--qy-shadow);
}

.qy-product-card[hidden] {
	display: none; /* never !important, keeps native hidden semantics */
}

.qy-product-image {
	display: flex;
	justify-content: center;
	aspect-ratio: 1;
	padding: 10px; /* reduced: vial renders visibly larger */
	background: #ffffff;
	border-radius: 4px 4px 0 0;
	overflow: hidden;
}

.qy-product-image .qy-photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* CSS-only clarity: restrained neutral polish on product photos only.
	   No image-rendering/blur; originals untouched. */
	filter: contrast(1.1) brightness(1.035) saturate(0.9);
}

.qy-product-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px 18px;
	border-top: 1px solid var(--qy-line);
}

.qy-product-title {
	/* Wrap-safe long product/blend names, 1-3 readable lines. */
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	font-size: 1rem;
	font-weight: 700; /* stronger product title */
	line-height: 1.35;
	color: var(--qy-ink);
	margin: 0;
}

/* Title is the accessible link: card design stays calm, hint on hover/focus. */
.qy-product-title-link {
	color: inherit;
	text-decoration: none;
}

.qy-product-title-link:hover,
.qy-product-title-link:focus-visible {
	color: var(--qy-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.qy-product-spec {
	overflow-wrap: anywhere;
	color: #6f6f6f; /* readable neutral gray, slightly darker than muted */
	font-size: 0.86rem;
	margin: 0;
}

.qy-site .qy-product-link {
	align-self: flex-start;
	margin-top: auto;
	padding: 6px 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--qy-gold);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.qy-site .qy-product-link:hover,
.qy-site .qy-product-link:focus-visible {
	color: var(--qy-gold-bright);
	border-bottom-color: var(--qy-gold-bright);
}

.qy-catalog-empty {
	margin: 18px 0 0;
	padding: 20px;
	border: 1px dashed #d9d9d9;
	border-radius: 8px;
	background: var(--qy-silver);
	color: var(--qy-muted);
	text-align: center;
}

.qy-catalog-empty[hidden] {
	display: none;
}

.qy-catalog-more {
	margin: 26px 0 0;
	text-align: center;
}

.qy-load-more[hidden] {
	display: none;
}

.qy-catalog-footnote {
	margin: 26px 0 0;
	color: var(--qy-muted);
	font-size: 0.8rem;
}

/* ---------- Numbered company section ---------- */

.qy-numbered {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: qy-step;
}

.qy-numbered li {
	counter-increment: qy-step;
	padding-top: 18px;
	border-top: 1px solid var(--qy-line);
}

.qy-numbered li::before {
	content: counter(qy-step, decimal-leading-zero);
	display: block;
	color: var(--qy-gold);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 10px;
}

.qy-numbered h3 {
	font-size: 1.08rem;
	margin: 0 0 8px;
}

.qy-numbered p {
	color: var(--qy-muted);
	margin: 0;
}

/* ---------- Staff verification ---------- */

.qy-staff-section {
	background: var(--qy-silver);
	border-top: 1px solid var(--qy-line);
	border-bottom: 1px solid var(--qy-line);
}

.qy-staff-title {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 0 0 10px;
}

.qy-staff-intro {
	max-width: 72ch;
	color: var(--qy-muted);
}

.qy-staff-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
	max-width: 560px;
}

.qy-staff-label {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--qy-ink);
}

.qy-site .qy-staff-form input[type="tel"] {
	padding: 12px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #ffffff;
	color: var(--qy-ink);
	font-size: 1rem;
}

.qy-site .qy-staff-form input[type="tel"]::placeholder {
	color: #9a9a9a;
}

.qy-staff-submit {
	align-self: flex-start;
	padding: 12px 26px;
	border: none;
	border-radius: 4px;
	background: var(--qy-gold);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.qy-staff-submit:hover {
	background: var(--qy-gold-bright);
}

.qy-staff-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.qy-staff-status {
	margin: 4px 0 0;
	min-height: 1.5em;
	font-size: 0.95rem;
}

.qy-staff-status.qy-is-ok {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #e9f3ee;
	border: 1px solid #b7e2c4;
	color: #14572a;
}

.qy-staff-status.qy-is-bad {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #fdeeee;
	border: 1px solid #f0c4c4;
	color: #8f1f1f;
}

.qy-staff-status.qy-is-wait {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f4f4f4;
	border: 1px solid #dcdcdc;
	color: var(--qy-ink);
}

/* ---------- FAQ (native details) ---------- */

.qy-faq-list {
	display: grid;
	gap: 12px;
	max-width: 820px;
}

.qy-site .qy-faq details {
	background: #ffffff;
	border: 1px solid var(--qy-line);
	border-radius: 8px;
	overflow: hidden;
}

.qy-site .qy-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	font-weight: 700;
	color: var(--qy-ink);
	cursor: pointer;
	list-style: none;
}

.qy-site .qy-faq summary::-webkit-details-marker {
	display: none;
}

.qy-site .qy-faq summary::after {
	content: "+";
	flex: none;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--qy-gold);
	color: var(--qy-gold);
	font-weight: 700;
}

.qy-site .qy-faq details[open] summary::after {
	content: "–";
}

.qy-site .qy-faq details p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--qy-muted);
}

/* ---------- Contact ---------- */

.qy-contact {
	background: var(--qy-silver);
}

.qy-contact-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.qy-contact-inner h2 {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 8px 0 10px;
}

.qy-contact-inner p {
	color: var(--qy-muted);
}

.qy-contact-data {
	color: var(--qy-ink);
}

.qy-contact-data a {
	font-weight: 700;
	color: var(--qy-gold);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.qy-contact-data a:hover,
.qy-contact-data a:focus-visible {
	color: var(--qy-gold-bright);
}

/* ---------- Breadcrumb ---------- */

.qy-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.85rem;
}

.qy-page-hero .qy-breadcrumb {
	margin-bottom: 10px;
}

.qy-breadcrumb a {
	color: var(--qy-gold);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.qy-breadcrumb a:hover,
.qy-breadcrumb a:focus-visible {
	border-bottom-color: currentColor;
}

.qy-breadcrumb span[aria-current] {
	color: var(--qy-muted);
}

/* ---------- Footer (near-black, column layout, gold accent) ---------- */

.qy-footer {
	background: #090909;
	color: #b0b0b0;
}

.qy-footer .qy-shell {
	display: flex;
	flex-direction: column;
}

.qy-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	padding-block: clamp(48px, 7vw, 88px);
}

.qy-footer-brand {
	min-width: 0;
}

/* Text wordmark: avoids placing the white footer bitmap canvas on black. */
.qy-footer-wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	margin: 0 0 12px;
	color: #ffffff;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.qy-footer-wordmark:hover .qy-footer-wordmark-main,
.qy-footer-wordmark:focus-visible .qy-footer-wordmark-main {
	color: var(--qy-gold-bright);
}

.qy-footer-wordmark-main {
	color: #ffffff;
}

.qy-footer-wordmark-accent {
	color: var(--qy-gold);
}

.qy-footer-company {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
}

.qy-footer-copy {
	margin: 0;
	max-width: 44ch;
	color: #aaa;
	font-size: 0.88rem;
	line-height: 1.65;
}

.qy-footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.qy-site .qy-footer-heading {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qy-footer-col a {
	color: #b0b0b0;
	font-size: 0.92rem;
	line-height: 1.5;
	text-decoration: none;
	overflow-wrap: anywhere; /* long email wraps, never overflows */
}

.qy-footer-col a:hover,
.qy-footer-col a:focus-visible {
	color: var(--qy-gold-bright);
}

.qy-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 20px;
	border-top: 1px solid #252525;
	margin-inline: calc(-1 * clamp(16px, 4vw, 28px));
	padding-inline: clamp(16px, 4vw, 28px);
	font-size: 0.82rem;
	color: #8a8a8a;
}

/* ---------- Inner pages ---------- */

.qy-page-hero {
	background: var(--qy-silver);
	border-bottom: 1px solid var(--qy-line);
}

.qy-page-hero .qy-shell {
	padding-block: clamp(36px, 5vw, 52px);
}

.qy-page-hero h1 {
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	margin: 8px 0 10px;
}

.qy-page-hero p {
	color: var(--qy-muted);
	max-width: 68ch;
}

.qy-article h1 {
	margin-bottom: 16px;
}

.qy-notfound p {
	color: var(--qy-muted);
}

.qy-notfound .qy-button {
	margin-right: 14px;
}

/* ---------- Single product ---------- */

.qy-product-detail {
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

/* Wraps the square photo and its optional caption so the detail grid
   keeps exactly two children (media + body). */
.qy-product-detail-media {
	min-width: 0;
}

.qy-product-detail-figure {
	display: flex;
	justify-content: center;
	aspect-ratio: 1;
	padding: clamp(12px, 2vw, 24px);
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 4px;
	overflow: hidden;
}

.qy-product-detail-figure .qy-photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: contrast(1.1) brightness(1.035) saturate(0.9);
}

/* Concise clarification shown only under the kit-retatrutide-cjc-1295 photo. */
.qy-site .qy-photo-caption {
	margin: 10px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--qy-muted);
}

.qy-product-detail-title,
.qy-site .qy-product-detail .qy-product-detail-title {
	font-size: clamp(1.6rem, 3.2vw, 2.3rem);
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.qy-product-detail-label {
	color: var(--qy-gold);
	font-weight: 700;
	margin: 0 0 8px;
}

.qy-product-detail-description {
	color: var(--qy-muted);
}

.qy-product-detail-specs-title {
	margin: 22px 0 12px;
}

/* Specification pills: readable, exact strings, never abbreviated. */
.qy-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qy-pill {
	padding: 7px 14px;
	border: 1px solid var(--qy-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--qy-ink);
	font-size: 0.92rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.qy-pill-plus {
	color: var(--qy-gold);
	font-weight: 800;
}

.qy-kit-composition {
	display: grid;
	gap: 10px;
}

.qy-product-detail-nospec {
	color: var(--qy-muted);
	margin: 0;
}

.qy-product-detail-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 26px;
}

.qy-site .qy-product-detail .qy-button--whatsapp {
	display: inline-flex;
	align-items: center;
	padding: 12px 26px;
	border: none;
	border-radius: 4px;
	background: var(--qy-wa);
	color: #ffffff;
	font-weight: 800;
	text-decoration: none;
}

.qy-site .qy-product-detail .qy-button--whatsapp:hover {
	background: var(--qy-wa-deep);
	color: #ffffff;
}

.qy-product-detail-mail {
	font-weight: 700;
	color: var(--qy-gold);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.qy-product-detail-mail:hover,
.qy-product-detail-mail:focus-visible {
	color: var(--qy-gold-bright);
	border-bottom-color: var(--qy-gold-bright);
}

/* ---------- Related products ---------- */

.qy-related {
	margin-top: clamp(40px, 6vw, 60px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid var(--qy-line);
}

.qy-related-title {
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	margin: 0 0 20px;
}

.qy-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}

.qy-related-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
	border: 1px solid #dedede;
	border-radius: 4px;
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qy-related-card:hover,
.qy-related-card:focus-visible {
	border-color: #cccccc;
	box-shadow: var(--qy-shadow);
}

.qy-related-figure {
	display: flex;
	aspect-ratio: 1;
	padding: 9px;
	background: #ffffff;
	overflow: hidden;
}

.qy-related-figure .qy-photo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: contrast(1.1) brightness(1.035) saturate(0.9);
}

.qy-related-name {
	display: block;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--qy-line);
	color: var(--qy-ink);
	font-weight: 700;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

/* ---------- Mobile (390px-safe, 2-column grid at small sizes) ---------- */

@media (max-width: 1100px) {
	.qy-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.qy-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.qy-header-inner {
		min-height: 68px;
		padding-block: 10px;
		flex-wrap: wrap;
	}

	.qy-menu-toggle {
		display: inline-flex;
	}

	/* Hidden = truly gone; expanded = in flow below the bar, pushing
	   content down instead of overlapping it. */
	.qy-nav:not(.is-open) {
		display: none;
	}

	.qy-nav.is-open {
		flex-basis: 100%;
		order: 3;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-top: 6px;
	}

	.qy-nav.is-open a {
		padding: 13px 4px;
		border-bottom: 1px solid var(--qy-line);
	}

	.qy-nav.is-open a::after {
		display: none;
	}

	.qy-hero-inner {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.qy-hero-photo {
		width: min(100%, 480px);
		margin-inline: auto;
	}

	.qy-numbered {
		grid-template-columns: 1fr;
	}

	/* Footer: brand full width, nav/contact in balanced 2 columns. */
	.qy-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
		padding-block: 48px 40px;
	}

	.qy-footer-brand {
		grid-column: 1 / -1;
	}

	/* Contact spans both columns below the balanced Products/Company pair,
	   so long email/phone lines never orphan-wrap in a half-width column. */
	.qy-footer-contact {
		grid-column: 1 / -1;
	}

	.qy-product-detail {
		grid-template-columns: 1fr;
	}

	.qy-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qy-contact-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	/* Footer nav columns collapse to a single balanced column but stay
	   side-by-safe: email wraps, nothing overflows at 390px. */
	.qy-footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
		padding-block: 48px 36px;
	}

	.qy-footer-copy {
		max-width: 34ch;
	}

	.qy-footer-bottom {
		flex-direction: column;
		gap: 6px;
	}

	.qy-header-actions .qy-button--primary {
		padding: 9px 16px;
		font-size: 0.85rem;
	}

	.qy-hero-actions .qy-button {
		flex: 1 1 auto;
	}

	.qy-catalog-tools input[type="search"] {
		width: 100%;
	}

	/* Keep long blend names inside their cards without overflow. */
	.qy-product-title,
	.qy-related-name {
		font-size: 0.9rem;
	}

	.qy-pill {
		font-size: 0.85rem;
		padding: 6px 12px;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.qy-site *,
	.qy-site *::before,
	.qy-site *::after {
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001s !important;
		scroll-behavior: auto !important;
	}
}
