/* ==========================================================================
   Посадика — дизайн-система
   Значения сняты с боевого сайта посадика.рф (вычисленные стили)
   ========================================================================== */

@font-face { font-family:"PT Sans"; src:url("../fonts/ptsans.woff2") format("woff2"),url("../fonts/ptsans.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"PT Sans"; src:url("../fonts/ptsansbold.woff2") format("woff2"),url("../fonts/ptsansbold.woff") format("woff"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("../fonts/Roboto.woff2") format("woff2"),url("../fonts/Roboto.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("../fonts/Robotomedium.woff2") format("woff2"),url("../fonts/Robotomedium.woff") format("woff"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Roboto"; src:url("../fonts/Robotobold.woff2") format("woff2"),url("../fonts/Robotobold.woff") format("woff"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Alice"; src:url("../fonts/Aliceregular.woff2") format("woff2"),url("../fonts/Aliceregular.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }

:root {
	--pos-green:      #4fad10;
	--pos-green-menu: #4eab10;
	--pos-green-dark: #3d860d;
	--pos-ink:        #2f2620;
	--pos-text:       #333333;
	--pos-muted:      #9a988c;
	--pos-cream:      #f6f3ee;
	--pos-grey-bar:   #e6e6e6;
	--pos-line:       #ebebeb;
	--pos-gold:       #ffb400;
	--pos-white:      #ffffff;

	--pos-font-head:   "PT Sans", "Trebuchet MS", sans-serif;
	--pos-font-body:   "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
	--pos-font-accent: "Alice", Georgia, serif;

	--pos-radius: 6px;
	--pos-gap: 20px;
	--pos-container: 1400px;
}

body {
	font-family: var(--pos-font-head);
	font-size: 14px;
	line-height: 20px;
	color: var(--pos-text);
	background: var(--pos-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pos-font-body);
	font-weight: 500;
	color: var(--pos-ink);
}

a { color: var(--pos-green-dark); text-decoration: none; }
a:hover { color: var(--pos-green); }

.pos-container {
	max-width: var(--pos-container);
	margin: 0 auto;
	padding: 0 15px;
}

.button, button, input[type="submit"], .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
	background-color: var(--pos-green);
	color: var(--pos-white);
	border: 0;
	border-radius: var(--pos-radius);
	font-family: var(--pos-font-body);
	font-weight: 500;
	transition: background-color .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--pos-green-dark);
	color: var(--pos-white);
}

/* ============================ Шапка ============================ */

.pos-header-top {
	background: var(--pos-grey-bar);
	color: var(--pos-text);
	font-size: 14px;
	min-height: 30px;
}
.pos-header-top .pos-container {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 30px;
	flex-wrap: wrap;
}
.pos-header-top__phone {
	color: var(--pos-ink);
	font-family: var(--pos-font-body);
	font-weight: 700;
	font-size: 14px;
}
.pos-header-top__links { display: flex; gap: 60px; flex: 1; }
.pos-header-top__links a {
	color: var(--pos-ink);
	font-family: var(--pos-font-body);
	font-size: 16px;
}
.pos-header-top__links a:hover { color: var(--pos-green); }
.pos-header-top__sale { color: #f00 !important; font-weight: 700; }

.pos-header { background: var(--pos-white); }
.pos-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 100px;
	flex-wrap: wrap;
}
.pos-header__logo img { display: block; width: 195px; height: 50px; }

.pos-header__contacts { display: flex; flex-direction: column; line-height: 1.3; }
.pos-header__phone {
	font-family: var(--pos-font-body);
	font-weight: 700;
	font-size: 18px;
	color: var(--pos-ink);
}
.pos-header__email { font-size: 18px; color: var(--pos-ink); }

.pos-header__search { flex: 1 1 240px; min-width: 200px; }
.pos-header__search form { display: flex; }
.pos-header__search input[type="search"] {
	flex: 1;
	height: 30px;
	border: 2px solid var(--pos-line);
	border-right: 0;
	border-radius: 30px 0 0 30px;
	padding: 0 16px;
	font-family: var(--pos-font-head);
	font-size: 14px;
}
.pos-header__search button {
	height: 30px;
	padding: 0 18px;
	border-radius: 0 30px 30px 0;
	font-size: 13px;
}

.pos-header__actions { display: flex; align-items: center; gap: 18px; }
.pos-header__city { font-size: 16px; color: var(--pos-ink); }
.pos-header__city b { font-weight: 500; }
.pos-header__account img, .pos-header__cart img { display: block; width: 25px; height: 25px; }
.pos-header__cart { position: relative; display: block; }
.pos-header__cart-count {
	position: absolute; top: -8px; right: -10px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px;
	background: var(--pos-green); color: var(--pos-white);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.pos-catmenu { background: var(--pos-green-menu); min-height: 50px; }
.pos-catmenu__inner {
	display: flex;
	align-items: center;
	min-height: 50px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.pos-catmenu__item {
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 12px;
	color: var(--pos-white);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
	white-space: nowrap;
	transition: background-color .15s ease;
}
.pos-catmenu__item:hover { background: var(--pos-green-dark); color: var(--pos-white); }

/* ============================ Главная ============================ */

.pos-hero {
	background: var(--pos-cream);
	min-height: 395px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}
.pos-hero__box { max-width: 560px; padding: 32px 0; }
.pos-hero__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 38px;
	line-height: 1.2;
	color: var(--pos-ink);
	margin: 0 0 14px;
}
.pos-hero__text { font-size: 17px; line-height: 1.5; color: var(--pos-text); margin: 0 0 20px; }
.pos-hero__btn {
	display: inline-block;
	background: var(--pos-green);
	color: var(--pos-white) !important;
	padding: 13px 32px;
	border-radius: var(--pos-radius);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
}
.pos-hero__btn:hover { background: var(--pos-green-dark); }

.pos-tiles { padding: 34px 0; }
.pos-tiles__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 26px;
	color: var(--pos-ink);
	margin: 0 0 20px;
}
.pos-tiles__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pos-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px 8px;
	border: 1px solid var(--pos-line);
	border-radius: var(--pos-radius);
	color: var(--pos-ink);
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pos-tile:hover {
	border-color: var(--pos-green);
	box-shadow: 0 4px 14px rgba(47,38,32,.08);
	color: var(--pos-green-dark);
}
.pos-tile img { width: 88px; height: 66px; object-fit: cover; border-radius: 4px; }
.pos-tile span { font-size: 14px; line-height: 1.3; }

.pos-subscribe {
	background: var(--pos-cream);
	background-size: cover;
	background-position: center;
	padding: 46px 0;
	margin: 34px 0;
	text-align: center;
}
.pos-subscribe__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 28px;
	color: var(--pos-ink);
	margin: 0 0 8px;
}
.pos-subscribe__text { font-size: 16px; color: var(--pos-text); margin: 0 0 18px; }

.pos-about { padding: 34px 0 10px; }
.pos-about__label {
	font-family: var(--pos-font-accent);
	font-size: 18px;
	color: var(--pos-green);
	margin: 0 0 6px;
}
.pos-about__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 26px;
	color: var(--pos-ink);
	margin: 0 0 14px;
}
.pos-about__text { font-size: 16px; line-height: 1.6; max-width: 900px; }

.pos-city-bar {
	background: var(--pos-cream);
	border-left: 3px solid var(--pos-green);
	color: var(--pos-ink);
	font-size: 15px;
	margin: 0 0 20px;
	padding: 10px 16px;
	border-radius: var(--pos-radius);
}

/* ============================ Подвал ============================ */
.pos-footer {
	background: var(--pos-cream);
	border-top: 1px solid var(--pos-line);
	margin-top: 40px;
	padding: 32px 0;
}
.pos-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.pos-footer__col { display: flex; flex-direction: column; gap: 7px; }
.pos-footer__title {
	font-family: var(--pos-font-head);
	font-size: 15px; font-weight: 700;
	margin: 0 0 4px; color: var(--pos-ink);
}
.pos-footer__col a { color: var(--pos-ink); font-size: 14px; }
.pos-footer__col a:hover { color: var(--pos-green); }
.pos-footer__phone { font-family: var(--pos-font-body) !important; font-size: 18px !important; font-weight: 700; }
.pos-footer__note { font-size: 12px; color: var(--pos-muted); }

@media (max-width: 1024px) {
	.pos-tiles__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
	.pos-header-top__links { display: none; }
	.pos-header__contacts { display: none; }
	.pos-header__inner { gap: 14px; min-height: auto; padding: 12px 0; }
	.pos-header__search { order: 10; flex-basis: 100%; }
	.pos-tiles__grid { grid-template-columns: repeat(2, 1fr); }
	.pos-hero__title { font-size: 26px; }
	.pos-catmenu__item { font-size: 15px; padding: 0 10px; }
}

/* Полоса прокрутки меню не должна увеличивать высоту */
.pos-catmenu__inner { scrollbar-width: none; -ms-overflow-style: none; }
.pos-catmenu__inner::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Каталог и карточка товара — значения сняты с боевого
   ========================================================================== */

:root {
	--pos-price:      #ff4621;  /* цена */
	--pos-price-old:  #96918d;  /* старая цена */
	--pos-sale:       #ff4f01;  /* текст плашки скидки */
	--pos-stock-in:   #b0dd2b;  /* «в наличии» */
}

/* --- Заголовок раздела --- */
.woocommerce-products-header__title,
.woocommerce-page h1.entry-title,
.tax-product_cat h1 {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 20px;
	color: var(--pos-ink);
	margin-bottom: 10px;
}

/* --- Сетка каталога: 4 в ряд --- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product {
	position: relative;
	width: auto !important;
	margin: 0 0 30px !important;
	padding: 0 7px;
	float: none !important;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
}

/* --- Картинка: квадрат, без скругления --- */
.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	margin: 0 0 10px;
	display: block;
}

/* --- Плашка скидки: белая, оранжевый текст, справа сверху --- */
.woocommerce span.onsale,
.pos-discount {
	position: absolute;
	top: 10px;
	right: 17px;
	left: auto;
	z-index: 2;
	min-width: 80px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-white);
	color: var(--pos-sale);
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	padding: 0 4px;
	margin: 0;
	border-radius: 40px 0 40px 40px;
	box-shadow: 0 1px 4px rgba(47, 38, 32, .12);
}

/* --- Название --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	flex: 1 0 auto;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	color: var(--pos-ink);
	padding: 0 0 6px;
	margin: 0;
}

/* --- Наличие --- */
.pos-stock { display: block; font-size: 14px; margin-bottom: 6px; }
.pos-stock--in  { color: var(--pos-stock-in); }
.pos-stock--out { color: var(--pos-muted); }

/* --- Цены: крупная красно-оранжевая --- */
.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 10px;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 30px;
	color: var(--pos-price);
}
.woocommerce ul.products li.product .price del {
	order: 2;
	opacity: 1;
	font-size: 20px;
	font-weight: 400;
	color: var(--pos-price-old);
	text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins {
	order: 1;
	background: none;
	text-decoration: none;
	color: var(--pos-price);
	font-weight: 700;
}

/* --- Кнопка: белая с тёмным текстом и рамкой --- */
.woocommerce ul.products li.product .button {
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pos-white);
	color: var(--pos-ink);
	border: 1px solid var(--pos-line);
	border-radius: 0;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
	padding: 0;
	margin: 0;
	transition: background-color .15s ease, color .15s ease;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--pos-green);
	color: var(--pos-white);
	border-color: var(--pos-green);
}
.woocommerce ul.products li.product .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	text-align: center;
}

/* --- Крошки --- */
.pos-breadcrumb { font-size: 13px; color: var(--pos-muted); margin-bottom: 16px; }
.pos-breadcrumb a { color: var(--pos-muted); }
.pos-breadcrumb a:hover { color: var(--pos-green); }
.pos-crumb-sep { margin: 0 7px; color: var(--pos-line); }

/* --- Страница товара --- */
.single-product .product_title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	color: var(--pos-ink);
	margin-bottom: 12px;
}
.single-product .summary .price {
	font-family: var(--pos-font-head);
	font-size: 36px;
	font-weight: 700;
	color: var(--pos-price);
	margin-bottom: 10px;
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.single-product .summary .price del {
	order: 2;
	font-size: 22px;
	color: var(--pos-price-old);
	opacity: 1;
}
.single-product .summary .price ins {
	order: 1;
	background: none;
	text-decoration: none;
	color: var(--pos-price);
}

.pos-single-stock { font-size: 14px; margin-bottom: 14px; padding-left: 20px; position: relative; }
.pos-single-stock::before {
	content: '';
	position: absolute;
	left: 0; top: 5px;
	width: 10px; height: 10px;
	border-radius: 50%;
}
.pos-single-stock.is-in  { color: var(--pos-stock-in); }
.pos-single-stock.is-in::before  { background: var(--pos-stock-in); }
.pos-single-stock.is-out { color: var(--pos-muted); }
.pos-single-stock.is-out::before { background: var(--pos-muted); }

.single-product .cart .button {
	height: 50px;
	padding: 0 34px;
	font-size: 16px;
	border-radius: 0;
}

/* --- Адаптив --- */
@media (max-width: 1024px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products li.product .price { font-size: 22px; }
	.woocommerce span.onsale, .pos-discount { font-size: 17px; min-width: 62px; height: 32px; }
	.single-product .product_title { font-size: 22px; }
	.single-product .summary .price { font-size: 26px; }
}

/* --- Прячем штатную шапку и меню GeneratePress: у нас своя --- */
.site-header,
#site-navigation,
.main-navigation,
.site-branding { display: none !important; }

/* Отступ контента как на боевом */
.site-content { padding-top: 20px; }

/* ==========================================================================
   Карточка товара — доводка под боевой (сверено по скриншотам)
   ========================================================================== */

/* Карточка в рамке, содержимое по центру */
.woocommerce ul.products li.product {
	border: 1px solid var(--pos-line);
	padding: 0;
	margin: 0 0 24px !important;
	background: var(--pos-white);
	text-align: center;
	overflow: hidden;
}
.woocommerce ul.products { gap: 22px; }

.woocommerce ul.products li.product > a:first-of-type { display: block; }
.woocommerce ul.products li.product a img { margin: 0; }

/* Название — заглавными, по центру */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 14px;
	line-height: 18px;
	color: var(--pos-ink);
	text-transform: uppercase;
	text-align: center;
	padding: 14px 12px 4px;
	margin: 0;
	flex: 1 0 auto;
}

/* Подпись «за 1 уп.» */
.pos-unit {
	display: block;
	font-family: var(--pos-font-head);
	font-style: italic;
	font-size: 13px;
	color: var(--pos-muted);
	text-align: center;
	padding: 0 12px 8px;
}

/* Наличие по центру */
.pos-stock { text-align: center; padding: 0 12px; }

/* Цены по центру, старая слева от новой */
.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 12px;
	padding: 4px 12px 16px;
	margin: 0;
}
.woocommerce ul.products li.product .price del { order: 1; }
.woocommerce ul.products li.product .price ins { order: 2; }

/* Кнопка: отделена линией, иконка + текст заглавными */
.woocommerce ul.products li.product .button {
	border: 0;
	border-top: 1px solid var(--pos-line);
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: .3px;
	gap: 10px;
}
.woocommerce ul.products li.product .button::before {
	content: '';
	width: 22px;
	height: 22px;
	background-image: url("../icons/cart.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex: 0 0 22px;
}

/* Плашка скидки — пилюля справа сверху */
.woocommerce span.onsale,
.pos-discount {
	right: 12px;
	border-radius: 30px 0 30px 30px;
	min-width: 74px;
	height: 38px;
	font-size: 20px;
}

/* Заголовок раздела и крошки как на боевом */
.pos-breadcrumb { text-transform: uppercase; font-size: 12px; letter-spacing: .4px; }
.woocommerce-result-count { color: var(--pos-muted); font-size: 13px; }

/* Ровная высота карточек: название в две строки */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
/* Наличие в каталоге скрыто — как на боевом */
.woocommerce ul.products li.product .pos-stock { display: none; }
/* Цена прижата к низу, чтобы кнопки были на одной линии */
.woocommerce ul.products li.product .price { margin-top: auto; }

/* --- Круглые иконки у контактов --- */
.pos-header__phone, .pos-header__email { display: flex; align-items: center; gap: 9px; }
.pos-ico {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--pos-green);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	flex: 0 0 26px;
}
.pos-ico--phone { background-image: url("../icons/phone.svg"); }
.pos-ico--mail  { background-image: url("../icons/email.svg"); }

/* --- Поиск: скруглённое поле с лупой --- */
.pos-header__search form { position: relative; display: block; }
.pos-header__search input[type="search"] {
	width: 100%;
	height: 46px;
	border: 1px solid var(--pos-line);
	border-radius: 30px;
	padding: 0 52px 0 22px;
	font-family: var(--pos-font-head);
	font-size: 15px;
	color: var(--pos-ink);
	background: var(--pos-white);
}
.pos-header__search input[type="search"]::placeholder { color: var(--pos-muted); }
.pos-header__search button {
	position: absolute;
	top: 50%; right: 6px;
	transform: translateY(-50%);
	width: 38px; height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.pos-header__search button::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("../images/header/search.png") no-repeat center / 20px 20px;
	opacity: .55;
}
.pos-header__search button:hover::before { opacity: .9; }

/* --- Город --- */
.pos-header__city b { color: var(--pos-gold); font-weight: 700; }

/* --- Корзина в оранжевом круге --- */
.pos-header__cart {
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--pos-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}
.pos-header__cart img { width: 24px; height: 24px; }
.pos-header__cart-count {
	top: -2px; right: -2px;
	background: var(--pos-green);
	border: 2px solid var(--pos-white);
	min-width: 22px; height: 22px; line-height: 18px;
}
.pos-header__account img { opacity: .75; }
.pos-header__account:hover img { opacity: 1; }

/* Иконки в кругах — белые, через маску (цвет SVG не важен) */
.pos-ico {
	background-image: none !important;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pos-ico::before {
	content: '';
	width: 14px;
	height: 14px;
	background: var(--pos-white);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.pos-ico--phone::before {
	-webkit-mask-image: url("../icons/phone.svg");
	mask-image: url("../icons/phone.svg");
}
.pos-ico--mail::before {
	-webkit-mask-image: url("../icons/email.svg");
	mask-image: url("../icons/email.svg");
}

/* ==========================================================================
   Страница товара
   ========================================================================== */

.single-product div.product {
	border: 1px solid var(--pos-line);
	border-radius: var(--pos-radius);
	padding: 30px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }

/* Плашка скидки поверх картинки */
.single-product .woocommerce-product-gallery span.onsale,
.single-product .pos-discount {
	top: 16px;
	right: 16px;
	font-size: 24px;
	min-width: 92px;
	height: 46px;
}

/* Название */
.single-product .product_title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--pos-ink);
	margin: 0 0 8px;
}

.pos-single-stock { font-size: 15px; margin-bottom: 18px; padding-left: 0; }
.pos-single-stock::before { content: none; }
.pos-single-stock.is-in  { color: var(--pos-green); }
.pos-single-stock.is-out { color: var(--pos-muted); }

/* Количество и оптовая цена */
.single-product form.cart {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 14px;
	border-top: 1px solid var(--pos-line);
	padding-top: 20px;
	margin: 0 0 18px;
}
.pos-qty-label { font-size: 15px; color: var(--pos-ink); }
.single-product form.cart .quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--pos-line);
	border-radius: var(--pos-radius);
	overflow: hidden;
	height: 46px;
}
.single-product form.cart .quantity input.qty {
	width: 56px;
	height: 44px;
	border: 0;
	text-align: center;
	font-family: var(--pos-font-head);
	font-size: 16px;
}
.pos-wholesale {
	justify-self: end;
	text-align: right;
	font-size: 13px;
	line-height: 1.4;
	color: var(--pos-muted);
}
.pos-wholesale a { color: var(--pos-ink); text-decoration: underline; }

/* Кнопка «Купить» — зелёная во всю ширину */
.single-product form.cart button.single_add_to_cart_button {
	grid-column: 1 / -1;
	width: 100%;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--pos-green);
	color: var(--pos-white);
	border: 0;
	border-radius: var(--pos-radius);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.single-product form.cart button.single_add_to_cart_button::before {
	content: '';
	width: 24px; height: 24px;
	background: var(--pos-white);
	-webkit-mask: url("../icons/cart.svg") no-repeat center / contain;
	mask: url("../icons/cart.svg") no-repeat center / contain;
}
.single-product form.cart button.single_add_to_cart_button:hover { background: var(--pos-green-dark); }

/* Цена */
.single-product .summary .price {
	order: -1;
	font-size: 38px;
	margin: 0 0 2px;
}
.pos-save {
	display: inline-block;
	background: var(--pos-ink);
	color: var(--pos-white);
	font-size: 13px;
	padding: 5px 12px;
	border-radius: 4px;
	margin-left: 10px;
	vertical-align: middle;
}
.pos-unit-single { font-size: 14px; color: var(--pos-muted); margin-bottom: 18px; }

/* Блоки-аккордеоны */
.pos-acc {
	border: 1px solid var(--pos-line);
	border-radius: var(--pos-radius);
	margin-top: 22px;
	overflow: hidden;
}
.pos-acc__item + .pos-acc__item { border-top: 1px solid var(--pos-line); }
.pos-acc__head {
	list-style: none;
	cursor: pointer;
	padding: 16px 20px;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
	color: var(--pos-ink);
	position: relative;
}
.pos-acc__head::-webkit-details-marker { display: none; }
.pos-acc__head::after {
	content: '';
	position: absolute;
	right: 20px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--pos-ink);
	border-bottom: 2px solid var(--pos-ink);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .15s ease;
}
.pos-acc__item[open] .pos-acc__head::after { transform: translateY(-20%) rotate(-135deg); }
.pos-acc__body { padding: 0 20px 20px; font-size: 14px; line-height: 1.55; color: var(--pos-text); }
.pos-acc__link {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 22px;
	border: 1px solid var(--pos-line);
	border-radius: 30px;
	font-size: 13px;
	text-transform: uppercase;
	color: var(--pos-ink);
	letter-spacing: .4px;
}
.pos-acc__link:hover { border-color: var(--pos-green); color: var(--pos-green); }

/* Характеристики */
.pos-specs { margin-bottom: 40px; }
.pos-specs__tab {
	display: inline-block;
	background: var(--pos-gold);
	color: var(--pos-white);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 14px 34px;
	border-radius: 30px;
	margin-bottom: 18px;
}
.pos-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 60px;
	border: 1px solid var(--pos-line);
	border-radius: var(--pos-radius);
	padding: 16px 24px;
}
.pos-specs__row {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pos-line);
}
.pos-specs__name {
	flex: 0 0 45%;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .3px;
	color: var(--pos-ink);
}
.pos-specs__value { font-size: 14px; color: var(--pos-text); }
.pos-specs__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 12px;
}
.pos-desc { margin-bottom: 40px; font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
	.pos-specs__grid { grid-template-columns: 1fr; gap: 0; }
	.single-product .product_title { font-size: 22px; }
	.single-product .summary .price { font-size: 28px; }
	.single-product form.cart { grid-template-columns: auto 1fr; }
	.pos-wholesale { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* --- Доводка страницы товара --- */
.single-product .summary {
	display: flex;
	flex-direction: column;
	position: relative;
}
.single-product .product_title { order: 1; }
.pos-single-stock { order: 2; }
.pos-price-label { order: 3; font-size: 15px; color: var(--pos-ink); margin-top: 14px; }
.single-product .summary .price { order: 4; margin: 0 0 2px; }
.pos-save { order: 5; align-self: flex-start; margin: 4px 0 0; }
.pos-unit-single { order: 6; margin: 6px 0 18px; }
.single-product form.cart { order: 7; }
.pos-acc { order: 8; }

/* Плашка скидки — поверх картинки, не в колонке справа */
.single-product .summary > .onsale,
.single-product .summary > .pos-discount { display: none; }
.single-product .woocommerce-product-gallery { position: relative; }

/* Количество компактнее */
.single-product form.cart .quantity { width: max-content; }
.single-product form.cart { grid-template-columns: auto auto 1fr; }

/* ==========================================================================
   Выпадающее меню категорий
   ========================================================================== */

.pos-catmenu { position: relative; overflow: visible; }
.pos-catmenu__inner { overflow: visible; gap: 0; }

.pos-catmenu__item {
	position: static;
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0;
}
.pos-catmenu__link {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 50px;
	padding: 0 16px;
	color: var(--pos-white);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
	white-space: nowrap;
	transition: background-color .15s ease;
}
.pos-catmenu__item:hover > .pos-catmenu__link,
.pos-catmenu__link:hover { background: var(--pos-green-dark); color: var(--pos-white); }

/* Стрелка */
.pos-chev {
	width: 9px; height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s ease;
	flex: 0 0 9px;
}
.pos-catmenu__item:hover .pos-chev { transform: translateY(2px) rotate(-135deg); }

/* Панель */
.pos-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 50px;
	z-index: 60;
	background: var(--pos-white);
	border-bottom: 1px solid var(--pos-line);
	box-shadow: 0 12px 26px rgba(47, 38, 32, .12);
	padding: 26px 0 32px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pos-catmenu__item.has-sub:hover > .pos-mega,
.pos-catmenu__item.has-sub:focus-within > .pos-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pos-mega__title {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 26px;
	text-transform: uppercase;
	color: var(--pos-ink);
	margin: 0 0 18px;
}

.pos-mega__cols { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 34px; align-items: start; }
.pos-mega__pic img { width: 100%; height: auto; border-radius: var(--pos-radius); display: block; }

.pos-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 22px;
}
.pos-mega__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Пилюля подкатегории */
.pos-pill {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--pos-grey-bar);
	border-radius: 40px;
	padding: 6px 20px 6px 6px;
	color: var(--pos-ink);
	transition: background-color .15s ease, color .15s ease;
	min-height: 56px;
}
.pos-pill:hover { background: var(--pos-cream); color: var(--pos-green-dark); }
.pos-pill img {
	width: 44px; height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 44px;
	background: var(--pos-white);
}
.pos-pill span {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .2px;
}

@media (max-width: 1024px) {
	.pos-mega__cols { grid-template-columns: 1fr; }
	.pos-mega__pic { display: none; }
	.pos-mega__grid, .pos-mega__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.pos-mega { display: none; }
	.pos-catmenu__link { font-size: 15px; padding: 0 10px; }
}

/* ==========================================================================
   Главная: блок «Лучшие категории»
   ========================================================================== */

.pos-tiles { padding: 40px 0 20px; }

.pos-tiles__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	margin-bottom: 28px;
}
.pos-tiles__badge {
	background: var(--pos-green);
	color: var(--pos-white);
	font-family: var(--pos-font-body);
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 14px 56px;
	border-radius: 40px;
}
.pos-tiles__leaf {
	width: 40px; height: 40px;
	background: var(--pos-green);
	-webkit-mask: url("../icons/flower.svg") no-repeat center / contain;
	mask: url("../icons/flower.svg") no-repeat center / contain;
	flex: 0 0 40px;
}

.pos-tiles__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.pos-tile {
	display: block;
	border: 1px solid var(--pos-line);
	border-radius: 0;
	padding: 0;
	overflow: hidden;
	background: var(--pos-white);
	transition: box-shadow .15s ease, border-color .15s ease;
	text-align: left;
}
.pos-tile:hover { border-color: var(--pos-green); box-shadow: 0 6px 18px rgba(47,38,32,.10); }

.pos-tile__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.pos-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.pos-tile__name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 10px 14px;
	border-top: 1px solid var(--pos-line);
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: var(--pos-ink);
	text-align: center;
}
.pos-tile:hover .pos-tile__name { color: var(--pos-green-dark); }

@media (max-width: 1024px) {
	.pos-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pos-tiles__badge { font-size: 19px; padding: 12px 34px; }
}
@media (max-width: 768px) {
	.pos-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.pos-tiles__leaf { display: none; }
	.pos-tiles__badge { font-size: 16px; padding: 10px 24px; }
	.pos-tile__name { font-size: 13px; min-height: 52px; }
}

/* --- Пилюли выпадающего меню: значения сняты с боевого --- */
.pos-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, 285px);
	gap: 14px 22px;
	justify-content: start;
}
.pos-mega__grid--2 { grid-template-columns: repeat(2, 285px); }

.pos-pill {
	width: 285px;
	min-height: 66px;
	background: #f5f5f5;
	border-radius: 60px;
	padding: 7px;
	gap: 12px;
}
.pos-pill:hover { background: var(--pos-cream); }
.pos-pill img { width: 48px; height: 48px; flex: 0 0 48px; }
.pos-pill span {
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--pos-ink);
	letter-spacing: 0;
}

@media (max-width: 1024px) {
	.pos-mega__grid, .pos-mega__grid--2 { grid-template-columns: repeat(2, 285px); }
}
@media (max-width: 700px) {
	.pos-mega__grid, .pos-mega__grid--2 { grid-template-columns: 1fr; }
	.pos-pill { width: 100%; }
}

/* --- Плитки категорий: подпись поверх фото, зум при наведении (как на боевом) --- */
.pos-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: none;
	aspect-ratio: 333 / 252;
}
.pos-tile:hover { box-shadow: none; border-color: transparent; }

.pos-tile__img {
	position: absolute;
	inset: 0;
	display: block;
	aspect-ratio: auto;
	overflow: hidden;
}
.pos-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.pos-tile:hover .pos-tile__img img { transform: scale(1.08); }

.pos-tile__name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	min-height: 63px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 12px;
	border: 0;
	background: rgba(255, 255, 255, .76);
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #3c3524;
	text-align: center;
	transition: background-color .3s ease, color .3s ease;
}
.pos-tile:hover .pos-tile__name { background: rgba(255, 255, 255, .9); color: var(--pos-green-dark); }

@media (max-width: 768px) {
	.pos-tile__name { font-size: 14px; min-height: 48px; padding: 10px; }
}

/* ==========================================================================
   Слайдер на главной
   ========================================================================== */

.pos-slider {
	position: relative;
	overflow: hidden;
	background: var(--pos-cream);
	aspect-ratio: 1600 / 500;
	max-height: 500px;
}

.pos-slider__track { position: absolute; inset: 0; }

.pos-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
	display: block;
}
.pos-slide.is-active { opacity: 1; visibility: visible; }
.pos-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Стрелки */
.pos-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .78);
	cursor: pointer;
	padding: 0;
	transition: background-color .15s ease;
}
.pos-slider__nav:hover { background: var(--pos-white); }
.pos-slider__nav::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 12px; height: 12px;
	border-right: 2px solid var(--pos-ink);
	border-bottom: 2px solid var(--pos-ink);
}
.pos-slider__nav--prev { left: 22px; }
.pos-slider__nav--prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.pos-slider__nav--next { right: 22px; }
.pos-slider__nav--next::before { transform: translate(-70%, -50%) rotate(-45deg); }

/* Точки */
.pos-slider__dots {
	position: absolute;
	left: 0; right: 0; bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.pos-slider__dot {
	width: 12px; height: 12px;
	padding: 0;
	border: 2px solid var(--pos-white);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.pos-slider__dot.is-active { background: var(--pos-white); transform: scale(1.15); }

@media (max-width: 768px) {
	.pos-slider__nav { width: 34px; height: 34px; }
	.pos-slider__nav--prev { left: 8px; }
	.pos-slider__nav--next { right: 8px; }
	.pos-slider__dots { bottom: 10px; gap: 7px; }
	.pos-slider__dot { width: 9px; height: 9px; }
}

/* --- Содержимое слайдов --- */
.pos-slide {
	display: block;
	pointer-events: none;
}
.pos-slide.is-active { pointer-events: auto; }

.pos-slide__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pos-slide__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, .96) 0%,
		rgba(255, 255, 255, .90) 34%,
		rgba(255, 255, 255, .45) 56%,
		rgba(255, 255, 255, 0) 78%
	);
}
.pos-slide__inner {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
}
.pos-slide__box { max-width: 560px; }

.pos-slide__kick {
	display: inline-block;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--pos-green-dark);
	margin-bottom: 12px;
}
.pos-slide__head {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 44px;
	line-height: 1.12;
	color: var(--pos-ink);
	margin: 0 0 14px;
}
.pos-slide__text {
	font-family: var(--pos-font-head);
	font-size: 17px;
	line-height: 1.55;
	color: var(--pos-text);
	margin: 0 0 22px;
}
.pos-slide__btn {
	display: inline-block;
	background: var(--pos-green);
	color: var(--pos-white) !important;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
	padding: 14px 34px;
	border-radius: 40px;
	transition: background-color .15s ease;
}
.pos-slide__btn:hover { background: var(--pos-green-dark); }

@media (max-width: 1024px) {
	.pos-slide__head { font-size: 32px; }
	.pos-slide__box { max-width: 60%; }
}
@media (max-width: 768px) {
	.pos-slider { aspect-ratio: 4 / 3; max-height: none; }
	.pos-slide__scrim {
		background: linear-gradient(0deg, rgba(255,255,255,.96) 40%, rgba(255,255,255,.5) 70%, rgba(255,255,255,.15) 100%);
	}
	.pos-slide__inner { align-items: flex-end; padding-bottom: 46px; }
	.pos-slide__box { max-width: 100%; }
	.pos-slide__head { font-size: 24px; }
	.pos-slide__text { font-size: 14px; margin-bottom: 16px; }
	.pos-slide__btn { padding: 11px 24px; font-size: 14px; }
}

/* ==========================================================================
   Мобильная версия
   ========================================================================== */

/* Бургер виден только на узких экранах */
.pos-burger,
.pos-catmenu__close,
.pos-catmenu__overlay { display: none; }

@media (max-width: 900px) {

	/* --- Верхняя полоса: только телефон --- */
	.pos-header-top .pos-container { justify-content: flex-start; min-height: 30px; }
	.pos-header-top__phone { font-size: 13px; }

	/* --- Шапка компактная, в одну строку --- */
	.pos-header__inner {
		display: grid;
		grid-template-columns: auto 1fr auto auto;
		grid-template-areas: "logo . account cart" "search search search search";
		align-items: center;
		gap: 8px 10px;
		min-height: auto;
		padding: 10px 0;
	}
	.pos-header__logo { grid-area: logo; }
	.pos-header__logo img { width: 150px; height: 38px; }
	.pos-header__contacts { display: none; }
	.pos-header__city { display: none; }
	.pos-header__actions { display: contents; }
	.pos-header__account { grid-area: account; }
	.pos-header__cart { grid-area: cart; width: 40px; height: 40px; }
	.pos-header__cart img { width: 20px; height: 20px; }
	.pos-header__search { grid-area: search; flex: none; min-width: 0; }
	.pos-header__search input[type="search"] { height: 40px; font-size: 14px; padding: 0 46px 0 16px; }
	.pos-header__search button { width: 32px; height: 32px; right: 5px; }

	/* --- Полоса меню превращается в бургер --- */
	.pos-catmenu { min-height: 44px; position: relative; }

	.pos-burger {
		display: flex;
		align-items: center;
		gap: 9px;
		height: 44px;
		padding: 0 15px;
		background: none;
		border: 0;
		cursor: pointer;
		color: var(--pos-white);
	}
	.pos-burger span {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--pos-white);
		border-radius: 2px;
		transition: transform .2s ease, opacity .2s ease;
	}
	.pos-burger span + span { margin-top: 0; }
	.pos-burger > span:nth-child(1) { margin-bottom: 4px; }
	.pos-burger > span:nth-child(2) { margin-bottom: 4px; }
	.pos-burger b {
		font-family: var(--pos-font-body);
		font-weight: 500;
		font-size: 16px;
		margin-left: 4px;
	}
	/* столбик из трёх полосок */
	.pos-burger { position: relative; padding-left: 44px; }
	.pos-burger span { position: absolute; left: 15px; }
	.pos-burger span:nth-child(1) { top: 15px; }
	.pos-burger span:nth-child(2) { top: 21px; }
	.pos-burger span:nth-child(3) { top: 27px; }
	.pos-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.pos-burger.is-open span:nth-child(2) { opacity: 0; }
	.pos-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	/* --- Выдвижная панель --- */
	.pos-catmenu__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 90;
		background: rgba(47, 38, 32, .45);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s;
	}
	.pos-catmenu.is-open .pos-catmenu__overlay { opacity: 1; visibility: visible; }

	.pos-catmenu__inner {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 91;
		width: 86%;
		max-width: 340px;
		display: block;
		background: var(--pos-white);
		padding: 56px 0 24px;
		overflow-y: auto;
		transform: translateX(-102%);
		transition: transform .25s ease;
		box-shadow: 0 0 28px rgba(47, 38, 32, .25);
		min-height: 0;
	}
	.pos-catmenu.is-open .pos-catmenu__inner { transform: translateX(0); }

	.pos-catmenu__close {
		display: block;
		position: absolute;
		top: 12px;
		right: 12px;
		width: 34px;
		height: 34px;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.pos-catmenu__close::before,
	.pos-catmenu__close::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 8px;
		width: 18px;
		height: 2px;
		background: var(--pos-ink);
	}
	.pos-catmenu__close::before { transform: rotate(45deg); }
	.pos-catmenu__close::after  { transform: rotate(-45deg); }

	/* Пункты в столбик */
	.pos-catmenu__item { display: block; height: auto; border-bottom: 1px solid var(--pos-line); }
	.pos-catmenu__link {
		height: auto;
		padding: 14px 18px;
		color: var(--pos-ink);
		font-size: 16px;
		justify-content: space-between;
	}
	.pos-catmenu__item:hover > .pos-catmenu__link,
	.pos-catmenu__link:hover { background: var(--pos-cream); color: var(--pos-green-dark); }
	.pos-chev { border-color: var(--pos-ink); }

	/* Подменю раскрывается внутри панели */
	.pos-mega {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0;
		display: none;
		background: var(--pos-cream);
	}
	.pos-catmenu__item.is-expanded > .pos-mega { display: block; }
	.pos-catmenu__item.has-sub:hover > .pos-mega { opacity: 1; visibility: visible; }
	.pos-mega .pos-container { padding: 10px 18px 14px; max-width: none; }
	.pos-mega__title { display: none; }
	.pos-mega__cols { display: block; }
	.pos-mega__pic { display: none; }
	.pos-mega__grid,
	.pos-mega__grid--2 { grid-template-columns: 1fr; gap: 8px; }
	.pos-pill { width: 100%; min-height: 52px; background: var(--pos-white); }
	.pos-pill img { width: 38px; height: 38px; flex-basis: 38px; }
	.pos-pill span { font-size: 13px; }

	body.pos-menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
	.pos-header__logo img { width: 130px; height: 33px; }
	.pos-tiles__grid { gap: 10px; }
	.pos-slide__head { font-size: 21px; }
}

/* Подложка слайда мягче — фото должно оставаться видимым */
.pos-slide__scrim {
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, .93) 0%,
		rgba(255, 255, 255, .82) 26%,
		rgba(255, 255, 255, .30) 48%,
		rgba(255, 255, 255, 0) 62%
	);
}

/* --- Каталог и товар на узких экранах (финальная доводка) --- */
@media (max-width: 768px) {
	.woocommerce ul.products { gap: 12px; }
	.woocommerce ul.products li.product { padding: 0; margin-bottom: 12px !important; }

	.woocommerce span.onsale,
	.pos-discount {
		top: 6px;
		right: 6px;
		min-width: 54px;
		height: 28px;
		font-size: 15px;
		border-radius: 22px 0 22px 22px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 12px;
		line-height: 15px;
		min-height: 44px;
		padding: 10px 8px 2px;
	}
	.pos-unit { font-size: 11px; padding: 0 8px 6px; }
	.woocommerce ul.products li.product .price { font-size: 20px; gap: 7px; padding: 2px 8px 10px; }
	.woocommerce ul.products li.product .price del { font-size: 14px; }
	.woocommerce ul.products li.product .button { height: 42px; font-size: 13px; gap: 7px; }
	.woocommerce ul.products li.product .button::before { width: 17px; height: 17px; flex-basis: 17px; }

	.woocommerce-ordering, .woocommerce-result-count { float: none; width: 100%; margin-bottom: 10px; }
	.woocommerce-ordering select { width: 100%; }

	/* Страница товара */
	.single-product div.product { padding: 14px; }
	.pos-specs__tab { font-size: 15px; padding: 11px 24px; }
	.pos-acc__head { font-size: 15px; padding: 14px 16px; }
	.pos-acc__body { padding: 0 16px 16px; }
	.single-product form.cart button.single_add_to_cart_button { height: 50px; font-size: 16px; }

	/* Подвал в две колонки, чтобы не было длинной простыни */
	.pos-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.pos-footer { padding: 24px 0; margin-top: 26px; }
}

@media (max-width: 380px) {
	.pos-footer__cols { grid-template-columns: 1fr; }
}

/* --- Цена на странице товара: перебиваем стили WooCommerce --- */
.woocommerce div.product .summary p.price,
.woocommerce div.product .summary span.price,
.single-product .summary .price {
	font-family: var(--pos-font-head);
	font-size: 36px;
	font-weight: 700;
	color: var(--pos-price);
	line-height: 1.1;
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 2px;
}
.woocommerce div.product .summary p.price del,
.single-product .summary .price del {
	order: 2;
	font-size: 22px;
	font-weight: 400;
	color: var(--pos-price-old);
	opacity: 1;
}
.woocommerce div.product .summary p.price ins,
.single-product .summary .price ins {
	order: 1;
	background: none;
	text-decoration: none;
	color: var(--pos-price);
	font-weight: 700;
}

/* Зум-картинка не должна расширять страницу */
.woocommerce-product-gallery { overflow: hidden; }
img.zoomImg { max-width: none; }

@media (max-width: 768px) {
	.woocommerce div.product .summary p.price,
	.woocommerce div.product .summary span.price,
	.single-product .summary .price { font-size: 26px; gap: 9px; }
	.woocommerce div.product .summary p.price del,
	.single-product .summary .price del { font-size: 17px; }
	/* На телефоне зум не нужен — мешает прокрутке */
	img.zoomImg { display: none !important; }
}

/* Компактнее шапка на телефоне — ближе к боевому */
@media (max-width: 900px) {
	.pos-header__inner { gap: 6px 10px; padding: 8px 0; }
	.pos-header__logo img { width: 140px; height: 36px; }
	.pos-header__cart { width: 36px; height: 36px; }
	.pos-header__cart img { width: 18px; height: 18px; }
	.pos-header__cart-count { min-width: 18px; height: 18px; line-height: 15px; font-size: 10px; }
	.pos-header__account img { width: 22px; height: 22px; }
	.pos-header__search input[type="search"] { height: 36px; }
	.pos-header__search button { width: 28px; height: 28px; }
	.pos-header__search button::before { background-size: 17px 17px; }
	.pos-catmenu { min-height: 40px; }
	.pos-burger { height: 40px; }
	.pos-burger span:nth-child(1) { top: 13px; }
	.pos-burger span:nth-child(2) { top: 19px; }
	.pos-burger span:nth-child(3) { top: 25px; }
	.pos-burger b { font-size: 15px; }
}

/* --- Поиск в полосе меню: только на телефоне (как на боевом) --- */
.pos-catmenu__search { display: none; }

@media (max-width: 900px) {
	.pos-catmenu {
		display: flex;
		align-items: center;
		gap: 8px;
		padding-right: 12px;
	}
	.pos-burger { flex: 0 0 auto; padding-right: 6px; }
	.pos-burger b { display: none; }

	.pos-catmenu__search {
		display: block;
		position: relative;
		flex: 1 1 auto;
		min-width: 0;
	}
	.pos-catmenu__search input[type="search"] {
		width: 100%;
		height: 30px;
		border: 0;
		border-radius: 30px;
		padding: 0 38px 0 16px;
		font-family: var(--pos-font-head);
		font-size: 14px;
		color: var(--pos-ink);
		background: var(--pos-white);
	}
	.pos-catmenu__search input[type="search"]::placeholder { color: var(--pos-muted); }
	.pos-catmenu__search button {
		position: absolute;
		top: 50%;
		right: 4px;
		transform: translateY(-50%);
		width: 26px;
		height: 26px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
	}
	.pos-catmenu__search button::before {
		content: '';
		position: absolute;
		inset: 0;
		background: url("../images/header/search.png") no-repeat center / 16px 16px;
		opacity: .55;
	}

	/* В шапке поиск больше не нужен */
	.pos-header__search { display: none; }
	.pos-header__inner {
		grid-template-columns: auto 1fr auto auto;
		grid-template-areas: "logo . account cart";
	}

	/* Панель меню поверх полосы */
	.pos-catmenu__inner { flex: none; }
}

/* Плитки категорий на телефоне — пропорции как на боевом (155x118, подпись 55px) */
@media (max-width: 768px) {
	.pos-tile { aspect-ratio: 155 / 118; }
	.pos-tile__name { min-height: 55px; font-size: 13px; padding: 8px 6px; line-height: 1.15; }
	.pos-tiles { padding: 24px 0; }
	.pos-tiles__title { font-size: 20px; margin-bottom: 14px; }
	.pos-subscribe { padding: 30px 0; margin: 24px 0; }
	.pos-subscribe__title { font-size: 20px; }
	.pos-subscribe__text { font-size: 14px; }
	.pos-about { padding: 24px 0 6px; }
	.pos-about__title { font-size: 20px; }
	.pos-about__text { font-size: 14px; }
	/* Баннер чуть ниже — на телефоне не должен занимать пол-экрана */
	.pos-slider { aspect-ratio: 16 / 11; }
}

/* ==========================================================================
   Мобильный каталог: горизонтальные карточки в один столбец (как на боевом)
   ========================================================================== */
@media (max-width: 768px) {

	.woocommerce ul.products {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.woocommerce ul.products li.product {
		position: relative;
		display: grid;
		grid-template-columns: 150px minmax(0, 1fr);
		column-gap: 12px;
		align-content: start;
		text-align: left;
		padding: 10px;
		margin: 0 !important;
		border: 1px solid var(--pos-line);
		min-height: 170px;
	}

	/* Ссылка не мешает сетке — её содержимое становится ячейками */
	.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: contents; }

	/* Фото слева, на всю высоту карточки */
	.woocommerce ul.products li.product img {
		grid-column: 1;
		grid-row: 1 / span 20;
		align-self: start;
		width: 150px;
		height: 150px;
		margin: 0;
	}

	/* Текстовая часть справа */
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		grid-column: 2;
		display: block;
		text-align: left;
		font-size: 12px;
		line-height: 15px;
		min-height: 0;
		padding: 2px 0 4px;
	}
	.woocommerce ul.products li.product .pos-unit {
		grid-column: 2;
		text-align: left;
		padding: 0 0 6px;
		font-size: 11px;
	}
	.woocommerce ul.products li.product .price {
		grid-column: 2;
		justify-content: flex-start;
		padding: 0 0 10px;
		margin-top: 0;
		font-size: 20px;
		gap: 8px;
	}
	.woocommerce ul.products li.product .price del { font-size: 14px; }

	.woocommerce ul.products li.product .button {
		grid-column: 2;
		width: auto;
		justify-self: start;
		height: 36px;
		padding: 0 18px;
		border: 1px solid var(--pos-line);
		border-radius: 4px;
		font-size: 13px;
		gap: 8px;
	}
	.woocommerce ul.products li.product .added_to_cart { grid-column: 2; text-align: left; }

	/* Плашка скидки — над правым краем фото */
	.woocommerce span.onsale,
	.pos-discount {
		top: 16px;
		left: 104px;
		right: auto;
		min-width: 50px;
		height: 24px;
		font-size: 14px;
		border-radius: 20px 0 20px 20px;
	}
}

@media (max-width: 400px) {
	.woocommerce ul.products li.product { grid-template-columns: 120px minmax(0, 1fr); min-height: 140px; }
	.woocommerce ul.products li.product img { width: 120px; height: 120px; }
	.pos-discount { left: 78px; }
}

/* Фото в карточке ближе к пропорции боевого (там 165 из 330) */
@media (max-width: 400px) {
	.woocommerce ul.products li.product { grid-template-columns: 140px minmax(0, 1fr); min-height: 160px; }
	.woocommerce ul.products li.product img { width: 140px; height: 140px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 11px; line-height: 14px; }
	.woocommerce ul.products li.product .price { font-size: 18px; }
	.woocommerce ul.products li.product .button { height: 34px; padding: 0 14px; font-size: 12px; }
	.pos-discount { left: 96px; min-width: 46px; height: 22px; font-size: 13px; }
}

/* ==========================================================================
   1. Мобильный каталог — снова по два товара в строку (вертикальные карточки)
   ========================================================================== */
@media (max-width: 768px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	.woocommerce ul.products li.product {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		column-gap: 0;
		padding: 0;
		min-height: 0;
		text-align: center;
	}
	.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: block; }

	.woocommerce ul.products li.product img {
		grid-column: auto;
		grid-row: auto;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		grid-column: auto;
		display: flex;
		text-align: center;
		font-size: 12px;
		line-height: 15px;
		min-height: 44px;
		padding: 10px 8px 2px;
	}
	.woocommerce ul.products li.product .pos-unit { grid-column: auto; text-align: center; padding: 0 8px 6px; }
	.woocommerce ul.products li.product .price {
		grid-column: auto;
		justify-content: center;
		padding: 2px 8px 10px;
		margin-top: auto;
		font-size: 18px;
		gap: 7px;
	}
	.woocommerce ul.products li.product .price del { font-size: 13px; }
	.woocommerce ul.products li.product .button {
		grid-column: auto;
		width: 100%;
		justify-self: auto;
		height: 40px;
		padding: 0;
		border: 0;
		border-top: 1px solid var(--pos-line);
		border-radius: 0;
		font-size: 12px;
		gap: 6px;
	}
	.woocommerce ul.products li.product .added_to_cart { grid-column: auto; text-align: center; }

	.woocommerce span.onsale,
	.pos-discount {
		top: 6px;
		right: 6px;
		left: auto;
		min-width: 48px;
		height: 24px;
		font-size: 13px;
		border-radius: 20px 0 20px 20px;
	}
}

@media (max-width: 400px) {
	.woocommerce ul.products li.product { grid-template-columns: none; min-height: 0; }
	.woocommerce ul.products li.product img { width: 100%; height: auto; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 11px; line-height: 14px; }
	.woocommerce ul.products li.product .price { font-size: 17px; }
	.woocommerce ul.products li.product .button { height: 38px; padding: 0; font-size: 11px; }
	.pos-discount { left: auto; right: 5px; min-width: 42px; height: 21px; font-size: 12px; }
}

/* ==========================================================================
   2. Боковые отступы в шапке на телефоне
   ========================================================================== */
@media (max-width: 900px) {
	.pos-header__inner { padding-left: 15px; padding-right: 15px; }
	.pos-header-top .pos-container { padding-left: 15px; padding-right: 15px; }
	.pos-catmenu { padding-left: 6px; padding-right: 15px; }
}

/* ==========================================================================
   3. Убираем зазор между баннером и блоком категорий
   ========================================================================== */
.home .site-content { padding-top: 0; }
.home .site-main { margin-top: 0; }
.home .site-main > .entry-content:empty,
.home article .entry-content:empty { display: none; }
.home .site-main > article { margin: 0; }
.home .pos-tiles { padding-top: 18px; }

/* ==========================================================================
   4. Плавающая шапка при прокрутке
   ========================================================================== */
.pos-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 80;
	background: var(--pos-white);
	box-shadow: 0 2px 14px rgba(47, 38, 32, .13);
	transform: translateY(-102%);
	transition: transform .25s ease;
}
.pos-sticky.is-visible { transform: translateY(0); }

.pos-sticky__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 56px;
}

.pos-sticky__burger {
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.pos-sticky__burger span {
	position: absolute;
	left: 4px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--pos-green);
	transition: transform .2s ease, opacity .2s ease;
}
.pos-sticky__burger span:nth-child(1) { top: 8px; }
.pos-sticky__burger span:nth-child(2) { top: 14px; }
.pos-sticky__burger span:nth-child(3) { top: 20px; }
.pos-sticky__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pos-sticky__burger.is-open span:nth-child(2) { opacity: 0; }
.pos-sticky__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pos-sticky__logo { flex: 0 1 auto; min-width: 0; display: block; }
.pos-sticky__logo img { display: block; width: 130px; height: 33px; }

.pos-sticky__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pos-sticky__ico {
	position: relative;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--pos-cream);
	cursor: pointer;
	display: block;
	padding: 0;
}
.pos-sticky__ico::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	background: var(--pos-ink);
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center;  mask-position: center;
	-webkit-mask-size: contain;    mask-size: contain;
}
.pos-sticky__ico--phone::before  { -webkit-mask-image: url("../icons/phone.svg"); mask-image: url("../icons/phone.svg"); }
.pos-sticky__ico--cart::before   { -webkit-mask-image: url("../icons/cart.svg");  mask-image: url("../icons/cart.svg"); }
.pos-sticky__ico--search::before {
	-webkit-mask-image: url("../images/header/search.png");
	mask-image: url("../images/header/search.png");
}
.pos-sticky__ico--cart { background: var(--pos-gold); }
.pos-sticky__ico--cart::before { background: var(--pos-ink); }
.pos-sticky__count {
	position: absolute;
	top: -3px; right: -3px;
	min-width: 19px; height: 19px;
	padding: 0 4px;
	border: 2px solid var(--pos-white);
	border-radius: 10px;
	background: var(--pos-green);
	color: var(--pos-white);
	font-family: var(--pos-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
}

/* Строка поиска раскрывается под шапкой */
.pos-sticky__search {
	display: none;
	border-top: 1px solid var(--pos-line);
	padding: 10px 0;
	background: var(--pos-white);
}
.pos-sticky.is-search-open .pos-sticky__search { display: block; }
.pos-sticky__search .pos-container { position: relative; }
.pos-sticky__search input[type="search"] {
	width: 100%;
	height: 40px;
	border: 1px solid var(--pos-line);
	border-radius: 30px;
	padding: 0 46px 0 18px;
	font-family: var(--pos-font-head);
	font-size: 15px;
}
.pos-sticky__search button {
	position: absolute;
	top: 50%; right: 20px;
	transform: translateY(-50%);
	width: 30px; height: 30px;
	padding: 0; border: 0;
	background: transparent;
	cursor: pointer;
}
.pos-sticky__search button::before {
	content: '';
	position: absolute; inset: 0;
	background: url("../images/header/search.png") no-repeat center / 18px 18px;
	opacity: .55;
}

@media (max-width: 480px) {
	.pos-sticky__inner { height: 50px; gap: 8px; }
	.pos-sticky__logo img { width: 108px; height: 27px; }
	.pos-sticky__ico { width: 32px; height: 32px; }
	.pos-sticky__ico::before { width: 16px; height: 16px; }
	.pos-sticky__actions { gap: 7px; }
}

/* ==========================================================================
   Корзина — выезжающая панель справа
   ========================================================================== */

.pos-cart { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.pos-cart.is-open { visibility: visible; }

.pos-cart__overlay {
	position: absolute;
	inset: 0;
	background: rgba(47, 38, 32, .4);
	opacity: 0;
	transition: opacity .25s ease;
}
.pos-cart.is-open .pos-cart__overlay { opacity: 1; }

.pos-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 440px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--pos-white);
	box-shadow: -6px 0 28px rgba(47, 38, 32, .22);
	transform: translateX(102%);
	transition: transform .28s ease;
}
.pos-cart.is-open .pos-cart__panel { transform: translateX(0); }

/* --- Шапка панели --- */
.pos-cart__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 66px;
	padding: 0 16px;
	border-bottom: 1px solid var(--pos-line);
	flex: 0 0 auto;
}
.pos-cart__title {
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 22px;
	color: var(--pos-ink);
}
.pos-cart__close {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pos-green);
	cursor: pointer;
	transition: background-color .15s ease;
}
.pos-cart__close:hover { background: var(--pos-green-dark); }
.pos-cart__close::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--pos-white);
	border-bottom: 2px solid var(--pos-white);
	transform: translate(-70%, -50%) rotate(-45deg);
}

/* --- Тело --- */
.pos-cart__body { flex: 1 1 auto; overflow-y: auto; }
.pos-cart__inner { display: flex; flex-direction: column; min-height: 100%; }

/* Плашка минимальной суммы */
.pos-cart__notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 14px 16px;
	padding: 14px 16px;
	border-radius: 6px;
	background: #f4453a;
	color: var(--pos-white);
	font-size: 15px;
	text-align: center;
}
.pos-cart__notice .amount { color: var(--pos-white); }
.pos-cart__notice-ico {
	flex: 0 0 20px;
	width: 20px; height: 20px;
	border: 1px solid rgba(255,255,255,.75);
	border-radius: 50%;
	font-family: var(--pos-font-accent);
	font-size: 13px;
	line-height: 19px;
	text-align: center;
}

/* --- Позиции --- */
.pos-cart__list { list-style: none; margin: 0; padding: 0; }

.pos-cart__item {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) 28px;
	grid-template-areas:
		"thumb name   remove"
		"qty   prices prices";
	align-items: center;
	gap: 10px 14px;
	padding: 16px;
	border-bottom: 1px solid var(--pos-line);
}
.pos-cart__thumb { grid-area: thumb; }
.pos-cart__thumb img { display: block; width: 74px; height: 74px; object-fit: cover; border-radius: 4px; }

.pos-cart__name { grid-area: name; align-self: start; padding-top: 4px; }
.pos-cart__name a { color: var(--pos-ink); font-size: 16px; line-height: 1.3; }
.pos-cart__name a:hover { color: var(--pos-green); }

.pos-cart__remove {
	grid-area: remove;
	align-self: start;
	position: relative;
	width: 26px; height: 26px;
	padding: 0; border: 0;
	background: none;
	cursor: pointer;
	opacity: .5;
	transition: opacity .15s ease;
}
.pos-cart__remove:hover { opacity: 1; }
.pos-cart__remove::before,
.pos-cart__remove::after {
	content: '';
	position: absolute;
	top: 50%; left: 4px;
	width: 18px; height: 2px;
	background: var(--pos-ink);
}
.pos-cart__remove::before { transform: rotate(45deg); }
.pos-cart__remove::after  { transform: rotate(-45deg); }

/* Счётчик количества */
.pos-cart__qty {
	grid-area: qty;
	display: flex;
	align-items: center;
	gap: 4px;
}
.pos-cart__step {
	width: 34px; height: 34px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--pos-grey-bar);
	color: var(--pos-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease;
}
.pos-cart__step:hover { background: var(--pos-cream); }
.pos-cart__num {
	min-width: 30px;
	text-align: center;
	font-family: var(--pos-font-head);
	font-size: 16px;
}

/* Цены */
.pos-cart__prices {
	grid-area: prices;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}
.pos-cart__old {
	font-size: 15px;
	color: var(--pos-muted);
	text-decoration: line-through;
}
.pos-cart__old .amount { color: var(--pos-muted); }
.pos-cart__price {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 5px;
	background: #f4453a;
	color: var(--pos-white);
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 16px;
}
.pos-cart__price .amount { color: var(--pos-white); }

/* --- Низ панели --- */
.pos-cart__foot {
	margin-top: auto;
	padding: 18px 16px 22px;
	border-top: 1px solid var(--pos-line);
	background: var(--pos-white);
}
.pos-cart__promo-label {
	display: block;
	font-size: 17px;
	color: var(--pos-ink);
	margin-bottom: 8px;
}
.pos-cart__promo-row { display: flex; gap: 10px; margin-bottom: 16px; }
.pos-cart__promo-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	border: 1px solid var(--pos-line);
	border-radius: 6px;
	padding: 0 14px;
	font-family: var(--pos-font-head);
	font-size: 15px;
}
.pos-cart__promo-btn {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--pos-grey-bar);
	color: var(--pos-ink);
	font-family: var(--pos-font-body);
	font-size: 15px;
	cursor: pointer;
}
.pos-cart__promo-btn:hover { background: var(--pos-cream); }

.pos-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.pos-cart__total span { font-size: 22px; color: var(--pos-ink); }
.pos-cart__total b {
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 26px;
	color: var(--pos-price);
}
.pos-cart__total .amount { color: var(--pos-price); }

.pos-cart__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	border-radius: 30px;
	background: var(--pos-green);
	color: var(--pos-white) !important;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 18px;
}
.pos-cart__checkout:hover { background: var(--pos-green-dark); }

/* Пустая корзина */
.pos-cart__empty { padding: 40px 16px 14px; text-align: center; color: var(--pos-muted); font-size: 16px; }
.pos-cart__tocatalog {
	display: block;
	margin: 0 16px;
	padding: 13px 0;
	border-radius: 30px;
	background: var(--pos-green);
	color: var(--pos-white) !important;
	text-align: center;
	font-family: var(--pos-font-body);
	font-size: 16px;
}

body.pos-cart-open { overflow: hidden; }

@media (max-width: 480px) {
	.pos-cart__panel { width: 100%; }
	.pos-cart__head { height: 56px; }
	.pos-cart__title { font-size: 19px; }
	.pos-cart__item { grid-template-columns: 62px minmax(0, 1fr) 24px; padding: 12px; gap: 8px 10px; }
	.pos-cart__thumb img { width: 62px; height: 62px; }
	.pos-cart__name a { font-size: 14px; }
	.pos-cart__step { width: 30px; height: 30px; }
	.pos-cart__price { font-size: 14px; padding: 4px 9px; }
	.pos-cart__total span { font-size: 18px; }
	.pos-cart__total b { font-size: 22px; }
	.pos-cart__checkout { height: 50px; font-size: 16px; }
}

/* Промокод и итог со скидкой в панели корзины (16.11.2026) */
.pos-cart__coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px dashed var(--pos-green);
	border-radius: 6px;
	font-size: 15px;
}
.pos-cart__coupon span { font-weight: 700; letter-spacing: .04em; }
.pos-cart__coupon b { margin-left: auto; color: var(--pos-green-dark); }
.pos-cart__coupon b .amount { color: var(--pos-green-dark); }
.pos-cart__coupon-x { border: 0; background: none; padding: 0 2px; font-size: 22px; line-height: 1; color: var(--pos-muted); cursor: pointer; }
.pos-cart__coupon-x:hover { background: none; color: var(--pos-ink); }
.pos-cart__promo-msg { margin: -8px 0 14px; font-size: 14px; color: var(--pos-ink); }
.pos-cart__total-old { margin-right: 8px; font-size: 17px; font-weight: 400; color: var(--pos-price-old); }
.pos-cart__total-old .amount { color: var(--pos-price-old); }

/* Шаг 1 «Корзина» (шаблон старой темы): у блока кнопок нулевая высота, у кнопок отступ сверху при line-height 50px —
   подвал обрезал низ «далее» и «Продолжить покупки», надписи съезжали вниз (замечено 16.11.2026, было и на боевом). */
.btn-footer-cart-block { display: flow-root; padding-bottom: 40px; }
.btn-footer-cart-block a { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 50px !important; }

/* ==========================================================================
   Подкатегории на странице раздела
   ========================================================================== */
.pos-subcats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 24px;
	margin: 0 0 28px;
}

.pos-subcat {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 74px;
	padding: 8px 20px 8px 8px;
	border-radius: 60px;
	background: var(--pos-white);
	box-shadow: 0 3px 12px rgba(47, 38, 32, .13);
	color: var(--pos-ink);
	transition: box-shadow .15s ease, color .15s ease;
}
.pos-subcat:hover { box-shadow: 0 5px 18px rgba(47, 38, 32, .2); color: var(--pos-green-dark); }
.pos-subcat img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.pos-subcat span {
	font-family: var(--pos-font-body);
	font-size: 17px;
	line-height: 1.25;
}

@media (max-width: 1024px) {
	.pos-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Телефон: одна строка с горизонтальной прокруткой */
@media (max-width: 768px) {
	.pos-subcats {
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
		margin: 0 -15px 20px;
		padding: 4px 15px 12px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.pos-subcats::-webkit-scrollbar { display: none; }

	.pos-subcat {
		flex: 0 0 auto;
		min-height: 56px;
		padding: 6px 16px 6px 6px;
		gap: 10px;
		scroll-snap-align: start;
	}
	.pos-subcat img { flex-basis: 44px; width: 44px; height: 44px; }
	.pos-subcat span { font-size: 14px; white-space: nowrap; }
}
