@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');


* {
	font-family: 'Open Sans', sans-serif;
	box-sizing: border-box;
	font-weight: 500;

}

*:hover {
/*     font-weight: 600; */
}



*::-webkit-scrollbar { width: 8px; height: 8px;}
*::-webkit-scrollbar-button {  background-color: #C1C1C1; }
*::-webkit-scrollbar-track {   background-color: #C1C1C1;}
*::-webkit-scrollbar-track-piece { background-color: #ffffff;}
*::-webkit-scrollbar-thumb { height: 50px; background-color: #C1C1C1; border-radius: 3px;}
*::-webkit-scrollbar-corner { background-color: #C1C1C1;}
*::-webkit-resizer { background-color: #C1C1C1;}

.ui-resizable-handle {
    width: 20px;
    
}
html, body {
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
}


body {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

/*Топовая линия*/

.x-light {
    background-color: #E7EAED;
}

.header-topline {
	background-color: #DC2222;
	margin-bottom: 2px;
	width: 100%;
	height: 50px;
	/* position: fixed; */
	/* z-index: 2000; */
	border-bottom: 1px solid grey;
}

.header-topline .topline-content  {
	height: 50px;
/*     padding: 0 calc(50% - 590px); */
    padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
}

.header-topline .topline-content .logo img {
	display: block;
	width: 100px;
	margin: 0 auto;
}

.header-topline .topline-content a {
	color: #fff;
	text-decoration: none;
}

/* Быстрый переход: классический каталог и витрина shop2 (в шапке) */
/* Шапка: один ряд — слева ссылки, по центру поиск, справа телефон + лого (grid, без переносов) */
.topline-content--with-shop2-search {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: 10px;
	height: 50px;
	box-sizing: border-box;
	padding: 0 8px;
	min-height: 50px;
}

/* Обёртки не создают лишний flex-элемент (одна линия) */
.topline-content--with-shop2-search .users-info,
.topline-content--with-shop2-search #send-message {
	display: contents;
}

.topline-left-cluster {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 3px 5px;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.topline-left-cluster::-webkit-scrollbar {
	height: 4px;
}

.topline-left-cluster::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}

.topline-text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 7px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
	flex-shrink: 0;
	color: #fff !important;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.topline-text-link:hover {
	background: rgba(255, 255, 255, 0.24);
	border-color: rgba(255, 255, 255, 0.45);
}

.topline-text-link i {
	margin-right: 0 !important;
	font-size: 0.95rem;
	opacity: 0.95;
}

.topline-content--with-shop2-search .topline-catalog-link {
	padding: 2px 6px;
	font-size: 11px;
	gap: 4px;
}

.topline-right-cluster {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
	flex-shrink: 0;
}

.topline-phone {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
	min-width: 0;
}

.topline-phone span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.topline-content--with-shop2-search .topline-logo {
	margin: 0;
	flex-shrink: 0;
}

.topline-content--with-shop2-search .topline-logo img {
	margin: 0 auto;
}

.shop2-topline-search-wrap {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: min(560px, 54vw);
	min-width: 140px;
	z-index: 2200;
}

.shop2-topline-search-field {
	display: flex;
	align-items: stretch;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: #fff;
}

.shop2-topline-search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	padding: 0 10px;
	font-size: 13px;
	color: #222;
	height: 32px;
	line-height: 32px;
	box-sizing: border-box;
}

.shop2-topline-search-input::placeholder {
	color: #94a3b8;
}

.shop2-topline-search-submit {
	flex-shrink: 0;
	width: 38px;
	border: 0;
	background: rgba(220, 34, 34, 0.1);
	color: #a30f16;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	transition: background 0.15s ease, color 0.15s ease;
	padding: 0;
}

.shop2-topline-search-submit:hover {
	background: #b91c1c;
	color: #fff;
}

.shop2-topline-search-submit i {
	margin-right: 0 !important;
}

/* Модалка «График доставки» + полоска в adm/inc/topline.php */
#grafik_modal.grafik-modal-shell {
	max-width: min(100vw - 20px, 1120px) !important;
	width: 100%;
	padding: 16px 18px 20px !important;
	box-sizing: border-box;
	border-radius: 12px;
}

#grafik_modal .grafik-wrap {
	padding: 0;
	margin: 0;
	max-width: none;
}

.header-topline--admin-strip {
	background-color: #DC2222;
	margin-bottom: 2px;
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.topline-content--admin-single {
	height: 48px;
	min-height: 48px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: #fff;
}

.topline-text-link--grafik i {
	font-size: 1rem;
}

.topline-text-link--profile i,
.topline-text-link--wishes i {
	font-size: 1.05rem;
}

.topline-send-message {
	display: contents;
}

.shop2-search-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
	max-height: min(70vh, 400px);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px 10px 12px;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
}

.shop2-search-dropdown[hidden] {
	display: none !important;
}

.shop2-search-dropdown-all {
	display: block;
	margin-top: 10px;
	padding: 10px 12px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	color: #b91c1c !important;
	text-decoration: none !important;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.shop2-search-dropdown-all:hover {
	background: #fee2e2;
}

/* Превью в выпадашке (страницы без shop2.css) */
mark.shop2-search-hit,
.shop2-search-hit {
	background: #b9f6b0;
	color: inherit;
	padding: 0 0.06em;
	border-radius: 2px;
}

.shop2-search-preview-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shop2-search-preview-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	background: #f8fafc;
	text-decoration: none !important;
	color: #222 !important;
	border: 1px solid transparent;
}

.shop2-search-preview-row:hover {
	border-color: #dee2e6;
	background: #fff;
}

.shop2-search-preview-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	border: 1px solid #dee2e6;
}

.shop2-search-preview-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #6c757d;
	background: #e9ecef;
}

.shop2-search-preview-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.shop2-search-preview-code {
	font-size: 11px;
	color: #6c757d;
}

.shop2-search-preview-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
}

.shop2-search-preview-price {
	font-size: 13px;
	color: #b91c1c;
	font-weight: 600;
}

.shop2-search-preview-more,
.shop2-search-muted,
.shop2-search-preview-empty,
.shop2-search-preview-err {
	font-size: 13px;
	color: #6c757d;
	margin: 0.35em 0;
}

.shop2-search-preview-err {
	color: #c0392b;
}

.shop2-search-loading {
	font-size: 13px;
	color: #6c757d;
}

/* Узкий экран: подписи убираем — только иконки (+ компактнее поле); только прямой потомок, иначе ломаются вложенные span */
@media (max-width: 900px) {
	.topline-text-link > span,
	.topline-content--with-shop2-search .topline-catalog-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.topline-text-link,
	.topline-content--with-shop2-search .topline-catalog-link {
		padding: 5px 7px;
	}

	.topline-content--with-shop2-search .topline-new-badge {
		display: none;
	}

	.shop2-topline-search-wrap {
		max-width: min(100%, 42vw);
		min-width: 100px;
	}

	.shop2-topline-search-input {
		font-size: 12px;
		padding: 0 8px;
		height: 30px;
		line-height: 30px;
	}

	.shop2-topline-search-submit {
		width: 34px;
	}

	.topline-content--with-shop2-search .topline-logo img {
		width: 80px;
	}
}

@media (max-width: 520px) {
	.topline-content--with-shop2-search {
		column-gap: 6px;
		padding: 0 4px;
	}

	.shop2-topline-search-wrap {
		max-width: min(100%, 38vw);
		min-width: 72px;
	}
}

/* Ссылки «Таблица / Витрина» в одной линии с остальными пунктами слева */
.topline-catalog-nav {
	display: contents;
	margin: 0;
}

.topline-catalog-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.topline-catalog-link:hover {
	background: rgba(255, 255, 255, 0.26);
	border-color: rgba(255, 255, 255, 0.5);
}

.topline-catalog-link i {
	margin-right: 0;
	font-size: 1.05rem;
	opacity: 0.95;
}

.topline-catalog-link--new {
	box-shadow: 0 0 0 1px rgba(255, 230, 150, 0.45);
}

.topline-catalog-link--new:hover {
	box-shadow: 0 0 0 1px rgba(255, 255, 200, 0.65), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.topline-new-badge {
	display: inline-block;
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 2px 5px;
	border-radius: 4px;
	background: #fff;
	color: #c1121f;
	line-height: 1;
	vertical-align: middle;
}

@media (max-width: 640px) {
	.topline-catalog-link {
		padding: 5px 6px;
	}
}

.header-topline .topline-content .contacts {
	display: flex;
	justify-content: space-around;

}

.header-topline .topline-content .contacts>* {
	display: block;
	margin: 0 10px;
}



.header-topline .topline-content .contacts a {	
	font-size: 14px;
}


.header-topline .topline-content .contacts .map {

}

.del_questionar:hover {
    color: red;
}

/* stock.php — акционные колонки цен */
.fox-stock-page #tableGoods th#table_price {
    color: #64748b;
}
.fox-stock-page #tableGoods th#table_stock_price {
    color: #b91c1c;
}
.fox-stock-page #tableGoods td.fox-stock-td-was {
    background: #f8fafc;
    vertical-align: middle;
}
.fox-stock-page #tableGoods td.fox-stock-td-deal {
    background: linear-gradient(90deg, #fff5f5 0%, #fff 55%);
    vertical-align: middle;
}
/* В ячейке уже «₽» в разметке; глобальный .price:after { content: ' р.' } даёт дубль */
.fox-stock-page #tableGoods td.fox-stock-td-was:after,
.fox-stock-page #tableGoods td.fox-stock-td-deal:after {
    content: none;
}
.fox-stock-price-ui {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.25;
}
.fox-stock-price-ui--deal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.fox-stock-price-old {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: rgba(100, 116, 139, 0.65);
    text-decoration-thickness: 1px;
}
.fox-stock-price-pct {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ef4444 0%, #dc2222 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(220, 34, 34, 0.35);
}
.fox-stock-price-deal {
    font-size: 17px;
    font-weight: 800;
    color: #dc2222;
    letter-spacing: -0.02em;
}

.stock_label {
    position: relative;
    color: #00CA01;
    font-weight: bold;
}

.stock_label i {
    position: absolute;
    left: -10px;
    top: 20px;
    color: #333;
    
    
}

.stock_label i:before {
   color: #00CA01; 
   font-size: 20px;
   position: absolute;
   bottom: 17px;
}

/* История цены: старые .stock_label i / i:before позиционировали «иконку акции» — на акции те же селекторы ломали <i> внутри .shop-price-history-btn (пустая розовая кнопка, «р.» уезжала вправо). */
#tableGoods td.stock_label.cell.price .shop-price-history-btn i,
.stock_label .shop-price-history-btn i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#tableGoods td.stock_label.cell.price .shop-price-history-btn i:before,
#tableGoods td.stock_label.cell.price .shop-price-history-btn i::before,
.stock_label .shop-price-history-btn i:before,
.stock_label .shop-price-history-btn i::before {
    position: static !important;
    bottom: auto !important;
    color: inherit;
    font-size: 1em;
}

.popup-fade,.popup-fade2, .popup-fade3 {
	display: none;
	position: relative;
}

.popup-fade:before,.popup-fade2:before , .popup-fade3:before{
	content: '';
	background: #000;
	position: fixed; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	opacity: 0.7;
	z-index: 9999;
}


.popup-close, .popup-close2, .popup-close3 {
	position: absolute;
	top: 10px;
	right: 10px;
}

#map {
	width: 500px;
	height: 500px;
	position: fixed;
	top: 50%;
	right: 50%;
	border: 5px solid red;
	margin-top: -250px;
	margin-right: -250px;		
	z-index: 99999;
	opacity: 1;	
	padding: 10px;
}



.header-topline .topline-content i {
	margin-right: 7px;
}

/* Модалка «Пожелания» */
#wishform.wishform-shell {
	max-width: min(100vw - 24px, 440px) !important;
	width: 100%;
	padding: 20px 22px 22px !important;
	box-sizing: border-box;
	border-radius: 12px;
}

.wishform-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin: 0;
}

.wishform-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.wishform-lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #64748b;
}

.wishform-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.wishform-textarea {
	width: 100%;
	min-height: 140px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	color: #1e293b;
	resize: vertical;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wishform-textarea::placeholder {
	color: #94a3b8;
}

.wishform-textarea:focus {
	outline: none;
	border-color: #DC2222;
	box-shadow: 0 0 0 3px rgba(220, 34, 34, 0.12);
}

.wishform-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-width: 200px;
	padding: 10px 22px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(180deg, #e11d48 0%, #DC2222 100%);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(220, 34, 34, 0.35);
	transition: filter 0.15s ease, transform 0.1s ease;
}

.wishform-submit:hover {
	filter: brightness(1.06);
}

.wishform-submit:active {
	transform: translateY(1px);
}

.wishform-submit.wishform-submit--success {
	background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
	box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
	cursor: default;
}

/* Модалка «Профиль» */
#user_mnu.user-mnu-shell {
	max-width: min(100vw - 24px, 400px) !important;
	width: 100%;
	padding: 0 !important;
	box-sizing: border-box;
	border-radius: 12px;
	/* не overflow:hidden — jquery-modal вешает .close-modal с отрицательным offset, его обрезало */
	overflow: visible;
	position: relative;
}

/* Крестик jquery-modal (0.9.x): по умолчанию top/right отрицательные — уводим внутрь */
#user_mnu.user-mnu-shell a.close-modal {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	z-index: 10060 !important;
}

/* Отдельная страница профиля (user_profile.php в корне, с шапкой shop2) */
.user-profile-page {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 40%);
	color: #0f172a;
	font-family: inherit;
}

.user-profile-page.shop2-page .user-profile-page__main--with-nav {
	flex: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 16px 160px;
	box-sizing: border-box;
}

.user-profile-page__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 50;
}

.user-profile-page__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #b91c1c;
	text-decoration: none;
}

.user-profile-page__back:hover {
	text-decoration: underline;
}

.user-profile-page__title {
	font-size: 15px;
	font-weight: 700;
	color: #334155;
}

.user-profile-page__main {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 16px 48px;
	box-sizing: border-box;
}

.user-profile-page .user-mnu-modal {
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.user-profile-page .user-mnu-schedule {
	max-height: none;
	overflow: visible;
}

.user-mnu-save-error {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
	line-height: 1.45;
}

/* Тост после сохранения профиля (user_profile.php) */
.fox-profile-toast {
	position: fixed;
	left: 50%;
	top: 20px;
	transform: translateX(-50%) translateY(-10px);
	z-index: 10080;
	margin: 0;
	padding: 12px 22px;
	border-radius: 10px;
	background: #15803d;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
.fox-profile-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.user-mnu-modal {
	position: relative;
	z-index: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 12px;
}

.user-mnu-modal__header {
	padding: 18px 44px 14px 20px;
	background: linear-gradient(135deg, #fef2f2 0%, #fff 55%);
	border-bottom: 1px solid #fecaca;
}

.user-mnu-modal__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.user-mnu-modal__login {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #b91c1c;
}

.user-mnu-modal__login i {
	font-size: 1.15rem;
	margin-right: 0 !important;
}

.user-mnu-modal__form {
	padding: 16px 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.user-mnu-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.user-mnu-field--muted {
	padding: 0 20px 12px;
	opacity: 0.92;
}

.user-mnu-field--block {
	gap: 6px;
}

.user-mnu-hint {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.35;
	color: #64748b;
}

.user-mnu-schedule {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 220px;
	overflow-y: auto;
	padding: 2px 0;
}

.user-mnu-schedule-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.user-mnu-schedule-day {
	min-width: 28px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.user-mnu-schedule-sep {
	color: #94a3b8;
	font-size: 13px;
}

.user-mnu-schedule-row--default {
	margin-bottom: 8px;
}

.user-mnu-schedule-day--wide {
	min-width: 72px;
}

.user-mnu-hint--tight {
	margin-top: 0;
	margin-bottom: 6px;
}

.user-mnu-wh-details {
	margin-top: 4px;
	padding: 8px 10px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.user-mnu-wh-details-summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	list-style: none;
}

.user-mnu-wh-details-summary::-webkit-details-marker {
	display: none;
}

.user-mnu-wh-details[open] .user-mnu-wh-details-summary {
	margin-bottom: 6px;
	color: #b91c1c;
}

.user-mnu-input--time {
	max-width: 118px;
	padding: 8px 10px;
	font-size: 13px;
}

.user-mnu-days-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.user-mnu-day-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	user-select: none;
}

.user-mnu-day-chip input {
	margin: 0;
	accent-color: #DC2222;
}

.user-mnu-label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.user-mnu-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	color: #1e293b;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-mnu-input:focus {
	outline: none;
	border-color: #DC2222;
	box-shadow: 0 0 0 3px rgba(220, 34, 34, 0.1);
}

.user-mnu-input--readonly {
	background: #f8fafc;
	color: #64748b;
	cursor: default;
}

.user-mnu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: filter 0.15s ease;
}

.user-mnu-btn--primary {
	margin-top: 4px;
	align-self: flex-start;
	color: #fff;
	background: #DC2222;
	box-shadow: 0 2px 6px rgba(220, 34, 34, 0.3);
}

.user-mnu-btn--primary:hover {
	filter: brightness(1.08);
}

.user-mnu-actions {
	padding: 8px 20px;
}

.user-mnu-actions--footer {
	padding: 12px 20px 18px;
	border-top: 1px solid #f1f5f9;
	background: #fafafa;
}

.user-mnu-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	color: #1e293b !important;
	transition: background 0.12s ease, color 0.12s ease;
}

.user-mnu-link i {
	margin-right: 0 !important;
	font-size: 1.1rem;
}

.user-mnu-link--accent {
	color: #b91c1c !important;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.user-mnu-link--accent:hover {
	background: #fee2e2;
}

.user-mnu-link--exit {
	color: #64748b !important;
}

.user-mnu-link--exit:hover {
	background: #f1f5f9;
	color: #0f172a !important;
}

.user-mnu-error {
	margin: 0;
	padding: 20px;
	font-size: 14px;
	color: #b91c1c;
}


/*Конец топовой линии*/


/*Контентная часть*/

#content {
	/* padding: 0 calc(50% - 590px); */
	padding: 0 5px;
	display: flex;
	justify-content: start;
	overflow: auto;
	overflow-x: hidden;
	font-size: 14px;
	height: inherit;

	
}

#content h2 {
    text-align: center;
}

 .my_orders_content {
    flex-direction: column;
}

/*Категории (левый сайдбар)*/
aside {
  /* width: max-content; */
 /*  min-width: max-content; */
  overflow: auto;
  -webkit-box-shadow: 9px -1px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 9px -1px 8px 0px rgba(34, 60, 80, 0.2);
   box-shadow: 9px -1px 8px 0px rgba(34, 60, 80, 0.2);
  overflow-x: hidden; 
}


.search_bl input {
    width: 100%;
    padding: 5px;
}


.undercat,.subsection {
  /* min-width: max-content; */
  width: 100%;
  list-style: none;
  padding: 0;
}

.undercat i, .subsection i {
    margin-right: 7px;
    
}

#catalog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 1px solid #E9E9E9;
    margin-right: 5px;
    width: 100%;
}
#catalog h4 {
 margin: 12px;
}
#catalog span {
    margin-right: 15px;
    display: block;
    font-size: 13px;
    border: 1px solid #DC2222;
    padding: 3px 7px;
    border-radius: 5px;
    color: #DC2222;
}

#catalog #add_category {
     color: #333;
     border: 1px solid #333;
     border-radius: 3px;
}

#catalog #new_category {
    margin-right: 10px;
    width: 130px;
}

#categories {
	border: 1px solid #E9E9E9;
	/* min-width: max-content; */
	padding: 4px 0;
	margin: 0;
	margin-right: 5px;
	overflow: auto;
	width: 100%;
	box-sizing: border-box;
}

/* Вложенные списки — лёгкий отступ и направляющая */
#categories ul {
	list-style: none;
	padding: 2px 0 4px 10px;
	margin: 0 0 0 6px;
	border-left: 1px solid rgba(0, 0, 0, 0.07);
}

#categories .category {
	list-style: none;
	border-bottom: 1px solid #E9E9E9;
	padding: 7px 10px;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	color: #1a202c;
	line-height: 1.35;
}

#categories li.undercat,
#categories li.subsection {
	padding: 5px 8px 5px 6px;
	cursor: pointer;
	border-radius: 4px;
	margin: 1px 4px 1px 0;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

#categories > ul > li.undercat {
	font-weight: 500;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.4;
}

#categories > ul > li.undercat + ul > li.subsection {
	font-weight: 400;
	font-size: 0.8125rem;
	color: #475569;
	line-height: 1.42;
}

/* Три уровня глифов: folder2 / folder± / chevron (переключение в load_goods.js) */
#categories i.cat-tree-ic {
	display: inline-block;
	vertical-align: -0.14em;
	line-height: 1;
	margin-right: 7px;
	transition: color 0.15s ease, transform 0.18s ease;
}

#categories i.cat-tree-ic--cat {
	font-size: 1.22rem;
	color: #1e4d8c;
	margin-right: 8px;
}

#categories i.cat-tree-ic--under {
	font-size: 1.06rem;
	color: #2563ab;
	opacity: 0.95;
}

#categories i.cat-tree-ic--sub {
	font-size: 0.88rem;
	color: #64748b;
	opacity: 0.92;
	min-width: 0.9em;
	text-align: center;
	position: relative;
	top: 0.06em;
}

#categories li:hover {
  background-color: #f5f5f7;
}

/* Ветка развёрнута (дочерний ul без .hide) */
#categories > li.category:has(+ ul:not(.hide)),
#categories ul > li.undercat:has(+ ul:not(.hide)) {
	background-color: rgba(25, 118, 210, 0.06);
	border-left: 3px solid rgba(25, 118, 210, 0.45);
	padding-left: 7px;
}

#categories ul > li.undercat:has(+ ul:not(.hide)) {
	border-left-color: rgba(25, 118, 210, 0.32);
}

/* Строка, по которой сейчас загружена таблица (класс из load_goods.js) */
#categories li.cat-tree-current {
	background-color: rgba(25, 118, 210, 0.11);
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(25, 118, 210, 0.2);
}

#categories li.cat-tree-current:hover {
	background-color: rgba(25, 118, 210, 0.14);
}

#categories li:active, #categories li:focus, #categories .active, #categories .active:hover {
	background-color: #DFDFE1;
	/* font-weight: bold; */
}

#categories li.cat-tree-current:active,
#categories li.cat-tree-current:focus {
	background-color: rgba(25, 118, 210, 0.16);
}

.price:after {
    content: ' р.';
}

#categories .category:last-child {
	border: none;
}


#categories .category .actcat {
    color: green;
}



.add_undercat {
    list-style: none;
}

/*Конец категорий*/



/*Список товаров*/


/*input[type="number"]:invalid+span:after {
	content: '✖';
	padding-left: 5px;
	color: red;
}
 
input[type="number"]:valid+span:after {
	content: '✓';
	padding-left: 5px;
	color: green;
}*/


input[type="number"] {
	-moz-appearance: textfield;
	-webkit-appearance: textfield;
	appearance: textfield;
}
 
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	display: none;
}




.goods {
/*     overflow: auto;
position: absolute;
top: 100px;
left: 261px; */
    overflow: auto;
}

#mainTable {
    overflow: auto;
    width: 100%;
}


table {

  width: 100%;
  border-collapse: collapse;

}

th,td {
  border: 1px solid #EDEBE9;
  padding: 0;
  text-align: center;
  font-size: 12px;;
}

tr:hover input, tr:hover select,  tr:hover td {
  background-color: #f5f5f7;
  /* font-weight: 600; */
}



table thead th {
 font-weight: 400 !important;
 color: #666A6D;
 padding: 5px 7px;
 /* position: sticky; */
 top: 0;
 background: #E7EAED;
}

table thead .unpadded {
    padding: 0;
}

th  {
    border: 1.1px solid #888;
}

table {
    border: 1px solid #888;
}




.add-to-cart-button {
    padding: 0;
}

.add-to-cart {
    width: 100% ;
    padding: 0;
    height: 28px;
    border: none;
    background: #f9f7fa;
    border-radius: 0;
}

.get-to-cart-block {
    padding: 0;
    min-width: 98px;
}

.shop-cart-row--no-price {
    text-align: center;
    vertical-align: middle;
    color: #94a3b8;
}
.shop-cart-row__dash {
    font-size: 18px;
}
.shop-table-price-ask-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.order-qty-input {
    border: none;
}

.number-plus,.number-minus {
    height: 28px;
    border: none;
    width: 30px;
   
}
.number-plus:hover,.add-to-cart:hover {
	background-color: #28A745;
	border-color: #28A745;
	border-radius: 3px;
	color: #fff;
}
.number-minus:hover {
	background-color: #007BFF;
	border-color: #007BFF;
	border-radius: 3px;
	color: #fff;
}

.del-good i {
	font-size: 20px;
}
.del-good i:hover {
	color: #DC2222;

	}
	
#baskettable,#oredertable {
    border: none;
    min-height: 150px;
}	

#baskettable table {
    width: 99.8%;
}


.tablebasket {
	background-color: #fff;
	margin: 0;		
	transition:  all 0.5s ease;
    -webkit-box-shadow: 0px -4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px -4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px -4px 8px 0px rgba(34, 60, 80, 0.2);
	display: none;
	overflow: auto;

}

.tablebasket2{
   width: 99%; 
   
}  



.scroll-table-body {	
	max-height: 200px;
	overflow-x: auto;
	margin-top: 0px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}

/*заказать всё*/
#add_cart  {
	background-color: #007BFF;
	color: #fff;
	padding: 0;
}

#add_cart a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 7px 10px;
}

#add_cart:hover {
	background-color: #0069D9;
}


.order-qty-input {
	text-align: center;
	max-width: 30px;
}

.good .title {
	text-align: left;
	padding-left: 10px;
}

/* jquery-modal: выше shell-fixed (сайдбар 12040…корзина 12180), шапка 12050, промо-поезд 13050 */
.blocker {
	z-index: 13300 !important;
	padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
	box-sizing: border-box;
	background-color: rgba(15, 23, 42, 0.52) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
	.blocker {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.blocker .modal {
	position: relative;
	z-index: 2;
}

/* jquery-modal: крестик закрытия — поверх шапок/градиентов/overflow внутри модалки */
.blocker .modal a.close-modal {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	z-index: 13320 !important;
}

/* Подтверждение заказа — тот же визуальный язык, что у #shop2-cart-dock .shop2-cart-panel */

#confirm-block.shop2-confirm-modal,
#confirm-defect.shop2-confirm-modal {
    max-width: min(520px, 94vw);
    width: 100%;
    padding: 0;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.18),
        0 -1px 0 rgba(255, 255, 255, 0.85) inset;
}

#confirm-block.shop2-confirm-modal a.close-modal,
#confirm-defect.shop2-confirm-modal a.close-modal {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 13320 !important;
}

#confirm-block.shop2-confirm-modal .shop2-confirm-modal__head,
#confirm-defect.shop2-confirm-modal .shop2-confirm-modal__head {
    padding-right: 40px;
}

#confirm-block.shop2-confirm-modal::before,
#confirm-defect.shop2-confirm-modal::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #DC2222 45%, #b91c1c 100%);
}

.shop2-confirm-modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(90deg, rgba(220, 34, 34, 0.07) 0%, rgba(255, 255, 255, 0.65) 42%, transparent 100%);
}

.shop2-confirm-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    color: #DC2222;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.shop2-confirm-modal__icon i {
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shop2-confirm-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.shop2-confirm-modal__body {
    padding: 12px 14px 4px;
    max-height: min(42vh, 320px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.shop2-confirm-list,
#defect-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop2-confirm-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.shop2-confirm-row:nth-child(even) {
    background: #f8fafc;
}

.shop2-confirm-row__name {
    font-weight: 600;
    text-align: left;
    min-width: 0;
    word-break: break-word;
}

.shop2-confirm-row__qty {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.shop2-confirm-row__sum {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .shop2-confirm-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .shop2-confirm-row__qty,
    .shop2-confirm-row__sum {
        text-align: left;
    }
}

/* Старый формат: li > ul > li (если где-то остался) */
#confirm-list > li > ul,
#defect-list > li > ul {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

#confirm-list > li > ul > li,
#defect-list > li > ul > li {
    border: none;
    padding: 0;
    width: auto !important;
}

.shop2-confirm-modal__footer {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.6);
}

.shop2-confirm-modal__tot {
    margin: 0 0 12px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

#confirm-block.shop2-confirm-modal .shop2-confirm-modal__btn,
#confirm-defect.shop2-confirm-modal .shop2-confirm-modal__btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #fff;
    background: #1d4ed8;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

#confirm-block.shop2-confirm-modal .shop2-confirm-modal__btn:hover,
#confirm-defect.shop2-confirm-modal .shop2-confirm-modal__btn:hover {
    background: #1e40af;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.45);
}

#confirm-block.shop2-confirm-modal .shop2-confirm-modal__btn:active,
#confirm-defect.shop2-confirm-modal .shop2-confirm-modal__btn:active {
    transform: translateY(1px);
}

#confirm-block.shop2-confirm-modal .shop2-confirm-modal__btn--success,
#confirm-defect.shop2-confirm-modal .shop2-confirm-modal__btn--success {
    background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.35);
}

#tot.shop2-confirm-modal__tot {
    text-align: center;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
}

.hide {
    display: none !important ;
}

#simpletext {
    position: absolute;
    top: 200px;
    left: 50%;
    margin-left: -400px;
}

#table_qty, .table_code , #table_n {
    min-width: max-content;
    max-width: max-content;
}

#table_qty {
    width: 99px;
}

#table_multiplisity {
    width: 90px;
}

.table_code {
    width: 27px;
}

#table_n {
      width: 56px;
}

#table_price {
    width: 75px;
}

/* Нижняя навигация — тот же визуальный язык, что и .header-topline / .topline-text-link */
#bottom_mnu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 10;
    min-height: 48px;
    padding: 6px 8px;
    box-sizing: border-box;
    background-color: #DC2222;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#bottom_mnu::-webkit-scrollbar {
    height: 4px;
}

#bottom_mnu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

#bottom_mnu label[for="course"] {
    line-height: normal !important;
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 600;
    margin: 0;
}

#bottom_mnu a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none !important;
    color: #fff !important;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#bottom_mnu a:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
}

#bottom_mnu a span {
    white-space: nowrap;
}

#bottom_mnu a i {
    margin-right: 0 !important;
    flex-shrink: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Чат: есть непрочитанные — заметный пульс у кнопки (аналог напоминания FAB корзины) */
@keyframes shop-bottom-chat-unread-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(254, 240, 138, 0.35),
            0 1px 4px rgba(0, 0, 0, 0.12);
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(250, 204, 21, 0.45),
            0 2px 16px rgba(250, 204, 21, 0.35);
        border-color: rgba(253, 224, 71, 0.85);
        background: rgba(255, 255, 255, 0.28);
    }
}

#bottom_mnu a#shop-chat-mnu-btn.shop-chat-mnu--unread {
    animation: shop-bottom-chat-unread-pulse 2s ease-in-out infinite;
}

#bottom_mnu a#shop-chat-mnu-btn.shop-chat-mnu--unread .bottom_chat {
    color: rgb(153, 255, 60) !important;
}

@media (prefers-reduced-motion: reduce) {
    #bottom_mnu a#shop-chat-mnu-btn.shop-chat-mnu--unread {
        animation: none;
        box-shadow: 0 0 0 3px rgba(254, 240, 138, 0.45);
        border-color: rgba(253, 224, 71, 0.75);
    }
}

/* Счётчик заказов: новых / сегодня (админ-меню) */
#bottom_mnu a.shop-bottom-nav-orders-link .shop-bottom-nav-orders-count {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 2px 7px 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
#bottom_mnu a.shop-bottom-nav-orders-link .shop-bottom-nav-orders-sep {
    margin: 0 3px;
    font-weight: 600;
    opacity: 0.75;
    font-size: 11px;
}
#bottom_mnu a.shop-bottom-nav-orders-link .shop-bottom-nav-orders-today {
    font-weight: 800;
    opacity: 0.95;
}
#bottom_mnu a.shop-bottom-nav-orders-link:hover .shop-bottom-nav-orders-count {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}
#bottom_mnu a.shop-bottom-nav-orders-link.act .shop-bottom-nav-orders-count {
    background: linear-gradient(180deg, #15803d 0%, #166534 100%);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
#bottom_mnu a.shop-bottom-nav-orders-link.act:hover .shop-bottom-nav-orders-count {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

#bottom_mnu .act {
    background: #fff;
    color: #b91c1c !important;
    border-color: rgba(255, 255, 255, 0.95);
}

#bottom_mnu .act:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b !important;
}

/* Блок баланса: иначе при узком viewport flex сжимает div, текст переносится — высота панели ~60px вместо одной строки с ссылками */
#bottom_mnu .shop-bottom-mnu-balance {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

#bottom_mnu .shop-bottom-mnu-balance span {
    font-weight: 700;
    margin: 0 2px;
}

/* Админка: курс валюты + компактные иконки */
#bottom_mnu .shop-bottom-nav-course-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#bottom_mnu .shop-bottom-nav-course-input {
    width: 64px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
}

#bottom_mnu .shop-bottom-nav-course-input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

#bottom_mnu .shop-bottom-nav-course-save {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

#bottom_mnu .shop-bottom-nav-course-save:hover {
    background: rgba(255, 255, 255, 0.35);
}

#bottom_mnu .shop-bottom-nav-exit {
    margin-left: auto;
}

#bottom_mnu .shop-bottom-nav-icon-btn {
    padding: 6px 8px;
    min-width: 36px;
    justify-content: center;
}

#bottom_mnu .shop-bottom-nav-icon-btn i {
    margin: 0;
}

#addPrForm {
  align-self: center;
  margin-top: 150px;
}

.or_table_active {
    background-color: #DFDFE1;
}

td>input {
    width: 100%;
    border: none;
    text-align: center;
}

td>input:focus {
    outline: none;
}


.save_btn {
    width: 50px;
}

#table_title {
    min-width: 600px;
}

#table_onsumm {
    min-width: 86px;
}

.availability input {
    text-align: center;
}

.active_border {
    border: 1.1px solid #AEAEAF;
}

.add_good {
    z-index: 200;
}

#add_tr th input {
    width: 100%;
}

.defect_th {
    position: relative;
}

.defect_btn {
    position: absolute;
    top: -1px;
    right: 0;
    background: #fff;
    padding: 5px 7px;
    border: 1px solid red;
    color: red !important;
    text-decoration: none;
    
}



#info_form {
    width: min(1200px, 96vw);
    max-width: min(1200px, 96vw) !important;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 20px 20px;
    box-sizing: border-box;
}
#info_form .img-wrapper {
    width: 80px;
    height: 80px;
    /* display: flex;
    flex-direction: column;
    flex-wrap: wrap; */
   /*  align-items: center; */
    position: relative;
    margin: 5px;
    
}

#gallery-x {
    display: flex;
    flex-wrap: wrap;
}

#info_form .img-wrapper .del_img {
    display: block;
    width: max-content;
    padding: 5px;
    /* margin-left: auto; */
    color: red;
    position: absolute;
    top: -13px;
    right: -4px;
    
}


.left_contnent {
    max-width: 50%;
}

.file_wrapper {
  width: 30px;
  height: 30px;
  text-align: center;
  border: 1px solid green;
  border-radius: 50%;
  position: relative;
}

.file_wrapper input {
  opacity: 0;
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1000;
}

.file_wrapper i {
    font-size: 20px;
    color: green;
}




 #info_form img {
    width: 100%;
    height: auto;
}

#info_form .file {
  
}
#info_form .bi-chevron-right {
    font-size: 9px;
}
#info_form .bi-plus-lg {
 

}

#info_form img {
    z-index: 4;
}

#modal_gallery img {
    width: 100%;
}

#info_form .crumbs {
    font-size: 12px;
}

#info_form .modal_content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    align-items: flex-start;
}
#info_form h3 {
    margin-bottom: 6px;
}
#info_form .right_content h4 {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

#info_form ul {
   list-style: none;
   padding: 0;
}

#info_form ul li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted;
    margin: 7px 0;
    font-size: 12px;
}

#info_form input {
    border: none;
    text-align: right;
    outline: none;
}

#info_form  a {
    color: #000 ;
}

#info_form .additional_content {
    display: block;
    width: 100%;
}

#info_form .additional_content .item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 5px;
    border-bottom: 1px dashed;
    
}

#info_form .additional_content .item input {
    text-align: left;
    width: 100%;
    min-width: 0;
}

#info_form .additional_content .item .add_field {
    order: 0; /* чтобы плюс был между двумя input, а не “уползал” визуально */
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #fff;
    color: #DC2222;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    user-select: none;
    flex: 0 0 26px;
}

#info_form .additional_content .item input:first-child {
    flex: 1 1 48%;
}

#info_form .additional_content .item input:last-child {
    flex: 1 1 48%;
    text-align: right;
}

@media (max-width: 1024px) {
    #info_form {
        width: min(96vw, 980px);
        max-width: min(96vw, 980px) !important;
    }
}

@media (max-width: 860px) {
    #info_form .modal_content {
        flex-direction: column;
    }
    .left_contnent {
        max-width: 100%;
    }
}

/* Витрина: модалка товара .goods-modal — не наследовать чёрные ссылки и обнуление input из админки */
#info_form .goods-modal a {
    color: #DC2222;
}
#info_form .goods-modal a:hover {
    color: #b01010;
    text-decoration: underline;
}
#info_form .goods-modal ul {
    font-family: inherit;
    list-style: none;
}
#info_form .goods-modal .shop2-card-qty .shop2-qty-input {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-top: none;
    border-bottom: none;
    text-align: center;
}

.favorite_toggle i {
    color: #C8C8C8;
    cursor: pointer;
}

.red {
   color: #DC2222 !important;
}

.ballance {
    width: 115px;
}




/* loader */
	.loader_wrapper {
			animation: animateBg 1s linear infinite;
			position: absolute;
    		width: 100px;
    		height: 100px;
    		top: 50%;
    		margin-top: -50px;
    		left: 50%;
    		margin-left: -50px;
    		}

	@keyframes animateBg 
	{
		0% 
		{
			filter: hue-rotate(0deg);
		}
		100%
		{
			filter: hue-rotate(360deg);
		}
	}	

	 .loader {
		position: absolute;
		width: 100px;
		height: 100px;
		top: 50%;
		margin-top: -50px;
		left: 50%;
		margin-left: -50px;
	}

	.loader span {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		transform: rotate(calc(18deg * var(--i)));
	}

	.loader span::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: #00ff0a;
		box-shadow: 0 0 10px #00ff0a,
					0 0 20px #00ff0a,
					0 0 40px #00ff0a,
					0 0 60px #00ff0a,
					0 0 80px #00ff0a,
					0 0 100px #00ff0a;
		animation: animate 2s linear infinite;
        animation-delay: calc(0.1s * var(--i));
	}

	@keyframes animate
	{
		0%
		{
			transform: scale(1);
		}
		80%,100% 
		{
			transform: scale(0);
		}
	}
	
	
	@media (max-width: 600px) {
	    
	    * {
	        font-size: 12px !important;
	    }
	    body {
	        justify-content: start;
	    }
	    #bottom_mnu {
	        display: none;
	    }
	    
	    thead {
	        /* display: none; */
	    }
	    #th_summ {
	        display: none;
	    }
	    
	    #th_sended {
	        display: none;
	    }
	    
	    #stat_col {
	        display: none;
	    }
	    
	    #orr_stat {
	        display: none !important;
	    }
	    
	    #orr_date {
	        display: none;
	    }
	    
	    #sended_goods {
	        display: none !important;
	    }
	}
	
	
	.questionnar {
	    display: flex;
	    margin: 0;
	    padding: 0;
	    width: max-content;
	}
	
	.questionnar:hover {
	    background-color: #E0E3E7;
	}
	
	.questionnar li {
	    border: 1px solid #333;
	}
	
	.questionar_head {
	    background-color: #EEF2F6;
	}
	
#que_mod {
    max-width: 1134px;
}	


/* Модалка «Предложения»: ширина, скролл при нескольких позициях; отступ справа под крестик */
#suggest_list.modal {
    position: relative;
    max-width: min(640px, 95vw);
    width: 100%;
    max-height: min(78vh, 560px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 44px 16px 16px;
    box-sizing: border-box;
    border-radius: 12px;
    margin: 0 auto;
}

#suggest_list p {
    margin: 0 0 0.4rem 0;
    line-height: 1.45;
}

#suggest_list .suggest_item {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    padding: 12px 0 14px;
}

#suggest_list .suggest_item:first-of-type {
    padding-top: 4px;
}

#suggest_list .suggest_order_line {
    font-size: 13px;
    color: #475569;
    margin-bottom: 0.5rem;
}

#suggest_list .suggest_goods_row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

#suggest_list .suggest_goods_thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9eef5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#suggest_list .suggest_goods_thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#suggest_list .suggest_goods_thumb__ph {
    font-size: 10px;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}

#suggest_list .suggest_goods_row__main {
    flex: 1;
    min-width: 0;
}

#suggest_list .suggest_goods_row__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 3px;
}

#suggest_list .suggest_goods_row__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    word-wrap: break-word;
}

/* Кнопки в модалке предложений — как .neg-admin-btn в adm/index.php (торг в заказе) */
#suggest_list .suggest_item button[type="button"],
#suggest_list .suggest_item button#conf_suggest,
#suggest_list .suggest_item button#conf_price_change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    margin-top: 0.65rem;
    margin-right: 0.5rem;
    margin-bottom: 0.15rem;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

#suggest_list .suggest_item button[type="button"]:hover,
#suggest_list .suggest_item button#conf_suggest:hover,
#suggest_list .suggest_item button#conf_price_change:hover {
    filter: brightness(1.06);
}

#suggest_list .suggest_item button[type="button"]:active,
#suggest_list .suggest_item button#conf_suggest:active,
#suggest_list .suggest_item button#conf_price_change:active {
    transform: scale(0.98);
}

/* «Понятно» — нейтрально, как отказ (прайс) */
#suggest_list .suggest_item .neg-buyer-ack {
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
}

/* «Принять цену» — как «Принять торг» */
#suggest_list .suggest_item .neg-buyer-accept-counter {
    border: none;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

/* «Отказаться…» — как «Отказать (прайс)» */
#suggest_list .suggest_item .neg-buyer-reject-counter {
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
}

/* Подтверждения по количеству/цене — как «Предложить свою цену» */
#suggest_list .suggest_item #conf_suggest,
#suggest_list .suggest_item #conf_price_change {
    border: none;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

#print {
    background: transparent;
    width: max-content;
    margin: 0 auto;
    color: #000;
}

#print i {
    font-size: 20px;
    
}

/* На экране — без min-width 210mm (он шире печатной области A4 с полями и режет справа в PDF). */
#print_content {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
    font-size: 14px;
    background: #ffffff !important;
}

/* Превью в модалке: компактная «полоса» как A4 по центру; печать задаётся ниже в @media print */
@media screen {
    #print_content.modal,
    #print_content {
        max-width: 210mm;
        width: min(210mm, calc(100vw - 32px));
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 12px 14px;
        box-sizing: border-box;
    }
    #print_content .fox-print-1c {
        max-width: 100%;
        margin: 0 auto;
    }
}

#print_content th, #print_content td {
    font-size: 12px;
    padding: 3px;
    border: 1px solid #000;
    color: #000;
}

#print_content th {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

#print_content p {
    font-size: 13px;
    margin: 4px 0;
    color: #000;
}

#print_content ul {
    margin: 0;
    padding: 0;
}

#print_content ul li {
    margin: 5px 0;
    color: #000;
}



@media print {
    th,td,tr {
      border: 1px solid #000;  
      color: #000 !important;
      padding: 3px;
    }
    #print_content {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    #print_content th {
      background: #ffffff !important;
      background-image: none !important;
    }
    #print_content th, #print_content td {
    font-size: 12px;
    padding: 3px;
    border: 1px solid #000;
    color: #000;
}

 ul {
    margin: 0 !important;
    padding: 0 !important;
}

 .wrap {
    width: 85mm;
    border-bottom: 1px dashed #000;
    display: flex;
    align-items: center;
}

 .wrap>input {
    border: none !important; 
 }
 
  #additional_info {
    margin-top: 10px;
    border: none !important; 
 }
 
 .wrap>label {
     
 }

}

#add_direction {
    transform: rotate(90deg);
    background: none;
    border: none;
    font-size: 20px;
}

.st_1 {
    color: orange;
}


/* Кнопка загрузки ещё товаров */
.btn-load-more {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-load-more:hover {
    background-color: #0069D9;
}

.btn-load-more:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


/* Анимация загрузки */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.searching {
    background-color: #fff8e1 !important;
    transition: background-color 0.3s;
}

.search-highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

.search-results-info {
    background: #e3f2fd;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    position: relative;
    font-size: 14px;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.btn-retry {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    margin-top: 10px;
    cursor: pointer;
}

/* ============================================
   СТИЛИ ДЛЯ ПОИСКА С ПЛАВАЮЩИМИ УВЕДОМЛЕНИЯМИ
   ============================================ */

/* ---------- ПЛАВАЮЩИЕ СООБЩЕНИЯ ---------- */

.floating-message {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    min-width: 280px;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
    border-left: 4px solid;
    font-family: 'Open Sans', sans-serif;
}

/* Типы сообщений */
.floating-message-info {
    background: rgba(209, 236, 241, 0.95);
    border-left-color: #17a2b8;
    color: #0c5460;
}

.floating-message-warning {
    background: rgba(255, 243, 205, 0.95);
    border-left-color: #ffc107;
    color: #856404;
}

.floating-message-error {
    background: rgba(248, 215, 218, 0.95);
    border-left-color: #dc3545;
    color: #721c24;
}

.floating-message-success {
    background: rgba(212, 237, 218, 0.95);
    border-left-color: #28a745;
    color: #155724;
}

.floating-message i {
    font-size: 20px;
    flex-shrink: 0;
}

.floating-message .message-text {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.floating-message .close-message {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    color: inherit;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.floating-message .close-message:hover {
    opacity: 1;
}

/* ---------- СЧЕТЧИК РЕЗУЛЬТАТОВ ---------- */

.results-floating-counter {
    position: fixed;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    animation: slideInRight 0.3s ease-out;
    font-family: 'Open Sans', sans-serif;
}

.results-floating-counter i {
    font-size: 16px;
}

.results-floating-counter strong {
    color: #ffc107;
    font-weight: 700;
}

.results-floating-counter .search-query {
    color: #aaa;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.clear-search-btn i {
    font-size: 11px;
}

/* ---------- ИНДИКАТОР ЗАГРУЗКИ ---------- */

.floating-loading {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.2s ease-out;
    font-family: 'Open Sans', sans-serif;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ---------- СТАТУС ПОЛЯ ПОИСКА ---------- */

.search_bl {
    position: relative;
}

.search {
    transition: all 0.2s;
}

.search.typing {
    background-color: #fff8e1 !important;
    border-color: #ffc107 !important;
}

.search.searching-field {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

/* Опционально: кнопка очистки внутри поля поиска */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
    display: none;
}

.search-clear-btn:hover {
    color: #dc3545;
}

.search:not(:placeholder-shown) ~ .search-clear-btn {
    display: block;
}

/* ---------- ЗАГЛУШКИ В ТАБЛИЦЕ ---------- */

.no-results-row td,
.error-row td,
.min-chars-row td {
    background-color: #fafafa;
}

.no-results-row i,
.error-row i,
.min-chars-row i {
    opacity: 0.7;
}

.retry-search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-search-btn:hover {
    background: #0056b3;
    transform: scale(1.02);
}

.retry-search-btn i {
    font-size: 14px;
    margin: 0 !important;
    display: inline !important;
}

/* ---------- АНИМАЦИИ ---------- */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ---------- АДАПТИВ ДЛЯ МОБИЛЬНЫХ ---------- */

@media (max-width: 768px) {
    .floating-message {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
    }
    
    .results-floating-counter {
        top: auto !important;
        bottom: 20px;
        right: 20px;
        left: 20px;
        border-radius: 30px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .results-floating-counter .search-query {
        max-width: 150px;
    }
    
    .floating-loading {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .clear-search-btn {
        padding: 3px 10px;
    }
}

/* ---------- ДЛЯ ЭКРАНОВ 480px ---------- */

@media (max-width: 480px) {
    .results-floating-counter {
        font-size: 11px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .results-floating-counter .search-query {
        display: none;
    }
    
    .floating-message {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .floating-message i {
        font-size: 18px;
    }
}

/* ---------- DARK MODE (опционально) ---------- */

@media (prefers-color-scheme: dark) {
    .no-results-row td,
    .error-row td,
    .min-chars-row td {
        background-color: #2a2a2a;
        color: #ddd;
    }
    
    .retry-search-btn {
        background: #0d6efd;
    }
    
    .retry-search-btn:hover {
        background: #0b5ed7;
    }
}


#loadMoreBtn {
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: #0056b3 !important;
    transform: scale(1.02);
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* shop.php: правая колонка, выезжающий фильтр, шапка «Цена» */
.shop-php-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shop-php-table-panel {
    min-width: 0;
    width: 100%;
}

.shop-php-table-wrap {
    flex: 1;
    min-width: 0;
    overflow: auto;
}

/* shop.php (таблица) и shop2-shell-fixed: фикс. шапка/низ, общие отступы */
body.shop-php-qty-pill,
body.shop2-shell-fixed {
    --shop-top-chrome: 50px;
    --shop-bottom-chrome: 64px;
    --shop-lf-col: min(300px, 38vw);
    padding-top: var(--shop-top-chrome);
    padding-bottom: var(--shop-bottom-chrome);
}

body.shop-php-qty-pill .header-topline,
body.shop2-shell-fixed .header-topline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12050;
    margin-bottom: 0;
}

body.shop-php-qty-pill #bottom_mnu,
body.shop2-shell-fixed #bottom_mnu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 12050;
}

body.shop-php-qty-pill #content {
    flex: 1;
    min-height: 0;
}

body.shop2-shell-fixed .shop2-main {
    flex: 1;
    min-height: 0;
}

body.shop2-shell-fixed .shop2-main--nav-toggle {
    padding-top: 0;
}

/* Витрина shop2: левый каталог между красными полосами + отступ контента (как shop-lf) */
body.shop2-shell-fixed .shop2-hub-drawer-backdrop {
    display: none !important;
    pointer-events: none !important;
}

/* .shop2-hub-layout в цепочке — выше специфичность, чем @media shop2.css для :not(--drawer) */
body.shop2-shell-fixed .shop2-hub-layout .shop2-hub-sidebar {
    position: fixed;
    top: var(--shop-top-chrome);
    left: 0;
    width: var(--shop-lf-col);
    max-width: var(--shop-lf-col);
    flex-shrink: 0;
    max-height: none !important;
    height: calc(100vh - var(--shop-top-chrome) - var(--shop-bottom-chrome));
    min-height: calc(100vh - var(--shop-top-chrome) - var(--shop-bottom-chrome));
    bottom: auto;
    box-sizing: border-box;
    border-radius: 0;
    z-index: 12040;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: none;
    border-right: 1px solid #e2e8f0;
    align-self: stretch;
}

body.shop2-shell-fixed .shop2-hub-layout .shop2-hub-sidebar .shop-lf-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.shop2-shell-fixed .shop2-hub-layout .shop2-hub-sidebar .shop2-hub-catnav {
    flex: none;
    min-height: 0;
    overflow: visible;
}

.shop2-hub-sidebar .shop-lf-drawer__head .shop2-hub-lf-head-title {
    flex: 1;
    min-width: 0;
}

.shop2-hub-sidebar .shop2-hub-lf-head-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.shop2-hub-sidebar .shop2-hub-lf-head-link:hover .shop2-hub-lf-head-heading,
.shop2-hub-sidebar .shop2-hub-lf-head-link:focus .shop2-hub-lf-head-heading {
    color: #dc2222;
}

.shop2-hub-sidebar .shop-lf-drawer__head .shop2-hub-lf-head-heading {
    margin: 12px;
    font-size: 1rem;
    font-weight: 700;
}

body.shop2-shell-fixed.shop2-hub-lf-collapsed .shop2-hub-layout .shop2-hub-sidebar {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

/* Витрина: узкая FAB «Каталог» как shop-lf-fab (видна только когда колонка свёрнута) */
body.shop2-shell-fixed .shop-lf-fab#shop2-sidebar-toggle {
    position: fixed;
    left: 0;
    top: calc(
        var(--shop-top-chrome) + (100vh - var(--shop-top-chrome) - var(--shop-bottom-chrome)) * 0.38
    );
    z-index: 12060;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s, visibility 0.2s;
}

body.shop2-shell-fixed.shop2-hub-lf-collapsed .shop-lf-fab#shop2-sidebar-toggle {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Drawer-режим (search / products): та же кнопка, всегда видна, выше панели */
body:not(.shop2-shell-fixed) .shop-lf-fab#shop2-sidebar-toggle {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 260;
}

body.shop2-shell-fixed:not(.shop2-hub-lf-collapsed) .shop2-hub-shift {
    margin-left: var(--shop-lf-col);
    transition: margin-left 0.28s ease;
}

body.shop2-shell-fixed.shop2-hub-lf-collapsed .shop2-hub-shift {
    margin-left: 0;
    transition: margin-left 0.28s ease;
}

body.shop2-rf-open {
    overflow: hidden;
}

body.shop2-shell-fixed .shop-rf-fab#shop2-rf-fab {
    top: calc(
        var(--shop-top-chrome) + (100vh - var(--shop-top-chrome) - var(--shop-bottom-chrome)) * 0.38
    );
}

#content.shop-php-with-sidebar {
    align-items: flex-start;
    min-height: 0;
    overflow-x: hidden;
}

body.shop-php-qty-pill:not(.shop-lf-collapsed) #content.shop-php-with-sidebar .shop-php-right {
    margin-left: var(--shop-lf-col);
    transition: margin-left 0.28s ease;
}

body.shop-php-qty-pill.shop-lf-collapsed #content.shop-php-with-sidebar .shop-php-right {
    margin-left: 0;
    transition: margin-left 0.28s ease;
}

/* position:fixed — не участвует во flex-раскладке #content; ширину колонки даёт margin у .shop-php-right */
.shop-lf-drawer {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border: none;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    z-index: 12040;
    transition: transform 0.28s ease, opacity 0.2s ease, box-shadow 0.28s ease;
}

body.shop-php-qty-pill .shop-lf-drawer {
    position: fixed;
    top: var(--shop-top-chrome);
    bottom: var(--shop-bottom-chrome);
    left: 0;
    width: var(--shop-lf-col);
    max-height: none;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

body.shop-php-qty-pill.shop-lf-collapsed .shop-lf-drawer {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.shop-lf-fab {
    position: fixed;
    left: 0;
    top: 38%;
    z-index: 10028;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    padding: 10px 6px 10px 4px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #fff;
    color: #dc2222;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s, visibility 0.2s;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.shop-lf-collapsed .shop-lf-fab {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.shop-php-qty-pill .shop-lf-fab {
    top: calc(
        var(--shop-top-chrome) + (100vh - var(--shop-top-chrome) - var(--shop-bottom-chrome)) * 0.38
    );
}

.shop-lf-fab:hover {
    background: #dc2222;
    color: #fff;
}

.shop-lf-fab i {
    font-size: 1.15rem;
}

.shop-lf-fab__txt {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.04em;
}

.shop-lf-drawer__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 0 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

.shop-lf-drawer__head #catalog {
    flex: 1;
    min-width: 0;
    margin-right: 0;
    border-right: none;
}

.shop-lf-drawer__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #64748b;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
}

.shop-lf-drawer__close:hover {
    background: #f1f5f9;
    color: #dc2222;
}

.shop-lf-drawer__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.shop-lf-drawer__body #categories {
    margin-right: 0;
    border-right: none;
}

@media (max-width: 520px) {
    body.shop-php-qty-pill,
    body.shop2-shell-fixed {
        --shop-lf-col: min(280px, 44vw);
    }

    .shop-lf-fab .shop-lf-fab__txt {
        font-size: 11px;
    }

    .shop-lf-fab {
        min-width: 40px;
        padding: 8px 5px 8px 3px;
    }

    body:not(.shop2-shell-fixed) .shop-lf-fab#shop2-sidebar-toggle {
        top: 52px;
    }
}

/* Кнопка у правого края — открыть фильтры */
.shop-rf-fab {
    position: fixed;
    right: 0;
    top: 38%;
    z-index: 10028;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 40px;
    padding: 10px 6px 10px 8px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #fff;
    color: #dc2222;
    font-size: 12px;
    font-weight: 700;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.shop-rf-fab:hover {
    background: #dc2222;
    color: #fff;
}

.shop-rf-fab i {
    font-size: 1.15rem;
}

.shop-rf-fab__txt {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.04em;
}

/* Затемнение */
.shop-rf-backdrop {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10026;
    background: rgba(15, 23, 42, 0.45);
}

.shop-rf-backdrop:not(.hide) {
    display: block;
}

body.shop-rf-open {
    overflow: hidden;
}

/* Панель шторка справа */
.shop-rf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw, 360px);
    max-width: 100%;
    height: 100%;
    z-index: 10030;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.shop-rf-drawer.is-open {
    transform: translate3d(0, 0, 0);
}

.shop-rf-drawer__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

.shop-rf-drawer__title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.shop-rf-drawer__close {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.shop-rf-drawer__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.shop-rf-drawer__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px 0;
}

/* Контент фильтров */
.shop-rf {
    padding: 14px 16px 0;
    box-sizing: border-box;
}

.shop-rf-hint {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    margin: 0 0 12px 0;
}

.shop-rf-form-wrap {
    min-width: 0;
}

.shop-rf-sec {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

.shop-rf-sec__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    border: none;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.shop-rf-sec__head:hover {
    background: #fafafa;
}

.shop-rf-sec__chev {
    color: #dc2222;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.shop-rf-sec.is-collapsed .shop-rf-sec__chev {
    transform: rotate(-90deg);
}

.shop-rf-sec.is-collapsed .shop-rf-sec__body {
    display: none;
}

.shop-rf-sec__body {
    padding: 0 12px 12px 12px;
}

.shop-rf-props-mount {
    margin-bottom: 8px;
}

.shop-rf-prop-chk-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Длинный список брендов кондиционеров в шторке shop2 / shop.php */
.shop-rf-prop-chk-list--ac-brand-scroll {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}

.shop-rf-prop-chk {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.shop-rf-prop-chk input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Два range в одном ряду (overlay); заливка на треке (#dc2222) */
.shop-rf-dual {
    position: relative;
    height: 40px;
    margin: 4px 0 14px;
    padding: 0 2px;
}

/* Ширина как у .shop-rf-dual__inputs, иначе заливка и центры range расходятся (была щель 4px) */
.shop-rf-dual__track {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shop-rf-dual__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #dc2222;
    border-radius: 4px;
    pointer-events: none;
    box-sizing: border-box;
}

.shop-rf-dual__inputs {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 2;
}

.shop-rf-range {
    position: absolute;
    left: 0;
    width: 100%;
    height: 32px;
    margin: 0;
    top: 50%;
    margin-top: -26px;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    pointer-events: none;
}

.shop-rf-range--min {
    z-index: 2;
}
.shop-rf-range--max {
    z-index: 1;
}

.shop-rf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2222;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.shop-rf-range::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2222;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.shop-rf-range::-webkit-slider-runnable-track {
    height: 0;
    background: transparent;
}
.shop-rf-range::-moz-range-track {
    background: transparent;
    border: none;
}

/* Ряд 0 — ₽ — max — как на референсе */
.shop-rf-nums {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 4px;
}

.shop-rf-nums__inp {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

.shop-rf-nums__inp:focus {
    border-color: #dc2222;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 34, 34, 0.2);
}

.shop-rf-nums__rub {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    flex: 0 0 auto;
}

.shop-rf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.shop-rf-actions {
    position: sticky;
    bottom: 0;
    padding: 10px 0 4px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 18%);
    margin-top: 8px;
}

.shop-rf-btn {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: #dc2222;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 34, 34, 0.35);
    transition: filter 0.2s, transform 0.1s;
}

.shop-rf-btn:hover {
    filter: brightness(1.05);
}

.shop-rf-btn:active {
    transform: scale(0.99);
}

.shop-rf-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
}

.shop-rf-future {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin: 16px 0 0 0;
    padding: 10px 8px;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

@media (max-width: 500px) {
    .shop-rf-fab__txt {
        display: none;
    }
    .shop-rf-fab {
        padding: 8px 4px 8px 6px;
    }
}

/* Клик по «Цена» (где sort по цене) */
#table_price.shop-th-col-price--on {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#table_price.shop-th-col-price--on .shop-th-price-lbl,
#table_price.shop-th-col-price--on .goods-th-sort-hint {
    pointer-events: none;
}

#table_price .shop-th-price-lbl {
    margin-right: 2px;
}

#table_price .resize-handle {
    pointer-events: auto;
    cursor: e-resize;
}

/* shop.php: лендинг «Акции» до выбора категории */
body.shop-php-qty-pill #simpletext.shop-php-landing {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    margin-left: 0;
    padding: 12px 16px 24px;
    max-width: 100%;
    box-sizing: border-box;
}

.shop-php-promo {
    background: linear-gradient(165deg, #fffdfb 0%, #fff5f4 42%, #f8fafc 100%);
    border: 1px solid rgba(220, 34, 34, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.shop-php-promo__ribbon {
    background: linear-gradient(90deg, #dc2222 0%, #b91c1c 50%, #991b1b 100%);
    padding: 8px 16px;
    text-align: center;
}

.shop-php-promo__ribbon-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.shop-php-promo__head {
    padding: 20px 20px 8px;
}

.shop-php-promo__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b45309;
}

.shop-php-promo__title {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.shop-php-promo__lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    max-width: 52rem;
}

.shop-php-promo-popcats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px 16px;
    box-sizing: border-box;
}

.shop-php-promo-popcat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(220, 34, 34, 0.14);
    background: linear-gradient(145deg, #fff 0%, #fff8f7 100%);
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.shop-php-promo-popcat:hover {
    border-color: rgba(220, 34, 34, 0.35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    color: #0f172a;
}

.shop-php-promo-popcat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ef4444 0%, #dc2222 100%);
    color: #fff;
    font-size: 18px;
    margin-bottom: 2px;
}

.shop-php-promo-popcat__ttl {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.shop-php-promo-popcat__hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 720px) {
    .shop-php-promo-popcats {
        grid-template-columns: 1fr;
        padding: 0 16px 14px;
    }
}

.shop-php-promo__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.shop-php-promo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-php-promo__cta--primary {
    background: linear-gradient(180deg, #ef4444 0%, #dc2222 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(220, 34, 34, 0.35);
}

.shop-php-promo__cta--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 34, 34, 0.45);
}

.shop-php-promo__cta-note {
    font-size: 13px;
    color: #64748b;
    max-width: 280px;
    line-height: 1.4;
}

.shop-php-promo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 12px 16px 20px;
}

.shop-php-promo-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-php-promo-card:hover {
    border-color: rgba(220, 34, 34, 0.25);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.shop-php-promo-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: #dc2222;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shop-php-promo-card__media {
    aspect-ratio: 1;
    min-height: 160px;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-php-promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.shop-php-promo-card__ph {
    color: #cbd5e1;
    font-size: 2rem;
}

.shop-php-promo-card__body {
    padding: 10px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-php-promo-card__code {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.shop-php-promo-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    flex: 1;
}

.shop-php-promo-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.shop-php-promo-card__old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.shop-php-promo-card__new {
    font-size: 16px;
    font-weight: 800;
    color: #dc2222;
}

.shop-php-promo-card__scarcity {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
}

.shop-php-promo-qty-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-top: 8px;
    gap: 0;
    border: 1px solid #edebe9;
    border-radius: 3px;
    overflow: hidden;
    background: #f9f7fa;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
}

/* Как .number-plus / .number-minus в таблице товаров */
.shop-php-promo-qty-plus,
.shop-php-promo-qty-minus {
    flex: 0 0 30px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    width: 30px;
    background: #f9f7fa;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-php-promo-qty-plus:hover {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 3px;
    color: #fff;
}

.shop-php-promo-qty-minus:hover {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 3px;
    color: #fff;
}

.shop-php-promo-qty-input {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 28px;
    margin: 0;
    border: none;
    border-left: 1px solid #edebe9;
    border-right: 1px solid #edebe9;
    padding: 0 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.shop-php-promo-qty-input::-webkit-outer-spin-button,
.shop-php-promo-qty-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.shop-php-promo__empty {
    margin: 0;
    padding: 24px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.shop-php-promo__foot {
    margin: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.65);
}

.shop-php-promo__foot p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.shop-php-promo__foot strong {
    color: #334155;
}

@media (max-width: 520px) {
    .shop-php-promo__cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-php-promo__cta-note {
        max-width: none;
    }
}

/* Популярное: дерево админки — подсветка строки (без звезды) */
#categories li.cat-tree-item--popular {
    font-weight: 600;
    color: #c44d2b;
    background: #fff5ee;
    border-radius: 4px;
    padding: 2px 4px;
    margin: 1px 0;
}
#categories li.cat-tree-item--popular .cat-tree-ic {
    color: #c44d2b;
}
.adm-popular-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0 6px 0 2px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    box-sizing: border-box;
}
.adm-popular-toggle:hover {
    border-color: #c44d2b;
    background: #fff5ee;
}
.adm-popular-toggle--on {
    border-color: #c44d2b;
    background: #fff5ee;
    box-shadow: inset 0 0 0 1px rgba(196, 77, 43, 0.35);
}
.adm-rail-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px 0 0;
    padding: 2px 6px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 4px;
    color: #64748b;
    position: relative;
}
.adm-rail-upload:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}
.adm-rail-upload__ic {
    display: inline-flex;
    line-height: 1;
    font-size: 14px;
    pointer-events: none;
}
.adm-rail-upload__input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

/* Стили уведомлений user_broadcast — см. css/user_broadcast.css (подключается из get_topline.php). */
