/* ==========================================================================
   Product page: the piece, mounted large, with a loupe for close inspection.
   ========================================================================== */

.qc-crumbs {
	padding: var(--top, 1.5rem) var(--gutter) 0;
	color: var(--fg-2);
	font-size: 0.85rem;
}
.qc-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; max-width: var(--max); margin-inline: auto; padding: 0; }
.qc-crumbs li { display: inline-flex; align-items: center; }
.qc-crumbs li + li::before { content: "/"; margin: 0 0.6rem; opacity: 0.5; }
.qc-crumbs a { color: var(--fg-2); }
.qc-crumbs a:hover { color: var(--fg); }
.qc-crumbs [aria-current] { color: var(--fg); font-weight: 600; }
.qc-crumbs + * { --top: 0px; }

.qc-product { padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) var(--section); }
.qc-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 6rem);
	max-width: var(--max);
	margin-inline: auto;
	align-items: start;
}
.qc-product__media { position: sticky; top: calc(var(--hd) + 1.5rem); }

.qc-product__mount {
	position: relative;
	container-type: inline-size;
	padding: 5%;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 24px 36px 60px -30px rgba(0, 0, 0, 0.8), 3px 4px 8px -4px rgba(0, 0, 0, 0.5);
	cursor: zoom-in;
}
.qc-product__mount .qc-bolts { --b: 16px; --o: calc(2.5cqi - 8px); }
.qc-product__photo { position: relative; display: block; aspect-ratio: 1587 / 1789; overflow: hidden; }
.qc-product__img { width: 100%; height: 100%; object-fit: cover; view-transition-name: qc-product; }
.qc-product__hint { margin-top: 1rem; }
@media (hover: none), (pointer: coarse) {
	.qc-product__hint { display: none; }
	.qc-product__mount { cursor: default; }
}

/* The loupe: a thick clear lens, edge-lit. */
.qc-loupe {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 6;
	width: 190px;
	height: 190px;
	margin: -95px 0 0 -95px;
	border-radius: 50%;
	pointer-events: none;
	background-color: var(--ink);
	background-repeat: no-repeat;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.7),
		inset 0 0 0 6px rgba(235, 202, 180, 0.22),
		inset 6px 8px 18px rgba(255, 255, 255, 0.25),
		0 18px 36px -10px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: translate(var(--lx, 0), var(--ly, 0)) scale(0.6);
	transition: opacity 220ms var(--ease-out), transform 360ms var(--ease-mount);
}
.qc-loupe.is-on { opacity: 1; transform: translate(var(--lx, 0), var(--ly, 0)) scale(1); transition: opacity 220ms var(--ease-out), transform 90ms linear; }

.qc-product__info { padding-top: 0.5rem; }
.qc-product__cats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-weight: 600; font-size: 0.9rem; }
.qc-product__cats a { color: var(--edge); }
.qc-product__title {
	position: relative;
	margin-top: 0.9rem;
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.015em;
	color: var(--white);
}
.qc-motion .qc-product__title.is-etching { clip-path: inset(-0.2em 100% -0.2em 0); animation: qc-cut-in 1100ms var(--ease-cut) 200ms forwards; }
.qc-motion .qc-product__title.is-etching::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: 0;
	width: 2px;
	background: #fff;
	box-shadow: 0 0 12px 2px var(--edge);
	animation: qc-laser-x 1100ms var(--ease-cut) 200ms both;
}
.qc-product__lede { margin-top: 1.25rem; color: var(--mist); font-size: 1.2rem; line-height: 1.5; max-width: 40ch; }
.qc-product__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.qc-product__actions .qc-add--full { color: var(--white); }
.qc-product__note { margin-top: 1rem; font-size: 0.9rem; color: var(--mist); max-width: 44ch; }

.qc-spec { margin-top: 2.5rem; }
.qc-spec__list { margin-top: 0.75rem; border-bottom: 1px solid var(--ink-line); }
.qc-spec__list li { position: relative; display: flex; gap: 1rem; align-items: baseline; padding: 0.8rem 0; border-top: 1px solid var(--ink-line); }
/* The logo's diagonal, as a mark against each feature. */
.qc-spec__tick { flex: none; width: 12px; height: 2px; background: var(--edge); transform: translateY(-4px) rotate(-45deg); }
.qc-product__body { margin-top: 2rem; color: var(--mist); }
.qc-product__body p + p { margin-top: 1rem; }
.qc-product__closing { margin-top: 2rem; font: 400 1.35rem/1.3 var(--f-display); color: var(--white); max-width: 30ch; }
.qc-product__uses { margin-top: 2.5rem; }
.qc-product__uses ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.qc-buybar { display: none; }
@media (max-width: 900px) {
	.qc-product__grid { grid-template-columns: 1fr; }
	.qc-product__media { position: static; }
	.qc-product__actions .qc-btn,
	.qc-product__actions .qc-add--full { flex: 1 1 100%; justify-content: center; }
	.qc-buybar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
		background: rgba(51, 32, 27, 0.86);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		box-shadow: inset 0 1px 0 rgba(235, 202, 180, 0.25);
		color: var(--white);
		transform: translateY(110%);
		transition: transform var(--t-mid) var(--ease-cut);
	}
	.qc-buybar.is-shown { transform: none; }
	.qc-buybar__title { font-weight: 600; font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.qc-products--rail { background: var(--ink); color: var(--white); }
