/* ==========================================================================
   Collection pages (Apparel, Accessories, Socks) — catalogue layout.
   Scoped to .pcx. Palette: paper #F7F4EF, ink #1D1D1C, gold #B8965B.
   ========================================================================== */
.pcx {
	--pcx-bg: #F7F4EF;
	--pcx-card: #FFFFFF;
	--pcx-ink: #1D1D1C;
	--pcx-soft: #5E5A54;
	--pcx-gold: #B8965B;
	--pcx-gold-deep: #7F6438;
	--pcx-line: rgba(29, 29, 28, .12);
	--pcx-ease: cubic-bezier(.16, 1, .3, 1);
	background: var(--pcx-bg);
	color: var(--pcx-ink);
	font-family: var(--ag-font, "Jost", Arial, sans-serif);
	padding: clamp(16px, 3vw, 40px) 0 clamp(48px, 7vw, 96px);
	overflow-x: clip;
}
.pcx *, .pcx *::before, .pcx *::after { box-sizing: border-box; }
.pcx img { display: block; max-width: 100%; }
.pcx h1, .pcx h2, .pcx h3, .pcx p, .pcx ul { margin: 0; padding: 0; }
.pcx ul { list-style: none; }
.pcx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pcx-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 40px);
	display: grid;
	gap: clamp(48px, 7vw, 96px);
}

/* ---- Labels, buttons ---------------------------------------------------- */
.pcx-label, .pcx-eyebrow {
	color: var(--pcx-gold-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
}
.pcx-label--light { color: var(--pcx-gold); }
.pcx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 980px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .35s var(--pcx-ease), color .35s var(--pcx-ease), border-color .35s var(--pcx-ease), transform .2s var(--pcx-ease), box-shadow .35s var(--pcx-ease);
}
.pcx-btn--gold { background: var(--pcx-gold); color: #1D1D1C; }
.pcx-btn--gold:hover, .pcx-btn--gold:focus-visible { background: #c8a76b; box-shadow: 0 10px 28px -10px rgba(184, 150, 91, .8); transform: translateY(-1px); }
.pcx-btn--ghost { border-color: var(--pcx-ink); color: var(--pcx-ink); }
.pcx-btn--ghost:hover, .pcx-btn--ghost:focus-visible { background: var(--pcx-ink); color: #F7F4EF; }

/* ---- Head --------------------------------------------------------------- */
.pcx-head {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	padding-top: clamp(8px, 2vw, 24px);
}
.pcx-eyebrow { margin-bottom: 14px !important; }
.pcx-title {
	font-size: clamp(40px, 6vw, 84px) !important;
	font-weight: 500 !important;
	line-height: 1.02 !important;
	letter-spacing: -.02em !important;
	color: var(--pcx-ink) !important;
}
.pcx-lead {
	max-width: 46ch;
	margin-top: 22px !important;
	color: var(--pcx-soft);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.6;
}
.pcx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pcx-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 40px !important;
	border-top: 1px solid var(--pcx-line);
}
.pcx-facts li {
	display: grid;
	gap: 2px;
	padding: 18px 28px 0 0;
	margin-right: 28px;
}
.pcx-facts li + li { padding-left: 28px; border-left: 1px solid var(--pcx-line); margin-left: -1px; }
.pcx-facts strong { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.pcx-facts span { color: var(--pcx-soft); font-size: 13px; letter-spacing: .04em; }
.pcx-head__media {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	aspect-ratio: 4 / 4.6;
	max-height: 600px;
	width: 100%;
	box-shadow: 0 30px 60px -30px rgba(29, 29, 28, .45);
	cursor: zoom-in;
}
.pcx--socks .pcx-head__media { aspect-ratio: 4 / 3.4; }
.pcx-head__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--pcx-ease); }
.pcx-head__media:hover img { transform: scale(1.04); }

/* ---- Palette ------------------------------------------------------------ */
.pcx-palette {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 36px;
	padding: 22px clamp(18px, 3vw, 36px);
	background: var(--pcx-card);
	border: 1px solid var(--pcx-line);
	border-radius: 18px;
}
.pcx-palette ul { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.pcx-palette li { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .02em; }
.pcx-palette i, .pcx-colors i {
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(29, 29, 28, .18);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

/* ---- Section heads ------------------------------------------------------ */
.pcx-sechead { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.pcx-sechead h2, .pcx-features h2 {
	font-size: clamp(28px, 3.4vw, 46px);
	font-weight: 500;
	letter-spacing: -.015em;
	line-height: 1.1;
	color: var(--pcx-ink);
}

/* ---- Range cards -------------------------------------------------------- */
.pcx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.pcx-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcx-card {
	display: flex;
	flex-direction: column;
	background: var(--pcx-card);
	border: 1px solid var(--pcx-line);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .5s var(--pcx-ease), box-shadow .5s var(--pcx-ease), border-color .5s var(--pcx-ease);
}
.pcx-card:hover { transform: translateY(-4px); border-color: rgba(184, 150, 91, .6); box-shadow: 0 26px 50px -28px rgba(29, 29, 28, .4); }
.pcx-card__media {
	position: relative;
	display: block;
	width: 100%;
	background: #FBFAF7;
	border-bottom: 1px solid var(--pcx-line);
	cursor: zoom-in;
}
.pcx-card__media img { width: 100%; height: auto; transition: transform .8s var(--pcx-ease); }
.pcx-card:hover .pcx-card__media img { transform: scale(1.03); }
.pcx-card__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--pcx-ink);
	color: #F7F4EF;
	font-size: 18px;
	line-height: 1;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .3s var(--pcx-ease), transform .3s var(--pcx-ease);
}
.pcx-card__media:hover .pcx-card__zoom, .pcx-card__media:focus-visible .pcx-card__zoom { opacity: 1; transform: none; }
.pcx-card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 14px; }
.pcx-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--pcx-ink); }
.pcx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pcx-tags span {
	padding: 5px 12px;
	border: 1px solid var(--pcx-line);
	border-radius: 980px;
	color: var(--pcx-soft);
	font-size: 12px;
	letter-spacing: .04em;
}
.pcx-card__sub { margin-top: 12px !important; color: var(--pcx-soft); font-size: 14px; line-height: 1.5; }
.pcx-thumb { flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 14px; border: 1px solid var(--pcx-line); cursor: zoom-in; }
.pcx-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--pcx-ease); }
.pcx-thumb:hover img { transform: scale(1.12); }
.pcx .pcx-colors { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto !important; padding: 8px 22px 22px; }
.pcx-colors li { display: flex; align-items: center; gap: 7px; color: var(--pcx-soft); font-size: 13px; }
.pcx-colors i { width: 14px; height: 14px; box-shadow: none; }

/* ---- Features (accessories) -------------------------------------------- */
.pcx-features {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 64px);
	align-items: center;
	padding: clamp(18px, 3vw, 36px);
	background: var(--pcx-card);
	border: 1px solid var(--pcx-line);
	border-radius: 24px;
}
.pcx-features__media button { display: block; width: 100%; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.pcx-features__media img { width: 100%; height: auto; }
.pcx-features__text { display: grid; gap: 14px; align-content: center; }
.pcx-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 10px !important; }
.pcx-checks li { position: relative; padding-left: 28px; font-size: 16px; }
.pcx-checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .35em;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--pcx-gold);
	border-bottom: 2px solid var(--pcx-gold);
	transform: rotate(-45deg);
}
.pcx-materials { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding: 24px clamp(18px, 3vw, 36px); background: var(--pcx-card); border: 1px solid var(--pcx-line); border-radius: 18px; }
.pcx-checks--row { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 !important; }

/* ---- Gallery ------------------------------------------------------------ */
.pcx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.pcx-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 18px;
	background: #E9E4DA;
	cursor: zoom-in;
}
.pcx-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--pcx-ease); }
.pcx-tile:hover img { transform: scale(1.06); }
.pcx-tile span {
	position: absolute;
	inset: auto 0 0 0;
	padding: 28px 16px 14px;
	background: linear-gradient(to top, rgba(20, 20, 20, .7), rgba(20, 20, 20, 0));
	color: #F7F4EF;
	font-size: 13px;
	letter-spacing: .06em;
	text-align: left;
}

/* ---- Call to action ----------------------------------------------------- */
.pcx-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: clamp(28px, 5vw, 64px);
	background: #1D1D1C;
	border-radius: 28px;
}
.pcx-cta h2 { max-width: 22ch; margin-top: 12px; color: #F7F4EF; font-size: clamp(26px, 3.4vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }

/* ---- Lightbox ----------------------------------------------------------- */
.pcx-lb {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 5vh 5vw;
	background: rgba(15, 15, 15, .88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: zoom-out;
}
.pcx-lb.is-open { display: flex; animation: pcx-fade .25s var(--pcx-ease, ease); }
.pcx-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.pcx-lb img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
.pcx-lb figcaption { color: #F7F4EF; font-size: 14px; letter-spacing: .08em; }
.pcx-lb__x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; border: 0; cursor: pointer; }
@keyframes pcx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Reveal ------------------------------------------------------------- */
.pcx-js .pcx-rv { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s var(--pcx-ease), transform .8s var(--pcx-ease); }
.pcx-js .pcx-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.pcx-js .pcx-rv { opacity: 1; transform: none; transition: none; }
	.pcx *, .pcx *::before { transition-duration: .01ms !important; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
	.pcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pcx-head { grid-template-columns: 1fr; }
	.pcx-head__media { max-height: 520px; aspect-ratio: 16 / 11; order: -1; }
	.pcx-features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.pcx-grid, .pcx-grid--two { grid-template-columns: 1fr; }
	.pcx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pcx-checks { grid-template-columns: 1fr; }
	.pcx-actions .pcx-btn { flex: 1 1 100%; }
	.pcx-facts li, .pcx-facts li + li { padding-left: 0; border-left: 0; margin: 0 24px 0 0; }
	.pcx-cta .pcx-btn { width: 100%; }
}

/* The socks photo has a small "Λ" baked into its top-left corner; keep it out of frame. */
.pcx--socks .pcx-head__media img { object-position: 82% 50%; transform: scale(1.14); transform-origin: 82% 50%; }
.pcx--socks .pcx-head__media:hover img { transform: scale(1.18); }
