/* ============================================================
   Shop Bright 1.0.0 — яркие интерактивные фичи для 3D-магазина
   ============================================================ */

/* ---------- 1. 3D HERO ---------- */
.sb-hero {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	margin: 0 0 26px;
	background: linear-gradient(120deg, #ff6b9d 0%, #ffa06b 28%, #ffd66b 52%, #6bcBff 78%, #b06bff 100%);
	background-size: 220% 220%;
	animation: sb-hero-pan 14s ease-in-out infinite alternate;
	box-shadow: 0 18px 50px rgba(255, 107, 157, .28);
}
@keyframes sb-hero-pan {
	0% { background-position: 0% 40%; }
	100% { background-position: 100% 60%; }
}
.sb-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: center;
	padding: 30px 34px;
	position: relative;
	z-index: 2;
}
.sb-hero-copy { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.22); }
.sb-hero-eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 800;
	background: rgba(255,255,255,.22);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
	backdrop-filter: blur(4px);
}
.sb-hero-title {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.12;
	font-weight: 900;
	color: #fff;
}
.sb-hero-sub {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255,255,255,.95);
	max-width: 40ch;
}
.sb-hero-cta {
	display: inline-block;
	background: #fff;
	color: #e14b85;
	font-weight: 800;
	font-size: 15px;
	padding: 12px 30px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(0,0,0,.22);
	transition: transform .2s, box-shadow .2s;
}
.sb-hero-cta:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 14px 32px rgba(0,0,0,.28);
	color: #e14b85;
}
.sb-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.sb-feed-btn {
	display: inline-block;
	background: rgba(255,255,255,.18);
	color: #fff;
	border: 2px solid rgba(255,255,255,.85);
	font-weight: 800;
	font-size: 15px;
	padding: 10px 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .2s, background .2s;
}
.sb-feed-btn:hover:not(:disabled),
.sb-feed-btn:focus-visible:not(:disabled) {
	background: rgba(255,255,255,.35);
	transform: translateY(-2px) scale(1.03);
}
.sb-feed-btn:disabled { opacity: .6; cursor: default; }
.sb-hero-3d {
	position: relative;
	min-height: 300px;
	height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sb-kitten-poster,
.sb-kitten-canvas {
	max-width: 100%;
	max-height: 100%;
	height: 100%;
	width: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}
.sb-kitten-poster {
	position: absolute;
	inset: 0;
	margin: auto;
}
.sb-kitten-canvas {
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 18px 30px rgba(120, 20, 60, .35));
}
@media (prefers-reduced-motion: reduce) {
	.sb-kitten-canvas { display: none; }
	.sb-kitten-poster { position: static; }
}
.sb-hero-hint {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 12px;
	color: rgba(255,255,255,.85);
	z-index: 3;
	pointer-events: none;
}
@media (max-width: 860px) {
	.sb-hero-inner { grid-template-columns: 1fr; padding: 24px 22px; }
	.sb-hero-title { font-size: 26px; }
	.sb-hero-3d { height: 240px; min-height: 220px; }
}
/* Без hover — статичный градиент, без анимации фона */
@media (hover: none) {
	.sb-hero { animation: none; }
}

/* ---------- 2+3. SPOTLIGHT + 3D TILT карточек ---------- */
ul.products li.product.sb-spot {
	position: relative;
	transform-style: preserve-3d;
	will-change: transform;
	transition: transform .18s ease-out, box-shadow .25s ease;
}
ul.products li.product.sb-spot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s ease;
	background: radial-gradient(
		340px circle at var(--sb-mx, 50%) var(--sb-my, 50%),
		rgba(255, 214, 107, .38),
		rgba(255, 107, 157, .16) 42%,
		transparent 68%
	);
	z-index: 2;
}
ul.products li.product.sb-spot:hover::after { opacity: 1; }
ul.products li.product.sb-spot:hover {
	box-shadow: 0 18px 44px rgba(255, 107, 157, .22);
	z-index: 5;
}
/* На тач-устройствах — только свечение по тапу, без наклона */
@media (hover: none) {
	ul.products li.product.sb-spot { transform: none !important; }
}

/* ---------- 4. РАДУЖНЫЕ РАЗДЕЛИТЕЛИ ---------- */
.sb-divider {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 30px 0 6px;
	height: 26px;
	overflow: hidden;
	pointer-events: none;
}
.sb-divider span {
	flex: 0 1 120px;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff6b9d, #ffa06b, #ffd66b, #7be495, #6bcbff, #b06bff, #ff6b9d);
	background-size: 300% 100%;
	animation: sb-bar-slide 5s linear infinite;
	opacity: .85;
}
.sb-divider span:nth-child(2) { animation-delay: -1s; max-width: 70px; }
.sb-divider span:nth-child(3) { animation-delay: -2s; max-width: 40px; }
.sb-divider span:nth-child(4) { animation-delay: -3s; max-width: 70px; }
.sb-divider span:nth-child(5) { animation-delay: -4s; }
@keyframes sb-bar-slide {
	0% { background-position: 0% 0; }
	100% { background-position: 300% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sb-divider span, .sb-hero { animation: none !important; }
}

/* ---------- 6. КОМПАКТНАЯ МОБИЛЬНАЯ ШАПКА (≤781px) ---------- */
/* Кнопки видны только на мобиле */
.sb-mnav-btn, .sb-msearch-btn { display: none; }

@media (max-width: 781px) {
	/* Топбар в липкой шапке не нужен — экономим 36px */
	header.wp-block-template-part .xw-topbar { display: none; }

	/* Узкая строка шапки */
	header.wp-block-template-part .xw-header { padding: 7px 0; position: relative; }
	header.wp-block-template-part .xw-header .xw-wrap {
		display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
	}

	/* Бургер */
	.sb-mnav-btn {
		display: flex; flex-direction: column; justify-content: center; align-items: stretch;
		gap: 5px; width: 42px; height: 42px; padding: 10px;
		background: none; border: 0; cursor: pointer; flex: none;
	}
	.sb-mnav-btn span {
		display: block; height: 2.5px; border-radius: 2px;
		background: var(--xw-ink, #232323); transition: transform .2s, opacity .2s;
	}
	header.wp-block-template-part.sb-menu-open .sb-mnav-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	header.wp-block-template-part.sb-menu-open .sb-mnav-btn span:nth-child(2) { opacity: 0; }
	header.wp-block-template-part.sb-menu-open .sb-mnav-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

	/* Лого компактно: только знак «A» */
	header.wp-block-template-part .xw-logo { gap: 0; margin-right: auto; flex: none; }
	header.wp-block-template-part .xw-logo-text { display: none; }
	header.wp-block-template-part .xw-logo-mark { width: 36px; height: 36px; font-size: 21px; border-radius: 9px; }

	/* Поиск скрыт, вместо него иконка-кнопка */
	header.wp-block-template-part .xw-search { display: none; }
	.sb-msearch-btn {
		display: flex; align-items: center; justify-content: center;
		width: 42px; height: 42px; background: none; border: 0; cursor: pointer; flex: none;
	}
	.sb-msearch-btn svg { width: 24px; height: 24px; stroke: var(--xw-ink, #232323); fill: none; stroke-width: 2; }

	/* Раскрытый поиск — панель под шапкой */
	header.wp-block-template-part.sb-search-open .xw-search {
		display: flex; position: absolute; top: 100%; left: 0; right: 0;
		max-width: none; margin: 0; border-radius: 0;
		padding: 10px 16px; background: #fff;
		box-shadow: 0 14px 30px rgba(0,0,0,.12); z-index: 1001;
	}

	/* Иконки аккаунта/корзины — только иконки */
	header.wp-block-template-part .xw-hicons { gap: 2px; margin-left: 0; flex: none; }
	header.wp-block-template-part .xw-hicon { padding: 8px; }
	header.wp-block-template-part .xw-hicon .t { display: none; }
	header.wp-block-template-part .xw-hicon svg { width: 25px; height: 25px; }

	/* Навигация скрыта, раскрывается бургером */
	header.wp-block-template-part .xw-nav { display: none; }
	header.wp-block-template-part.sb-menu-open .xw-nav {
		display: block; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; z-index: 1001;
		border-top: 1px solid var(--xw-line, #e9ebee);
		box-shadow: 0 18px 40px rgba(0,0,0,.14);
	}
	header.wp-block-template-part.sb-menu-open .xw-nav .xw-wrap { display: block; padding: 6px 0 10px; }
	header.wp-block-template-part.sb-menu-open .xw-menu { display: block; }
	header.wp-block-template-part.sb-menu-open .xw-menu > li { display: block; }
	header.wp-block-template-part.sb-menu-open .xw-menu > li > a {
		display: block; padding: 13px 22px; font-size: 15px;
	}
	header.wp-block-template-part.sb-menu-open .xw-menu ul.sub {
		position: static; box-shadow: none; border: 0; display: block;
	}
	header.wp-block-template-part.sb-menu-open .xw-nav-side { display: none; }
}
/* ---------- 5. КОЛЬЦЕВАЯ 3D-КАРУСЕЛЬ ---------- */
.sb-ring-section {
	margin: 34px 0 10px;
	perspective: 1400px;
}
.sb-ring-title {
	text-align: center;
	font-size: 22px;
	font-weight: 900;
	margin: 0 0 4px;
	background: linear-gradient(90deg, #ff6b9d, #ffa06b, #b06bff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.sb-ring-sub {
	text-align: center;
	font-size: 14px;
	color: var(--xw-muted, #777);
	margin: 0 0 6px;
}
.sb-ring-stage {
	position: relative;
	height: 380px;
	transform-style: preserve-3d;
}
.sb-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
}
.sb-ring-card {
	position: absolute;
	width: 200px;
	margin-left: -100px;
	margin-top: -130px;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0,0,0,.18);
	transform-style: preserve-3d;
	backface-visibility: hidden;
	transition: transform .1s linear;
	text-decoration: none;
	color: inherit;
	display: block;
}
.sb-ring-card img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}
.sb-ring-card .sb-ring-name {
	font-size: 12.5px;
	font-weight: 700;
	padding: 10px 12px 2px;
	line-height: 1.3;
	height: 44px;
	overflow: hidden;
}
.sb-ring-card .sb-ring-price {
	font-size: 14px;
	font-weight: 800;
	color: #e14b85;
	padding: 0 12px 12px;
}
.sb-ring-hint {
	text-align: center;
	font-size: 12.5px;
	color: var(--xw-muted, #888);
	margin-top: 2px;
}
.sb-ring-card:hover { box-shadow: 0 20px 50px rgba(255,107,157,.35); }
@media (max-width: 640px) {
	.sb-ring-stage { height: 320px; }
	.sb-ring-card { width: 160px; margin-left: -80px; }
	.sb-ring-card img { height: 130px; }
}
