/* ── PBR textures: full page ── */
.texture-page__top {
	margin-bottom: 20px;
}

.texture-page__gallery-wrap {
	margin-top: -20px;
}

.texture-page .gallery.texture-page__gallery {
	margin-bottom: 0;
}

.texture-page__preview {
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.06) 0%, transparent 68%),
		#141414;
	border-radius: 12px;
	overflow: hidden;
}

.texture-page__preview-img {
	width: auto;
	height: auto;
	max-width: min(100%, 520px);
	max-height: 360px;
	object-fit: contain;
}

.texture-page__sidebar .page-side.stick {
	top: 88px;
}

.texture-page__title {
	font-size: 26px;
}

.texture-page__type-badge {
	background: rgba(255, 255, 255, 0.08);
	color: var(--tt-fade-0);
	letter-spacing: 0.06em;
}

.texture-page__source-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--tt-fade);
}

.texture-page__source-note a {
	color: var(--ui-accent);
	text-decoration: none;
}

.texture-page__source-note a:hover {
	text-decoration: underline;
}

.texture-page__download-block {
	padding: 0;
	background: transparent;
	border: 0;
}

.texture-downloads-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.texture-downloads {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.texture-downloads__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--ui-accent, #2f7df6);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.texture-downloads__btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: #fff !important;
}

.texture-downloads__btn .fal {
	font-size: 16px;
	opacity: 0.95;
}

.texture-downloads__empty {
	font-size: 13px;
	line-height: 1.45;
	color: var(--tt-fade);
}

.texture-page__license-note {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--tt-fade);
}

.texture-page__specs {
	margin-bottom: 0;
}

.texture-page__section-title {
	margin-bottom: 12px;
}

.texture-page__more-cats {
	margin-top: 4px;
	margin-bottom: 8px;
}

.texture-page__cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.texture-page__cat-pill {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--bdc, rgba(255, 255, 255, 0.12));
	background: var(--bg-black);
	color: var(--tt-fade-0);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.texture-page__cat-pill:hover,
.texture-page__cat-pill.is-active {
	border-color: var(--ui-accent);
	color: var(--tt);
}

.texture-page__related-sect {
	margin-top: 0;
}

.grid-items--textures,
.grid-items--textures #dle-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	width: 100%;
}

/* ── Texture card (shorttextures.tpl) ── */
.texture-card {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-black);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.texture-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.texture-card__preview {
	position: relative;
	aspect-ratio: 1;
	background:
		radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.07) 0%, transparent 62%),
		#1a1a1a;
}

.texture-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	box-sizing: border-box;
	transition: transform 0.25s ease;
}

.texture-card:hover .texture-card__img {
	transform: scale(1.04);
}

.texture-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.texture-card:hover .texture-card__shade {
	opacity: 1;
}

.texture-card__badges {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
}

.texture-card__body {
	padding: 10px 10px 12px;
	min-width: 0;
}

.texture-card__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tt);
}

.texture-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-top: 6px;
	font-size: 11px;
	color: var(--tt-fade);
}

.texture-card__meta-item {
	white-space: nowrap;
}

@media (max-width: 1100px) {
	.texture-page__preview {
		min-height: 320px;
	}

	.texture-page__preview-img {
		max-height: 280px;
	}
}

@media (max-width: 900px) {
	.texture-page__gallery-wrap {
		margin-top: 0;
	}

	.grid-items--textures,
	.grid-items--textures #dle-content {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 10px;
	}
}
