/*
 * Мобильная вёрстка artaban.ru — общие правила (план «Мобильная версия Artaban», этап 0).
 * Подключается в main_page.tpl.php только на страницах из includes/mobile_layout.php
 * и только для экранов уже 768 px (media="(max-width: 767px)"). На компьютере не действует.
 * Шапка, меню, колонки, подвал — этап 1; страницы — свои разделы ниже по мере адаптации.
 */

/* ---- основа: без жёсткой ширины 1000 px ---- */
html, body {
	min-width: 0;
	width: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	font-size: 15px;
	line-height: 1.45;
	overflow-x: hidden;
}
div.page_width, div.footer, #header, div.clear_line, span.clear_line {
	width: auto;
	max-width: 100%;
}
div.content {
	padding: 8px 12px 0;
}
div.cont_s {
	float: none;
	width: auto;
	padding-left: 0;
}

/* ---- картинки и таблицы не шире экрана ---- */
img {
	max-width: 100%; /* без height:auto: он перебивает высоту из разметки (миниатюры цветов height=118) */
}
.m-scroll {
	/* обёртка для широких таблиц (размеры, доставка): прокрутка внутри, не всей страницы */
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

/* ---- формы: 16 px, иначе iPhone увеличивает страницу при нажатии на поле ---- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], select, textarea {
	font-size: 16px;
	min-height: 44px;
	padding: 8px 10px;
	box-sizing: border-box;
	max-width: 100%;
}
input[type="checkbox"], input[type="radio"] {
	width: 22px;
	height: 22px;
}

/* ---- кнопки: удобное нажатие пальцем, не ниже 44 px ---- */
button, input[type="submit"], input[type="button"], .m-btn {
	min-height: 44px;
	font-size: 16px;
	box-sizing: border-box;
}

/* =========================================================================
 * Этап 1. Каркас: шапка, меню, крошки, подвал, cookie, всплывающие окна
 * ========================================================================= */

/* ---- старая шапка, строка брендов, левая колонка: на телефоне не нужны ---- */
#header, div.brands_menu, div.cont_l, div.page_width > div.clear_line, div.content > div.clear_line {
	display: none !important;
}

/* ---- мобильная полоса шапки (m06) ---- */
#m_bar {
	display: flex !important;
	align-items: center;
	gap: 2px;
	position: sticky;
	top: 0;
	z-index: 900;
	height: 52px;
	padding: 0 4px;
	padding-left: max(4px, env(safe-area-inset-left));
	padding-right: max(4px, env(safe-area-inset-right));
	background: #fff;
	border-bottom: 1px solid #e6e1dc;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.m-bar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #303031;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(218, 32, 49, .15);
}
.m-bar-logo {
	flex: 1;
	height: 34px;
	margin: 0 4px;
	/* в logo_artaban.png (302x159) сам знак занимает примерно x 15-200, y 55-100 */
	background: url(image/logo_artaban.png) no-repeat -9px -36px / 200px 105px;
}
.m-bar-phone { color: #da2031; }
/* значки рисуются маской: цвет берётся из color кнопки */
.m-ico-burger, .m-ico-phone, .m-ico-search, .m-ico-cart {
	display: block;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--m-ico) no-repeat center / contain;
	mask: var(--m-ico) no-repeat center / contain;
}
.m-ico-burger { --m-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.m-ico-phone { --m-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
.m-ico-search { --m-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.m-ico-cart { --m-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.m-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 9px;
	background: #da2031;
	color: #fff;
	font: bold 11px/18px Arial, sans-serif;
	text-align: center;
}
.m-cart-count[hidden] { display: none; }

/* поиск под полосой */
#m_search {
	display: block !important;
	position: sticky;
	top: 52px;
	z-index: 899;
	padding: 8px 12px;
	background: #fff;
	border-bottom: 1px solid #e6e1dc;
}
#m_search[hidden] { display: none !important; }
#m_search form { display: flex; gap: 8px; }
#m_search input[name="keywords"] {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 44px;
	margin: 0;
	border: 1px solid #c9c2bb;
	border-radius: 8px;
	background: #fff;
	color: #303031;
	font: 16px Verdana, sans-serif;
	position: static;
}
#m_search input.button {
	flex: none;
	width: 52px;
	height: 44px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: #da2031 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat center / 22px;
	position: static;
}

/* ---- панель меню (m07, m08, m09) ---- */
#m_overlay {
	display: block !important;
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 950;
	background: rgba(20, 16, 14, .45);
	opacity: 0;
	transition: opacity .2s;
}
#m_overlay[hidden], #m_drawer[hidden] { display: none !important; }
#m_drawer {
	display: block !important;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 960;
	width: 86vw;
	max-width: 340px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff;
	text-align: left;
	transform: translateX(-100%);
	transition: transform .22s ease-out;
}
html.m-drawer-open #m_drawer { transform: none; }
html.m-drawer-open #m_overlay { opacity: 1; }
html.m-drawer-open, html.m-drawer-open body { overflow: hidden; }
.m-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	padding: 0 4px 0 16px;
	padding-top: env(safe-area-inset-top);
	border-bottom: 1px solid #e6e1dc;
	font: bold 17px Verdana, sans-serif;
	color: #303031;
}
.m-drawer-close {
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 44px;
	color: #586774;
	cursor: pointer;
}
.m-drawer-account, .m-drawer-links, .m-drawer-info {
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}
.m-drawer-account { flex-direction: row; flex-wrap: wrap; }
.m-drawer-account a { flex: 1 1 auto; }
#m_drawer .m-drawer-account a, #m_drawer .m-drawer-links a, #m_drawer .m-drawer-info a {
	display: block;
	padding: 11px 16px;
	color: #303031;
	font-size: 15px;
	text-decoration: none;
}
#m_drawer .m-drawer-info a { color: #586774; font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
#m_drawer a.m-red { color: #da2031; }

/* разделы: то же меню #nav, перестроенное списком */
#m_drawer .topmenu, #m_drawer #nav, #m_drawer #nav li, #m_drawer #nav ul {
	float: none;
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	list-style: none;
	visibility: visible;
	opacity: 1;
	left: auto;
	top: auto;
}
#m_drawer #nav > li { display: block; border-bottom: 1px solid #eee; }
#m_drawer #nav a, #m_drawer #nav span { float: none; position: static; width: auto; height: auto; line-height: 1.35; }
#m_drawer #nav > li > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 13px 16px;
	color: #303031;
	font: 16px Verdana, sans-serif;
	text-decoration: none;
	background: none;
	border: 0;
}
#m_drawer #nav > li > a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid #b5aca4;
	border-bottom: 2px solid #b5aca4;
	transform: rotate(45deg);
	transition: transform .15s;
	flex: none;
	margin-left: 12px;
}
#m_drawer #nav > li.m-open > a { color: #da2031; }
#m_drawer #nav > li.m-open > a::after { transform: rotate(-135deg); }
#m_drawer #nav > li > ul { display: none !important; padding: 0 0 10px; background: #faf8f6; }
#m_drawer #nav > li.m-open > ul { display: block !important; }
#m_drawer #nav > li > ul > li { display: block; padding: 4px 0 6px; }
#m_drawer #nav big { display: block; font-size: 14px; }
#m_drawer #nav big a, #m_drawer #nav big span {
	display: block;
	padding: 8px 16px 4px 24px;
	color: #586774;
	font-weight: bold;
	text-decoration: none;
	background: none;
}
#m_drawer #nav big span { padding: 0; }
#m_drawer #nav .topmenu_line, #m_drawer #nav img { display: none; }
#m_drawer #nav ul a {
	display: block;
	padding: 9px 16px 9px 24px;
	color: #303031;
	font-size: 15px;
	text-decoration: none;
	background: none;
	border: 0;
}
#m_drawer #nav ul a span { background: none; padding: 0; color: inherit; font: inherit; }
#m_drawer #nav a.m-nav-all { color: #da2031; font-weight: bold; padding-top: 12px; }

/* ---- хлебные крошки (m10) ---- */
div.kroshki_new {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	white-space: nowrap;
	font-size: 13px;
	line-height: 20px;
	margin: 0 -12px 8px;
	padding: 6px 12px;
	scrollbar-width: none;
}
div.kroshki_new::-webkit-scrollbar { display: none; }
div.kroshki_new ul, div.kroshki_new ul li, div.kroshki_new > ul > li { float: none; display: inline; }
div.kroshki_new > div[style*="clear"] { display: none; }

/* ---- подвал (m11) ---- */
div.footer {
	min-height: 0;
	height: auto !important;
	padding: 20px 16px 24px;
	padding-bottom: calc(24px + env(safe-area-inset-bottom));
	background: #f7f4f1;
	font-size: 13px;
	line-height: 1.5;
}
div.footer p.m_img { display: none; }
div.footer div.menu_s {
	min-height: 0;
	height: auto !important;
	padding: 0 0 12px;
	background: none;
	border-bottom: 1px solid #e6e1dc;
}
div.footer div.menu_s p {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
	padding: 0;
}
div.footer div.menu_s a { margin: 0; padding: 9px 0; font-size: 15px; color: #303031; }
div.footer div.footer_pos { padding: 12px 0 0; }
div.footer div.banners { float: none; margin-bottom: 12px; }
div.footer div.banners div { float: none; padding-left: 0; }
div.footer div.banners a[href*="liveinternet"] { display: none; }
div.footer ul { padding-left: 18px !important; font-size: 12px; }
div.footer .legal_links { font-size: 13px; line-height: 1.5; }
div.footer .legal_links a { display: block; margin: 0; padding: 7px 0; white-space: normal; }
div.footer .legal_links p { font-size: 12px; }

/* ---- уведомление о cookie: узкая полоса внизу (m12) ---- */
#cookie_notice {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	max-width: none !important;
	padding: 8px 12px !important;
	padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
	border: 0 !important;
	border-top: 1px solid #ddd !important;
	border-radius: 0 !important;
	font-size: 12px !important;
	line-height: 16px !important;
}
#cookie_notice br { display: none; }
#cookie_notice { padding-right: 104px !important; }
#cookie_notice button {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 !important;
	min-height: 40px;
	padding: 0 14px !important;
	font-size: 14px !important;
}

/* ---- окно «Дарим 500 рублей» и другие всплывающие окна (m12, m13) ---- */
.popup-background { height: 100% !important; padding: 16px; box-sizing: border-box; }
.popup {
	width: 100% !important;
	min-width: 0 !important;
	max-height: 100%;
	overflow-y: auto;
	padding: 24px 16px 20px !important;
	box-sizing: border-box;
	text-align: center;
}
.popup .popup-title { padding: 0 36px; }
.popup .cross-popup { width: 24px; height: 24px; padding: 10px; top: 4px; right: 4px; }
.subscribe-form-item--input-email > input { max-width: none !important; height: 44px; font-size: 16px !important; }
.subscribe-form-item--btn-submit > input { max-width: none !important; height: 48px; }
#product-preview-window, .ui-dialog {
	width: auto !important;
	margin-left: 0 !important;
	padding: 0 12px !important;
	max-width: calc(100vw - 16px) !important;
	left: 8px !important;
	right: 8px !important;
	box-sizing: border-box;
}

/* =========================================================================
 * Этап 2. Карточка товара (product_info): одна колонка — фото, название, цена, цвета, размеры, доставка, свойства
 * ========================================================================= */
div.big_photos, div.big_opis_pos {
	float: none;
	width: auto;
	left: auto;
	margin: 0;
}
div.big_opisanie, div.big_opis_bgt, div.big_opis_bg {
	padding: 0 !important;
	background: none !important;
	width: auto !important;
}

/* ---- фото (m15): своя галерея вместо прежней с лупой ---- */
div.gl_b_img, div.image_listers, div.gl_s_img, div.big_photos > div[style*="text-align:center"] { display: none !important; }
.m-gallery {
	display: block !important;
	position: relative;
	margin: 0 -12px 12px;
	background: #f6f4f2;
}
.m-gal-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.m-gal-track::-webkit-scrollbar { display: none; }
.m-gallery .m-gal-track img {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	height: 118vw;
	max-height: 70vh;
	object-fit: contain;
	scroll-snap-align: center;
	background: #fff;
}
.m-gal-count {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 2px 9px;
	border-radius: 11px;
	background: rgba(30, 30, 30, .55);
	color: #fff;
	font: 12px/18px Arial, sans-serif;
	pointer-events: none;
}
#m_viewer {
	display: block !important;
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 20000;
	background: #fff;
}
#m_viewer .m-gal-track { height: 100%; }
#m_viewer .m-gal-track img {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	scroll-snap-align: center;
}
#m_viewer .m-gal-count { bottom: calc(16px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
.m-viewer-close {
	position: absolute;
	top: calc(8px + env(safe-area-inset-top));
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 22px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	font-size: 30px;
	line-height: 44px;
	color: #303031;
}
html.m-viewer-open, html.m-viewer-open body { overflow: hidden; }

/* ---- название, бренд, цена, наличие (m16) ---- */
div.prod_heading { line-height: 1.3; padding-bottom: 6px; }
div.prod_heading h1 { font-size: 20px; line-height: 1.3; margin: 0; }
div.prod_heading h1 span { display: inline; padding: 4px 8px; line-height: 1.6; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
div.brands_img {
	float: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 0;
	margin: 4px 0 8px;
	text-align: left;
}
div.brands_img > div[align="right"] { padding: 0 !important; text-align: left; order: 2; }
div.brands_img > div[align="right"] span, div.brands_img > div[align="right"] a { font-size: 14px !important; line-height: 32px; }
div.brands_pos img { width: 72px; height: auto; }
#fragment-1 { font-size: 14px; line-height: 1.6; }

/* ---- цвета и размеры (m17) ---- */
div.razmer { font-size: 14px; }
#color_p {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px !important;
	scrollbar-width: none;
}
#color_p::-webkit-scrollbar { display: none; }
#color_p a { flex: none; float: none; margin: 0; }
#color_p img { height: 88px; width: auto; }
#color_p .clear_line { display: none; }
/* кнопки размеров — строкой с переносом (inline-block, не float): при float перенесённая кнопка «цеплялась»
   за соседей и съезжала вправо, когда выбранная меняла размер. У выбранной меняется только цвет и внутренняя тень, размер тот же */
div.razmer a.tr_link_new, div.razmer a.tr_link_new_on, div.razmer a.tr_link_new_off {
	float: none;
	display: inline-block;
	vertical-align: top;
	margin: 0 4px 8px 0;
	font-size: 15px;
	line-height: 42px;
}
div.razmer a.tr_link_new span, div.razmer a.tr_link_new_on span, div.razmer a.tr_link_new_off span {
	float: none;
	display: block;
	min-width: 48px;
	height: 44px;
	padding: 0 10px;
	box-sizing: border-box;
	border-width: 1px;
	text-align: center;
	line-height: 42px;
	border-radius: 6px;
	font-weight: normal;
}
div.razmer a.tr_link_new_on span { border-color: #303031; box-shadow: inset 0 0 0 1px #303031; background: #fff; }
#sizes_p .clear_line, #sizetypes_p .clear_line { display: none; }
div.razmer a.tr_link_new_off span { text-decoration: line-through; background: #f2f0ee; color: #a8a29d; border-color: #e4e0dc; }
#razmer_help a, div.razmer span[onclick*="show_tablesize"] { font-size: 14px !important; line-height: 32px; margin-left: 6px; }

/* ---- блок цены и кнопок в карточке (m19) ---- */
div.summa { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
div.summa > .clear_line { display: none; }
div.summa #stock_info { flex: 0 0 100%; margin: 0; font-size: 14px; }
div.summa span#prod_price_span { float: none; flex: 1 1 100%; width: auto; height: 48px; line-height: 48px; font-size: 26px; border-radius: 6px; }
div.summa span.strk { float: none; flex: 1 1 100%; width: auto; order: 1; border-radius: 6px; }
div.summa span.button_buy, div.summa span.button_buy_green {
	flex: 1 1 60%;
	order: 2;
	text-align: center;
	font-size: 16px;
	padding: 14px 10px;
	border-radius: 6px;
}
div.summa span.button_buy { background: #da2031; border-color: #da2031; color: #fff; }
div.summa span.wishlist_new { flex: 1 1 30%; order: 3; text-align: center; font-size: 15px; padding: 14px 10px 14px 30px; border-radius: 6px; }

/* закреплённая полоса внизу экрана */
#m_buybar {
	display: flex !important;
	align-items: center;
	gap: 12px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	padding: 8px 12px;
	padding-bottom: calc(8px + env(safe-area-inset-bottom));
	padding-left: max(12px, env(safe-area-inset-left));
	padding-right: max(12px, env(safe-area-inset-right));
	background: #fff;
	border-top: 1px solid #e6e1dc;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
	transition: transform .2s;
}
#m_buybar.m-bb-hide { transform: translateY(110%); }
.m-bb-price { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.m-bb-now { font: bold 20px Verdana, sans-serif; color: #da2031; }
.m-bb-old { font-size: 13px; color: #8b949c; text-decoration: line-through; }
.m-bb-old[hidden] { display: none; }
.m-bb-btn {
	flex: 1;
	height: 48px;
	border: 0;
	border-radius: 8px;
	background: #da2031;
	color: #fff;
	font: bold 16px Verdana, sans-serif;
}
.m-bb-btn.m-bb-go { background: #fff; color: #009933; border: 2px solid #009933; }
.m-bb-btn:disabled { opacity: .7; }
html.m-has-buybar div.footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---- кнопка «Наверх» (call_me.js, #quicknav_top): у неё не было z-index, и строки таблиц (td с position:relative)
   рисовались поверх. На телефоне — круглая непрозрачная кнопка справа, над полосой «В корзину» ---- */
#quicknav_top {
	left: auto;
	right: 12px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 8900;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 22px;
	opacity: 1;
	background: #303031 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 14l6-6 6 6'/%3E%3C/svg%3E") no-repeat center / 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	font-size: 0;
}
#quicknav_top b { display: none; }
html.m-has-buybar #quicknav_top { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---- доставка, свойства, описание (m20) ---- */
#del_desc { padding-top: 16px !important; font-size: 14px !important; line-height: 1.5; }
table.info_tbl_goods { width: 100%; margin: 6px 0 12px; }
table.info_tbl_goods tr td { min-width: 0; font-size: 14px; padding: 7px 6px; }
table.info_tbl_goods tr td:first-child { width: 45%; color: #586774; }

/* ---- товары той же серии (m21): лента с прокруткой вбок ---- */
#bl_xsell div.catalog_b {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0 -12px;
	padding: 0 12px 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
#bl_xsell div.catalog_b::-webkit-scrollbar { display: none; }
#bl_xsell div.catalog_b div.goods {
	float: none;
	flex: 0 0 42%;
	width: auto;
	height: auto;
	top: 0;
	left: 0;
	scroll-snap-align: start;
}
#bl_xsell div.catalog_b div.goods_pos { height: auto; padding-bottom: 8px; }
#bl_xsell div.catalog_b p.m_img { width: auto; height: auto; margin: 8px 8px 8px; }
#bl_xsell div.catalog_b p.m_img img { width: 100%; height: auto; }
#bl_xsell div.catalog_b a { font-size: 12px; line-height: 1.4; }
.like_h1 { font-size: 17px; line-height: 1.4; }
.like_h1 span { display: inline-block; }

/* окно таблицы размеров, отзывов и вопросов (product-preview-window): содержимое прокручивается внутри */
html.no-scroll #m_buybar { display: none !important; }
/* окно таблицы размеров не ставит no-scroll: прячем по видимому затемнению (оно первое в body, полоса — последняя) */
#product-preview-overlay[style*="block"] ~ #m_buybar, #product-preview-overlay[style*="block"] ~ #quicknav_top { display: none !important; }
#product-preview-window #content { overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 75vh; }
#product-preview-window #close { width: 44px; height: 44px; background-position: center; }

/* ---- отзывы и вопросы (m22) ---- */
div.goods_otziv { max-height: none; }
div.goods_otziv table, #goods_otziv_div { width: 100% !important; }
div.goods_otziv td { display: block; padding: 6px 0; background: none; }
#rew span, #discuss span { font-size: 15px; }
