.elc-live-row {
	--elc-bg: #f7f4ee;
	--elc-text: #1d1b18;
	--elc-gap: 22px;
	color: var(--elc-text);
	margin: 28px auto;
	max-width: 1240px;
}

.elc-live-row,
.elc-live-row * {
	box-sizing: border-box;
}

.elc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--elc-gap);
}

.elc-tile {
	background: var(--elc-bg);
	border: 1px solid rgba(29, 27, 24, 0.08);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(33, 30, 24, 0.13);
	min-height: 300px;
	overflow: hidden;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.elc-square .elc-tile {
	border-radius: 0;
}

.elc-tile:hover {
	border-color: rgba(29, 27, 24, 0.16);
	box-shadow: 0 22px 55px rgba(33, 30, 24, 0.18);
	transform: translateY(-3px);
}

.elc-tile-image {
	background: #111;
}

.elc-image-link,
.elc-tile-image > img {
	color: inherit;
	display: block;
	height: 100%;
	min-height: 300px;
	text-decoration: none;
	width: 100%;
}

.elc-tile-image img {
	display: block;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	transform: scale(1);
	transition: transform 500ms ease;
	width: 100%;
}

.elc-tile-image:hover img {
	transform: scale(1.055);
}

.elc-image-placeholder {
	background: linear-gradient(135deg, #30302f, #777064);
	height: 100%;
	min-height: 300px;
	width: 100%;
}

.elc-image-overlay {
	align-items: flex-end;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 20%, rgba(0, 0, 0, 0.68) 100%);
	display: flex;
	inset: 0;
	padding: 28px;
	position: absolute;
}

.elc-image-overlay h3 {
	color: #fff;
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.05;
	margin: 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.elc-tile-sale {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 38px 30px;
	text-align: center;
}

.elc-kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.elc-tile-sale h2 {
	color: inherit;
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 800;
	line-height: 1.02;
	margin: 0;
}

.elc-date {
	font-size: 18px;
	font-weight: 600;
	margin: 20px 0 28px;
}

.elc-button {
	background: #1d1b18;
	border: 1px solid #1d1b18;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	max-width: 100%;
	padding: 15px 24px;
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.elc-button:hover {
	background: transparent;
	color: var(--elc-text);
	transform: translateY(-1px);
}

.elc-button-disabled {
	cursor: default;
	opacity: 0.7;
}

.elc-tile-news {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 34px;
}

.elc-tile-news h3 {
	color: inherit;
	font-size: 28px;
	line-height: 1.08;
	margin: 0 0 18px;
}

.elc-tile-news p {
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 24px;
}

.elc-text-link {
	color: inherit;
	display: inline-flex;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	width: fit-content;
}

.elc-status {
	background: rgba(29, 27, 24, 0.08);
	border-radius: 999px;
	font-size: 14px;
	margin: 0 0 14px;
	padding: 10px 14px;
	text-align: center;
}

.elc-fade-in {
	animation: elcFadeIn 420ms ease both;
}

@keyframes elcFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.elc-admin-wrap .elc-admin-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
	margin-top: 18px;
}

.elc-admin-panel,
.elc-admin-preview {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 22px;
}

.elc-admin-panel h2 {
	border-top: 1px solid #ececec;
	margin: 28px 0 14px;
	padding-top: 22px;
}

.elc-admin-panel h2:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.elc-field {
	display: block;
	margin: 0 0 14px;
}

.elc-field span {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.elc-field input[type="text"],
.elc-field input[type="url"],
.elc-field input[type="number"],
.elc-field select,
.elc-field textarea {
	max-width: 100%;
	width: 100%;
}

.elc-media-field {
	display: flex;
	gap: 8px;
}

.elc-media-field input {
	flex: 1;
}

.elc-check {
	display: block;
	font-weight: 700;
	margin: 0 0 14px;
}

.elc-admin-preview .elc-live-row {
	margin: 10px 0 0;
}

.elc-admin-preview .elc-grid {
	grid-template-columns: 1fr;
}

.elc-admin-preview .elc-tile {
	min-height: 220px;
}

.elc-reset-form {
	margin-top: 16px;
}

@media (max-width: 960px) {
	.elc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.elc-tile-news {
		grid-column: 1 / -1;
	}

	.elc-admin-wrap .elc-admin-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.elc-live-row {
		margin: 20px auto;
	}

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

	.elc-tile,
	.elc-image-link,
	.elc-tile-image > img,
	.elc-tile-image img,
	.elc-image-placeholder {
		min-height: 250px;
	}

	.elc-tile-news,
	.elc-tile-sale {
		padding: 28px 22px;
	}

	.elc-tile-news {
		grid-column: auto;
	}

	.elc-media-field {
		display: block;
	}

	.elc-media-field .button {
		margin-top: 8px;
	}
}
