/**
 * Gozero Design Templates – frontend (matches reference layout).
 */

.gozero-dt {
	--gozero-dt-max: 1140px;
	--gozero-dt-gap: 28px;
	--gozero-dt-accent: #eb6e28;
	--gozero-dt-accent-hover: #d45f1f;
	--gozero-dt-accent-light: #fdf0e8;
	--gozero-dt-title: #1a1a1a;
	--gozero-dt-muted: #666;
	--gozero-dt-link: var(--gozero-dt-accent);
	--gozero-dt-border: #e8e0da;
	--gozero-dt-card-bg: #fff;
	--gozero-dt-font: "Helvetica Neue", Helvetica, Arial, sans-serif;

	max-width: var(--gozero-dt-max);
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: var(--gozero-dt-font);
	color: var(--gozero-dt-title);
	box-sizing: border-box;
}

.gozero-dt *,
.gozero-dt *::before,
.gozero-dt *::after {
	box-sizing: border-box;
}

/* Header */
.gozero-dt__header {
	text-align: center;
	margin-bottom: 36px;
}

.gozero-dt__title {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--gozero-dt-title);
}

.gozero-dt__rule {
	display: block;
	width: 56px;
	height: 3px;
	margin: 0 auto 18px;
	background: var(--gozero-dt-accent);
}

.gozero-dt__subtitle {
	margin: 0 auto;
	max-width: 720px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--gozero-dt-muted);
	font-weight: 400;
}

/* Breadcrumb */
.gozero-dt-breadcrumb {
	margin-bottom: 24px;
}

.gozero-dt-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--gozero-dt-muted);
}

.gozero-dt-breadcrumb__link {
	color: var(--gozero-dt-link);
	text-decoration: none;
}

.gozero-dt-breadcrumb__link:hover,
.gozero-dt-breadcrumb__link:focus {
	color: var(--gozero-dt-accent-hover);
	text-decoration: underline;
}

.gozero-dt-breadcrumb__sep {
	margin: 0 2px;
	color: #999;
}

.gozero-dt-breadcrumb__item.is-current span {
	color: var(--gozero-dt-title);
	font-weight: 600;
}

/* Grid */
.gozero-dt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gozero-dt-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 900px) {
	.gozero-dt-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (max-width: 520px) {
	.gozero-dt-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Card */
.gozero-dt-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.gozero-dt-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--gozero-dt-card-bg);
	border: 1px solid var(--gozero-dt-border);
	padding: 24px 20px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gozero-dt-card:hover .gozero-dt-card__media,
.gozero-dt-card:focus-visible .gozero-dt-card__media {
	border-color: var(--gozero-dt-accent);
	box-shadow: 0 6px 20px rgba(235, 110, 40, 0.18);
	transform: translateY(-2px);
}

.gozero-dt-card__img {
	display: block;
	max-width: 85%;
	max-height: 85%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gozero-dt-card__placeholder {
	font-size: 48px;
	font-weight: 700;
	color: #bbb;
	line-height: 1;
}

.gozero-dt-card__title {
	display: block;
	margin-top: 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--gozero-dt-link);
	transition: color 0.15s ease;
}

.gozero-dt-card:hover .gozero-dt-card__title,
.gozero-dt-card:focus-visible .gozero-dt-card__title {
	color: var(--gozero-dt-accent-hover);
}

/* Templates use same card layout */
.gozero-dt-grid--templates .gozero-dt-card__title {
	font-size: 15px;
}

/* Empty / back */
.gozero-dt__empty {
	text-align: center;
	color: var(--gozero-dt-muted);
	font-size: 15px;
	margin: 24px 0;
}

.gozero-dt-back {
	color: var(--gozero-dt-link);
	font-weight: 600;
	text-decoration: none;
}

.gozero-dt-back:hover,
.gozero-dt-back:focus {
	color: var(--gozero-dt-accent-hover);
	text-decoration: underline;
}

/* Loader */
.gozero-dt.is-loading .gozero-dt__content {
	opacity: 0.45;
	pointer-events: none;
}

.gozero-dt__loader {
	position: relative;
	text-align: center;
	margin-top: -20px;
	margin-bottom: 20px;
}

.gozero-dt__loader[hidden] {
	display: none !important;
}

.gozero-dt__loader-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid var(--gozero-dt-accent-light);
	border-top-color: var(--gozero-dt-accent);
	border-radius: 50%;
	animation: gozero-dt-spin 0.7s linear infinite;
}

@keyframes gozero-dt-spin {
	to {
		transform: rotate(360deg);
	}
}
