/* ==========================================================================
   TOR DS — дизайн-система витрины tor-industries-rus.ru
   Подключается последним, поверх Unishop2. Заменяет custom-redesign.css.
   Пока сайт в режиме превью, файл грузится только при html.ds (?ds=1).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
	/* Бренд */
	--tor-navy: #065982;          /* фирменный синий: ссылки, hover действий */
	--tor-navy-deep: #054a6c;
	--tor-cyan: #10abcd;          /* фирменный бирюзовый: акценты на тёмном, фокус */
	--tor-action: #077d9b;        /* бирюзовый для кнопок с белым текстом (4.76:1) */
	--tor-action-hover: #065982;
	--tor-ink: #072b3e;           /* верхняя полоса, подвал */
	--tor-ink-2: #0b3a52;

	/* Поверхности */
	--tor-floor: #f2f5f7;         /* фон страницы */
	--tor-cell: #ffffff;          /* ячейки/карточки */
	--tor-well: #eef2f5;          /* поля ввода, сегменты */
	--tor-line: #e1e7ec;
	--tor-line-strong: #c9d3db;

	/* Текст */
	--tor-text: #14232d;
	--tor-text-2: #3c4d59;
	--tor-muted: #5b6b77;         /* 5.0:1 на полу */

	/* Состояния наличия */
	--tor-ok: #1d7a45;     --tor-ok-bg: #e6f4ec;
	--tor-low: #9a4a0c;    --tor-low-bg: #fdf0e2;
	--tor-none: #5f6b74;   --tor-none-bg: #eef1f4;
	--tor-danger: #c0362c;

	/* Форма */
	--tor-r-sm: 6px;
	--tor-r: 10px;
	--tor-r-lg: 14px;
	--tor-shadow-1: 0 1px 2px rgba(7 43 62 / .06);
	--tor-shadow-2: 0 6px 20px -6px rgba(7 43 62 / .18);
	--tor-shadow-pop: 0 16px 40px -12px rgba(7 43 62 / .28);
	--tor-ring: 0 0 0 3px rgba(16 171 205 / .35);
	--tor-ease: cubic-bezier(.2, .8, .2, 1);

	/* Типографика */
	--tor-font: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
	--tor-fs-xs: 12px;
	--tor-fs-sm: 13px;
	--tor-fs: 14px;
	--tor-fs-md: 16px;
	--tor-fs-lg: 20px;
	--tor-fs-xl: 28px;
	--tor-control-h: 44px;
	--tor-control-h-sm: 38px;

	/* Перенастройка переменных Unishop2 — перекрашивает тему целиком */
	--body-font: var(--tor-font);
	--body-c: var(--tor-text);
	--body-bg: var(--tor-floor);
	--heading-c: var(--tor-text);
	--h1-c: var(--tor-text); --h2-c: var(--tor-text); --h3-c: var(--tor-text); --h4-c: var(--tor-text); --h5-c: var(--tor-text);
	--a-c: var(--tor-navy);
	--a-c-hover: var(--tor-action);
	--border-radius-1: var(--tor-r-sm);

	--btn-default-c: var(--tor-text);
	--btn-default-bg: var(--tor-well);
	--btn-default-c-hover: var(--tor-text);
	--btn-default-bg-hover: #e3e9ee;
	--btn-primary-c: #fff;
	--btn-primary-bg: var(--tor-action);
	--btn-primary-c-hover: #fff;
	--btn-primary-bg-hover: var(--tor-action-hover);
	--input-checked-bg: var(--tor-action);

	--top-menu-bg: var(--tor-ink);
	--top-menu-btn-c: rgba(255 255 255 / .86);
	--top-menu-btn-c-hover: #fff;
	--header-bg: var(--tor-cell);
	--header-search-input-c: var(--tor-text);
	--header-search-input-bg: var(--tor-well);
	--header-phones-m-c: var(--tor-text);
	--header-phones-m-c-hover: var(--tor-navy);
	--header-icon-c: var(--tor-text);
	--header-icon-total-c: #fff;
	--header-icon-total-bg: var(--tor-action);

	--menu-main-header-bg: var(--tor-action);
	--menu-main-header-c: #fff;
	--menu-main-c: var(--tor-text);
	--menu-main-level-1-c: var(--tor-text);
	--menu-main-level-1-c-hover: var(--tor-navy);
	--menu-main-level-2-c: var(--tor-text);
	--menu-main-level-2-c-hover: var(--tor-navy);
	--menu-main-level-3-c: var(--tor-muted);
	--menu-main-level-3-c-hover: var(--tor-navy);
	--menu-main-before: var(--tor-action);

	--prod-thumb-name: var(--tor-text);
	--prod-thumb-name-hover: var(--tor-navy);
	--price-c: var(--tor-text);
	--price-old-c: var(--tor-muted);
	--price-new-c: var(--tor-danger);
	--rating-star-c-active: #f2b01e;

	--add-to-cart-btn-c: #fff;
	--add-to-cart-btn-bg: var(--tor-action);
	--add-to-cart-btn-c-hover: #fff;
	--add-to-cart-btn-bg-hover: var(--tor-action-hover);
	--add-to-cart-btn-c-incart: #fff;
	--add-to-cart-btn-bg-incart: var(--tor-ok);
	--add-to-cart-btn-bg-qty0: var(--tor-none);
	--add-to-cart-btn-bg-disabled: var(--tor-none);
	--quick-order-btn-c: var(--tor-navy);
	--quick-order-btn-bg: var(--tor-well);
	--quick-order-btn-c-hover: #fff;
	--quick-order-btn-bg-hover: var(--tor-navy);
	--wishlist-btn-c: var(--tor-muted);
	--wishlist-btn-bg: var(--tor-well);
	--wishlist-btn-c-hover: #fff;
	--wishlist-btn-bg-hover: var(--tor-navy);
	--compare-btn-c: var(--tor-muted);
	--compare-btn-bg: var(--tor-well);
	--compare-btn-c-hover: #fff;
	--compare-btn-bg-hover: var(--tor-navy);

	--nav-tabs-bg: var(--tor-well);
	--nav-tabs-c: var(--tor-text-2);
	--nav-tabs-c-active: var(--tor-text);
	--carousel-nav-btn-c: var(--tor-text);
	--carousel-nav-btn-bg: #fff;
	--carousel-dot-bg: var(--tor-line-strong);
	--carousel-dot-bg-active: var(--tor-action);
	--swiper-pagination-bg: var(--tor-line-strong);
	--swiper-pagination-bg-active: var(--tor-action);
	--pagination-c: var(--tor-text);
	--pagination-bg: var(--tor-cell);
	--pagination-c-active: #fff;
	--pagination-bg-active: var(--tor-action);

	--qty-indicator-5: var(--tor-ok);
	--qty-indicator-4: var(--tor-ok);
	--qty-indicator-3: var(--tor-ok);
	--qty-indicator-2: #d9822b;
	--qty-indicator-1: #d9822b;
	--qty-indicator-0: var(--tor-none);

	--product-banner-bg: var(--tor-cell);
	--product-banner-icon: var(--tor-action);
	--product-banner-text: var(--tor-text);
	--home-banner-bg: var(--tor-cell);
	--home-banner-icon-c: var(--tor-action);
	--home-banner-text-c: var(--tor-text);

	--footer-c: rgba(255 255 255 / .78);
	--footer-bg: var(--tor-ink);
	--footer-heading-c: #fff;

	--fly-menu-bg: var(--tor-cell);
	--fly-menu-icon-c: var(--tor-text);
	--fly-menu-icon-total-bg: var(--tor-action);
	--fly-wishlist-c: var(--tor-text);
	--fly-wishlist-bg: #fff;
	--fly-compare-c: var(--tor-text);
	--fly-compare-bg: #fff;
	--fly-contacts-btn-c: #fff;
	--fly-contacts-btn-bg: var(--tor-action);
	--fly-contacts-item-c: var(--tor-navy);
	--fly-contacts-item-bg: var(--tor-well);
	--fly-callback-bg: var(--tor-action);

	--notification-body-bg: var(--tor-cell);
	--notification-text-c: var(--tor-text-2);
	--alert-success-bg: var(--tor-ok);
	--alert-danger-bg: var(--tor-danger);
	--tooltip-bg: var(--tor-ink);
	--preloader-border-c: var(--tor-action) var(--tor-action) var(--tor-action) transparent;
	--sticker-new-b: var(--tor-ok);
	--sticker-special-b: var(--tor-danger);
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
html.ds body {
	font-family: var(--tor-font);
	font-size: var(--tor-fs);
	line-height: 1.5;
	color: var(--tor-text);
	background: var(--tor-floor);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
html.ds body, html.ds button, html.ds input, html.ds select, html.ds textarea { font-family: var(--tor-font); }

html.ds ::selection { background: rgba(16 171 205 / .22); color: var(--tor-ink); }
html.ds { accent-color: var(--tor-action); caret-color: var(--tor-action); scrollbar-color: var(--tor-line-strong) transparent; }

html.ds a { color: var(--tor-navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
html.ds a:hover { color: var(--tor-action); }

html.ds :focus-visible {
	outline: 2px solid var(--tor-cyan);
	outline-offset: 2px;
	border-radius: var(--tor-r-sm);
}
html.ds .btn:focus, html.ds .btn:active:focus { outline: none; }
html.ds .btn:focus-visible { box-shadow: var(--tor-ring); }

html.ds h1, html.ds .h1 {
	font-size: var(--tor-fs-xl);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	text-wrap: balance;
	margin: 4px 0 24px;
}
html.ds h2, html.ds .heading, html.ds h3 {
	font-weight: 700;
	letter-spacing: -.01em;
	text-wrap: balance;
}
html.ds .heading { font-size: var(--tor-fs-lg); margin: 8px 0 16px; }

html.ds .price, html.ds .product-thumb__model, html.ds .qty-switch__input,
html.ds .uni-badge, html.ds .header-phones__main { font-variant-numeric: tabular-nums; }

/* Контейнер: чуть шире на больших экранах, ровные поля на мобиле */
@media (min-width: 1400px) { html.ds .container { width: 1320px; } }

/* Кнопки */
html.ds .btn {
	height: var(--tor-control-h-sm);
	padding: 0 16px;
	font-weight: 600;
	border-radius: var(--tor-r-sm);
	transition: background-color .18s var(--tor-ease), color .18s var(--tor-ease), box-shadow .18s var(--tor-ease), transform .12s var(--tor-ease);
}
html.ds .btn:active { transform: translateY(1px); }
html.ds .btn-lg, html.ds .btn-xl { height: var(--tor-control-h); padding: 0 22px; font-size: 15px; }
html.ds .btn-default { color: var(--tor-text); background: var(--tor-well); border: 1px solid transparent; }
html.ds .btn-default:hover { background: #e3e9ee; }

/* Поля */
html.ds .form-control {
	height: var(--tor-control-h-sm);
	border: 1px solid var(--tor-line-strong);
	border-radius: var(--tor-r-sm);
	box-shadow: none;
	color: var(--tor-text);
	transition: border-color .15s, box-shadow .15s;
}
html.ds textarea.form-control { height: auto; }
html.ds .form-control:focus { border-color: var(--tor-action); box-shadow: var(--tor-ring); }
html.ds .form-control::placeholder { color: #5b6b77; }

/* Общая «ячейка» — все карточки Unishop */
html.ds .uni-item {
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
	box-shadow: none;
	transition: border-color .2s var(--tor-ease), box-shadow .25s var(--tor-ease);
}
html.ds .uni-wrapper {
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r-lg);
	box-shadow: none;
}

/* Бейджи-счётчики */
html.ds .uni-badge,
html.ds .header-cart__total-items, html.ds .header-wishlist__total-items, html.ds .header-compare__total-items,
html.ds .fly-block__total {
	min-width: 18px; height: 18px; padding: 0 5px;
	font-size: 11px; font-weight: 700; line-height: 18px;
	color: #fff; background: var(--tor-action);
	border-radius: 9px; box-shadow: 0 0 0 2px #fff;
}

/* Хлебные крошки */
html.ds .breadcrumb {
	margin: 18px 0 10px;
	padding: 0;
	background: none;
	font-size: var(--tor-fs-sm);
	color: var(--tor-muted);
}
html.ds .breadcrumb > li + li:before { content: '/'; padding: 0 8px; color: var(--tor-line-strong); }
html.ds .breadcrumb a { color: var(--tor-muted); text-decoration: none; }
html.ds .breadcrumb a:hover { color: var(--tor-navy); text-decoration: underline; }
html.ds .breadcrumb .fa-home { font-size: 13px; }

/* --------------------------------------------------------------------------
   3. Шапка
   -------------------------------------------------------------------------- */
html.ds header { background: var(--tor-cell); box-shadow: 0 1px 0 var(--tor-line); }
html.ds header.fixed { box-shadow: 0 1px 0 var(--tor-line), var(--tor-shadow-2); }

/* Верхняя полоса */
html.ds .top-menu { background: var(--tor-ink); }
html.ds .top-menu .container { height: 36px; }
html.ds .top-links__a {
	font-size: var(--tor-fs-sm);
	font-weight: 500;
	color: rgba(255 255 255 / .82) !important;
	padding: 0 14px 0 0;
	transition: color .15s;
}
html.ds .top-links__a:hover { color: #fff !important; }
html.ds .top-menu__btn { font-size: var(--tor-fs-sm); font-weight: 500; background: transparent; }
html.ds .top-menu__btn:hover { background: rgba(255 255 255 / .08); }
html.ds .prmn-cmngr a, html.ds .prmn-cmngr__city { font-size: var(--tor-fs-sm) !important; font-weight: 500; color: rgba(255 255 255 / .86) !important; }
html.ds .prmn-cmngr__city:hover { color: #fff !important; }

/* Подтверждение города — компактный поповер, не вылезает за экран */
html.ds .prmn-cmngr__confirm {
	padding: 16px 18px;
	color: var(--tor-text);
	font-size: var(--tor-fs);
	font-weight: 500;
	background: #fff;
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
	box-shadow: var(--tor-shadow-pop);
	max-width: calc(100vw - 24px);
}
html.ds .prmn-cmngr__confirm-btns { display: flex; gap: 8px; margin-top: 12px; }
html.ds .prmn-cmngr__confirm-btn.btn { height: 36px; min-width: 64px; margin: 0; }

/* Основной ряд */
html.ds .header-block { align-items: center; gap: 0; padding: 18px 0; }
html.ds header.fixed .header-block { padding: 10px 0; }
html.ds .header-logo { max-width: 200px; }
html.ds .header-logo__img { max-height: 56px; width: auto; }

html.ds .header-block__item-menu { padding: 0 12px 0 20px; }
html.ds .header-menu__btn.btn {
	display: inline-flex; align-items: center; gap: 10px;
	height: var(--tor-control-h);
	padding: 0 20px 0 16px;
	font-size: 15px; font-weight: 600; letter-spacing: 0;
	text-transform: none;
	color: #fff; background: var(--tor-action);
	border-radius: var(--tor-r-sm);
	box-shadow: none;
}
html.ds .header-menu__btn.btn:hover, html.ds .header-menu__btn.btn.open { background: var(--tor-action-hover); color: #fff; }
html.ds .header-menu__btn span { margin: 0; }
html.ds .header-menu__icon { font-size: 15px; }

html.ds .header-block__item-search { padding: 0 24px 0 0; }
html.ds .header-search__form { border: 1px solid transparent; border-radius: var(--tor-r-sm); background: var(--tor-well); transition: border-color .15s, box-shadow .15s, background .15s; }
html.ds .header-search__form:focus-within { background: #fff; border-color: var(--tor-action); box-shadow: var(--tor-ring); }
html.ds .header-search__input.form-control {
	height: var(--tor-control-h);
	padding: 0 52px 0 16px;
	font-size: 15px;
	color: var(--tor-text) !important;
	background: transparent;
	border: none;
	box-shadow: none;
}
html.ds .header-search__input::placeholder { color: #5b6b77 !important; opacity: 1; }
html.ds .header-search__btn {
	right: 4px; width: 36px; height: 36px;
	color: #fff; background: var(--tor-action);
	border-radius: var(--tor-r-sm) !important;
}
html.ds .header-search__btn:hover { color: #fff; background: var(--tor-action-hover); }
html.ds .header-search .search-btn-clear { top: 12px; right: 50px; }

html.ds .header-block__item-telephone { padding: 0 20px 0 0; }
html.ds .header-phones__main { font-size: 16px; font-weight: 600; letter-spacing: -.005em; color: var(--tor-text); }
html.ds .header-phones__main i, html.ds .header-phones__main-img-i { color: var(--tor-action); }
html.ds .header-phones__main.two-line + .header-phones__main.two-line { font-size: 13px; font-weight: 500; color: var(--tor-muted); }
html.ds .header-phones__show-phone { color: var(--tor-muted); }

html.ds .header-cart__icon, html.ds .header-wishlist__icon, html.ds .header-compare__icon, html.ds .header-account__icon { color: var(--tor-text); font-size: 26px; }
html.ds .header-cart__btn:hover .header-cart__icon { color: var(--tor-navy); }
html.ds .header-block__item-caption { font-size: var(--tor-fs-xs); color: var(--tor-muted); }

/* Выпадающие меню */
html.ds .dropdown-menu {
	padding: 6px;
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
	box-shadow: var(--tor-shadow-pop);
}
html.ds .dropdown-menu > li > a { padding: 8px 12px; border-radius: var(--tor-r-sm); }
html.ds .dropdown-menu > li > a:hover { background: var(--tor-well); color: var(--tor-text); }

/* Мега-меню каталога */
html.ds header .menu1.new .menu__collapse,
html.ds .menu__level-2 { border-radius: 0 0 var(--tor-r) var(--tor-r); }
html.ds .menu__level-1-a { font-weight: 500; }
html.ds .menu__level-2-a { font-weight: 600; }

/* --------------------------------------------------------------------------
   4. Модули главной: баннеры, стена категорий, вкладки
   -------------------------------------------------------------------------- */
html.ds .uni-banner__item, html.ds .uni-banner__img, html.ds .uni-banner__a { border-radius: var(--tor-r-lg); overflow: hidden; }
html.ds .uni-banner__a { display: block; transition: transform .35s var(--tor-ease), box-shadow .35s var(--tor-ease); }
html.ds .uni-banner__a:hover { transform: translateY(-2px); box-shadow: var(--tor-shadow-2); }
html.ds .uni-banner__a img { border-radius: var(--tor-r-lg); }

/* Стена категорий (главная) */
html.ds .category-wall__item.type2 {
	padding: 18px;
	min-height: 0;
	align-items: flex-start;
}
html.ds .category-wall__item:hover { border-color: var(--tor-line-strong); box-shadow: var(--tor-shadow-2); }
html.ds .category-wall__image.type2 { flex: 0 0 112px; max-width: 112px; padding: 4px; background: #fff; }
html.ds .category-wall__image img { mix-blend-mode: multiply; }
html.ds .category-wall__ul.type2 { max-width: none; flex: 1 1 auto; padding: 0 0 26px 16px; }
html.ds .category-wall__title { margin: 0 0 10px; font-size: 15px; line-height: 1.3; font-weight: 700; }
html.ds .category-wall__title a { color: var(--tor-text); }
html.ds .category-wall__title a:hover { color: var(--tor-navy); }
html.ds .category-wall__li { margin: 0 0 4px; font-size: var(--tor-fs-sm); }
html.ds .category-wall__li a { color: var(--tor-text-2); }
html.ds .category-wall__li a:hover { color: var(--tor-navy); }
html.ds .category-wall__more { left: 146px; bottom: 16px; font-size: var(--tor-fs-sm); font-weight: 600; color: var(--tor-action); text-decoration: none; }

html.ds .category-wall__more:hover { color: var(--tor-navy); }

/* Вкладки — сегментированный переключатель */
html.ds .nav-tabs {
	display: inline-flex;
	max-width: 100%;
	gap: 4px;
	padding: 4px;
	margin: 0 0 20px;
	background: var(--tor-well);
	border: none;
	border-radius: var(--tor-r);
}
html.ds .nav-tabs li { height: 38px; padding: 0; border-radius: var(--tor-r-sm); transition: background .18s var(--tor-ease), box-shadow .18s var(--tor-ease); }
html.ds .nav-tabs li a { padding: 0 16px; font-size: var(--tor-fs); font-weight: 600; color: var(--tor-text-2); border: none !important; background: none !important; }
html.ds .nav-tabs li a:after { display: none; }
html.ds .nav-tabs li:hover a { color: var(--tor-text); }
html.ds .nav-tabs li.active { background: #fff; box-shadow: var(--tor-shadow-1), 0 0 0 1px var(--tor-line); }
html.ds .nav-tabs li.active a { color: var(--tor-text); }
html.ds .nav-tabs li a .uni-badge, html.ds .nav-tabs li a sup { margin-left: 6px; color: var(--tor-muted); background: none; box-shadow: none; }

/* Стрелки и точки каруселей */
html.ds .owl-nav button, html.ds .owl-nav .owl-prev, html.ds .owl-nav .owl-next {
	width: 40px !important; height: 40px !important;
	color: var(--tor-text) !important;
	background: #fff !important;
	border: 1px solid var(--tor-line) !important;
	border-radius: 50% !important;
	box-shadow: var(--tor-shadow-2) !important;
}
html.ds .owl-dots .owl-dot span { width: 18px; height: 4px; border-radius: 2px; }

/* SEO/HTML-модуль на главной */
html.ds .html-module {
	padding: 28px 32px;
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r-lg);
	color: var(--tor-text-2);
	line-height: 1.65;
}
html.ds .html-module h1, html.ds .html-module h2, html.ds .html-module h3 { color: var(--tor-text); font-size: 22px; line-height: 1.3; margin: 0 0 14px; max-width: 46ch; }
html.ds .html-module p { max-width: 80ch; }
/* десктоп: заголовок слева, текст справа — карточка заполнена, строки остаются читаемой длины */
@media (min-width: 992px) {
	html.ds .html-module { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; padding: 40px 48px; align-items: start; }
	html.ds .html-module > h1, html.ds .html-module > h2, html.ds .html-module > h3 { grid-column: 1; grid-row: 1 / span 20; font-size: 26px; line-height: 1.28; margin: 0; max-width: none; padding-top: 18px; position: relative; }
	html.ds .html-module > h1::before, html.ds .html-module > h2::before, html.ds .html-module > h3::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--tor-cyan); }
	html.ds .html-module > :not(h1):not(h2):not(h3) { grid-column: 2; max-width: none; margin: 0 0 12px; }
	html.ds .html-module > :last-child { margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   5. Карточка товара в листинге
   -------------------------------------------------------------------------- */
html.ds .product-thumb { padding: 14px 14px 16px; margin: 0 0 20px; }
html.ds .product-thumb:hover { border-color: var(--tor-line-strong); box-shadow: var(--tor-shadow-2); }
html.ds .product-thumb__image { margin: 0 0 12px; padding: 0; border-radius: var(--tor-r-sm); }
html.ds .product-thumb__image img { mix-blend-mode: multiply; transition: transform .4s var(--tor-ease); }
html.ds .product-thumb:hover .product-thumb__image img { transform: scale(1.03); }

html.ds .product-thumb__name {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0 0 8px; padding: 0;
	font-size: var(--tor-fs); line-height: 1.4; font-weight: 500;
	color: var(--tor-text);
	min-height: calc(1.4em * 3);
}
html.ds .product-thumb__name:hover { color: var(--tor-navy); }
html.ds .product-thumb__model { margin: 0 0 8px; font-size: var(--tor-fs-xs); color: var(--tor-muted); }
html.ds .product-thumb__model:before { color: var(--tor-muted); }
html.ds .product-thumb__description {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0 0 10px; font-size: var(--tor-fs-xs); line-height: 1.5; color: var(--tor-muted);
}
html.ds .product-thumb__attribute-value { color: var(--tor-text-2); }
html.ds .product-thumb__attribute-value:not(:last-child):after { color: var(--tor-line-strong); }
html.ds .product-thumb__rating { margin: 0 0 10px; font-size: var(--tor-fs-xs); }
html.ds .product-thumb__rating .fa-star { font-size: 12px; }
html.ds .product-thumb__rating-text { color: var(--tor-muted); }
html.ds .product-thumb__price { margin: auto 0 0; font-size: var(--tor-fs-lg); font-weight: 700; letter-spacing: -.01em; }

/* Ряд покупки */
html.ds .product-thumb__cart { align-items: stretch; gap: 8px; margin: 12px 0 0; }
html.ds .product-thumb__cart .qty-switch { margin: 0; }
html.ds .product-thumb__add-to-cart.btn {
	flex: 1 1 auto;
	height: var(--tor-control-h-sm);
	padding: 0 12px;
	font-size: var(--tor-fs);
	font-weight: 600;
	border-radius: var(--tor-r-sm);
}
html.ds .product-thumb__add-to-cart i { font-size: 14px; }

/* Закладки/сравнение */
html.ds .product-thumb__wishlist, html.ds .product-thumb__compare {
	width: 32px; height: 32px; line-height: 32px;
	border-radius: 50%;
	font-size: 13px;
	opacity: .9;
}
html.ds .product-thumb__wishlist:not(.hidden) + .product-thumb__compare { top: 48px; }

/* Счётчик количества */
html.ds .qty-switch { align-items: stretch; height: var(--tor-control-h-sm); border: 1px solid var(--tor-line-strong); border-radius: var(--tor-r-sm); overflow: hidden; background: #fff; }
html.ds .qty-switch__input.form-control { width: 38px; height: 100% !important; border: none !important; border-radius: 0; font-weight: 600; box-shadow: none; }
html.ds .qty-switch > span { display: flex; flex-direction: column; border-left: 1px solid var(--tor-line); }
html.ds .qty-switch__btn.fa { flex: 1 1 50%; width: 24px; height: auto; display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--tor-text-2); background: var(--tor-well); border: none; border-radius: 0; }
html.ds .qty-switch__btn.fa-minus { border-top: 1px solid var(--tor-line); }
html.ds .qty-switch__btn.fa:hover { background: #e3e9ee; color: var(--tor-text); }
html.ds .product-page__cart .qty-switch { height: var(--tor-control-h); }
html.ds .product-page__cart .qty-switch__input.form-control { width: 46px; font-size: 15px; }

/* Наличие — плашка с точкой, цвет по уровню */
html.ds .qty-indicator { margin: 0 0 10px; font-size: var(--tor-fs-xs); }
html.ds .qty-indicator:not(.qty-indicator-type-4):before { display: none; }
html.ds .qty-indicator__bar {
	display: inline-flex; align-items: center; gap: 6px;
	width: auto; height: 24px; padding: 0 10px 0 8px;
	overflow: visible;
	font-weight: 600; white-space: nowrap;
	color: var(--tor-ok); background: var(--tor-ok-bg);
	border-radius: 12px;
}
html.ds .qty-indicator__bar:before {
	position: static; display: block; content: '';
	width: 6px; height: 6px; border: none; border-radius: 50%;
	background: currentColor; opacity: 1;
}
html.ds .qty-indicator__bar:after {
	position: static; display: inline; width: auto; border: none; opacity: 1;
	content: attr(title) attr(data-original-title);
}
html.ds .qty-indicator__percent { display: none; }
html.ds .qty-indicator__bar[title="Мало"], html.ds .qty-indicator__bar[data-original-title="Мало"] { color: var(--tor-low); background: var(--tor-low-bg); }
html.ds .qty-indicator__bar[title*="Нет"], html.ds .qty-indicator__bar[data-original-title*="Нет"],
html.ds .qty-indicator__bar[title*="заказ"], html.ds .qty-indicator__bar[data-original-title*="заказ"] { color: var(--tor-none); background: var(--tor-none-bg); }

/* Стикеры */
html.ds .sticker__item { font-size: 11px; font-weight: 700; letter-spacing: .02em; border-radius: var(--tor-r-sm); padding: 3px 8px; }

/* --------------------------------------------------------------------------
   6. Категория: подкатегории, сортировка, фильтр, пагинация
   -------------------------------------------------------------------------- */
/* Подкатегории — компактные плитки «фото + название» */
html.ds .category-list { margin-bottom: 12px; }
html.ds .category-list > div { margin-bottom: 12px; }
html.ds .category-list__item.uni-item {
	display: flex; flex-direction: row; align-items: center; gap: 12px;
	height: 100%; min-height: 72px;
	padding: 10px 14px 10px 10px;
	text-align: left;
}
html.ds .category-list__item:hover { border-color: var(--tor-action); box-shadow: var(--tor-shadow-2); }
html.ds .category-list__img { flex: 0 0 52px; width: 52px; height: 52px; margin: 0 !important; object-fit: contain; mix-blend-mode: multiply; }
html.ds .category-list__name { margin: 0; font-size: var(--tor-fs-sm); line-height: 1.3; font-weight: 600; color: var(--tor-text); text-align: left; }
html.ds .category-list__item:hover .category-list__name { color: var(--tor-navy); }

/* Сортировка и вид */
html.ds .sorts-block {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
	margin: 4px 0 16px; padding: 6px 6px 6px 14px;
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
}
html.ds .sorts-block__span { font-size: var(--tor-fs-sm); color: var(--tor-text-2); font-weight: 500; }
html.ds .sorts-block__span.selected, html.ds .sorts-block__span:hover { color: var(--tor-action); }
html.ds .sorts-block__select, html.ds .sorts-block .form-control { height: 34px; font-size: var(--tor-fs-sm); }
html.ds .sorts-block__btn { width: 34px; height: 34px; color: var(--tor-muted); background: transparent; border-radius: var(--tor-r-sm); }
html.ds .sorts-block__btn.selected, html.ds .sorts-block__btn:hover { color: var(--tor-text); background: var(--tor-well); }

/* Фильтр GigantFilter — одна панель с разделителями вместо стопки карточек */
html.ds .gf-theme-light-block {
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r-lg);
	overflow: hidden;
}
html.ds .gf-theme-light-block .gf-filter {
	margin: 0; border-radius: 0; box-shadow: none;
	border-bottom: 1px solid var(--tor-line);
	background: transparent;
}
html.ds .gf-theme-light-block .gf-filter:last-child { border-bottom: none; }
html.ds .gf-theme-light-block .gf-filter-header { padding: 14px 16px 10px; border: none; border-radius: 0; }
html.ds .gf-theme-light-block .gf-filter-header:hover { background: transparent; }
html.ds .gf-theme-light-block .gf-filter-name {
	font-size: var(--tor-fs-sm); font-weight: 700; color: var(--tor-text);
	text-transform: none; letter-spacing: 0;
}
html.ds .gf-theme-light-block .gf-filter-body { padding: 0 16px 14px; }
html.ds .gf-theme-light-block .gf-value-label { font-size: var(--tor-fs-sm); color: var(--tor-text-2); }
html.ds .gf-theme-light-block .gf-count { color: var(--tor-muted); font-size: var(--tor-fs-xs); }
html.ds .gf-theme-light-block .gf-show-more { color: var(--tor-action); font-weight: 600; font-size: var(--tor-fs-xs); }
html.ds .gf-theme-light-block .gf-slider-fill { background: var(--tor-action); }
html.ds .gf-theme-light-block .gf-slider-handle { border-color: var(--tor-action); }
html.ds .gf-theme-light-block .gf-badge { background: var(--tor-action); }
html.ds .gf-theme-light-block .gf-tag { background: var(--tor-well); border-color: var(--tor-line); color: var(--tor-text); border-radius: var(--tor-r-sm); }
html.ds .gf-theme-light-block .gf-btn-apply-filter, html.ds .gf-btn-apply { background: var(--tor-action); border-radius: var(--tor-r-sm); }
html.ds .gf-theme-light-block .gf-btn-toggle-filters { border-radius: var(--tor-r-sm); box-shadow: none; border-color: var(--tor-line-strong); color: var(--tor-text); }
html.ds .gf-theme-light-block input[type="checkbox"] { accent-color: var(--tor-action); }

/* Пагинация */
html.ds .pagination { gap: 4px; }
html.ds .pagination > li > a, html.ds .pagination > li > span {
	min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	margin: 0 2px; border: 1px solid var(--tor-line) !important; border-radius: var(--tor-r-sm) !important;
	font-weight: 600;
}
html.ds .pagination > .active > a, html.ds .pagination > .active > span { border-color: var(--tor-action) !important; }
html.ds .pagination-text { color: var(--tor-muted); font-size: var(--tor-fs-sm); }

/* Текст категории */
html.ds .category-info, html.ds .category-info-bottom { color: var(--tor-text-2); line-height: 1.65; }

/* --------------------------------------------------------------------------
   7. Страница товара
   -------------------------------------------------------------------------- */
html.ds #product.uni-wrapper { padding: 24px; }
html.ds .product-page__image-main { border-radius: var(--tor-r); }
html.ds .product-page__image-main img { mix-blend-mode: multiply; }

/* Колонки: характеристики | блок покупки (обёртки .product-specs / .product-buybox в product.twig) */
@media (min-width: 992px) {
	html.ds .product-block { display: flex; align-items: flex-start; gap: 28px; }
	html.ds .product-specs { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
	html.ds .product-buybox { flex: 0 0 340px; width: 340px; position: sticky; top: 96px; }
}
html.ds .product-buybox {
	padding: 20px;
	background: var(--tor-floor);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r-lg);
}
@media (max-width: 991px) { html.ds .product-buybox { margin-top: 16px; } }
html.ds .product-buybox .qty-indicator { margin: 0 0 6px; }
html.ds .product-buybox > :last-child { margin-bottom: 0 !important; }

html.ds .product-data__item { font-size: var(--tor-fs); padding: 6px 0; color: var(--tor-text); }
html.ds .product-data__item-div { color: var(--tor-muted); }
html.ds .product-data__item-div:after { border-bottom: 1px dotted var(--tor-line-strong) !important; opacity: 1; }
html.ds .product-page__more-attr { display: inline-block; margin: 8px 0 0; font-weight: 600; font-size: var(--tor-fs-sm); color: var(--tor-action); cursor: pointer; text-decoration: none; }


html.ds .product-page__price { margin: 6px 0 14px !important; font-size: 32px !important; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
html.ds .product-page__cart { display: flex; align-items: stretch; gap: 10px; margin: 0 0 14px; }
html.ds .product-page__cart .qty-switch { margin: 0; }
html.ds .product-page__add-to-cart.btn { flex: 1 1 auto; height: var(--tor-control-h); font-size: 16px; font-weight: 700; margin: 0 !important; }
html.ds .product-page__quick-order.btn:not(.hidden) { flex: 1 1 100%; height: var(--tor-control-h); margin: 0 !important; color: var(--tor-navy); background: #fff; border: 1px solid var(--tor-line-strong); }
html.ds .product-page__quick-order.btn:hover { color: #fff; background: var(--tor-navy); border-color: var(--tor-navy); }

/* «Нашли дешевле?» (инлайн-блок без класса) */
html.ds .product-page__cart + div[style] { font-size: var(--tor-fs-sm); font-weight: 500 !important; line-height: 1.55 !important; color: var(--tor-text-2); }
html.ds .product-page__cart + div[style] a { font-weight: 700; cursor: pointer; }

html.ds .product-page__wishlist-compare { display: flex; gap: 8px; margin: 4px 0 14px; }
html.ds .product-page__wishlist-btn, html.ds .product-page__compare-btn {
	flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 36px; padding: 0 10px; margin: 0;
	font-size: var(--tor-fs-sm); font-weight: 600;
	color: var(--tor-text-2); background: #fff;
	border: 1px solid var(--tor-line); border-radius: var(--tor-r-sm);
}
html.ds .product-page__wishlist-btn:hover, html.ds .product-page__compare-btn:hover { color: var(--tor-navy); border-color: var(--tor-line-strong); }
html.ds .product-page__wishlist-btn span, html.ds .product-page__compare-btn span { margin: 0; }

/* Склады */
html.ds .multistore { margin: 0 0 20px; }
html.ds .multistore .list-group { background: #fff; border: 1px solid var(--tor-line); border-radius: var(--tor-r-sm); }
html.ds .multistore .list-group-item { background: transparent; border: none; padding: 10px 12px; }
html.ds .multistore-name { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: var(--tor-fs-sm); }
html.ds .multistore-quantity { color: var(--tor-ok); background: var(--tor-ok-bg) !important; box-shadow: none; }

/* Наличие/доставка в город (TOR SEO, над складами) */
html.ds .tor-delivery { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--tor-line); border-radius: var(--tor-r-sm); background: var(--tor-cell); }
html.ds .tor-delivery--local { border-color: transparent; background: var(--tor-ok-bg); }
html.ds .tor-delivery__title { font-weight: 600; font-size: var(--tor-fs); color: var(--tor-text); }
html.ds .tor-delivery--local .tor-delivery__title { color: var(--tor-ok); }
html.ds .tor-delivery__text { margin-top: 2px; font-size: var(--tor-fs-sm); color: var(--tor-muted); }

/* Преимущества под товаром — ровные чипы */
html.ds .product-banner { margin-top: 20px; }
html.ds .product-banner > div { margin-bottom: 12px; }
html.ds .product-banner__item {
	display: flex; align-items: center; gap: 10px; height: 100%;
	padding: 12px 14px;
	background: var(--tor-cell);
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
	box-shadow: none;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
html.ds .product-banner__item:hover { border-color: var(--tor-line-strong); box-shadow: var(--tor-shadow-2); }
html.ds .product-banner__icon { flex: 0 0 36px; width: 36px; height: 36px; line-height: 36px; margin: 0; text-align: center; font-size: 15px; color: var(--tor-action); background: rgba(16 171 205 / .1); border-radius: var(--tor-r-sm); }
html.ds .product-banner__text, html.ds .product-banner__text-span { margin: 0; font-size: var(--tor-fs-sm); line-height: 1.3; font-weight: 600; color: var(--tor-text); text-decoration: none; }

/* Вкладки товара и характеристики */
html.ds .product-page-tabs { margin-top: 12px; }
html.ds .tab-content { font-size: var(--tor-fs); line-height: 1.65; color: var(--tor-text-2); }
html.ds .tab-content .product-data__item, html.ds #tab-specification .product-data__item { max-width: 760px; }
html.ds #tab-specification h4, html.ds #tab-specification .heading { font-size: var(--tor-fs-md); margin: 20px 0 8px; }

/* Липкая мини-панель товара */
html.ds .fly-menu { box-shadow: var(--tor-shadow-2); border-bottom: 1px solid var(--tor-line); }

/* --------------------------------------------------------------------------
   8. Подвал
   -------------------------------------------------------------------------- */
html.ds .footer { margin-top: 48px; padding: 48px 0 0; background: var(--tor-ink); color: var(--footer-c); }
html.ds .footer__column-heading { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: #fff; }
html.ds .footer__column-li { margin: 0 0 10px; font-size: var(--tor-fs); font-weight: 400; }
html.ds .footer a, html.ds .footer__column-a, html.ds .footer__column-a:visited { color: rgba(255 255 255 / .78) !important; text-decoration: none; transition: color .15s; }
html.ds .footer a:hover, html.ds .footer__column-a:hover { color: #fff !important; }
html.ds .footer__contacts-li { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #fff; }
html.ds .footer__contacts-icon { color: var(--tor-cyan); }
html.ds .footer__text { margin-top: 24px; padding: 20px 0; font-size: var(--tor-fs-xs); color: rgba(255 255 255 / .6); border-top: 1px solid rgba(255 255 255 / .1); }
html.ds .footer__payments-icon { border-radius: var(--tor-r-sm); }

/* --------------------------------------------------------------------------
   9. Плавающие элементы: кнопки, cookie, наверх
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	html.ds .fly-block { right: 20px; }
	html.ds .fly-block__item {
		width: 48px; height: 48px;
		color: var(--tor-text);
		background: #fff;
		border: 1px solid var(--tor-line);
		box-shadow: var(--tor-shadow-2);
	}
	html.ds .fly-block__item:hover { color: var(--tor-navy); border-color: var(--tor-line-strong); }
	html.ds .fly-block__contacts-icons { color: #fff; background: var(--tor-action); border-radius: 50%; }
	html.ds .fly-block__total { position: absolute; top: -4px; right: -4px; }
}

/* Cookie — компактная карточка в углу, а не полоса поверх контента */
html.ds #uni-notification.notification.fixed {
	left: 16px; right: auto; bottom: 16px; top: auto;
	width: auto; max-width: 440px;
	padding: 0; background: transparent; box-shadow: none;
}
html.ds #uni-notification .container { width: auto; padding: 0; }
html.ds #uni-notification .notification__wrapper {
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--tor-line);
	border-radius: var(--tor-r);
	box-shadow: var(--tor-shadow-pop);
}
html.ds #uni-notification .notification__text, html.ds #uni-notification .notification__text p { margin: 0; font-size: var(--tor-fs-xs); line-height: 1.55; color: var(--tor-text-2); }
html.ds #uni-notification .notification__buttons { margin: 0; }
html.ds #uni-notification .notification__button.btn { height: 36px; padding: 0 18px; }

/* --------------------------------------------------------------------------
   10. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	html.ds .header-block__item-telephone { padding: 0 14px 0 0; }
	html.ds .header-phones__main { font-size: 15px; }
	html.ds .category-wall__image.type2 { flex-basis: 88px; max-width: 88px; }
	html.ds .category-wall__more { left: 122px; }
}

@media (max-width: 991px) {
	html.ds h1, html.ds .h1 { font-size: 24px; margin-bottom: 18px; }
	html.ds .header-block { flex-wrap: wrap; padding: 12px 0; }
	html.ds #search2 { padding: 0 15px 12px; }
	html.ds #search2 .header-search__form { background: var(--tor-well); }
	html.ds #product.uni-wrapper { padding: 16px; }
	html.ds .product-block { margin-top: 16px; }
	html.ds .product-page__price { font-size: 28px !important; }
}

@media (max-width: 767px) {
	html.ds body { font-size: 15px; }
	html.ds .container { padding-left: 16px; padding-right: 16px; }
	html.ds h1, html.ds .h1 { font-size: 22px; letter-spacing: -.01em; }

	/* Верхняя полоса — нормальные тап-зоны */
	html.ds .top-menu .container { height: 48px; }
	html.ds .top-menu__btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
	html.ds .prmn-cmngr__city { display: inline-flex; align-items: center; min-height: 44px; }
	html.ds .prmn-cmngr__confirm { position: fixed !important; left: 12px !important; right: 12px !important; top: 56px !important; width: auto !important; max-width: none; z-index: 1100; }

	/* Шапка: логотип + телефон в один ряд */
	html.ds .header-logo { max-width: 150px; }
	html.ds .header-logo__img { max-height: 44px; }
	html.ds .header-phones__main { font-size: 15px; }
	html.ds .header-phones__main.two-line + .header-phones__main.two-line { font-size: 12px; }

	/* Стена категорий — плотнее */
	html.ds .category-wall__item.type2 { padding: 14px; }
	html.ds .category-wall__image.type2 { flex-basis: 76px; max-width: 76px; }
	html.ds .category-wall__more { left: 104px; }

	/* Карточки 2 в ряд */
	html.ds .product-thumb { padding: 10px 10px 12px; margin-bottom: 10px; }
	html.ds .product-thumb__name { font-size: 13px; -webkit-line-clamp: 3; min-height: calc(1.4em * 3); }
	html.ds .product-thumb__description { display: none; }
	html.ds .product-thumb__price { font-size: 17px; }
	html.ds .product-thumb__cart { flex-wrap: wrap; }
	html.ds .product-thumb__cart .qty-switch { display: none; }
	html.ds .product-thumb__add-to-cart.btn { height: 40px; width: 100%; }
	html.ds .product-thumb__wishlist, html.ds .product-thumb__compare { width: 36px; height: 36px; line-height: 36px; }

	/* Подкатегории — горизонтальная лента, не простыня */
	html.ds .category-list { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
	html.ds .category-list::-webkit-scrollbar { display: none; }
	html.ds .category-list > div { flex: 0 0 auto; width: auto; max-width: 240px; padding: 0 8px 0 0; float: none; scroll-snap-align: start; }
	html.ds .category-list__item.uni-item { min-height: 60px; padding: 8px 12px 8px 8px; }
	html.ds .category-list__img { flex-basis: 44px; width: 44px; height: 44px; }
	html.ds .category-list__name { white-space: nowrap; }

	html.ds .nav-tabs { display: flex; margin-left: 0; margin-right: 0; border-radius: var(--tor-r); overflow-x: auto; }
	html.ds .html-module { padding: 20px; }
	html.ds .html-module h1, html.ds .html-module h2, html.ds .html-module h3 { font-size: 18px; }

	/* Тап-зоны в подвале и карусели */
	html.ds .footer__column-heading { min-height: 44px; margin: 0; border-bottom: 1px solid rgba(255 255 255 / .1); }
	html.ds .footer__column-li { min-height: 36px; margin: 0; }
	html.ds .owl-nav { display: none; }

	/* Cookie — во всю ширину снизу, но компактно */
	html.ds #uni-notification.notification.fixed { left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	html.ds *, html.ds *:before, html.ds *:after { transition-duration: .01ms !important; }
	html.ds .product-thumb:hover .product-thumb__image img, html.ds .uni-banner__a:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   11. Поправки после первого прогона
   -------------------------------------------------------------------------- */
/* Ссылки верхней полосы — это не выпадающее меню на десктопе */
@media (min-width: 768px) {
	html.ds .top-links__ul.dropdown-menu { padding: 0; border: none; border-radius: 0; box-shadow: none; background: transparent; }
}

/* Подкатегории: базовая тема ставит wrap и padding !important */
html.ds .category-list__item.uni-item { flex-wrap: nowrap; justify-content: flex-start; padding: 10px 14px 10px 10px !important; }
html.ds .category-list__img { border-radius: var(--tor-r-sm); }

/* Категория/поиск: без белой подложки вокруг карточек (нет вложенных коробок) */
html.ds #content > .uni-wrapper:not(#product),
html.ds .uni-wrapper.products-block, html.ds #content .uni-wrapper:has(.product-layout) {
	padding: 0; background: transparent; border: none; border-radius: 0;
}

/* Мобильная кнопка фильтра GigantFilter: по-русски, над нижней навигацией */
html.ds .gf-mobile-toggle.gf-mobile-active {
	bottom: calc(80px + env(safe-area-inset-bottom));
	gap: 8px;
	height: 44px; padding: 0 20px;
	font-size: 0; font-weight: 600;
	color: #fff; background: var(--tor-ink);
	border-radius: 22px;
	box-shadow: var(--tor-shadow-pop);
}
html.ds .gf-mobile-toggle.gf-mobile-active:before { content: 'Фильтры'; font-size: 15px; }
html.ds .gf-mobile-toggle.gf-mobile-active .gf-badge { font-size: 11px; position: static; box-shadow: none; }
html.ds .gf-mobile-toggle.gf-mobile-active .gf-badge:empty,
html.ds .gf-mobile-toggle.gf-mobile-active .gf-badge[data-count="0"] { display: none; }
html.ds .gf-drawer.gf-mobile-active .gf-drawer-title { font-size: 0; }
html.ds .gf-drawer.gf-mobile-active .gf-drawer-title:before { content: 'Фильтры'; font-size: 17px; font-weight: 700; color: var(--tor-text); }

/* Cookie на мобиле — мелкий текст, не перекрывает пол-экрана */
@media (max-width: 767px) {
	html.ds #uni-notification .notification__text, html.ds #uni-notification .notification__text p { font-size: 12px !important; line-height: 1.5 !important; }
	html.ds #uni-notification .notification__wrapper { flex-direction: row; align-items: center; padding: 12px 14px; gap: 12px; }
	html.ds #uni-notification .notification__button.btn { height: 40px; }
}
html.ds .product-specs .product-data__item-div { width: 58%; min-width: 58%; }
html.ds .multistore > :not(ul) , html.ds .multistore { font-size: var(--tor-fs-sm); color: var(--tor-muted); }
@media (max-width: 767px) {
	html.ds .category-list.row { margin: 0 -16px 8px !important; padding: 0 16px 6px !important; }
	html.ds .header-phones__main.two-line + .header-phones__main.two-line { display: none; }
	/* Преимущества — список в одну колонку, без переноса слов по слогам */
	html.ds .product-banner__text, html.ds .product-banner__text-span { hyphens: manual; word-break: normal; overflow-wrap: normal; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	html.ds .product-banner__text, html.ds .product-banner__text-span { hyphens: manual; word-break: normal; }
}
@media (max-width: 767px) {
	html.ds .category-list.row { scroll-padding-left: 16px; }
	html.ds .category-list__name { flex: 1 1 auto; text-align: left !important; }
}

/* --------------------------------------------------------------------------
   12. Правки по итогам финального ревью
   -------------------------------------------------------------------------- */
/* Нарисованная стрелка вместо символа → */
html.ds .category-wall__more:after, html.ds .product-page__more-attr:after {
	content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Шапка: Каталог → поиск на всю ширину → телефон и почта → иконки (режим работы — в выпадашке телефона) */
@media (min-width: 992px) {
	html.ds .header-block { padding: 14px 0; }
	html.ds .header-block__item-search { order: 1 !important; padding: 0 24px 0 0; }
	html.ds .header-block__item-telephone { order: 2 !important; }
	html.ds .header-block__item-account, html.ds .header-block__item-wishlist,
	html.ds .header-block__item-compare, html.ds .header-block__item-cart { order: 3; }
}

/* Фильтр: липкая панель со своей прокруткой, значения в одну колонку */
@media (min-width: 992px) {
	/* Фильтр — на всю высоту колонки, без внутренней прокрутки */
	html.ds #column-left .gf-theme-light-block { position: static; max-height: none; overflow: visible; }
}
html.ds .gf-theme-light-block .gf-values[class*="gf-cols-"] { display: block; columns: auto; column-count: 1; grid-template-columns: 1fr; }
html.ds .gf-theme-light-block .gf-value { width: 100%; margin: 0; padding: 3px 0; }
html.ds .gf-theme-light-block .gf-value-label { display: flex; align-items: center; gap: 8px; width: 100%; }
html.ds .gf-theme-light-block .gf-value-name { flex: 1 1 auto; }
html.ds .gf-theme-light-block .gf-count { margin-left: auto; }

/* Подкатегории: плитка без фото — такая же ячейка; название занимает свободное место */
html.ds .category-list__item.uni-item-bg {
	display: flex; align-items: center; min-height: 72px; height: 100%;
	padding: 10px 14px !important;
	background: var(--tor-cell); border: 1px solid var(--tor-line); border-radius: var(--tor-r);
}
html.ds .category-list__item.uni-item-bg:hover { border-color: var(--tor-action); background: var(--tor-cell); }
html.ds .category-list__name { flex: 1 1 auto; min-width: 0; width: auto; }

/* Товар: ячейки на «полу», без коробки в коробке */
html.ds .product-page__image-main { border: none; box-shadow: none; }
html.ds .product-page__image .product-page__image-main, html.ds .product-page__image-main-carousel { border: none !important; }
html.ds .product-banner {
	display: flex; flex-wrap: wrap; margin: 24px 0 0;
	border-top: 1px solid var(--tor-line); border-bottom: 1px solid var(--tor-line);
}
html.ds .product-banner > div { flex: 1 1 0; min-width: 160px; width: auto; margin: 0; padding: 0; float: none; }
html.ds .product-banner__item { border: 0; background: none; box-shadow: none; border-radius: 0; padding: 14px 12px; }
html.ds .product-banner__item:hover { border: 0; box-shadow: none; background: none; }
html.ds .product-banner__item:hover .product-banner__text-span { color: var(--tor-navy); }
html.ds .multistore .list-group:empty, html.ds .multistore .list-group:not(:has(li)) { border: none; background: none; }
html.ds .multistore { padding: 0 2px; }

/* Карточка: строку звёзд показываем только при наличии отзывов; код товара — читаемый тег */
html.ds .product-thumb__rating:not(:has(.product-thumb__rating-text)) { display: none; }
html.ds .product-thumb__model { font-size: var(--tor-fs-sm); font-weight: 600; color: var(--tor-text-2); letter-spacing: 0; }
html.ds .product-thumb__model:before { font-weight: 400; }

@media (max-width: 991px) {
	/* На товаре цена и покупка — раньше характеристик */
	html.ds .product-block { display: flex; flex-direction: column; }
	html.ds .product-buybox { order: -1; margin: 0 0 16px; }
}

@media (max-width: 767px) {
	/* Шапка в один ряд: логотип — телефон — корзина */
	html.ds .header-block { flex-wrap: nowrap; align-items: center; gap: 10px; padding: 10px 0; }
	html.ds .header-block__item-logo { flex: 0 0 auto; padding: 0; width: auto; }
	html.ds .header-logo { max-width: 118px; }
	html.ds .header-logo__img { max-height: 40px; }
	html.ds .header-block__item-telephone { flex: 1 1 auto; justify-content: flex-end; padding: 0; min-width: 0; }
	html.ds .header-phones__main { font-size: 14px; }
	html.ds .header-phones__show-phone { display: none; }
	html.ds .header-block__item-cart { flex: 0 0 auto; }
	html.ds .header-cart__icon { font-size: 24px; }

	/* Дубли нижней панели убираем */
	html.ds .top-menu__wishlist, html.ds .top-menu__compare,
	html.ds .fly-block__wishlist, html.ds .fly-block__compare { display: none !important; }

	/* Характеристики — строка «название … значение» */
	html.ds .product-data__item { display: flex; }
	html.ds .product-specs .product-data__item-div { width: 58%; min-width: 58%; }

	html.ds .product-thumb__name { -webkit-line-clamp: 4; min-height: calc(1.4em * 4); }

	html.ds .product-banner { display: grid; grid-template-columns: 1fr 1fr; }
	html.ds .product-banner > div { min-width: 0; }
	html.ds .product-banner__item { padding: 12px 6px; }
}
/* Названия подкатегорий: переносы по слогам, а не посреди слова */
html.ds .category-list__name { width: auto !important; max-width: none !important; overflow-wrap: normal; word-wrap: normal; word-break: normal; hyphens: manual; }
@media (min-width: 992px) and (max-width: 1399px) {
	html.ds .category-list__img { flex-basis: 44px; width: 44px; height: 44px; }
	html.ds .category-list__item.uni-item { gap: 10px; padding: 10px 10px 10px 8px !important; }
}
/* «Наш адрес» в подвале без адреса под ним — заголовок скрыт, режим работы остаётся */
html.ds .footer__column-heading-addr ~ .footer__column-heading-addr { display: none; }

@media (max-width: 767px) {
	/* Характеристики: одна строка «название … значение» на всю ширину */
	html.ds .product-data { display: flex; flex-direction: column; }
	html.ds .product-data__item { width: 100% !important; max-width: none; flex-wrap: nowrap; float: none; }
	html.ds .product-data__item-div { width: 60% !important; min-width: 60% !important; }
	/* Полоса преимуществ: без обрезки подписей */
	html.ds .product-banner__item { gap: 8px; }
	html.ds .product-banner__icon { flex-basis: 32px; width: 32px; height: 32px; line-height: 32px; font-size: 13px; }
	html.ds .product-banner__text { min-width: 0; overflow: visible; }
	html.ds .product-banner__text-span { font-size: 12px; }
}
/* Кнопка «Фильтры» — та же форма, что у остальных кнопок (без «таблетки») */
html.ds .gf-mobile-toggle.gf-mobile-active { border-radius: var(--tor-r); }

/* --------------------------------------------------------------------------
   13. Кнопки-ссылки, окно «Товар в корзине», оформление заказа (unicheckout)
   -------------------------------------------------------------------------- */
/* Кнопки, свёрстанные ссылками, не наследуют цвет ссылок */
html.ds a.btn-primary, html.ds a.btn-primary:hover, html.ds a.btn-primary:focus { color: #fff; text-decoration: none; }
html.ds a.btn-default, html.ds a.btn-default:hover { color: var(--tor-text); text-decoration: none; }
html.ds a.btn { display: inline-flex; align-items: center; justify-content: center; }

/* Модальные окна */
html.ds .modal-backdrop.in { background: var(--tor-ink); opacity: .55; }
html.ds .modal-content { border: none; border-radius: var(--tor-r-lg); box-shadow: var(--tor-shadow-pop); overflow: hidden; }
html.ds .modal-header { padding: 18px 64px 14px 24px; background: #fff; border-bottom: 1px solid var(--tor-line); border-radius: 0; }
html.ds .modal-title { margin: 0; font-size: var(--tor-fs-lg); font-weight: 700; letter-spacing: -.01em; }
html.ds .modal-header .close {
	top: 12px; right: 14px; width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	font-size: 24px; font-weight: 400; line-height: 1;
	color: var(--tor-text-2); background: var(--tor-well); border-radius: 50%; opacity: 1; text-shadow: none;
	transition: background .15s, color .15s;
}
html.ds .modal-header .close:hover { color: var(--tor-text); background: #e3e9ee; }
html.ds .modal-body { padding: 20px 24px 24px; border-radius: 0; }

/* Окно корзины */
html.ds #modal-cart .modal-dialog { width: 760px; }
html.ds #modal-cart img { padding: 0; border-radius: var(--tor-r-sm); mix-blend-mode: multiply; }
html.ds .header-cart__wrapper { border-bottom: 1px solid var(--tor-line); scrollbar-color: var(--tor-line-strong) transparent; }
html.ds .header-cart__item { padding: 14px 0; min-height: 0; }
html.ds .header-cart__item:not(:first-child) { border-top: 1px solid var(--tor-line); }
html.ds .header-cart__image { flex: 0 0 76px; padding: 0 16px 0 0; }
html.ds .header-cart__image img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--tor-line); }
html.ds .header-cart__name { font-size: var(--tor-fs); line-height: 1.4; font-weight: 500; }
html.ds .header-cart__name a { color: var(--tor-text); }
html.ds .header-cart__name a:hover { color: var(--tor-navy); }
html.ds .header-cart__price, html.ds .header-cart__total { font-size: var(--tor-fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
html.ds .header-cart__price { font-weight: 500; color: var(--tor-text-2); }
html.ds .header-cart__price-text, html.ds .header-cart__total-text { margin: 0 0 4px; font-size: var(--tor-fs-xs); font-weight: 400; color: var(--tor-muted); line-height: 1.2; }
html.ds .header-cart__remove-btn { width: 36px; height: 36px; color: var(--tor-muted); border-radius: 50%; transition: background .15s, color .15s; }
html.ds .header-cart__remove-btn:hover { color: var(--tor-danger); background: #fbeceb; }
html.ds .header-cart__totals { margin: 18px 0 20px; }
html.ds .header-cart__totals-item { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; }
html.ds .header-cart__totals-title { font-size: var(--tor-fs); color: var(--tor-muted); font-weight: 500; }
html.ds .header-cart__totals-text { font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
html.ds .header-cart__buttons { gap: 12px; }
html.ds .header-cart__buttons .btn { height: var(--tor-control-h); padding: 0 22px; font-size: 15px; font-weight: 600; }
html.ds .header-cart__buttons .btn-primary { flex: 0 1 auto; min-width: 280px; }

/* Счётчик в корзине: − [1] + */
html.ds .qty-switch__cart { flex-direction: row; height: 38px; }
html.ds .qty-switch__cart .qty-switch__btn.fa { flex: 0 0 32px; width: 32px; height: 100% !important; line-height: normal; font-size: 10px; border: none !important; border-radius: 0 !important; }
html.ds .qty-switch__cart .qty-switch__btn.fa-minus { border-top: none; border-right: 1px solid var(--tor-line) !important; }
html.ds .qty-switch__cart .qty-switch__btn.fa-plus { border-left: 1px solid var(--tor-line) !important; }
html.ds .qty-switch__cart .qty-switch__input { width: 44px; height: 100% !important; border: none !important; }

@media (max-width: 767px) {
	html.ds #modal-cart .modal-dialog { width: auto; max-width: calc(100% - 24px); margin: 12px auto; }
	html.ds .modal-body { padding: 14px 16px 18px; }
	html.ds .header-cart__item-wrapper { flex-wrap: wrap; gap: 10px; }
	html.ds .header-cart__name { flex: 1 1 100%; min-width: 0; padding: 0; }
	html.ds .header-cart__buttons { flex-direction: column-reverse; align-items: stretch; }
	html.ds .header-cart__buttons .btn { width: 100%; min-width: 0; margin: 0 !important; }
}

/* Оформление заказа */
html.ds .unicheckout__wrapper > .unicheckout__forms .checkout-cart__wrapper { margin: 0 0 16px; }
html.ds #content > .uni-wrapper:has(.unicheckout__wrapper) { padding: 0; background: transparent; border: none; }
html.ds .checkout-cart {
	padding: 4px 20px;
	background: var(--tor-cell); border: 1px solid var(--tor-line); border-radius: var(--tor-r-lg); box-shadow: none;
}
html.ds .checkout-cart__item { padding: 16px 0; border: none; box-shadow: none; background: none; }
html.ds .checkout-cart__item + .checkout-cart__item { border-top: 1px solid var(--tor-line); }
html.ds .checkout-cart__image { flex: 0 0 76px; }
html.ds .checkout-cart__image-img { width: 64px; height: 64px; object-fit: contain; padding: 2px; border: 1px solid var(--tor-line); border-radius: var(--tor-r-sm); mix-blend-mode: multiply; }
html.ds .checkout-cart__name a { font-size: var(--tor-fs-md); line-height: 1.35; font-weight: 600; color: var(--tor-text); }
html.ds .checkout-cart__name a:hover { color: var(--tor-navy); }
html.ds .checkout-cart__model { margin-top: 4px; font-size: var(--tor-fs-sm); color: var(--tor-muted); font-variant-numeric: tabular-nums; }
html.ds .checkout-cart__price, html.ds .checkout-cart__total { font-size: var(--tor-fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
html.ds .checkout-cart__price { font-weight: 500; color: var(--tor-text-2); }
html.ds .checkout-cart__price-text, html.ds .checkout-cart__total-text { font-size: var(--tor-fs-xs); font-weight: 400; color: var(--tor-muted); }
html.ds .checkout-cart__remove-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--tor-muted); border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
html.ds .checkout-cart__remove-icon:hover { color: var(--tor-danger); background: #fbeceb; }

/* Шаги формы — отдельные ячейки на полу */
html.ds .unicheckout__form { counter-reset: steps; }
html.ds .unicheckout__user, html.ds .unicheckout__custom-field:not(:empty),
html.ds .unicheckout__payment, html.ds .unicheckout__comment {
	padding: 22px 24px; margin: 0 0 16px;
	background: var(--tor-cell); border: 1px solid var(--tor-line); border-radius: var(--tor-r-lg);
}
html.ds .unicheckout__custom-field:not(:empty) { margin-top: -17px; border-top: none; border-radius: 0 0 var(--tor-r-lg) var(--tor-r-lg); padding-top: 0; }
html.ds .unicheckout__user:has(+ .unicheckout__custom-field .form-group) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
html.ds .unicheckout__form .heading { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; }
html.ds .unicheckout__form .heading:before {
	content: counter(steps); counter-increment: steps;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px;
	width: 28px; height: 28px; padding: 0;
	font-size: 14px; font-weight: 700; color: #fff; background: var(--tor-ink); border-radius: 50%;
}
/* «Способ получения» стоит прямо в форме — оборачиваем визуально заголовок, вкладки и содержимое */
html.ds .unicheckout__form > .heading, html.ds .unicheckout__form > .unicheckout__pickup-nav, html.ds .unicheckout__form > .tab-content {
	background: var(--tor-cell); border-left: 1px solid var(--tor-line); border-right: 1px solid var(--tor-line);
	margin: 0; padding-left: 24px; padding-right: 24px;
}
html.ds .unicheckout__form > .heading { padding-top: 22px; margin: 0; padding-bottom: 16px; border-top: 1px solid var(--tor-line); border-radius: var(--tor-r-lg) var(--tor-r-lg) 0 0; }
html.ds .unicheckout__form > .unicheckout__pickup-nav { display: flex; width: auto; margin: 0; padding-top: 0; padding-bottom: 0; border-radius: 0; background: var(--tor-cell); }
html.ds .unicheckout__form > .unicheckout__pickup-nav li { background: var(--tor-well); }
html.ds .unicheckout__form > .unicheckout__pickup-nav li:first-child { border-radius: var(--tor-r-sm) 0 0 var(--tor-r-sm); }
html.ds .unicheckout__form > .unicheckout__pickup-nav li:last-child { border-radius: 0 var(--tor-r-sm) var(--tor-r-sm) 0; }
html.ds .unicheckout__form > .unicheckout__pickup-nav li.active { background: var(--tor-ink); box-shadow: none; }
html.ds .unicheckout__form > .unicheckout__pickup-nav li.active a { color: #fff; }
html.ds .unicheckout__form > .tab-content { padding-top: 16px; padding-bottom: 22px; margin-bottom: 16px; border-bottom: 1px solid var(--tor-line); border-radius: 0 0 var(--tor-r-lg) var(--tor-r-lg); }
html.ds .unicheckout__pickup-item { padding: 16px 18px; background: var(--tor-floor); border: 1px solid var(--tor-line); border-radius: var(--tor-r); }
html.ds .unicheckout__pickup-title { font-size: var(--tor-fs-md); font-weight: 700; margin: 0 0 4px; }
html.ds .unicheckout__pickup-address { color: var(--tor-text-2); margin: 0 0 12px; }
html.ds .unicheckout__pickup-time-span, html.ds .unicheckout__pickup-life-span { display: block; font-size: var(--tor-fs-xs); color: var(--tor-muted); font-weight: 500; }
html.ds .unicheckout__pickup-time-life { display: flex; gap: 32px; margin: 0 0 14px; }
html.ds .unicheckout__pickup-btn.btn { height: 36px; }

/* Поля формы */
html.ds .checkout-customer .row-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html.ds .checkout-customer__input.form-control, html.ds .unicheckout__form .form-control:not(textarea) { height: var(--tor-control-h); width: 100%; margin: 0; padding: 0 14px; font-size: 15px; }
html.ds .unicheckout__form textarea.form-control { padding: 12px 14px; font-size: 15px; min-height: 96px; }
html.ds .checkout-customer__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
html.ds .checkout-customer__group-label { flex: 1 1 100%; margin: 0 0 2px; font-size: var(--tor-fs-sm); font-weight: 500; color: var(--tor-muted); }
html.ds .checkout-customer__group-item.input, html.ds .payment-method label.input {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	height: 40px; padding: 0 14px 0 12px;
	font-weight: 500; cursor: pointer;
	border: 1px solid var(--tor-line-strong); border-radius: var(--tor-r-sm);
	transition: border-color .15s, background .15s;
}
html.ds .checkout-customer__group-item.input:has(input:checked), html.ds .payment-method label.input:has(input:checked) { border-color: var(--tor-action); background: rgba(16 171 205 / .07); }
html.ds .payment-method .radio { margin: 0; }
html.ds .payment-method__title { font-weight: 600; }

/* Итог заказа */
html.ds .unicheckout-sticky__wrapper {
	padding: 22px; background: var(--tor-cell);
	border: 1px solid var(--tor-line); border-radius: var(--tor-r-lg); box-shadow: none;
}
@media (min-width: 992px) { html.ds .unicheckout-sticky__wrapper { position: sticky; top: 96px; } }
html.ds .unicheckout-sticky__heading { margin: 0 0 12px; font-size: var(--tor-fs-lg); font-weight: 700; }
html.ds .unicheckout-sticky__total-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tor-line); font-size: var(--tor-fs); }
html.ds .unicheckout-sticky__total-title { color: var(--tor-muted); }
html.ds .unicheckout-sticky__total-text { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
html.ds .unicheckout-sticky__total-item.total { padding: 14px 0 6px; }
html.ds .unicheckout-sticky__total-item.total .unicheckout-sticky__total-title { color: var(--tor-text); font-weight: 700; font-size: var(--tor-fs-md); }
html.ds .unicheckout-sticky__total-item.total .unicheckout-sticky__total-text { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
html.ds .unicheckout-sticky__confirm-agree { margin: 12px 0 16px; font-size: var(--tor-fs-xs); line-height: 1.5; color: var(--tor-text-2); }
html.ds .unicheckout-sticky__confirm-agree label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
html.ds .unicheckout-sticky__confirm-agree b { font-weight: 600; }
html.ds .unicheckout-sticky__confirm-btn.btn { height: 50px; font-size: 16px; font-weight: 700; }

@media (max-width: 767px) {
	html.ds .checkout-customer .row-flex { grid-template-columns: 1fr; }
	html.ds .unicheckout__user, html.ds .unicheckout__payment, html.ds .unicheckout__comment, html.ds .unicheckout-sticky__wrapper { padding: 18px 16px; }
	html.ds .unicheckout__form > .heading, html.ds .unicheckout__form > .unicheckout__pickup-nav, html.ds .unicheckout__form > .tab-content { padding-left: 16px; padding-right: 16px; }
	html.ds .checkout-cart { padding: 0 14px; }
	html.ds .checkout-cart__item-wrapper { flex-wrap: wrap; gap: 10px; }
	html.ds .unicheckout-sticky { margin-top: 0; }
}

/* Подкатегории: своя сетка вместо колонок Bootstrap (на xxl они сжимались до 175px и текст вылезал) */
@media (min-width: 768px) {
	html.ds .category-list.row {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
		gap: 12px;
		margin: 0 0 20px !important;
	}
	html.ds .category-list.row:before, html.ds .category-list.row:after { display: none; }
	html.ds .category-list.row > div { width: auto !important; max-width: none; margin: 0 !important; padding: 0 !important; float: none; }
}
html.ds .category-list__item { overflow: hidden; }
html.ds .category-list__name { min-width: 0 !important; overflow-wrap: break-word; }
/* Правки окна корзины и оформления */
html.ds .header-cart__totals-item:not(:last-child) { display: none; }
html.ds .checkout-cart__wrapper { padding: 0; box-shadow: none; border-radius: var(--tor-r-lg); }
html.ds .checkout-customer__group-item.input, html.ds .payment-method label.input { height: auto; min-height: 40px; padding: 8px 16px 8px 14px; white-space: nowrap; }
html.ds .checkout-customer__group-item.input input, html.ds .payment-method label.input input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0 !important; border-color: var(--tor-line-strong); }
html.ds .input input[type="radio"]:checked { border: 5px solid var(--tor-action); background: #fff; }
html.ds .unicheckout-sticky__confirm-agree label { display: block; padding-left: 24px; position: relative; }
html.ds .unicheckout-sticky__confirm-agree label input { position: absolute !important; left: 0; top: 2px; margin: 0 !important; }
html.ds .checkout-customer__group-item.input, html.ds .payment-method label.input { position: relative; padding-left: 40px !important; }
html.ds .checkout-customer__group-item.input input, html.ds .payment-method label.input input { position: absolute !important; left: 14px; top: 50%; transform: translateY(-50%); }
html.ds .unicheckout-sticky__confirm-agree label.input { display: block !important; padding-left: 26px !important; }
html.ds .checkout-customer__group-item.input, html.ds .payment-method label.input { padding-right: 18px !important; }

/* H1 главной — заголовок стены категорий */
html.ds h1.heading { font-size: 24px; line-height: 1.2; margin: 8px 0 18px; }
@media (max-width: 767px) { html.ds h1.heading { font-size: 20px; } }
/* Масштабирование разрешено — поля 16px на мобиле, чтобы iOS не увеличивал страницу при фокусе */
@media (max-width: 767px) {
	html.ds input.form-control, html.ds select.form-control, html.ds textarea.form-control,
	html.ds .header-search__input.form-control { font-size: 16px !important; }
}
