/* ==========================================================================
   Collection: shop root and product category archives
   ========================================================================== */

.colhead {
	padding-block: clamp(26px, 3.6vw, 48px) clamp(16px, 2.4vw, 28px);
	background: linear-gradient(180deg, var(--chbg), var(--bg));
}

.colhead__t {
	margin: 9px 0 7px;
}

.colhead__p {
	max-width: 62ch;
}

.colnav {
	padding-bottom: 22px;
}

.colnav__pills {
	margin-top: 12px;
}

/* ---- the three quality cards, always on one line ---- */

.qcards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(8px, 1.2vw, 16px);
}

.qcard {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--bg);
	border: 1px solid var(--line);
	transition: transform 0.4s var(--e), box-shadow 0.4s var(--e), border-color 0.4s var(--e);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.qcard:hover,
.qcard:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--sh-card);
	border-color: var(--qc);
}

.qcard.is-on {
	border-color: var(--qc);
	box-shadow: var(--sh-card-sm);
}

.qcard__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surf);
}

.qcard__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--e);
}

.qcard:hover .qcard__img img {
	transform: scale(1.05);
}

.qcard__b {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.qcard__h {
	font-size: clamp(13px, 1.35vw, 17px);
	letter-spacing: -0.03em;
	font-weight: 700;
	line-height: 1.1;
}

.qcard__sub {
	font-size: clamp(10px, 1vw, 11.5px);
	color: var(--ink2);
	line-height: 1.35;
}

.qcard__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	min-width: 0;
}

.qcard__row b {
	font-size: clamp(11.5px, 1.15vw, 14px);
	font-weight: 800;
	white-space: nowrap;
}

.qcard__go {
	font-size: 10.5px;
	font-weight: 800;
	color: var(--qc);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.qcard__go .ico {
	font-size: 13px;
	transition: transform 0.3s var(--e);
}

.qcard:hover .qcard__go .ico {
	transform: translateX(3px);
}

@media (max-width: 560px) {
	.qcard__b {
		padding: 9px 10px 11px;
	}

	.qcard__img {
		aspect-ratio: 4 / 3;
	}

	.qcard__go span {
		display: none;
	}
}

/* ---- sticky filter bar ---- */

.fbar {
	position: sticky;
	top: calc(64px + env(safe-area-inset-top, 0px));
	z-index: 40;
	background: var(--glass-sc);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
}

.tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 12px;
	flex-wrap: wrap;
}

.tools__l {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.tools__sort {
	display: inline-flex;
	min-width: 0;
}

.cnt {
	font-size: 12px;
	color: var(--ink2);
}

.cnt b {
	color: var(--ink);
	font-weight: 800;
}

.sel {
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	font-family: inherit;
	background: var(--bg);
	color: var(--ink);
	cursor: pointer;
	font-weight: 600;
	max-width: 100%;
}

.fbtn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	background: var(--bg);
	transition: 0.25s var(--e);
	white-space: nowrap;
}

.fbtn:hover,
.fbtn[aria-expanded='true'] {
	border-color: var(--ink);
}

.fbtn .ico {
	font-size: 14px;
}

.fbtn b {
	color: var(--on-dark);
	border-radius: 999px;
	font-size: 10px;
	padding: 1px 6px;
	background: var(--grad);
	background-size: 260% 100%;
	animation: gmove 7s linear infinite;
}

/* ---- the filter panel ---- */

.drawer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--e);
}

.drawer.is-on {
	grid-template-rows: 1fr;
}

.drawer > .drawer__in {
	overflow: hidden;
}

.drawer__in {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	min-height: 0;
}

.drawer.is-on .drawer__in {
	padding: 6px 0 22px;
}

.fgrp {
	min-width: 0;
}

.fgrp__h {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink3);
	margin-bottom: 10px;
}

.fopts {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.fopts__none {
	font-size: 11.5px;
	color: var(--ink3);
}

.fopts .chs b {
	opacity: 0.5;
	margin-left: 4px;
	font-size: 10px;
}

.rng input {
	width: 100%;
	accent-color: var(--ch1);
}

.rng__out {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	gap: 10px;
}

.rng__v {
	font-size: 12px;
	font-weight: 700;
}

.rng__v--min {
	color: var(--ink3);
}

.drawer__clear {
	margin-top: 14px;
}

@media (max-width: 820px) {
	.drawer__in {
		grid-template-columns: 1fr;
	}
}

/* ---- grid area ---- */

.colgrid {
	padding-top: 20px;
}

.colgrid [aria-busy='true'] {
	opacity: 0.55;
	transition: opacity 0.2s var(--e);
}

/* ---- collection banner ---- */

.cban {
	border-radius: var(--r3);
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	background: var(--ink);
	color: var(--on-dark);
	min-height: 170px;
}

.cban__img {
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.cban__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cban__img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 35%, var(--veil));
}

.cban__glow {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(420px 180px at 72% 40%, var(--veil-glow), transparent 70%);
}

.cban__b {
	padding: clamp(16px, 2.4vw, 30px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	position: relative;
	z-index: 2;
	min-width: 0;
}

.cban__b .eyebrow {
	color: var(--ch3);
}

.cban__t {
	font-size: clamp(1rem, 1.9vw, 1.5rem);
	letter-spacing: -0.035em;
	max-width: 22ch;
}

.cban__u {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 16px;
}

.cban__u div {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.84);
	min-width: 0;
}

.cban__u .ico {
	font-size: 15px;
	color: var(--ch3);
}

@media (max-width: 720px) {
	.cban {
		grid-template-columns: 1fr;
	}

	.cban__img {
		height: 110px;
	}

	.cban__img::after {
		background: linear-gradient(180deg, transparent 25%, var(--veil));
	}

	.cban__u {
		grid-template-columns: 1fr;
	}
}
