/*
 * iDanny isolated home page.
 * Every selector is scoped to #idanny-home so category, cart, checkout,
 * header, footer and filter styles remain untouched.
 */

#idanny-home {
	--idanny-home-accent: #5a48f5;
	--idanny-home-ink: #101116;
	--idanny-home-muted: #656a78;
	--idanny-home-line: #e7e9f0;
	width: 100%;
	padding: 24px 0 72px;
	overflow-x: hidden;
	background: #fff;
	color: var(--idanny-home-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#idanny-home,
#idanny-home *,
#idanny-home *::before,
#idanny-home *::after {
	box-sizing: border-box;
}

#idanny-home .idanny-home-container {
	width: min(100%, 1480px);
	margin: 0 auto;
	padding: 0 28px;
}

#idanny-home .idanny-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid rgba(224, 226, 237, .82);
	border-radius: 24px;
	background: #f7f8fc;
	box-shadow: 0 14px 42px rgba(43, 49, 82, .07);
}

#idanny-home .idanny-home-hero__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 1994 / 789;
	overflow: hidden;
}

#idanny-home .idanny-home-hero__slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	visibility: hidden;
	opacity: 0;
	transform: translate3d(2.2%, 0, 0) scale(1.012);
	transition:
		opacity .9s cubic-bezier(.22, 1, .36, 1),
		transform .9s cubic-bezier(.22, 1, .36, 1),
		visibility 0s linear .9s;
}

#idanny-home .idanny-home-hero__slide.is-active {
	z-index: 1;
	visibility: visible;
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	transition-delay: 0s;
}

#idanny-home .idanny-home-hero__slide > a,
#idanny-home .idanny-home-hero__slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

#idanny-home .idanny-home-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
	background: #f7f8fc;
}

#idanny-home .idanny-home-hero__slide > a:focus-visible {
	outline: 3px solid rgba(90, 72, 245, .7);
	outline-offset: -5px;
}

#idanny-home .idanny-home-hero__slide > a {
	position: relative;
}

#idanny-home .idanny-home-hero__cta {
	position: absolute;
	left: 6%;
	bottom: 10%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	background: #000;
	color: #fff;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	pointer-events: none;
}

/* Светлая CTA-кнопка нужна только новым баннерам с тёмным фоном. */
#idanny-home .idanny-home-hero__slide--dark .idanny-home-hero__cta {
	background: rgba(255, 255, 255, .96);
	color: #101116;
	box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
}

#idanny-home .idanny-home-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0 0 4px;
	place-items: center;
	border: 1px solid rgba(215, 218, 229, .86);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 22px rgba(39, 44, 72, .12);
	color: #15161b;
	font: 400 39px/1 Arial, sans-serif;
	cursor: pointer;
	transform: translateY(-50%);
	transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

#idanny-home .idanny-home-hero__arrow:hover,
#idanny-home .idanny-home-hero__arrow:focus-visible {
	border-color: rgba(90, 72, 245, .42);
	box-shadow: 0 10px 26px rgba(54, 47, 120, .16);
	color: var(--idanny-home-accent);
}

#idanny-home .idanny-home-hero__arrow:focus-visible {
	outline: 3px solid rgba(90, 72, 245, .26);
	outline-offset: 2px;
}

#idanny-home .idanny-home-hero__arrow--prev {
	left: 18px;
}

#idanny-home .idanny-home-hero__arrow--next {
	right: 18px;
}

#idanny-home .idanny-home-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 4px 16px rgba(46, 52, 78, .08);
	backdrop-filter: blur(10px);
	transform: translateX(-50%);
}

#idanny-home .idanny-home-hero__dot {
	display: block;
	width: 7px;
	height: 7px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfd2dc;
	box-shadow: none;
	cursor: pointer;
	transition: width .24s ease, border-radius .24s ease, background-color .24s ease;
}

#idanny-home .idanny-home-hero__dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: linear-gradient(90deg, #1689ff, #7b35f4);
}

#idanny-home .idanny-home-hero__dot:focus-visible {
	outline: 2px solid var(--idanny-home-accent);
	outline-offset: 3px;
}

#idanny-home .idanny-home-promos {
	margin-top: 16px;
}

#idanny-home .idanny-home-promos__track {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 8px;
	align-items: start;
}

#idanny-home .idanny-home-promo {
	display: flex;
	min-width: 0;
	align-items: stretch;
	flex-direction: column;
	color: var(--idanny-home-ink);
	text-decoration: none;
	transition: transform .2s ease;
}

#idanny-home .idanny-home-promo:hover,
#idanny-home .idanny-home-promo:focus-visible {
	transform: translateY(-2px);
}

#idanny-home .idanny-home-promo:focus-visible {
	outline: 2px solid rgba(90, 72, 245, .3);
	outline-offset: 2px;
	border-radius: 15px;
}

#idanny-home .idanny-home-promo__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid rgba(222, 225, 235, .82);
	border-radius: 14px;
	box-shadow: 0 7px 18px rgba(42, 48, 78, .045);
	transition: box-shadow .2s ease, border-color .2s ease;
}

#idanny-home .idanny-home-promo:hover .idanny-home-promo__media,
#idanny-home .idanny-home-promo:focus-visible .idanny-home-promo__media,
#idanny-home .idanny-home-promo:hover > img,
#idanny-home .idanny-home-promo:focus-visible > img {
	border-color: rgba(116, 108, 213, .25);
	box-shadow: 0 10px 22px rgba(43, 49, 84, .09);
}

#idanny-home .idanny-home-promo--blue .idanny-home-promo__media,
#idanny-home .idanny-home-promo--blue > img {
	background: linear-gradient(140deg, #f5f8ff 0%, #e7ebff 100%);
}

#idanny-home .idanny-home-promo--mint .idanny-home-promo__media,
#idanny-home .idanny-home-promo--mint > img {
	background: linear-gradient(140deg, #f4fbf8 0%, #e3f3ed 100%);
}

#idanny-home .idanny-home-promo--lilac .idanny-home-promo__media,
#idanny-home .idanny-home-promo--lilac > img {
	background: linear-gradient(140deg, #fafaff 0%, #ececff 100%);
}

#idanny-home .idanny-home-promo--coral .idanny-home-promo__media,
#idanny-home .idanny-home-promo--coral > img {
	background: linear-gradient(140deg, #fff8f7 0%, #ffdeda 100%);
}

#idanny-home .idanny-home-promo--violet .idanny-home-promo__media,
#idanny-home .idanny-home-promo--violet > img {
	background: linear-gradient(140deg, #f7f9ff 0%, #dfe8ff 100%);
}

#idanny-home .idanny-home-promo--rose .idanny-home-promo__media {
	background: linear-gradient(140deg, #fff8f8 0%, #ffe5e1 100%);
}

#idanny-home .idanny-home-promo--sand .idanny-home-promo__media {
	background: linear-gradient(140deg, #fffdf6 0%, #f6edcf 100%);
}

#idanny-home .idanny-home-promo--periwinkle .idanny-home-promo__media {
	background: linear-gradient(140deg, #f7f8ff 0%, #e4e9ff 100%);
}

#idanny-home .idanny-home-promo--peach .idanny-home-promo__media {
	background: linear-gradient(140deg, #fff9f6 0%, #ffe5db 100%);
}

#idanny-home .idanny-home-promo--ice .idanny-home-promo__media {
	background: linear-gradient(140deg, #f8faff 0%, #e8efff 100%);
}

#idanny-home .idanny-home-promo__media img {
	position: absolute;
	inset: 8px;
	display: block;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	margin: 0;
	mix-blend-mode: multiply;
	object-fit: contain;
	object-position: center;
	transition: transform .2s ease;
}

/*
 * Backward-compatible shape for a cached copy of the previous promo markup.
 * It prevents old HTML and the new stylesheet from breaking the mobile row
 * while a full-page cache is being refreshed.
 */
#idanny-home .idanny-home-promo > img {
	position: static;
	order: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	margin: 0;
	padding: 8px;
	object-fit: contain;
	object-position: center;
	border: 1px solid rgba(222, 225, 235, .82);
	border-radius: 14px;
	box-shadow: 0 7px 18px rgba(42, 48, 78, .045);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#idanny-home .idanny-home-promo__copy {
	order: 2;
	display: block;
	width: 100%;
	min-height: 0;
	margin-top: 7px;
	padding: 0;
	text-align: center;
}

#idanny-home .idanny-home-promo__copy strong {
	display: block;
	overflow: hidden;
	font-size: clamp(9px, .72vw, 12px);
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#idanny-home .idanny-home-promo__copy span {
	display: none;
}

#idanny-home .idanny-home-promo:hover .idanny-home-promo__media img,
#idanny-home .idanny-home-promo:focus-visible .idanny-home-promo__media img {
	transform: scale(1.035);
}

#idanny-home .idanny-home-promo__title {
	display: block;
	margin-top: 7px;
	overflow: hidden;
	color: var(--idanny-home-ink);
	font-size: clamp(9px, .72vw, 12px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#idanny-home .idanny-home-products {
	margin-top: 34px;
}

#idanny-home .idanny-home-products > h2 {
	margin: 0 0 20px;
	color: var(--idanny-home-ink);
	font-size: clamp(25px, 2vw, 34px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.18;
}

#idanny-home .idanny-home-products .woocommerce {
	width: 100%;
}

#idanny-home .idanny-home-products ul.products,
#idanny-home .idanny-home-products ul.products.cmsmasters_products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

#idanny-home .idanny-home-products ul.products::before,
#idanny-home .idanny-home-products ul.products::after {
	display: none !important;
}

#idanny-home .idanny-home-products ul.products > li.product {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

@media (max-width: 1180px) {
	#idanny-home .idanny-home-container {
		padding-right: 22px;
		padding-left: 22px;
	}

}

@media (max-width: 900px) {
	#idanny-home {
		padding-top: 18px;
	}

	#idanny-home .idanny-home-hero {
		border-radius: 20px;
	}

	#idanny-home .idanny-home-hero__arrow {
		width: 42px;
		height: 42px;
		font-size: 34px;
	}

	#idanny-home .idanny-home-hero__arrow--prev {
		left: 12px;
	}

	#idanny-home .idanny-home-hero__arrow--next {
		right: 12px;
	}

	#idanny-home .idanny-home-products ul.products,
	#idanny-home .idanny-home-products ul.products.cmsmasters_products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	#idanny-home {
		padding: 14px 0 48px;
	}

	#idanny-home .idanny-home-container {
		padding-right: 14px;
		padding-left: 14px;
	}

	#idanny-home .idanny-home-hero {
		border-radius: 18px;
		box-shadow: 0 10px 28px rgba(43, 49, 82, .07);
	}

	#idanny-home .idanny-home-hero__viewport {
		aspect-ratio: 5 / 3;
	}

	#idanny-home .idanny-home-hero__slide img {
		object-fit: cover;
	}

	#idanny-home .idanny-home-hero__arrow {
		display: none;
	}

	#idanny-home .idanny-home-hero__dots {
		bottom: 9px;
		gap: 5px;
		padding: 6px 8px;
	}

	#idanny-home .idanny-home-hero__dot {
		width: 6px;
		height: 6px;
	}

	#idanny-home .idanny-home-hero__dot.is-active {
		width: 18px;
	}

	#idanny-home .idanny-home-promos {
		margin-top: 14px;
		overflow: hidden;
	}

	#idanny-home .idanny-home-promos__track {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		padding: 0 0 6px;
		scroll-padding-inline: 0;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	#idanny-home .idanny-home-promos__track::-webkit-scrollbar {
		display: none;
	}

	#idanny-home .idanny-home-promo {
		flex: 0 0 88px;
		scroll-snap-align: start;
	}

	#idanny-home .idanny-home-promo__title {
		margin-top: 6px;
		font-size: 10px;
	}

	#idanny-home .idanny-home-promo__copy {
		margin-top: 6px;
	}

	#idanny-home .idanny-home-promo__copy strong {
		font-size: 10px;
	}

	#idanny-home .idanny-home-products {
		margin-top: 26px;
	}

	#idanny-home .idanny-home-products > h2 {
		margin-bottom: 16px;
		font-size: 26px;
	}

	#idanny-home .idanny-home-products ul.products,
	#idanny-home .idanny-home-products ul.products.cmsmasters_products {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

@media (max-width: 390px) {
	#idanny-home .idanny-home-container {
		padding-right: 12px;
		padding-left: 12px;
	}

	#idanny-home .idanny-home-hero {
		border-radius: 16px;
	}

	#idanny-home .idanny-home-promo {
		flex-basis: 82px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#idanny-home .idanny-home-hero__slide,
	#idanny-home .idanny-home-promo,
	#idanny-home .idanny-home-promo img,
	#idanny-home .idanny-home-hero__dot {
		transition-duration: .01ms !important;
	}
}

/*
 * Главный баннер — только мобильная версия.
 * Десктопная версия не изменяется.
 */

#idanny-home .idanny-home-hero__mobile-title {
	display: none;
}

@media only screen and (max-width: 767px) {

	/* Растягиваем баннер до краёв экрана. */
	#idanny-home .idanny-home-hero {
		width: 100vw;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
		border-right: 0;
		border-left: 0;
		border-radius: 0;
		background: #f7f8fc;
		box-shadow: none;
	}

	/* Высота: 82 px под название и изображение в пропорции 5:3. */
#idanny-home .idanny-home-hero__viewport {
	width: 100%;
	height: calc(82px + 60vw);
	aspect-ratio: auto;
}

	#idanny-home .idanny-home-hero__slide > a {
		display: block;
		width: 100%;
		height: 100%;
		background: #f7f8fc;
	}

	/* Одинаковая зона названия для каждого баннера. */
#idanny-home .idanny-home-hero__mobile-title {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 3;
	display: flex;
	height: 82px;
	margin: 0;
	padding: 0 18px;
	align-items: center;
	justify-content: center;
	color: #101116;
	font-size: clamp(25px, 7vw, 32px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-align: center;
	pointer-events: none;
}

/* Изображение без пустого пространства под названием. */
#idanny-home .idanny-home-hero__slide picture {
	position: absolute;
	top: 82px;
	right: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 60vw;
	aspect-ratio: 5 / 3;
	overflow: hidden;
}

#idanny-home .idanny-home-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	background: transparent;
}

	/* Убираем кнопку только на телефоне. */
	#idanny-home .idanny-home-hero__cta {
		display: none;
	}

	/* Точки переключения оставляем снизу. */
	#idanny-home .idanny-home-hero__dots {
		bottom: 10px;
	}
}
/*
 * Главная страница во всю ширину только на мобильных устройствах.
 * Компьютерная версия не изменяется.
 */
@media only screen and (max-width: 767px) {

	#idanny-home {
		width: 100vw;
		max-width: none;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}

	#idanny-home .idanny-home-container {
		width: 100%;
		max-width: none;
	}
}
/*
 * Цельные мобильные баннеры 1000 × 820.
 * Компьютерная версия не изменяется.
 */
@media only screen and (max-width: 767px) {

	/* Полный баннер имеет пропорции 1000 × 820. */
	#idanny-home .idanny-home-hero__viewport {
		width: 100%;
		height: 82vw;
		aspect-ratio: 1000 / 820;
	}

	/* Изображение теперь занимает весь баннер, включая верхний фон. */
	#idanny-home .idanny-home-hero__slide picture {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 82vw;
		aspect-ratio: 1000 / 820;
		overflow: hidden;
	}

	#idanny-home .idanny-home-hero__slide img {
		display: block;
		width: 100%;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center;
		background: transparent;
	}

	/* Название располагается на дорисованном родном фоне. */
	#idanny-home .idanny-home-hero__mobile-title {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		z-index: 3;
		display: flex;
		height: 22vw;
		margin: 0;
		padding: 0 18px;
		align-items: center;
		justify-content: center;
		color: #101116;
		font-size: clamp(24px, 6.7vw, 32px);
		font-weight: 750;
		line-height: 1.08;
		letter-spacing: -0.035em;
		text-align: center;
		pointer-events: none;
	}

	#idanny-home .idanny-home-hero__slide--mobile-light .idanny-home-hero__mobile-title {
		color: #fff;
		text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
	}

	/*
	 * На телефоне баннеры идут строго от края до края, без скруглений.
	 * Нижняя фоновая зона ниже закрывает встроенные углы исходных растров.
	 */
	#idanny-home .idanny-home-hero,
	#idanny-home .idanny-home-hero__viewport,
	#idanny-home .idanny-home-hero__slide,
	#idanny-home .idanny-home-hero__slide > a,
	#idanny-home .idanny-home-hero__slide picture,
	#idanny-home .idanny-home-hero__slide img {
		border-radius: 0 !important;
	}

	#idanny-home .idanny-home-hero__slide--new img {
		transform: translate3d(0, -6%, 0) scale(1.12);
		transform-origin: center center;
	}

	/*
	 * Индивидуальный подъём товарных композиций над ползунком.
	 * Порядок: Ray-Ban, PlayStation, Oakley, Samsung A17,
	 * Insta360, Oura Ring, Nintendo и Xbox.
	 */
	/* No coloured veil: the clean image itself fills the full banner. */
	#idanny-home .idanny-home-hero__slide--new > a::after {
		display: none !important;
		content: none !important;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(13) > a {
		background: #bfc7fa;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(14) > a {
		background: #0c236b;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(15) > a {
		background: #dbd9b5;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(16) > a {
		background: #a6b3c6;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(17) > a {
		background: #0e1318;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(18) > a {
		background: #e8d1bf;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(19) > a {
		background: #f93437;
	}

	#idanny-home .idanny-home-hero__slide:nth-child(20) > a {
		background: #021409;
	}

	#idanny-home .idanny-home-hero__dots {
		bottom: 9px;
	}
}
/*
 * Ровная граница промокарточек — только мобильная версия.
 * Без внешней тени.
 */
@media only screen and (max-width: 767px) {

	#idanny-home .idanny-home-promos__track {
		padding-top: 2px;
		padding-bottom: 6px;
	}

	#idanny-home .idanny-home-promo__media,
	#idanny-home .idanny-home-promo > img,
	#idanny-home .idanny-home-promo:hover .idanny-home-promo__media,
	#idanny-home .idanny-home-promo:hover > img,
	#idanny-home .idanny-home-promo:focus .idanny-home-promo__media,
	#idanny-home .idanny-home-promo:focus > img,
	#idanny-home .idanny-home-promo:focus-visible .idanny-home-promo__media,
	#idanny-home .idanny-home-promo:focus-visible > img {
		border: 1px solid #c8cdd9 !important;
		border-radius: 14px;
		box-shadow: inset 0 0 0 1px rgba(200, 205, 217, 0.32) !important;
	}

	#idanny-home .idanny-home-promo:hover,
	#idanny-home .idanny-home-promo:focus,
	#idanny-home .idanny-home-promo:focus-visible {
		transform: none;
	}
}
/* =========================================================
   МОБИЛЬНАЯ ГЛАВНАЯ — ПО 2 ТОВАРА В РЯД
   Компьютерную версию не затрагивает
   ========================================================= */

@media only screen and (max-width: 767px) {

	/* Сетка товаров */
	#idanny-home .idanny-home-products ul.products,
	#idanny-home .idanny-home-products ul.products.cmsmasters_products {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px 10px !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#idanny-home .idanny-home-products ul.products > li.product {
		display: flex !important;
		float: none !important;
		clear: none !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Основа карточки */
	#idanny-home .idanny-home-products .cmsmasters_product {
		display: flex !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_wrapper_border {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		min-width: 0 !important;
		min-height: 330px !important;
		padding: 0 !important;
		overflow: hidden !important;
		background: #ffffff !important;
		border: 1px solid #dfe2ea !important;
		border-radius: 14px !important;
		box-shadow: none !important;
		transform: none !important;
	}

	/* Изображение */
	#idanny-home .idanny-home-products .cmsmasters_product_img {
		display: flex !important;
		flex: 0 0 145px !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 145px !important;
		margin: 0 !important;
		padding: 10px 8px 4px !important;
		overflow: hidden !important;
		background: #ffffff !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_img > a {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 100% !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_img img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: 0 !important;
		object-fit: contain !important;
		object-position: center !important;
	}

	/* Текстовая часть */
	#idanny-home .idanny-home-products .cmsmasters_product_inner {
		display: flex !important;
		flex: 1 1 auto !important;
		flex-direction: column !important;
		min-width: 0 !important;
		padding: 8px 10px 10px !important;
		text-align: left !important;
	}

	/* Категорию скрываем */
	#idanny-home .idanny-home-products .cmsmasters_product_cat {
		display: none !important;
	}

	/* Название — максимум 4 строки */
	#idanny-home .idanny-home-products .cmsmasters_product_title {
		display: block !important;
		min-height: 64px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		font-size: 12px !important;
		font-weight: 500 !important;
		line-height: 1.32 !important;
		text-align: left !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_title a {
		display: -webkit-box !important;
		overflow: hidden !important;
		color: #17171c !important;
		text-decoration: none !important;
		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 4 !important;
	}

	/* Цена и корзина внизу */
	#idanny-home .idanny-home-products .cmsmasters_product_info_wrap {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 36px !important;
		align-items: end !important;
		gap: 5px !important;
		width: 100% !important;
		min-width: 0 !important;
		margin-top: auto !important;
		padding-top: 10px !important;
		position: static !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_info {
		display: block !important;
		min-width: 0 !important;
		text-align: left !important;
	}

	#idanny-home .idanny-home-products .price,
	#idanny-home .idanny-home-products .price .amount {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		color: #17171c !important;
		font-size: 14px !important;
		font-weight: 700 !important;
		line-height: 1.15 !important;
		text-align: left !important;
		white-space: nowrap !important;
	}

	/* Убираем рейтинг */
	#idanny-home .idanny-home-products .cmsmasters_star_rating {
		display: none !important;
	}

	/* Контейнер кнопки корзины */
	#idanny-home .idanny-home-products .cmsmasters_product_add_wrap,
	#idanny-home .idanny-home-products .cmsmasters_product_add_inner {
		display: block !important;
		width: 36px !important;
		height: 36px !important;
		margin: 0 !important;
		padding: 0 !important;
		position: static !important;
	}

	/* Кнопка корзины */
	#idanny-home .idanny-home-products
	.cmsmasters_product_button.add_to_cart_button {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		margin: 0 !important;
		padding: 0 !important;
		position: static !important;
		overflow: hidden !important;
		border: 0 !important;
		border-radius: 10px !important;
		background-color: #625cff !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h2l1.9 8.2a2 2 0 0 0 2 1.6h7.5a2 2 0 0 0 2-1.6L20 7.2H7'/%3E%3Cpath d='M11.8 8.2v4M9.8 10.2h4'/%3E%3Ccircle cx='10' cy='18.5' r='1.25'/%3E%3Ccircle cx='17' cy='18.5' r='1.25'/%3E%3C/svg%3E") !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		background-size: 23px 23px !important;
		color: transparent !important;
		font-size: 0 !important;
		line-height: 0 !important;
		text-indent: -9999px !important;
		box-shadow: none !important;
		transform: none !important;
	}

	/* Убираем ненужные элементы темы */
	#idanny-home .idanny-home-products
	.cmsmasters_product_button.add_to_cart_button::before,
	#idanny-home .idanny-home-products
	.cmsmasters_product_button.add_to_cart_button::after,
	#idanny-home .idanny-home-products .wpcbn-btn,
	#idanny-home .idanny-home-products .added_to_cart {
		display: none !important;
	}
}
/* =========================================================
   КОРРЕКТИРОВКА МОБИЛЬНЫХ КАРТОЧЕК ТОВАРОВ
   Только главная страница, только экраны до 767 px
   ========================================================= */

@media only screen and (max-width: 767px) {

	/* Одинаковый размер ячеек */
	#idanny-home .idanny-home-products ul.products,
	#idanny-home .idanny-home-products ul.products.cmsmasters_products {
		align-items: stretch !important;
		gap: 12px 10px !important;
	}

	#idanny-home .idanny-home-products ul.products > li.product {
		align-self: stretch !important;
		height: 100% !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product {
		height: 100% !important;
	}

	/* Чёткая рамка и одинаковая высота карточек */
	#idanny-home .idanny-home-products .cmsmasters_product_wrapper_border,
	#idanny-home .idanny-home-products .cmsmasters_product:hover .cmsmasters_product_wrapper_border {
		width: 100% !important;
		height: 330px !important;
		min-height: 330px !important;
		max-height: 330px !important;
		overflow: hidden !important;

		background: #ffffff !important;
		border: 1px solid #c8cdd9 !important;
		border-radius: 12px !important;
		box-shadow: none !important;

		transform: none !important;
	}

	/* Одинаковая область изображения */
	#idanny-home .idanny-home-products .cmsmasters_product_img,
	#idanny-home .idanny-home-products .cmsmasters_product:hover .cmsmasters_product_img {
		flex: 0 0 150px !important;
		width: 100% !important;
		height: 150px !important;
		min-height: 150px !important;
		padding: 10px 8px 5px !important;
		background: #ffffff !important;
	}

	/* Текстовая часть занимает всё оставшееся место */
	#idanny-home .idanny-home-products .cmsmasters_product_inner {
		display: flex !important;
		flex: 1 1 auto !important;
		flex-direction: column !important;
		width: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		padding: 10px 10px 11px !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_header {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Единый мобильный заголовок: четыре строки без изменения данных товара. */
	#idanny-home .idanny-home-products .cmsmasters_product_title {
		display: block !important;
		width: 100% !important;
		min-height: 0 !important;
		max-height: 80px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;

		font-size: 16px !important;
		font-weight: 500 !important;
		line-height: 20px !important;
		text-align: left !important;
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_title a {
		display: -webkit-box !important;
		max-height: 80px !important;
		overflow: hidden !important;
		color: #17171c !important;
		text-overflow: ellipsis !important;
		white-space: normal !important;

		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 4 !important;
		line-clamp: 4 !important;
	}

	/* Цена и корзина всегда прижаты вниз */
	#idanny-home .idanny-home-products .cmsmasters_product_info_wrap {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 36px !important;
		align-items: center !important;
		gap: 6px !important;

		width: 100% !important;
		min-width: 0 !important;
		height: 36px !important;
		min-height: 36px !important;
		margin: auto 0 0 !important;
		padding: 0 !important;

		position: static !important;
		inset: auto !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_info {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		min-width: 0 !important;
		height: 36px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#idanny-home .idanny-home-products .price {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		gap: 1px !important;
		width: 100% !important;
		height: 36px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		direction: ltr !important;
		line-height: 1.1 !important;
		white-space: normal !important;
	}

	#idanny-home .idanny-home-products .price del,
	#idanny-home .idanny-home-products .price ins {
		display: block !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1.1 !important;
		white-space: nowrap !important;
	}

	#idanny-home .idanny-home-products .price del,
	#idanny-home .idanny-home-products .price del .amount {
		font-size: 10px !important;
		font-weight: 500 !important;
		line-height: 1.1 !important;
	}

	#idanny-home .idanny-home-products .price ins,
	#idanny-home .idanny-home-products .price ins .amount,
	#idanny-home .idanny-home-products .price > .amount {
		font-size: 13px !important;
		font-weight: 700 !important;
		line-height: 1.15 !important;
		white-space: nowrap !important;
	}

	/* Корзина строго на одной линии с ценой */
	#idanny-home .idanny-home-products .cmsmasters_product_add_wrap,
	#idanny-home .idanny-home-products .cmsmasters_product_add_inner,
	#idanny-home .idanny-home-products
	.cmsmasters_product_button.add_to_cart_button {
		align-self: center !important;
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		margin: 0 !important;
		position: static !important;
		inset: auto !important;
		transform: none !important;
	}
}

/* =========================================================
   ПОПУЛЯРНЫЕ ТОВАРЫ — БЕСКОНЕЧНАЯ КАРУСЕЛЬ
   4 карточки на компьютере, 2 на телефоне, шаг по 1 карточке
   ========================================================= */

#idanny-home .idanny-home-products__carousel {
	position: relative;
	width: 100%;
}

#idanny-home .idanny-home-products__viewport {
	width: 100%;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

#idanny-home .idanny-home-products__viewport .woocommerce {
	width: 100%;
	overflow: visible;
}

#idanny-home .idanny-home-products__viewport ul.products,
#idanny-home .idanny-home-products__viewport ul.products.cmsmasters_products {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 20px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	will-change: transform;
}

#idanny-home .idanny-home-products__viewport ul.products > li.product {
	display: flex !important;
	flex: 0 0 calc((100% - 60px) / 4) !important;
	width: calc((100% - 60px) / 4) !important;
	max-width: calc((100% - 60px) / 4) !important;
	min-width: 0 !important;
	margin: 0 !important;
}

#idanny-home .idanny-home-products__arrow {
	position: absolute;
	top: 50%;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0 0 3px;
	border: 1px solid #dfe2ea;
	border-radius: 50%;
	background: #ffffff;
	color: #17171c;
	font: 400 35px/1 Arial, sans-serif;
	box-shadow: 0 5px 16px rgba(27, 31, 49, .13);
	cursor: pointer;
	transform: translateY(-50%);
	transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

#idanny-home .idanny-home-products__arrow:hover,
#idanny-home .idanny-home-products__arrow:focus-visible {
	border-color: #7770ff;
	color: #554cff;
	box-shadow: 0 7px 20px rgba(83, 75, 255, .2);
	outline: 0;
}

#idanny-home .idanny-home-products__arrow[hidden] {
	display: none !important;
}

#idanny-home .idanny-home-products__arrow--prev {
	left: 8px;
}

#idanny-home .idanny-home-products__arrow--next {
	right: 8px;
}

@media only screen and (max-width: 767px) {
	#idanny-home .idanny-home-products__viewport ul.products,
	#idanny-home .idanny-home-products__viewport ul.products.cmsmasters_products {
		gap: 10px !important;
	}

	#idanny-home .idanny-home-products__viewport ul.products > li.product {
		flex: 0 0 calc((100% - 10px) / 2) !important;
		width: calc((100% - 10px) / 2) !important;
		max-width: calc((100% - 10px) / 2) !important;
	}

	#idanny-home .idanny-home-products__arrow {
		top: 174px;
		width: 40px;
		height: 40px;
		padding-bottom: 2px;
		font-size: 31px;
		box-shadow: 0 4px 13px rgba(27, 31, 49, .14);
		transform: none;
	}

	#idanny-home .idanny-home-products__arrow--prev {
		left: 6px;
	}

	#idanny-home .idanny-home-products__arrow--next {
		right: 6px;
	}

	/* Карточки остаются одной высоты; цена закреплена снизу. */
	#idanny-home .idanny-home-products .cmsmasters_product_header {
		flex: 0 0 80px !important;
		height: 80px !important;
		min-height: 80px !important;
		max-height: 80px !important;
		overflow: hidden !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_title {
		height: 80px !important;
		min-height: 80px !important;
		max-height: 80px !important;
		overflow: hidden !important;
	}

	#idanny-home .idanny-home-products .cmsmasters_product_title a {
		display: -webkit-box !important;
		height: 80px !important;
		max-height: 80px !important;
		overflow: hidden !important;
		font-size: 16px !important;
		line-height: 20px !important;
		text-overflow: ellipsis !important;
		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 4 !important;
		line-clamp: 4 !important;
	}
}

/* =========================================================
   iDanny home visual rhythm v2 — 2026-09-14
   One neutral category-tile system + consistent spacing.
   Presentation only: no new requests, JS, PHP or catalogue queries.
   ========================================================= */

/* All category tiles use one calm light-grey surface. */
#idanny-home .idanny-home-promo .idanny-home-promo__media,
#idanny-home .idanny-home-promo > img,
#idanny-home .idanny-home-promo--blue .idanny-home-promo__media,
#idanny-home .idanny-home-promo--mint .idanny-home-promo__media,
#idanny-home .idanny-home-promo--lilac .idanny-home-promo__media,
#idanny-home .idanny-home-promo--coral .idanny-home-promo__media,
#idanny-home .idanny-home-promo--violet .idanny-home-promo__media,
#idanny-home .idanny-home-promo--rose .idanny-home-promo__media,
#idanny-home .idanny-home-promo--sand .idanny-home-promo__media,
#idanny-home .idanny-home-promo--periwinkle .idanny-home-promo__media,
#idanny-home .idanny-home-promo--peach .idanny-home-promo__media,
#idanny-home .idanny-home-promo--ice .idanny-home-promo__media {
	background: #f3f4f6 !important;
}

/* Same image viewport for every tile; proportions stay untouched. */
#idanny-home .idanny-home-promo__media img {
	inset: 10% !important;
	width: 80% !important;
	height: 80% !important;
	object-fit: contain !important;
	object-position: center !important;
}

#idanny-home .idanny-home-promo > img {
	padding: 10% !important;
	object-fit: contain !important;
	object-position: center !important;
}

/* Every caption occupies the same line and baseline. */
#idanny-home .idanny-home-promo__title,
#idanny-home .idanny-home-promo__copy {
	min-height: 18px;
}

#idanny-home .idanny-home-promo__title,
#idanny-home .idanny-home-promo__copy strong {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 18px;
}

/* Desktop spacing is owned by idanny-desktop-redesign.css. */

/* Tablet: preserve the same rhythm without making the page too loose. */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	#idanny-home .idanny-home-promos {
		margin-top: 24px !important;
	}

	#idanny-home .idanny-home-products,
	#idanny-home .idanny-home-products--day,
	#idanny-home .idanny-home-products--discounts {
		margin-top: 34px !important;
	}
}

/* Mobile: a little more air below the banner, but keep the feed compact. */
@media only screen and (max-width: 767px) {
	#idanny-home .idanny-home-promos {
		margin-top: 20px !important;
	}

	#idanny-home .idanny-home-products,
	#idanny-home .idanny-home-products--day,
	#idanny-home .idanny-home-products--discounts {
		margin-top: 30px !important;
	}

	#idanny-home .idanny-home-promo__title,
	#idanny-home .idanny-home-promo__copy {
		min-height: 18px;
	}
}

/* =========================================================
   iDanny home brand row — approved 2026-09-21.
   Clean white background, official marks only, no heading.
   ========================================================= */

#idanny-home {
	padding-bottom: 0;
}

#idanny-home .idanny-home-brands {
	width: 100%;
	margin: 10px 0 0;
	padding: 32px 0 0;
	background: #fff;
}

#idanny-home .idanny-home-brands__inner {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	align-items: center;
	width: min(calc(100% - 48px), 1392px);
	margin: 0 auto;
}

#idanny-home .idanny-home-brand {
	display: flex;
	min-width: 0;
	height: 42px;
	align-items: center;
	justify-content: center;
}

#idanny-home .idanny-home-brand img {
	display: block;
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 34px;
	margin: 0;
	object-fit: contain;
}

#idanny-home .idanny-home-brand--apple img { max-width: 32px; max-height: 34px; }
#idanny-home .idanny-home-brand--samsung img { max-width: 72px; max-height: 28px; }
#idanny-home .idanny-home-brand--xiaomi img { max-width: 32px; max-height: 32px; }
#idanny-home .idanny-home-brand--ray-ban img { max-width: 72px; max-height: 30px; }
#idanny-home .idanny-home-brand--oakley img { max-width: 70px; max-height: 30px; }
#idanny-home .idanny-home-brand--insta360 img { max-width: 72px; max-height: 28px; }
#idanny-home .idanny-home-brand--dyson img { max-width: 68px; max-height: 28px; }
#idanny-home .idanny-home-brand--hp img { max-width: 34px; max-height: 34px; }
#idanny-home .idanny-home-brand--lenovo img { max-width: 70px; max-height: 30px; }
#idanny-home .idanny-home-brand--jbl img { max-width: 34px; max-height: 34px; }
#idanny-home .idanny-home-brand--nintendo img { max-width: 72px; max-height: 29px; }
#idanny-home .idanny-home-brand--sony img { max-width: 68px; max-height: 27px; }
#idanny-home .idanny-home-brand--garmin img { max-width: 70px; max-height: 28px; }
#idanny-home .idanny-home-brand--xbox img { max-width: 70px; max-height: 30px; }
#idanny-home .idanny-home-brand--oura img { max-width: 68px; max-height: 28px; }
#idanny-home .idanny-home-brand--dji img { max-width: 62px; max-height: 28px; }

@media only screen and (min-width: 768px) and (max-width: 1180px) {
	#idanny-home .idanny-home-brands__inner {
		grid-template-columns: repeat(16, minmax(0, 1fr));
	}

	#idanny-home .idanny-home-brands__inner .idanny-home-brand img {
		max-width: 42px;
		max-height: 24px;
	}
}

@media only screen and (max-width: 767px) {
	#idanny-home {
		padding-bottom: 0;
	}

	#idanny-home .idanny-home-brands {
		margin-top: 0;
		padding: 12px 0 0;
	}

	#idanny-home .idanny-home-brands__inner {
		grid-template-columns: repeat(16, minmax(0, 1fr));
		width: calc(100% - 28px);
	}

	#idanny-home .idanny-home-brand {
		height: 32px;
	}

	#idanny-home .idanny-home-brands__inner .idanny-home-brand img {
		max-width: 19px;
		max-height: 16px;
	}
}
