/* Glist — catalog.css */

/* ——— Catalog ——— */
/* Scales like Tilda t-record_scaled (80px / 34px @ 1200px design width). */
.home-catalog {
	padding: clamp(72px, 11.25vw, 160px) 0;
	background: var(--glist-white);
}

.home-catalog__intro,
.home-band__intro {
	width: min(1120px, calc(100% - 2rem));
	margin-inline: auto;
	text-align: center;
}

.home-catalog__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0 0 clamp(20px, 3.33vw, 48px);
	font-family: var(--glist-headline);
	font-weight: 600;
	font-size: clamp(3.4rem, 8.4vw, 9.4rem);
	line-height: 0.82;
	text-transform: lowercase;
}

.home-catalog__title-line {
	white-space: nowrap;
}

.home-band__title {
	margin: 0 0 clamp(20px, 3.33vw, 40px);
	font-family: var(--glist-headline);
	font-weight: 500;
	font-size: clamp(2.5rem, 6.17vw, 4.625rem); /* ~74px @1200 */
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-contact__title {
	margin: 0 0 clamp(2.5rem, 7.5vw, 5.625rem);
	/* Emoji fallbacks: Cormorant Unicase has no emoji glyphs (skin-tone = tofu). */
	font-family: var(--glist-headline), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif;
	font-weight: 600;
	font-size: clamp(2rem, 4.8vw, 3.5rem);
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
}

.home-catalog__lead {
	margin: 0 auto clamp(48px, 7.5vw, 110px);
	max-width: 560px;
	font-family: var(--glist-headline);
	font-size: clamp(1.35rem, 2.833vw, 3.2rem);
	font-weight: 600;
	line-height: 1.2;
	text-transform: lowercase;
}

.home-band__lead {
	margin: 0 auto clamp(45px, 8.75vw, 105px);
	max-width: 28ch;
	font-family: var(--glist-headline);
	font-size: clamp(1.25rem, 2.5vw, 1.875rem); /* ~30px @1200 */
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
}

@media screen and (max-width: 960px) {
	.home-catalog__title {
		margin-bottom: 20px;
	}

	.home-catalog__title-line {
		white-space: normal;
	}

	.home-catalog__lead {
		margin-bottom: 60px;
	}
}

.product-grid {
	width: 100%;
	padding-inline: clamp(1rem, 2.75vw, 2.1rem);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2.75rem, 5.75vw, 5.25rem);
	box-sizing: border-box;
}

.product-card__media {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 5px;
	background: #f0f0f0;
	cursor: pointer;
}

.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.45s var(--glist-ease);
	pointer-events: none;
}

.product-card__img--hover {
	opacity: 0;
}

.product-card__media.is-alt .product-card__img--hover {
	opacity: 1;
}

.product-card__media.is-alt .product-card__img--primary {
	opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
	.product-card__media:hover .product-card__img--hover {
		opacity: 1;
	}

	.product-card__media:hover .product-card__img--primary {
		opacity: 0;
	}
}

.product-card__body {
	padding-top: 1rem;
	text-align: left;
}

.product-card__color {
	margin: 0 0 0.35rem;
	font-family: var(--glist-sans);
	font-size: clamp(1.05rem, 1.9vw, 1.4rem);
	font-weight: 300;
	color: var(--glist-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.product-card__title {
	margin: 0 0 0.35rem;
	font-family: var(--glist-headline);
	font-size: clamp(1.7rem, 3.5vw, 2.65rem);
	font-weight: 500;
	line-height: 1.15;
	text-transform: capitalize;
}

.product-card__sizes {
	margin: 0 0 0.45rem;
	font-family: var(--glist-sans);
	font-size: clamp(0.8rem, 1.1vw, 0.95rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--glist-ink);
	background: var(--glist-white);
}

/* Sizes only on PDP — listing cards hide them */
.product-card .product-card__sizes {
	display: none;
}

.product-card__price {
	display: inline-block;
	margin: 0;
	font-family: var(--glist-headline);
	font-size: clamp(1.4rem, 2.6vw, 1.95rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.product-card__price:hover {
	opacity: 0.65;
}

.product-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.product-card__link .product-card__media {
	cursor: pointer;
}

.product-card__link .product-card__price {
	pointer-events: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: capitalize;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--solid {
	color: var(--glist-white);
	background: var(--glist-ink);
}

.btn--solid:hover {
	color: var(--glist-ink);
	background: var(--glist-white);
	outline: 1px solid var(--glist-ink);
}

.product-carousel__dots {
	display: none;
}

@media (max-width: 900px) {
	.product-grid {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(78vw, 22rem);
		gap: 1.25rem;
		max-width: none;
		margin-inline: 0;
		padding-inline: max(1.25rem, calc((100vw - min(78vw, 22rem)) / 2));
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: max(1.25rem, calc((100vw - min(78vw, 22rem)) / 2));
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.product-grid::-webkit-scrollbar {
		display: none;
	}

	.product-card {
		scroll-snap-align: center;
	}

	.product-carousel__dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 0.55rem;
		margin-top: 1.5rem;
	}

	.product-carousel__dot {
		width: 0.5rem;
		height: 0.5rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #cfcfcf;
		cursor: pointer;
		transition: background-color 0.2s ease, transform 0.2s ease;
	}

	.product-carousel__dot.is-active {
		background: var(--glist-ink);
		transform: scale(1.15);
	}
}

/* Catalog page shell */
.site-main--catalog {
	padding-top: var(--glist-header-h);
	background: var(--glist-white);
}

.home-catalog.catalog-page {
	padding-top: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.catalog-page .home-catalog__title {
	margin-bottom: clamp(0.65rem, 1.4vw, 1.1rem);
	font-size: clamp(2.1rem, 5.2vw, 4.25rem);
	line-height: 0.92;
}

.catalog-page .home-catalog__lead {
	margin-bottom: clamp(1.5rem, 3.2vw, 2.75rem);
	font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.catalog-page .product-grid {
	gap: clamp(1.25rem, 2.8vw, 2.25rem);
}

.catalog-page .product-card__title {
	font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}

.catalog-page .product-card__color,
.catalog-page .product-card__sizes,
.catalog-page .product-card__price {
	font-size: clamp(0.85rem, 1.2vw, 1.05rem);
}
