:root {
	--shop-ink: #203b32;
	--shop-green: #173b32;
	--shop-line: #dce6df;
	--shop-paper: #f3f6f2;
	--shop-lime: #d8ef70;
}

body {
	margin: 0;
	background: var(--shop-paper) !important;
	color: var(--shop-ink);
	font-family: Arial, "Segoe UI", sans-serif;
}

.shop-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--shop-green);
	box-shadow: 0 3px 14px rgba(20, 45, 36, .16);
}

.shop-header-inner {
	width: min(1320px, calc(100% - 40px));
	min-height: 72px;
	margin: auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.shop-brand { flex: 0 0 auto; display: flex; align-items: center; }
.shop-brand img { width: 104px; height: auto; }
.shop-menu { flex: 1 1 auto; min-width: 0; }
.shop-menu .navbar-nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin: 0; gap: 8px; }
.shop-menu .nav-link { padding: 9px 10px !important; border-radius: 6px; color: #e8eee9 !important; font-size: 14px; white-space: nowrap; }
.shop-menu .nav-link:hover,
.shop-menu .nav-link:focus { background: rgba(255,255,255,.11); color: var(--shop-lime) !important; }
.shop-menu .shop-menu__account { color: #e8eee9 !important; }
.shop-search { flex: 0 1 280px; min-width: 180px; margin-left: auto; display: flex; align-items: center; gap: 7px; }
.shop-search input { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 8px 12px; background: #fff; color: var(--shop-ink); }
.shop-search #btn-reset { flex: 0 0 auto; margin: 0; border: 0; border-radius: 6px; padding: 4px 10px; background: #a84739; color: #fff; font-size: 21px; line-height: 1.3; cursor: pointer; }
.shop-search #btn-reset:focus-visible { outline: 2px solid var(--shop-lime); outline-offset: 2px; }
body #cookies_info_box { border: 0; box-shadow: 0 -4px 20px rgba(20,45,36,.14); }

.tooltipster-sidetip.tooltipster-vapor .tooltipster-box {
	position: relative;
	overflow: visible;
	border: 1px solid #dce9d8;
	border-radius: 22px 24px 20px 22px;
	background: #fbfdf8;
	box-shadow: 0 10px 28px rgba(28, 58, 44, .2);
}
.tooltipster-sidetip.tooltipster-vapor .tooltipster-box::before {
	position: absolute;
	top: -9px;
	right: 24px;
	width: 34px;
	height: 18px;
	border: 1px solid #dce9d8;
	border-bottom: 0;
	border-radius: 22px 22px 0 0;
	background: #fbfdf8;
	box-shadow: -13px 5px 0 -5px #fbfdf8, 13px 4px 0 -4px #fbfdf8;
	content: "";
}
.tooltipster-sidetip.tooltipster-vapor .tooltipster-content {
	position: relative;
	padding: 13px 16px;
	border-radius: inherit;
	color: #29483a;
	font-size: 13px;
	line-height: 1.45;
}
.tooltipster-sidetip.tooltipster-vapor .tooltipster-content p { margin: 0; }
.tooltipster-sidetip.tooltipster-vapor .tooltipster-content strong { color: #203b32; }
.tooltipster-sidetip.tooltipster-vapor .tooltipster-content a { color: #547d35; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tooltipster-sidetip.tooltipster-vapor .tooltipster-arrow-background { border: 10px solid transparent; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-bottom .tooltipster-arrow-background { border-bottom-color: #fbfdf8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-top .tooltipster-arrow-background { border-top-color: #fbfdf8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-left .tooltipster-arrow-background { border-left-color: #fbfdf8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-right .tooltipster-arrow-background { border-right-color: #fbfdf8; }
.tooltipster-sidetip.tooltipster-vapor .tooltipster-arrow-border { border: 10px solid transparent; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-bottom .tooltipster-arrow-border { border-bottom-color: #dce9d8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-top .tooltipster-arrow-border { border-top-color: #dce9d8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-left .tooltipster-arrow-border { border-left-color: #dce9d8; }
.tooltipster-sidetip.tooltipster-vapor.tooltipster-right .tooltipster-arrow-border { border-right-color: #dce9d8; }

#cookies_info_box.cookie-notice {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999;
	border: 0;
	border-top: 3px solid var(--shop-lime);
	background: var(--shop-green);
	box-shadow: 0 -8px 28px rgba(20,45,36,.2);
	color: #f2f6f2;
}
.cookie-notice__inner {
	width: min(1260px, calc(100% - 40px));
	min-height: 54px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
}
.cookie-notice__copy { min-width: 0; }
.cookie-notice__copy p {
	max-width: 980px;
	margin: 0;
	color: #e0e9e3;
	font-size: 12px;
	line-height: 1.4;
}
.cookie-notice__copy a {
	margin-left: 5px;
	color: var(--shop-lime);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cookie-notice__copy a:hover { color: #fff; }
.cookie-notice__copy a:focus-visible,
.cookie-notice__form button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.cookie-notice__form { flex: 0 0 auto; margin: 0; }
.cookie-notice__form button {
	min-width: 90px;
	min-height: 34px;
	padding: 6px 12px;
	border: 0;
	border-radius: 7px;
	background: var(--shop-lime);
	color: var(--shop-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.cookie-notice__form button:hover { background: #e5f69f; }

@media (max-width: 680px) {
	.cookie-notice__inner {
		width: calc(100% - 24px);
		gap: 10px;
		padding: 7px 0;
	}
	.cookie-notice__form button { min-width: 76px; }
}
@media (max-width: 420px) {
	.cookie-notice__inner { width: calc(100% - 20px); gap: 8px; }
	.cookie-notice__form button { min-width: 68px; padding-right: 8px; padding-left: 8px; }
}

.catalog-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 70px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.catalog-heading h1 { margin: 0; color: var(--shop-ink); font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; }
.catalog-heading p { margin: 7px 0 0; color: #6b7d74; font-size: 15px; }
.catalog-live { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #587064; font-size: 13px; white-space: nowrap; }
.catalog-live span { width: 8px; height: 8px; border-radius: 50%; background: #4b9a60; box-shadow: 0 0 0 4px #e0eee2; }
.catalog-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; gap: 20px; }
.catalog-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding: 14px 10px 14px 12px; border: 1px solid var(--shop-line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(27,55,44,.04); scrollbar-width: thin; scrollbar-color: #b2c1b7 transparent; }
.catalog-sidebar h2 { margin: 0 8px 10px; color: var(--shop-ink); font-size: 16px; font-weight: 700; }
.catalog-category-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: #b2c1b7 transparent; }
.catalog-sidebar::-webkit-scrollbar,
.catalog-category-list::-webkit-scrollbar { width: 5px; height: 5px; }
.catalog-sidebar::-webkit-scrollbar-track,
.catalog-category-list::-webkit-scrollbar-track { background: transparent; }
.catalog-sidebar::-webkit-scrollbar-thumb,
.catalog-category-list::-webkit-scrollbar-thumb { border-radius: 5px; background: #b2c1b7; }
.catalog-sidebar::-webkit-scrollbar-thumb:hover,
.catalog-category-list::-webkit-scrollbar-thumb:hover { background: #7f9788; }
.catalog-category-list li { min-width: 0; }
.catalog-category-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 9px 6px calc(9px + 13px * var(--category-depth, 0)); border: 0; border-radius: 6px; background: transparent; color: #52675c; font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; }
.catalog-category-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-category-count { flex: 0 0 auto; color: #89988e; font-size: 11px; font-variant-numeric: tabular-nums; }
.catalog-category-filter:hover { background: #f2f6f1; color: var(--shop-green); }
.catalog-category-filter.is-active { background: #edf5e8; color: var(--shop-green); font-weight: 700; }
.catalog-category-filter.is-active .catalog-category-count { color: #47634f; }
.catalog-category-filter:focus-visible { outline: 2px solid #7da851; outline-offset: 1px; }
.stock-tooltip-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	margin: 8px auto 0;
	padding: 7px 11px;
	border-radius: 999px;
	background: #eef5e8;
	color: #244a39 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.stock-tooltip-phone:hover,
.stock-tooltip-phone:focus { background: #e2efd5; color: #173b32 !important; text-decoration: none; }
.stock-tooltip-phone .fa-phone { color: #648b40; font-size: 13px; }
.catalog-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 64px;
	margin: 0 auto;
	color: #7d9185;
}
.catalog-product-preview {
	border-radius: 8px;
}
.catalog-product-preview-image {
	border-radius: inherit;
}
.catalog-age-overlay {
	max-width: calc(100% - 12px);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}
.stock-branch-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stock-branch-button.btn { margin: 0; padding: 4px 8px; border-color: #d4ded7; border-radius: 4px; background: #fff; font-size: 11px; line-height: 1.25; white-space: nowrap; }
.stock-branch-name-short,
.stock-branch-value-short { display: none; }
.stock-branch-button.btn:hover,
.stock-branch-button.btn:focus { border-color: #b8c9bc; background: #f2f6f1; }
.catalog-results { min-width: 0; }
.catalog-table-wrap { overflow: hidden; border: 1px solid var(--shop-line); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px rgba(27,55,44,.05); }
.catalog-load-status { margin: 14px 0; color: #718078; font-size: 12px; text-align: center; }
#vapeTable { width: 100% !important; margin: 0 !important; border-collapse: collapse !important; }
#vapeTable thead th { padding: 14px 12px; border: 0 !important; border-bottom: 1px solid var(--shop-line) !important; background: #f6f9f6; color: #667970; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
#vapeTable tbody td { padding: 12px; border: 0 !important; border-bottom: 1px solid #e8eeea !important; color: #294238; vertical-align: middle; }
#vapeTable tbody tr:last-child td { border-bottom: 0 !important; }
#vapeTable tbody tr:hover { background: #f8fbf7; }
#vapeTable tbody td:nth-child(4) { min-width: 250px; white-space: normal; font-weight: 600; line-height: 1.4; }
#vapeTable tbody td:nth-child(5) { color: var(--shop-green); font-size: 17px; font-weight: 700; }
#vapeTable tbody td:nth-child(6) { color: #5c7166; font-size: 12px; line-height: 1.65; }
.catalog-old-price { display: block; color: #87948d; font-size: 12px; font-weight: 400; text-decoration: line-through; }
.catalog-current-price { color: var(--shop-green); white-space: nowrap; }
.catalog-discount { display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: 4px; background: #f9e6df; color: #a84739; font-size: 11px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.catalog-note { margin: 12px 2px 0; color: #7a8982; font-size: 12px; }
.catalog-table-wrap .dataTables_wrapper { padding: 0; }
.catalog-table-wrap .dataTables_info,
.catalog-table-wrap .dataTables_paginate { padding: 12px 14px !important; color: #728279 !important; }
.catalog-table-wrap .dataTables_paginate .paginate_button { border-radius: 6px !important; }
.catalog-table-wrap .dataTables_paginate .paginate_button.current { border: 1px solid #d4e3d5 !important; background: #edf5e8 !important; color: var(--shop-green) !important; }
.catalog-table-wrap .dataTables_length { padding: 12px 14px; color: #728279; }
.catalog-table-wrap .dataTables_length select { margin: 0 5px; padding: 5px 22px 5px 7px; border: 1px solid #d5dfd8; border-radius: 6px; background: #fff; }

@media (max-width: 1050px) {
	.shop-header-inner { flex-wrap: wrap; gap: 8px 18px; padding: 10px 0; }
	.shop-menu { order: 3; flex-basis: 100%; }
	.shop-menu .navbar-nav { justify-content: flex-start; }
	.shop-search { margin-left: auto; }
}

@media (max-width: 900px) {
	.catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.catalog-sidebar { position: static; max-height: none; overflow: hidden; padding: 12px; }
	.catalog-sidebar h2 { margin: 0 2px 8px; }
	.catalog-category-list { display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 5px; }
	.catalog-category-list li { flex: 0 0 auto; }
	.catalog-category-filter { width: auto; max-width: 260px; padding: 8px 11px; white-space: nowrap; }
}

@media (max-width: 760px) {
	.catalog-shell { width: calc(100% - 24px); padding: 22px 0 48px; }
	.catalog-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 15px; }
	.catalog-heading p { font-size: 14px; }
	.catalog-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
	#vapeTable, #vapeTable tbody { display: block; width: 100% !important; }
	#vapeTable thead { display: none; }
	#vapeTable tbody tr { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "photo name price" "photo code price" "stock stock stock"; gap: 3px 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--shop-line); border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(27,55,44,.035); }
	#vapeTable tbody tr.catalog-empty-row { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	#vapeTable tbody tr:hover { background: #fff; }
	#vapeTable tbody td { display: block; min-width: 0; padding: 0; border: 0 !important; white-space: normal; }
	#vapeTable tbody tr.catalog-empty-row td.dataTables_empty { display: block; width: 100%; box-sizing: border-box; padding: 16px 4px; font-size: clamp(10px, 3vw, 13px); text-align: center; white-space: nowrap; }
	#vapeTable tbody td:nth-child(1) { grid-area: photo; display: flex; align-items: center; justify-content: center; overflow: hidden; }
	#vapeTable tbody td:nth-child(1) > div { width: 58px !important; max-width: 100%; box-sizing: border-box; }
	#vapeTable tbody td:nth-child(1) img { display: block; width: auto; max-width: 100%; height: auto !important; max-height: 64px; margin: 0 auto; object-fit: contain; }
	#vapeTable tbody td:nth-child(2) { grid-area: code; color: #7a8982; font-size: 12px; }
	#vapeTable tbody td:nth-child(2)::before { content: "Код "; }
	#vapeTable tbody td:nth-child(3) { display: none; }
	#vapeTable tbody td:nth-child(4) { grid-area: name; min-width: 0; align-self: end; font-size: 14px; }
	#vapeTable tbody td:nth-child(5) { grid-area: price; align-self: center; justify-self: end; font-size: 16px; text-align: right; }
	#vapeTable tbody td:nth-child(6) { grid-area: stock; padding-top: 8px; margin-top: 5px; border-top: 1px solid #edf1ee !important; font-size: 11px; }
	#vapeTable tbody td:nth-child(6)::before { content: "Наличие"; display: block; margin-bottom: 4px; color: #7a8982; font-size: 10px; font-weight: 700; text-transform: uppercase; }
	#vapeTable tbody td:nth-child(6) .stock-branch-list { flex-direction: row; flex-wrap: nowrap; gap: 2px; width: 100%; overflow: hidden; padding: 1px 0 5px; }
	#vapeTable tbody td:nth-child(6) .stock-branch-button { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 40px; padding: 3px 1px; overflow: hidden; font-size: 9px; text-align: center; white-space: normal; }
	#vapeTable tbody td:nth-child(6) .stock-branch-name-short,
	#vapeTable tbody td:nth-child(6) .stock-branch-value-short { display: none; }
	#vapeTable tbody td:nth-child(6) .stock-branch-name-full,
	#vapeTable tbody td:nth-child(6) .stock-branch-value-full { display: inline; }
	#vapeTable tbody td:nth-child(6) .stock-branch-name-full { font-size: 7.5px; line-height: 1; overflow-wrap: anywhere; }
	#vapeTable tbody td:nth-child(6) .stock-branch-separator { display: none; }
	#vapeTable tbody td:nth-child(6) .stock-branch-value-full { max-width: 100%; font-size: 9px; line-height: 1.05; overflow-wrap: anywhere; }
	.catalog-table-wrap .dataTables_info,
	.catalog-table-wrap .dataTables_paginate { text-align: center !important; }
	.shop-header-inner { width: calc(100% - 24px); gap: 8px 12px; }
	.shop-brand { flex: 0 0 100%; justify-content: center; }
	.shop-brand img { width: 86px; }
	.shop-search { order: 3; flex-basis: 100%; margin-left: 0; }
	.shop-menu { order: 4; overflow-x: auto; }
	.shop-menu .navbar-nav { flex-wrap: nowrap; justify-content: flex-start; width: max-content; }
	.shop-menu .nav-link { padding: 7px 9px !important; font-size: 13px; }
}
