/* ============================================================
   Terra Game — адаптив
   ============================================================ */

/* ============ 1200px ============ */
@media (max-width: 1200px) {
	:root {
		--container-pad: 20px;
	}

	.mega_menu_grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.products,
	#featured_products .products,
	#new_products .products,
	#discounted_products .products {
		grid-template-columns: repeat(3, 1fr);
	}

	/* С сайдбаром — тоже 3, но с более узкими карточками */
	.main_row:not(.main_row_full) .products,
	.has_sidebar .products {
		grid-template-columns: repeat(3, 1fr);
	}

	#flypage .row.fn_transfer {
		gap: 24px;
	}

	.attendance_grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============ 1024px ============ */
@media (max-width: 1024px) {
	.main_row {
		grid-template-columns: 240px 1fr;
		gap: 24px;
	}

	.footer_grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.mega_menu {
		width: 100%;
		max-width: calc(100vw - 40px);
	}

	.mega_menu_grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.products,
	#featured_products .products,
	#new_products .products,
	#discounted_products .products,
	.main_row:not(.main_row_full) .products,
	.has_sidebar .products {
		grid-template-columns: repeat(3, 1fr);
	}

	.purchase_row {
		grid-template-columns: 60px 1fr 100px 120px 100px 40px;
		gap: 12px;
		font-size: 13px;
	}

	.blog_list {
		grid-template-columns: 200px 1fr;
	}

	#flypage .row.fn_transfer {
		grid-template-columns: 1fr;
	}

	.auth_grid {
		grid-template-columns: 1fr;
	}

	.map_contacts {
		grid-template-columns: 1fr;
	}

	.page_about_grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.attendance_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============ 991px ============ */
@media (max-width: 991px) {

	/* ============ ШАПКА ============ */
	.header_top_bar {
		display: none;
	}

	.header_main_inner {
		height: 56px;
		gap: 6px;
	}

	/* Бургер + поиск — компактные */
	#top_mobile {
		display: flex;
		gap: 2px;
		flex-shrink: 0;
	}

	#top_control,
	#top_search {
		width: 36px;
		height: 36px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		border: 0;
		cursor: pointer;
		color: var(--text-muted);
		border-radius: var(--radius-sm);
		transition: all var(--transition);
	}

	#top_control:hover,
	#top_search:hover,
	#top_search.active {
		background: var(--surface-2);
		color: var(--accent);
	}

	/* Иконки внутри — компактные, не толстые */
	#top_control svg,
	#top_search svg {
		width: 20px !important;
		height: 20px !important;
		stroke-width: 1.8 !important;
	}

	/* Лого — компактнее */
	.logo {
		font-size: 15px;
		max-width: none;
		letter-spacing: -0.3px;
	}

	.logo-mark {
		width: 30px;
		height: 30px;
		font-size: 15px;
	}

	.logo-text small {
		display: none;
	}

	/* ============ Поиск ============ */
	.header_search {
		display: none;
	}

	.header_search.active {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-width: none;
		padding: 12px 16px;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 8px 24px rgba(20, 22, 28, 0.08);
		z-index: 100;
	}

	.header_search.active .search_input {
		height: 42px;
	}

	/* ============ Действия шапки ============ */
	.header_actions {
		gap: 0;
	}

	.header_action,
	.header_action .wishlist_info,
	.header_action .comparison_info,
	.header_action .cart_info {
		width: 40px;
		min-width: 40px;
		height: 40px;
		padding: 0;
	}

	.header_action svg,
	.header_action .wishlist_info svg,
	.header_action .comparison_info svg,
	.header_action .cart_info svg {
		width: 20px;
		height: 20px;
	}

	.header_action_label,
	.header_action .header_action_label {
		display: none;
	}

	.header_action .informer_counter,
	.header_action .cart_counter {
		top: -2px;
		right: -2px;
		min-width: 16px;
		height: 16px;
		font-size: 9px;
		padding: 0 4px;
		border-width: 1.5px;
	}

	/* ============ Полоса с Каталогом и меню ============ */
	.header_nav_inner {
		height: 44px;
		overflow-x: auto;
		overflow-y: visible;
		flex-wrap: nowrap;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		gap: 2px;
	}

	.header_nav_inner::-webkit-scrollbar {
		display: none;
	}

	.catalog_btn {
		padding: 6px 12px;
		font-size: 12px;
		flex-shrink: 0;
		gap: 6px;
		height: 34px;
	}

	.catalog_btn span {
		display: inline;
	}

	.catalog_btn svg {
		width: 14px;
		height: 14px;
	}

	.main_menu {
		flex-shrink: 0;
		gap: 0;
	}

	.main_menu .menu_link {
		padding: 6px 10px;
		font-size: 12px;
	}

	/* ============ Мега-меню каталога ============ */
	.mega_menu {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
		padding: 20px 16px 32px;
		overflow-y: auto;
		z-index: 1100;
		box-sizing: border-box;
		box-shadow: none;
	}

	/* Показываем кнопку закрыть */
	.mega_menu_close {
		display: flex;
	}

	.mega_menu_grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mega_menu_col {
		padding: 12px 0;
		border-bottom: 1px solid var(--border);
		border-radius: 0;
	}

	.mega_menu_col:last-child {
		border-bottom: 0;
	}

	.mega_menu_col:hover {
		background: transparent;
	}

	.mega_menu_head {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 8px;
		padding-bottom: 8px;
	}

	.mega_menu_icon {
		width: 36px;
		height: 36px;
	}

	.mega_menu_title {
		font-size: 15px;
	}

	.mega_menu_links {
		padding-left: 0;
		gap: 2px;
	}

	.mega_menu_links a {
		padding: 6px 0;
		font-size: 13px;
	}

	/* Блокируем скролл body при открытом мега-меню */
	body.catalog_open {
		overflow: hidden;
	}

	/* ============ Мобильное меню слева ============ */
	#mobile_nav {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 300px;
		max-width: 85vw;
		height: 100vh;
		background: var(--surface);
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
		z-index: 1000;
		overflow-y: auto;
		padding: 16px 0 24px;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}

	body.ind #mobile_nav {
		transform: translateX(0);
	}

	body.ind::before {
		content: '';
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 999;
		cursor: pointer;
	}

	.mobile_nav_close {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: var(--surface-2);
		color: var(--text);
		display: flex;
		align-items: center;
		justify-content: center;
		border: 0;
		cursor: pointer;
		transition: all var(--transition);
		z-index: 10;
	}

	.mobile_nav_close:hover {
		background: var(--accent);
		color: #fff;
	}

	#mobile_nav ul {
		padding: 48px 20px 0;
	}

	#mobile_nav li {
		margin-bottom: 2px;
	}

	#mobile_nav a {
		display: block;
		padding: 12px 16px;
		border-radius: var(--radius-sm);
		font-size: 15px;
		font-weight: 500;
		color: var(--text);
	}

	#mobile_nav a:hover,
	#mobile_nav a.selected {
		background: var(--accent-soft);
		color: var(--accent);
	}

	/* ============ СЛАЙДЕР ============ */
	.main_banner {
		border-radius: var(--radius);
		margin-top: 16px;
	}

	.main_banner .slick-dots {
		bottom: 12px;
	}

	.main_banner .slick-dots li button {
		width: 6px;
		height: 6px;
	}

	.main_banner .slick-dots li.slick-active button {
		width: 18px;
	}

	/* ============ ОСНОВНАЯ ОБЛАСТЬ ============ */
	.main_row {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 16px;
	}

	/* На мобильном сайдбар под контентом */
	.main_sidebar {
		order: 2;
	}

	.main_content {
		order: 1;
	}

	/* ============ САЙДБАР — скрываем лишнее ============ */
	/* Каталог категорий в сайдбаре — не нужен, есть мега-меню */
	.main_sidebar .catalog_nav,
	.main_sidebar .catalog_heading,
	.main_sidebar .catalog_menu {
		display: none !important;
	}

	.sidebar_social,
	.sidebar_browsed,
	.mobile-hidden {
		display: none !important;
	}

	/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
	.breadcrumbs {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
		margin-bottom: 10px;
		white-space: nowrap;
		gap: 4px;
	}

	.breadcrumbs::-webkit-scrollbar {
		display: none;
	}

	.breadcrumbs li {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.breadcrumbs li:not(:last-child)::after {
		content: '/';
		color: var(--text-dim);
		margin-left: 4px;
	}

	/* ============ ТОВАРЫ ============ */
	.products,
	#featured_products .products,
	#new_products .products,
	#discounted_products .products,
	.main_row:not(.main_row_full) .products,
	.has_sidebar .products,
	.related {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.fn_product > .padding,
	.fn_product.product-card {
		padding: 10px;
	}

	.fn_product.product-card .product-image {
		margin-bottom: 8px;
	}

	.fn_product.product-card .product-title {
		font-size: 12px;
		min-height: 0;
	}

	.fn_product.product-card .price-current {
		font-size: 16px;
	}

	.fn_product.product-card .price-old {
		font-size: 11px;
	}

	.fn_product.product-card .btn-cart {
		padding: 8px 10px;
		font-size: 12px;
	}

	/*.fn_product.product-card .btn-cart span {
		display: none;
	}

	.fn_product.product-card .btn-cart svg {
		margin: 0;
	}

	.fn_product.product-card .btn-compare {
		display: none;
	}*/

	/* ============ СОРТИРОВКА ============ */
	.category_toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.sort {
		font-size: 12px;
	}

	.sort_link {
		padding: 5px 8px;
		font-size: 12px;
	}

	.view {
		display: none;
	}

	/* ============ ПАГИНАЦИЯ ============ */
	.pagination {
		gap: 3px;
		margin-top: 24px;
	}

	.page_link {
		min-width: 36px;
		height: 36px;
		padding: 0 10px;
		font-size: 13px;
	}

	/* ============ КАРТОЧКА ТОВАРА ============ */
	#flypage {
		padding: 16px;
	}

	#flypage .row.fn_transfer {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	#flypage .product_h1 {
		font-size: 22px;
		margin-bottom: 20px;
		padding-bottom: 16px;
	}

	#product_info .h1 {
		font-size: 18px;
	}

	#product_info .price {
		font-size: 24px;
	}

	#product_info .product_rating_row {
		gap: 12px;
	}

	#product_info .addbtn_card .product_compare,
	#product_info .addbtn_card .product_wish {
		width: 36px;
		height: 36px;
	}

	/* ============ БЛОК ПОКУПКИ — НА МОБИЛЬНОМ ТОЖЕ В ОДНУ СТРОКУ ============ */
	#product_info .buttons_box {
		flex-direction: row;
		align-items: stretch;
		gap: 8px;
		width: 100%;
		max-width: 100%;
		flex-wrap: nowrap;
	}

	/* Количество слева — компактное */
	#product_info .variant_amount {
		order: 1;
		flex: 1;
		min-width: 0;
		gap: 8px;
	}

	#product_info .fn_product_amount {
		height: 44px;
		flex: 0 0 auto;
	}

	#product_info .fn_product_amount .button {
		width: 36px;
		height: 44px;
		font-size: 16px;
	}

	#product_info .input_amount {
		width: 40px;
		height: 44px;
		font-size: 14px;
	}

	#product_info .variant_select {
		height: 44px;
		font-size: 13px;
		padding: 8px 10px;
		min-width: 0;
	}

	/* Кнопка «В корзину» справа — крупная, тянется на свободное место */
	#product_info .buttons_box > .button,
	#product_info .buttons_box > .fn_is_stock,
	#product_info .buttons_box > .fn_is_preorder {
		order: 2;
		flex: 1 1 auto;         /* ← растягиваем на свободное место */
		min-width: 0;
		max-width: none;
		width: auto;
		padding: 12px 20px;
		font-size: 14px;
		height: 44px;
		gap: 8px;
		white-space: nowrap;
		justify-content: center;
	}

	#product_info .buttons_box > .button svg {
		width: 18px;
		height: 18px;
	}

	#product_info .buttons_box > .button svg {
		width: 16px;
		height: 16px;
	}

	/* Табы */
	.tab_navigation a {
		padding: 10px 14px;
		font-size: 13px;
	}

	.features li {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	/* ============ КОРЗИНА ============ */
	.purchase_row {
		grid-template-columns: 60px 1fr 40px;
		grid-template-areas:
			"img name remove"
			"img price amount"
			"img sum amount";
		gap: 6px 12px;
	}

	.purchase_row.head_row {
		display: none;
	}

	.purchase_image { grid-area: img; }
	.purchase_name { grid-area: name; }
	.purchase_price { grid-area: price; }
	.purchase_amount { grid-area: amount; }
	.purchase_sum { grid-area: sum; }
	.purchase_remove { grid-area: remove; }

	.total_block {
		max-width: none;
	}

	/* ============ БЛОГ ============ */
	.blog_list {
		grid-template-columns: 1fr;
	}

	.blog_image {
		aspect-ratio: 16 / 9;
	}

	/* ============ КОНТАКТЫ + КАРТА ============ */
	.map_contacts {
		grid-template-columns: 1fr;
		min-height: auto;
		max-height: none;
		margin-top: 32px;
	}

	.map_contacts_info {
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 24px 20px;
	}

	.map_contacts_frame,
	.map_contacts_frame iframe {
		min-height: 400px;
	}

	/* ============ ФУТЕР ============ */
	.footer_top {
		padding: 32px 0 0;
	}

	.footer_grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
		padding-bottom: 28px;
	}

	.footer_bottom_inner {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}

	/* ============ КНОПКА ВВЕРХ ============ */
	.to_top {
		right: 16px;
		bottom: 16px;
		width: 42px;
		height: 42px;
	}

	/* ============ SEO-ОПИСАНИЕ КАТЕГОРИИ ============ */
	.category_description {
		padding: 24px 22px;
		margin-top: 24px;
	}

	.category_description h2 {
		font-size: 20px;
	}

	.category_description h3 {
		font-size: 16px;
	}

	.category_description p,
	.category_description ul li,
	.category_description ol li {
		font-size: 14px !important;
	}

	/* ============ ПРЕИМУЩЕСТВА ============ */
	.attendance_grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* ============ SEO-БЛОК НА ГЛАВНОЙ ============ */
	.main_page_description {
		padding: 20px;
	}

	/* ============ КАТЕГОРИИ (навигация) ============ */
	.catalog_heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		font-weight: 600;
		font-size: 14px;
		cursor: pointer;
		margin-bottom: 8px;
	}

	.catalog_menu {
		display: none;
		margin-bottom: 16px;
	}

	.catalog_menu.active {
		display: block;
	}
}

/* ============ 767px ============ */
@media (max-width: 767px) {
	:root {
		--container-pad: 16px;
	}

	/* ============ ШАПКА ============ */
	.header_main_inner {
		height: 52px;
		gap: 4px;
	}

	.logo {
		font-size: 14px;
	}

	.logo-mark {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.header_action,
	.header_action .wishlist_info,
	.header_action .comparison_info,
	.header_action .cart_info {
		width: 38px;
		min-width: 38px;
		height: 38px;
	}

	.header_action svg,
	.header_action .wishlist_info svg,
	.header_action .comparison_info svg,
	.header_action .cart_info svg {
		width: 18px;
		height: 18px;
	}

	/* Скрываем «Сравнить» и «Избранное» на узких экранах */
	.header_actions #comparison,
	.header_actions #wishlist {
		display: none;
	}

	/* ============ НИЖНЯЯ ПОЛОСА ============ */
	.header_nav_inner {
		height: 42px;
	}

	.catalog_btn {
		padding: 5px 10px;
		font-size: 12px;
	}

	.main_menu .menu_link {
		padding: 5px 8px;
		font-size: 12px;
	}

	/* ============ ТОВАРЫ ============ */
	.products,
	#featured_products .products,
	#new_products .products,
	#discounted_products .products,
	.main_row:not(.main_row_full) .products,
	.has_sidebar .products,
	.related {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.fn_product > .padding,
	.fn_product.product-card {
		padding: 8px;
	}

	.fn_product.product-card .product-image {
		margin-bottom: 6px;
	}

	.fn_product.product-card .product-platform {
		font-size: 10px;
		margin-bottom: 3px;
	}

	.fn_product.product-card .product-title {
		font-size: 11px;
		margin-bottom: 8px;
		-webkit-line-clamp: 3;
		min-height: 42px;
	}

	.fn_product.product-card .price-current {
		font-size: 15px;
	}

	.fn_product.product-card .product-actions {
		gap: 4px;
	}

	.fn_product.product-card .btn-cart {
		padding: 8px;
		min-height: 36px;
	}

	/* ============ СЕКЦИИ ============ */
	.section {
		padding: 32px 0 0;
	}

	.section-head h2,
	.box_heading {
		font-size: 18px;
		margin-bottom: 12px;
	}

	/* ============ СЛАЙДЕР ============ */
	.main_banner .slick-slide img {
		min-height: 140px;
		object-fit: cover;
	}
	
	#flypage .product_h1 {
		font-size: 20px;
		margin-bottom: 16px;
		padding-bottom: 12px;
	}

	/* ============ КАРТОЧКА ТОВАРА ============ */
	#product_gallery .images {
		grid-template-columns: repeat(4, 1fr);
	}

	#product_info .buttons_box {
		max-width: none;
	}

	#product_info .price {
		font-size: 22px;
	}

	#product_info .old_price {
		font-size: 14px;
	}

	#product_info .variant_amount {
		flex-wrap: wrap;
	}

	/* ============ ФИЛЬТРЫ (features) ============ */
	.features {
		font-size: 13px;
	}

	.features li {
		padding: 8px 12px;
	}

	.features_name,
	.features_value {
		font-size: 13px;
	}

	/* ============ КОНТАКТЫ + КАРТА ============ */
	.map_contacts_info {
		padding: 20px 16px;
	}

	.map_contacts_head h3 {
		font-size: 16px;
		margin-bottom: 16px;
	}

	.map_contacts_frame,
	.map_contacts_frame iframe {
		min-height: 320px;
	}

	/* ============ ФУТЕР ============ */
	.footer {
		margin-top: 40px;
	}

	.footer_grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-bottom: 24px;
	}

	.footer_about_text {
		max-width: none;
	}

	.footer_social {
		justify-content: flex-start;
	}

	/* ============ КНОПКИ ============ */
	.button {
		padding: 10px 16px;
		font-size: 13px;
	}

	/* ============ ФОРМЫ ============ */
	.form_input,
	.form_textarea {
		padding: 10px 14px;
		font-size: 14px;
	}

	/* ============ ПАГИНАЦИЯ ============ */
	.page_link {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: 12px;
	}

	/* ============ SEO-БЛОК ============ */
	.seo-block {
		padding-top: 40px;
	}

	.seo-block-header {
		margin-bottom: 24px;
	}

	.seo-block-header h2 {
		font-size: 22px;
	}

	.seo-block-header p {
		font-size: 14px;
	}

	.seo-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.seo-card {
		padding: 20px;
		gap: 14px;
	}

	.seo-card h3 {
		font-size: 15px;
	}

	.seo-card p {
		font-size: 13px;
	}

	.seo-stats {
		grid-template-columns: repeat(2, 1fr);
		padding: 20px;
		gap: 16px;
	}

	.seo-stat-value {
		font-size: 24px;
	}

	.seo-stat-label {
		font-size: 12px;
	}

	/* ============ ПРЕИМУЩЕСТВА ============ */
	.attendance_grid {
		grid-template-columns: 1fr;
	}

	/* ============ АЛФАВИТ ============ */
	.alphabet,
	.alphabet_ru {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	/* ============ КАРТОЧКА ТОВАРА — правая колонка ============ */
	.product_rating_row {
		flex-wrap: wrap;
	}
}

/* ============ 480px ============ */
@media (max-width: 480px) {

	/* ============ ШАПКА ============ */
	.header_main_inner {
		height: 50px;
		gap: 2px;
	}

	.logo {
		font-size: 13px;
	}

	.logo-mark {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	/* Скрываем «Пользователя» — остаётся: бургер, поиск, корзина */
	.header_actions a[href="/user"],
	.header_actions a[href="/user/login"] {
		display: none;
	}

	.header_action,
	.header_action .wishlist_info,
	.header_action .comparison_info,
	.header_action .cart_info {
		width: 36px;
		min-width: 36px;
		height: 36px;
	}

	/* ============ ТОВАРЫ ============ */
	.fn_product.product-card .product-title {
		font-size: 11px;
	}

	.fn_product.product-card .price-current {
		font-size: 14px;
	}

	/* ============ СЛАЙДЕР ============ */
	.main_banner .slick-slide img {
		min-height: 120px;
	}

	/* ============ ПАГИНАЦИЯ ============ */
	.page_link {
		min-width: 30px;
		height: 30px;
		font-size: 12px;
	}

	/* ============ ПОДПИСКА В ФУТЕРЕ ============ */
	.subscribe_form {
		flex-direction: column;
	}

	.subscribe_button {
		width: 100%;
	}

	/* ============ SEO-СТАТИСТИКА ============ */
	.seo-stats {
		padding: 16px;
	}
}

@media (max-width: 991px) {
    body > .mega_menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 64px 12px 24px !important;
        border-radius: 0 !important;
        border: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 9999 !important;
        background: var(--surface);
        box-sizing: border-box;
        box-shadow: 0 0 0 100vmax rgba(20, 22, 28, 0.5) !important;
        clip-path: inset(0 -100vmax);
        display: none;
    }

    body > .mega_menu.open {
        display: block !important;
    }

    body > .mega_menu .mega_menu_close {
        display: flex !important;
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 10000 !important;
    }

    body > .mega_menu .mega_menu_grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body > .mega_menu .mega_menu_title {
        font-size: 16px !important;
    }

    body > .mega_menu .mega_menu_links a {
        font-size: 14px !important;
        padding: 6px 0 !important;
        white-space: normal !important;
    }

    body.catalog_open {
        overflow: hidden;
    }
}