/* Stakt — dedicated store page (The Vault)
   Dark ink canvas, white type, green accent (body.stakt-store).
   Builds on home.css tokens and components.
*/

body.stakt-store {
	--accent: #00e58a;
	--accent-ink: var(--ink);
	background: var(--ink);
	color: var(--paper-white);
}

body.stakt-store .hf {
	background: var(--ink);
	color: var(--paper-white);
}

/* Positioning context for cart tab (scrolls with page, not viewport-fixed). */
.hf.store-page {
	position: relative;
}

/* ── Store hero ─────────────────────────────────────────────── */
.hf .store-hero {
	background: var(--ink);
	color: var(--paper-white);
	padding: 48px 40px 56px;
	position: relative;
	overflow: hidden;
	border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.hf .store-hero .eyebrow,
.hf .store-hero .eyebrow-lg {
	color: var(--paper-white);
	opacity: 0.7;
}

.hf .store-hero .h-title {
	font-family: var(--display);
	font-size: clamp(72px, 10vw, 140px);
	line-height: 0.92;
	letter-spacing: 0.015em;
	text-transform: uppercase;
	margin: 14px 0 18px;
	color: var(--paper-white);
}

.hf .store-hero .h-title .em {
	color: var(--paper-white);
}

.hf .store-hero .h-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 56px;
	align-items: flex-end;
}

.hf .store-hero .lead {
	color: var(--paper-white);
	opacity: 0.8;
	max-width: 420px;
}

/* ── Chip rail ───────────────────────────────────────────────── */
.hf .chip-rail {
	display: flex;
	gap: 10px;
	padding: 22px 40px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.12);
	background: var(--ink-2);
	overflow-x: auto;
	align-items: center;
}

.hf .chip {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: transparent;
	color: var(--paper-white);
	border: 2px solid rgba(255, 255, 255, 0.35);
	padding: 9px 14px;
	cursor: pointer;
	white-space: nowrap;
	font-weight: 700;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	text-decoration: none;
}

.hf .chip .count {
	opacity: 0.5;
}

.hf .chip.active {
	background: var(--paper-white);
	color: var(--ink);
	border-color: var(--paper-white);
}

.hf .chip.accent,
.hf .chip.active.accent {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.hf .chip-rail .spacer {
	flex: 1;
}

.hf .chip-rail .sort {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.7;
	color: var(--paper-white);
}

/* ── Store body ──────────────────────────────────────────────── */
.hf .store-page-body {
	padding: 40px;
	background: var(--ink);
	position: relative;
}

.hf .grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

/* ── Product card ────────────────────────────────────────────── */
.hf .pcard {
	border: 2px solid var(--paper-white);
	background: var(--paper-white);
	color: var(--ink);
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.hf .pcard:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--paper-white);
}

.hf .pcard .img {
	position: relative;
	aspect-ratio: 4/5;
	background: var(--paper);
	overflow: hidden;
}

.hf .pcard .img .ph,
.hf .pcard .img > img,
.hf .pcard .img .shot-wrap {
	position: absolute;
	inset: 0;
}

.hf .pcard .img .shot-wrap {
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hf .pcard .body {
	padding: 16px 16px 18px;
	border-top: 2px solid var(--ink);
}

.hf .pcard .cat {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.5;
}

.hf .pcard .ttl {
	font-family: var(--display);
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: 0.015em;
	text-transform: uppercase;
	margin-top: 4px;
}

.hf .pcard .meta {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.55;
	margin-top: 6px;
}

.hf .pcard .row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 14px;
	gap: 10px;
}

.hf .pcard .price-col .price {
	font-family: var(--display);
	font-size: 32px;
	line-height: 1;
	display: block;
}

.hf .pcard .price-col .rrp {
	font-family: var(--mono);
	font-size: 12px;
	display: block;
	margin-top: 2px;
}

.hf .pcard .add {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--ink);
	color: var(--paper-white);
	padding: 9px 14px;
	border: 2px solid var(--ink);
	cursor: pointer;
	flex-shrink: 0;
}

.hf .pcard .add.accent {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.hf .pcard .add.sold {
	background: var(--paper-2);
	color: rgba(10, 10, 10, 0.5);
	border-color: rgba(10, 10, 10, 0.3);
	pointer-events: none;
}

.hf .pcard.sold .img {
	background: var(--paper-white);
}

.hf .pcard.sold .img .ph,
.hf .pcard.sold .img .ph.foil {
	background: var(--paper-white);
	background-blend-mode: normal;
}

.hf .pcard.sold .img .ph {
	filter: none;
}

.hf .pcard.sold .img > img,
.hf .pcard.sold .img .shot-wrap {
	filter: grayscale(1) brightness(0.85);
}

.hf .pcard.sold .img::after {
	content: 'SOLD OUT';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-6deg);
	font-family: var(--display);
	font-size: clamp(32px, 5vw, 56px);
	color: var(--ink);
	background: var(--paper-white);
	padding: 6px 18px 8px;
	border: 3px solid var(--ink);
	z-index: 2;
	letter-spacing: 0.02em;
}

.hf .pcard .sticker {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	transform: rotate(-3deg);
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 5px 8px;
	border: 2px solid var(--ink);
	background: var(--ink);
	color: var(--paper-white);
}

.hf .pcard .sticker.accent,
.hf .pcard .sticker.ink {
	background: var(--ink);
	color: var(--paper-white);
}

/* ── Rules strip ─────────────────────────────────────────────── */
.hf .rules-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 2px solid rgba(255, 255, 255, 0.12);
	border-bottom: 2px solid rgba(255, 255, 255, 0.12);
	background: var(--ink-2);
	color: var(--paper-white);
}

.hf .rules-strip .cell {
	padding: 28px;
	border-right: 2px solid rgba(255, 255, 255, 0.12);
}

.hf .rules-strip .cell:last-child {
	border-right: none;
}

.hf .rules-strip .ico {
	font-family: var(--display);
	font-size: 48px;
	line-height: 1;
	margin-bottom: 8px;
	color: var(--paper-white);
}

.hf .rules-strip .h {
	font-family: var(--display);
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.hf .rules-strip .d {
	font-size: 13px;
	line-height: 1.45;
	opacity: 0.7;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.hf .grid-4 {
		grid-template-columns: repeat(3, 1fr);
	}

}

@media (max-width: 900px) {
	.hf .store-hero .h-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hf .grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hf .rules-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.hf .rules-strip .cell:nth-child(2) {
		border-right: none;
	}

	.hf .rules-strip .cell:nth-child(1),
	.hf .rules-strip .cell:nth-child(2) {
		border-bottom: 2px solid rgba(255, 255, 255, 0.12);
	}
}

@media (max-width: 600px) {
	.hf .chip-rail,
	.hf .store-hero,
	.hf .store-page-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.hf .grid-4 {
		grid-template-columns: 1fr;
	}

	.hf .rules-strip {
		grid-template-columns: 1fr;
	}

	.hf .rules-strip .cell {
		border-right: none;
		border-bottom: 2px solid rgba(255, 255, 255, 0.12);
	}

	.hf .rules-strip .cell:last-child {
		border-bottom: none;
	}
}
