/* =========================================================
   ROYAL SALE
   ========================================================= */

/*
 * ВАЖНО:
 * фильтры SALE используют РОДНЫЕ стили Renovate:
 *
 * .ui-tabs-nav
 * .ui-tabs-nav li
 * .ui-tabs-nav li a
 * .ui-tabs-nav li a.selected
 *
 * Здесь их НЕ переопределяем.
 */

.royal-sale {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}


/* =========================================================
   GRID
   ========================================================= */

.royal-sale__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 30px;

	width: calc(100vw - 60px);
	max-width: 1920px;

	position: relative;
	left: 50%;
	transform: translateX(-50%);

	margin-top: 30px;
}

.royal-sale__item {
	min-width: 0;
}

.royal-sale__item.is-hidden {
	display: none;
}

.royal-sale__link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
}

.royal-sale__image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #F5F5F5;
}

.royal-sale__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.royal-sale__link:hover .royal-sale__img {
	transform: scale(1.035);
}

.royal-sale__placeholder {
	width: 100%;
	height: 100%;
	background: #F5F5F5;
}

.royal-sale__caption {
	padding: 15px 10px 8px;
}

.royal-sale__title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	color: #333;
	transition: color .2s ease;
}

.royal-sale__link:hover {
	text-decoration: none;
}

.royal-sale__link:hover .royal-sale__title {
	color: #82B541;
}

.royal-sale__empty {
	grid-column: 1 / -1;
	padding: 30px 0;
	font-size: 18px;
}


@media (max-width: 980px) {

	.royal-sale__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

}


@media (max-width: 600px) {

	.royal-sale__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.royal-sale__title {
		font-size: 18px;
	}

}

@media (max-width: 767px) {
	.royal-sale__grid {
		width: calc(100vw - 30px);
	}
}

/* SALE GRID — как Projects: карточка 270×180, поле широкое */
.royal-sale__grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, 270px) !important;
	gap: 30px !important;

	width: calc(100vw - 60px) !important;
	max-width: 1920px !important;

	position: relative;
	left: 50%;
	transform: translateX(-50%);

	margin-top: 30px;
	justify-content: start;
}

.royal-sale__item {
	width: 270px !important;
	min-width: 270px !important;
}

.royal-sale__image {
	width: 270px !important;
	height: 180px !important;
	aspect-ratio: auto !important;
}

.royal-sale__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

@media (max-width: 767px) {
	.royal-sale__grid {
		width: calc(100vw - 30px) !important;
		grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
	}

	.royal-sale__item,
	.royal-sale__image {
		width: 100% !important;
		min-width: 0 !important;
	}
}
