/* Флажки карточки (360 / примеры работ / скидка / NEW / ХИТ / наш дизайн)
   Mobile Figma 540:52, Desktop Figma 479:170.
   Имя style-home-* — чтобы strip_main_page_duplicate_css не вырезал файл. */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600&display=swap");

.item .wrap_item {
	position: relative;
}

/* ===== Правые флажки (десктоп по умолчанию: 35×18, gap 2) ===== */
.item__state,
.card-state,
.list-state {
	display: flex !important;
	flex-direction: column-reverse;
	top: 10px !important;
	right: 0 !important;
	left: auto !important;
	z-index: 4;
	gap: 2px;
	align-items: flex-end;
}

.item:hover .item__state,
.item:hover .card-state,
.item:hover .item__state .new,
.item:hover .item__state .hit,
.item:hover .item__state .disount,
.item:hover .card-state .new,
.item:hover .card-state .hit,
.item:hover .card-state .disount {
	transform: none !important;
	margin-left: 0 !important;
	left: auto !important;
	right: 0 !important;
}

.item__state .hit,
.item__state .new,
.item__state .disount,
.card-state .hit,
.card-state .new,
.card-state .disount,
.list-state .hit,
.list-state .new,
.list-state .disount {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px !important;
	min-width: 35px;
	max-width: 35px;
	height: 18px !important;
	min-height: 18px;
	max-height: 18px;
	padding: 0;
	border-radius: 4px;
	font-family: Manrope, Arial, sans-serif;
	font-size: 11px !important;
	font-weight: 600 !important;
	font-style: normal;
	line-height: 1 !important;
	letter-spacing: 0;
	white-space: nowrap;
	text-transform: uppercase;
}

.item__state .pre,
.item__state .present,
.card-state .pre,
.card-state .present,
.list-state .pre,
.list-state .present {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0;
	height: 18px !important;
	min-height: 18px;
	max-height: 18px;
	padding: 0 6px;
	border-radius: 4px;
	font-family: Manrope, Arial, sans-serif;
	font-size: 11px !important;
	font-weight: 600 !important;
	font-style: normal;
	line-height: 1 !important;
	letter-spacing: 0;
	white-space: nowrap;
}

.item__state .hit,
.item__state .new,
.item__state .pre,
.card-state .hit,
.card-state .new,
.card-state .pre,
.list-state .hit,
.list-state .new,
.list-state .pre {
	text-transform: uppercase;
	color: #fff !important;
}

.item__state .hit,
.card-state .hit,
.list-state .hit {
	background: #44bce1 !important;
}

.item__state .new,
.card-state .new,
.list-state .new {
	background: #24bc54 !important;
}

.item__state .disount,
.item__state .disount.disount10,
.item__state .disount.disount30,
.item__state .disount.disount40,
.item__state .disount.disount50,
.item__state .disount.disount90,
.card-state .disount,
.card-state .disount.disount10,
.card-state .disount.disount30,
.card-state .disount.disount40,
.card-state .disount.disount50,
.card-state .disount.disount90,
.list-state .disount,
.list-state .disount.disount10,
.list-state .disount.disount30,
.list-state .disount.disount40,
.list-state .disount.disount50,
.list-state .disount.disount90 {
	background: #fee3e2 !important;
	color: #ff2f09 !important;
}

.item__state .present,
.card-state .present,
.list-state .present {
	padding: 0 6px;
	height: 18px;
	line-height: 1;
}

.item__state .sub_present,
.card-state .sub_present,
.list-state .sub_present {
	padding-top: 0;
}

/* ===== Примеры работ: 100×18, #EBECEC, Arial 8 / #333, gap 4, pad 4/3 ===== */
.live_photos,
.live-photos,
.item .live_photos,
.card-img .live_photos {
	box-sizing: border-box;
	position: absolute !important;
	top: 10px !important;
	left: 0 !important;
	z-index: 3;
	display: flex !important;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	width: 100px !important;
	min-width: 100px;
	max-width: 100px;
	height: 18px !important;
	min-height: 18px;
	max-height: 18px;
	padding: 3px 4px !important;
	border-radius: 4px;
	background: #ebecec !important;
	color: #333333 !important;
	font-family: Arial, sans-serif;
	font-size: 8px !important;
	font-weight: 400 !important;
	font-style: normal;
	line-height: 1 !important;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
}

.live_photos_text,
.live-photos-text,
.live_photos .live_photos_text,
.live-photos .live-photos-text {
	padding-top: 0 !important;
	display: flex !important;
	align-items: center;
	width: auto;
	height: auto;
	margin: 0;
	color: #333333 !important;
	font-family: Arial, sans-serif !important;
	font-size: 8px !important;
	font-weight: 400 !important;
	font-style: normal;
	line-height: 1 !important;
	text-align: center;
	flex-shrink: 0;
}

.live_photos_img,
.live-photos-img {
	width: 10px !important;
	height: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
	background-image: url("/local/templates/201708/img/flag-camera-dark.svg") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 10px 8px !important;
}

.live_photos_count,
.card__live_photos_count,
.live_photos .live_photos_count {
	padding-top: 0 !important;
	display: flex !important;
	align-items: center;
	height: auto;
	margin: 0;
	color: #333333 !important;
	font-family: Arial, sans-serif !important;
	font-size: 8px !important;
	font-weight: 400 !important;
	font-style: normal;
	line-height: 1 !important;
	text-align: center;
	flex-shrink: 0;
}

@media screen and (max-width: 400px) {
	.live_photos_img,
	.live-photos-img {
		background-image: url("/local/templates/201708/img/flag-camera-dark.svg") !important;
		background-size: 10px 8px !important;
	}
}

/* ===== 360: 29×18, pad 5/3, icon 19×13 ===== */
.check_3d,
.small-3d {
	box-sizing: border-box;
	position: absolute !important;
	top: 10px !important;
	left: 0 !important;
	z-index: 4;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 29px !important;
	min-width: 29px;
	max-width: 29px;
	height: 18px !important;
	min-height: 18px;
	max-height: 18px;
	margin: 0 !important;
	padding: 3px 5px !important;
	border-radius: 4px;
	background: #ebecec;
	text-align: center;
	overflow: hidden;
}

.check_3d img,
.small-3d img,
.card-img .check_3d img {
	display: block !important;
	width: 19px !important;
	min-width: 19px !important;
	max-width: 19px !important;
	height: 13px !important;
	min-height: 13px !important;
	max-height: 13px !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
}

.check_3d img.hide,
.check_3d img.hidden {
	display: none !important;
}

.check_3d:has(img.hidden),
.check_3d:has(img.hide),
.check_3d:not(:has(img)),
.small-3d.hidden {
	display: none !important;
}

.small-3d.has-live-photos {
	top: 10px !important;
}

/* 360 (29) + gap 2 → примеры работ left: 31 */
.item__img:has(.small-3d:not(.hidden)) .live_photos,
.item__img:has(.check_3d img:not(.hidden):not(.hide)) .live_photos,
.card-img:has(.check_3d img:not(.hidden):not(.hide)) .live_photos,
.item:has(.small-3d:not(.hidden)) .live_photos,
.item:has(.check_3d img:not(.hidden):not(.hide)) .live_photos {
	left: 31px !important;
}

.card-img .card-state,
.card-img .live_photos,
.card-img .check_3d {
	top: 10px !important;
}

.box-stickers__left {
	display: flex;
	align-items: center;
	gap: 2px;
	float: left;
}

.box-stickers__left .live_photos,
.box-stickers__left .live-photos {
	position: static !important;
	top: auto !important;
	left: auto !important;
}

.box-stickers__right {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 2px;
	float: right;
}

.box-stickers__right .item__state {
	position: static;
	top: auto !important;
	right: auto !important;
}

/* ===== Наш дизайн: hug-width, pad 7/2, gap 4 (Figma 540:107) ===== */
.item__img .our-design,
.card-img .our-design,
.wrap_item .our-design,
.wrap-card .our-design,
.our-design {
	position: absolute;
	left: 10px;
	top: auto;
	bottom: 12px;
	right: auto;
	z-index: 5;
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	width: auto;
	min-width: 0;
	max-width: none;
	height: auto;
	min-height: auto;
	margin: 0;
	padding: 4px 7px;
	overflow: hidden;
	border: 0;
	border-radius: 7px;
	background: #F0CA6A;
	color: #022F47;
	font-family: Manrope, Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}

.card-img .our-design {
	left: 10px;
	top: 245px;
	bottom: auto;
}

.our-design__star,
.item__img .our-design svg,
.item__img .our-design img,
.card-img .our-design svg,
.card-img .our-design img,
.wrap_item .our-design svg,
.wrap_item .our-design img {
	display: block !important;
	box-sizing: border-box;
	width: 9px !important;
	min-width: 9px !important;
	max-width: 9px !important;
	height: 8px !important;
	min-height: 8px !important;
	max-height: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	flex-shrink: 0;
	align-self: center;
	object-fit: contain;
	/* оптическое выравнивание звезды со строчными/заглавными */
	transform: translateY(-0.5px);
}

.our-design__text {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 1;
	height: auto;
	color: #022F47;
	align-self: center;
}

.item:hover .our-design,
.wrap-card:hover .our-design {
	transform: none;
	margin-left: 0;
}

/* ===== Мобилка: правые флажки 26×13, gap 2, radius 3; отступ 2px от краёв ===== */
@media screen and (max-width: 767px) {
	.item__state,
	.card-state,
	.list-state {
		right: 2px !important;
		gap: 2px;
	}

	.box-stickers__right {
		gap: 2px;
	}

	.check_3d,
	.small-3d {
		left: 2px !important;
	}

	.live_photos,
	.live-photos,
	.item .live_photos,
	.card-img .live_photos {
		left: 2px !important;
	}

	/* 2 (край) + 29 (360) + 2 (gap) = 33 */
	.item__img:has(.small-3d:not(.hidden)) .live_photos,
	.item__img:has(.check_3d img:not(.hidden):not(.hide)) .live_photos,
	.card-img:has(.check_3d img:not(.hidden):not(.hide)) .live_photos,
	.item:has(.small-3d:not(.hidden)) .live_photos,
	.item:has(.check_3d img:not(.hidden):not(.hide)) .live_photos {
		left: 33px !important;
	}

	.item__state .hit,
	.item__state .new,
	.item__state .disount,
	.card-state .hit,
	.card-state .new,
	.card-state .disount,
	.list-state .hit,
	.list-state .new,
	.list-state .disount {
		width: 26px !important;
		min-width: 26px;
		max-width: 26px;
		height: 13px !important;
		min-height: 13px;
		max-height: 13px;
		padding: 2px !important;
		border-radius: 3px;
		font-size: 8px !important;
		line-height: 1 !important;
	}

	.item__state .pre,
	.item__state .present,
	.card-state .pre,
	.card-state .present,
	.list-state .pre,
	.list-state .present {
		height: 13px !important;
		min-height: 13px;
		max-height: 13px;
		padding: 2px 4px !important;
		border-radius: 3px;
		font-size: 8px !important;
	}
}
