/* Kimi shop.html layout — scoped to #kms-shop-root only. Path: корень каталога /shop/ */
/* Переменные и ключевые блоки синхронизированы с /tmp/mpkm_kimi_audit_.../mpkm/css/style.css */

body.page-shop-root .content__center .main,
body.page-shop-root main.main {
	max-width: 100%;
}

#kms-shop-root {
	--yellow: #ffd60a;
	--yellow-hover: #e5c000;
	--yellow-light: rgba(255, 214, 10, 0.12);
	--dark: #0a0a0f;
	--dark-card: #1e1e2d;
	--dark-hero: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
	--gray-bg: #f8f9fa;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-text: #6b7280;
	--gray-dark: #374151;
	--text: #111827;
	--text-light: #4b5563;
	--white: #ffffff;
	--border: #e5e7eb;
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-full: 999px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
	--transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	--max-width: 1200px;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--text);
	font-size: 15px;
	line-height: 1.55;
	margin-bottom: 72px;
}

#kms-shop-root *,
#kms-shop-root *::before,
#kms-shop-root *::after {
	box-sizing: border-box;
}

#kms-shop-root .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	cursor: pointer;
	border: none;
	background: none;
	text-decoration: none;
}

#kms-shop-root .btn-primary {
	background: var(--yellow);
	color: var(--dark);
}
#kms-shop-root .btn-primary:hover {
	background: var(--yellow-hover);
	transform: translateY(-1px);
}

#kms-shop-root .btn-dark {
	background: var(--dark);
	color: var(--yellow);
}
#kms-shop-root .btn-dark:hover {
	background: #2d2d3d;
}

#kms-shop-root .btn-outline {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}
#kms-shop-root .btn-outline:hover {
	border-color: var(--yellow);
	color: var(--dark);
}

#kms-shop-root .btn-outline-dark {
	background: transparent;
	border: 2px solid var(--dark);
	color: var(--dark);
	padding: 12px 24px;
}
#kms-shop-root .btn-outline-dark:hover {
	background: rgba(10, 10, 15, 0.05);
}

/* Hero */
#kms-shop-root .hero-section {
	max-width: var(--max-width);
	margin: 0 auto 28px;
	padding: 0 16px;
}
#kms-shop-root .hero-card {
	background: var(--dark-hero);
	border-radius: var(--radius-lg);
	padding: 48px 40px;
	position: relative;
	overflow: hidden;
}
#kms-shop-root .hero-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(ellipse, rgba(255, 214, 10, 0.08) 0%, transparent 70%);
	pointer-events: none;
}
#kms-shop-root .hero-content {
	position: relative;
	z-index: 1;
	max-width: 780px;
}
#kms-shop-root .hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--yellow);
	color: var(--dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius-full);
	margin-bottom: 20px;
}
#kms-shop-root .hero-title {
	font-size: 40px;
	font-weight: 800;
	color: var(--white);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}
#kms-shop-root .hero-title .accent {
	color: var(--yellow);
}
#kms-shop-root .hero-desc {
	font-size: 16px;
	color: #a0aec0;
	line-height: 1.7;
	max-width: 640px;
	margin: 0;
}

/* Promo */
#kms-shop-root .promo-banner {
	max-width: var(--max-width);
	margin: 0 auto 32px;
	padding: 0 16px;
}
#kms-shop-root .promo-banner-card {
	background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark) 100%);
	border-radius: var(--radius-lg);
	padding: 32px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
#kms-shop-root .promo-banner-text {
	font-size: 16px;
	color: #a0aec0;
	line-height: 1.7;
	flex: 1;
}
#kms-shop-root .promo-banner-text strong {
	color: var(--yellow);
	font-size: 17px;
}
#kms-shop-root .kms-shop-root__mailto {
	color: var(--yellow);
	text-decoration: underline;
	text-underline-offset: 2px;
}
#kms-shop-root .kms-shop-root__mailto:hover {
	color: #ffe566;
}

/* Layout */
#kms-shop-root .catalog-layout {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px 48px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
	min-width: 0;
}

#kms-shop-root .catalog-sidebar {
	position: sticky;
	top: 20px;
	align-self: start;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

#kms-shop-root .catalog-main {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

#kms-shop-root .sidebar-block {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 16px;
}
#kms-shop-root .sidebar-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 14px;
	letter-spacing: 0.02em;
}
#kms-shop-root .sidebar-cat {
	display: block;
	padding: 9px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-dark);
	border-bottom: 1px solid var(--gray-100);
	transition: color 0.2s;
}
#kms-shop-root .sidebar-cat:hover {
	color: var(--yellow);
}
#kms-shop-root .sidebar-cat.active {
	color: var(--yellow);
}
#kms-shop-root .sidebar-sub {
	padding-left: 12px;
	margin-bottom: 4px;
}
#kms-shop-root .sidebar-sub a {
	display: block;
	padding: 6px 0;
	font-size: 13px;
	color: var(--gray-dark);
	text-decoration: none;
	transition: color 0.2s;
}
#kms-shop-root .sidebar-sub a:hover {
	color: var(--yellow);
}
#kms-shop-root .sidebar-sub a .count {
	font-size: 12px;
	color: var(--gray-text);
	margin-left: 4px;
}

#kms-shop-root .sidebar-block--help {
	background: var(--dark);
	border-color: var(--dark);
}
#kms-shop-root .sidebar-help-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--yellow);
	margin-bottom: 8px;
}
#kms-shop-root .sidebar-help-text {
	font-size: 13px;
	color: #9ca3af;
	line-height: 1.6;
	margin: 0 0 12px;
}
#kms-shop-root .sidebar-block--help .btn-primary {
	width: 100%;
}

/* Cat hero */
#kms-shop-root .cat-hero {
	margin: 0 0 32px;
}
#kms-shop-root .cat-hero-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}
#kms-shop-root .cat-hero-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--text);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
#kms-shop-root .cat-hero-desc {
	font-size: 15px;
	color: var(--text-light);
	line-height: 1.7;
	margin: 0;
	max-width: 600px;
}

/* Блок «Полезно в каталоге» — быстрые действия (Kimi-компакт) */
#kms-shop-root .kms-shop-quick {
	margin: 0 0 24px;
	padding: 0;
}
#kms-shop-root .kms-shop-quick__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
#kms-shop-root .kms-shop-quick__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	width: 100%;
}
#kms-shop-root .kms-shop-quick__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-height: 118px;
	padding: 16px 18px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	box-shadow: var(--shadow-sm);
}
#kms-shop-root .kms-shop-quick__card:hover {
	border-color: rgba(255, 214, 10, 0.65);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}
#kms-shop-root .kms-shop-quick__card--accent {
	background: linear-gradient(145deg, var(--dark-card) 0%, #15151f 100%);
	border-color: rgba(255, 214, 10, 0.35);
	color: var(--white);
}
#kms-shop-root .kms-shop-quick__card--accent:hover {
	border-color: var(--yellow);
}
#kms-shop-root .kms-shop-quick__card-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gray-text);
}
#kms-shop-root .kms-shop-quick__card--accent .kms-shop-quick__card-label {
	color: rgba(255, 214, 10, 0.85);
}
#kms-shop-root .kms-shop-quick__card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}
#kms-shop-root .kms-shop-quick__card--accent .kms-shop-quick__card-title {
	color: var(--white);
}
#kms-shop-root .kms-shop-quick__card-desc {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.45;
	margin: 0;
}
#kms-shop-root .kms-shop-quick__card--accent .kms-shop-quick__card-desc {
	color: #a0aec0;
}

/* «Хиты продаж» на корне /shop/: штатные карточки, сетка только здесь */
#kms-shop-root .kms-shop-hits {
	margin: 0 0 24px;
}
#kms-shop-root .kms-shop-hits__head {
	margin-bottom: 18px;
}
#kms-shop-root .kms-shop-hits__title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
#kms-shop-root .kms-shop-hits__sub {
	margin: 0;
	font-size: 14px;
	color: var(--gray-dark);
	line-height: 1.55;
	max-width: 640px;
}
#kms-shop-root .kms-shop-hits__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	align-items: stretch;
}
#kms-shop-root .kms-shop-hits__list > .grid4__item {
	min-width: 0;
	width: 100%;
	max-width: none;
	height: 100%;
}
#kms-shop-root .kms-shop-hits__list .pr-block__item {
	height: 100%;
	display: flex;
	flex-direction: column;
}
/* Сетка с align-items: stretch растягивает карточку по высоте ряда; без flex-grow
   у середины и margin-top:auto у формы остаётся пустое место под кнопкой «Купить». */
#kms-shop-root .kms-shop-hits__list .pr-block__pic {
	flex-shrink: 0;
}
#kms-shop-root .kms-shop-hits__list .pr-block__info {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
#kms-shop-root .kms-shop-hits__list .pr-block__item > form.js_shop_form.pr-block__tocart {
	margin-top: auto;
	width: 100%;
	align-self: stretch;
	box-sizing: border-box;
	padding-bottom: 12px;
}

@media (max-width: 1100px) and (min-width: 641px) {
	#kms-shop-root .kms-shop-hits__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}
@media (max-width: 900px) {
	#kms-shop-root .kms-shop-hits__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

#kms-shop-root .cat-hero-count {
	text-align: center;
	padding: 24px;
	background: var(--yellow-light);
	border-radius: var(--radius);
}
#kms-shop-root .cat-hero-count .num {
	font-size: 36px;
	font-weight: 800;
	color: var(--yellow);
	line-height: 1;
}
#kms-shop-root .cat-hero-count .label {
	font-size: 13px;
	color: var(--text-light);
	margin-top: 8px;
}

/* Sort row */
#kms-shop-root .sort-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
#kms-shop-root .sort-bar-count {
	font-size: 14px;
	color: var(--text-light);
}
#kms-shop-root .sort-bar-count strong {
	color: var(--text);
}
#kms-shop-root .sort-bar-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
#kms-shop-root .sort-bar-select-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}
#kms-shop-root .sort-select {
	padding: 6px 12px;
	font-size: 13px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--text);
	cursor: pointer;
}
#kms-shop-root .sort-select--readonly {
	cursor: default;
	color: var(--text-light);
}

/* Kimi product grid (как style.css .products-grid / .product-card) */
#kms-shop-root .products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-bottom: 0;
}
#kms-shop-root .product-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	position: relative;
}
#kms-shop-root .product-card:hover {
	border-color: var(--yellow);
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}
#kms-shop-root .product-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 2;
}
#kms-shop-root .product-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-full);
}
#kms-shop-root .product-badge.new {
	background: var(--yellow);
	color: var(--dark);
}
#kms-shop-root .product-badge.hit {
	background: var(--dark);
	color: var(--yellow);
}
#kms-shop-root .product-badge.sale {
	background: #fee2e2;
	color: #dc2626;
}
#kms-shop-root .product-badge.stock {
	background: #dcfce7;
	color: #166534;
}
#kms-shop-root .product-image {
	height: 200px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	flex-shrink: 0;
}
#kms-shop-root .product-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: var(--gray-300);
}
#kms-shop-root .product-image svg {
	width: 64px;
	height: 64px;
	color: var(--gray-300);
}
#kms-shop-root .product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
}
#kms-shop-root .product-info {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
#kms-shop-root .product-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.4;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#kms-shop-root .product-title a {
	color: inherit;
	text-decoration: none;
}
#kms-shop-root .product-title a:hover {
	color: var(--yellow);
}
#kms-shop-root .product-desc {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.5;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
#kms-shop-root .product-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
#kms-shop-root .product-brand {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gray-text);
	padding: 3px 8px;
	background: var(--gray-100);
	border-radius: var(--radius-full);
}
#kms-shop-root .product-stock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #166534;
}
#kms-shop-root .product-stock.out {
	color: var(--gray-text);
}
#kms-shop-root .product-price-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--gray-100);
}
#kms-shop-root .product-price {
	font-size: 20px;
	font-weight: 800;
	color: var(--text);
	line-height: 1;
}
#kms-shop-root .product-price .unit {
	font-size: 12px;
	font-weight: 400;
	color: var(--gray-text);
}
#kms-shop-root .product-old-price {
	font-size: 13px;
	color: var(--gray-text);
	text-decoration: line-through;
	margin-bottom: 4px;
}
#kms-shop-root a.product-cart-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--yellow);
	border-radius: var(--radius-sm);
	color: var(--dark);
	transition: var(--transition);
	flex-shrink: 0;
	text-decoration: none;
}
#kms-shop-root a.product-cart-btn:hover {
	background: var(--yellow-hover);
	transform: scale(1.05);
}

/* Pagination (Kimi-визуал без фейковых страниц: «1» + ссылка в раздел) */
#kms-shop-root .catalog-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 32px 0;
	flex-wrap: wrap;
}
#kms-shop-root .catalog-page-btn {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: var(--transition);
	font-family: inherit;
	line-height: 1;
}
#kms-shop-root .catalog-page-btn--active {
	background: var(--yellow);
	color: var(--dark);
	font-weight: 700;
	border-color: var(--border);
}
#kms-shop-root a.catalog-page-btn:hover {
	border-color: var(--yellow);
}
#kms-shop-root a.catalog-page-btn--arrow {
	font-weight: 700;
}

/* Блок «Как подобрать» — без класса .section (иначе 48px padding перекрывает локальные отступы) */
#kms-shop-root .kms-kimi-pick {
	padding: 8px 0 0;
	margin: 0;
	border-top: 1px solid var(--gray-200);
}
#kms-shop-root .kms-kimi-pick__header {
	text-align: left;
	margin-bottom: 24px;
}
#kms-shop-root .kms-kimi-pick .section-header {
	text-align: left;
	margin-bottom: 20px;
}
#kms-shop-root .kms-kimi-pick__header .section-label {
	display: inline-block;
}
#kms-shop-root .kms-kimi-pick__header .section-title {
	font-size: 24px;
	margin-top: 8px;
	line-height: 1.2;
}
#kms-shop-root .kms-kimi-pick__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
#kms-shop-root .kms-kimi-pick__cell {
	background: var(--gray-bg);
	border-radius: var(--radius);
	padding: 20px;
}
#kms-shop-root .kms-kimi-pick__cell-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
}
#kms-shop-root .kms-kimi-pick__cell-text {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.6;
	margin: 0;
}

@keyframes kmsScaleIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
#kms-shop-root .anim-scale-in {
	animation: kmsScaleIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
#kms-shop-root .anim-delay-2 {
	animation-delay: 0.2s;
}
#kms-shop-root .anim-delay-3 {
	animation-delay: 0.3s;
}
#kms-shop-root .anim-delay-4 {
	animation-delay: 0.4s;
}
#kms-shop-root .anim-delay-5 {
	animation-delay: 0.5s;
}
#kms-shop-root .anim-delay-6 {
	animation-delay: 0.6s;
}

/* Hits (замещение сетки товаров без фейков: ссылки разделов) */
#kms-shop-root .related-strip {
	background: var(--gray-bg);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 18px 0 22px;
}
#kms-shop-root .related-strip-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 12px;
}
#kms-shop-root .related-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#kms-shop-root .related-links a {
	font-size: 13px;
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}
#kms-shop-root .related-links a:hover {
	color: var(--yellow);
}
#kms-shop-root .related-links a::before {
	content: '';
	width: 4px;
	height: 4px;
	background: var(--yellow);
	border-radius: 50%;
	flex-shrink: 0;
}

/* Section + benefits */
#kms-shop-root .section {
	padding: 48px 0;
}
#kms-shop-root .section-alt {
	background: var(--gray-bg);
}
#kms-shop-root .section-yellow {
	background: var(--yellow);
	padding-bottom: 56px;
	margin-bottom: 8px;
}
#kms-shop-root .container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
}
#kms-shop-root .section-header {
	text-align: center;
	margin-bottom: 40px;
}
#kms-shop-root .section-label {
	display: inline-block;
	padding: 6px 14px;
	background: var(--gray-100);
	color: var(--gray-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: var(--radius-full);
	margin-bottom: 12px;
}
#kms-shop-root .section-title {
	font-size: 32px;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
}

#kms-shop-root .benefit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
#kms-shop-root .benefit-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: var(--transition);
}
#kms-shop-root .benefit-card:hover {
	border-color: var(--yellow);
	box-shadow: var(--shadow);
}
#kms-shop-root .benefit-num {
	width: 44px;
	height: 44px;
	background: var(--yellow);
	color: var(--dark);
	font-size: 18px;
	font-weight: 800;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
#kms-shop-root .benefit-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 4px;
}
#kms-shop-root .benefit-desc {
	font-size: 14px;
	color: var(--text-light);
	line-height: 1.6;
}

#kms-shop-root .section-yellow-inner {
	text-align: center;
}
#kms-shop-root .cta-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--dark);
	margin: 0 0 12px;
}
#kms-shop-root .cta-desc {
	font-size: 15px;
	color: rgba(10, 10, 15, 0.72);
	line-height: 1.65;
	max-width: 720px;
	margin: 12px auto 24px;
}
#kms-shop-root .cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* Anim */
@keyframes kmsFadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
#kms-shop-root .anim-fade-up {
	animation: kmsFadeUp 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
}
#kms-shop-root .anim-delay-1 {
	animation-delay: 0.1s;
}

/* Responsive */
@media (max-width: 900px) {
	#kms-shop-root .hero-title {
		font-size: 28px;
	}
	#kms-shop-root .hero-card {
		padding: 32px 24px;
	}
	#kms-shop-root .catalog-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		width: 100%;
		max-width: 100%;
	}
	#kms-shop-root .catalog-sidebar {
		position: static;
		/* DOM: сайдбар первый в разметке; без order — иначе main(order:1) визуально выше sidebar(order:2) на mobile */
	}
	#kms-shop-root .promo-banner-card {
		flex-direction: column;
		text-align: center;
	}
	#kms-shop-root .cat-hero-card {
		grid-template-columns: 1fr;
	}
	#kms-shop-root .products-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
	}
}

@media (max-width: 640px) {
	#kms-shop-root .sort-bar {
		flex-direction: column;
		align-items: stretch;
	}
	#kms-shop-root .products-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Header selectbox narrow view — только корень каталога (см. overflow-расследование) */
@media (max-width: 699px) {
	body.page-shop-root #wrapper #header-login .btn.btn_transparent {
		max-width: calc(100vw - 140px);
		box-sizing: border-box;
	}
	body.page-shop-root #wrapper #header-login input.header-login__enter {
		max-width: calc(100vw - 220px);
		box-sizing: border-box;
		min-width: 0 !important;
	}
	body.page-shop-root #wrapper .selectbox {
		max-width: calc(100vw - 32px) !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}
	body.page-shop-root #wrapper .selectbox .select {
		min-width: 0 !important;
		max-width: 100% !important;
	}
}
