/* Homepage collection tiles — 4 equal columns. */
.collection-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	width: min(1200px, calc(100% - 48px));
	margin: 100px auto;
	background: #f5f5f5;
	box-shadow: 0 0 0 100vmax #f5f5f5;
	clip-path: inset(-100px -100vmax 0 -100vmax);
}

.collection-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	aspect-ratio: 3 / 4;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	text-decoration: none;
	padding: 20px 16px;
}
.collection-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.08) 50%, rgba(0,0,0,0) 75%);
}
.collection-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.12);
	opacity: 0;
	transition: opacity .3s;
}
.collection-tile:hover::after { opacity: 1; }
.collection-tile span {
	position: relative;
	z-index: 1;
	color: #fff;
	font-family: Ubuntu, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
}

/* Tablet: 2×2 landscape tiles */
@media (max-width: 1050px) {
	.collection-tiles {
		width: min(760px, calc(100% - 48px));
		margin-block: 70px;
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
		clip-path: inset(-100px -100vmax 0 -100vmax);
	}
	.collection-tile {
		aspect-ratio: 4 / 3;
		padding: 18px 20px;
	}
	.collection-tile span { font-size: 16px; }
}

/* Mobile: 2×2 square tiles */
@media (max-width: 767px) {
	.collection-tiles {
		width: calc(100% - 32px);
		margin-block: 48px;
		grid-template-columns: repeat(2, 1fr);
		gap: 5px;
		box-shadow: 0 0 0 100vmax #f5f5f5;
		clip-path: inset(-100px -100vmax 0 -100vmax);
	}
	.collection-tile {
		aspect-ratio: 1 / 1;
		padding: 14px 12px;
	}
	.collection-tile span { font-size: 13px; }
}

@media (max-width: 480px) {
	.collection-tiles {
		width: calc(100% - 24px);
		margin-block: 36px;
		gap: 4px;
	}
	.collection-tile span { font-size: 11px; }
}
