/*
Theme Name: VeryMuchShop
Author: Nick Kan
Description: Самостоятельная блочная тема WooCommerce: спокойная палитра, поиск и категории, адаптивный каталог, ручная промокарусель и единый интерфейс покупки.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.3
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verymuchshop
Tags: e-commerce, block-patterns, full-site-editing, wide-blocks
*/

/* Палитра, шрифты и большинство настроек находятся в theme.json. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:where(img, video) {
	max-width: 100%;
	height: auto;
}

:where(.wp-block-column, main) {
	min-width: 0;
}

:where(h1, h2, h3, h4, p, .wp-block-post-title) {
	overflow-wrap: anywhere;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent, #315a4b);
	outline-offset: 3px;
}

:where(button, .wp-element-button, .wp-block-button__link) {
	min-height: 44px;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea) {
	max-width: 100%;
	min-height: 44px;
	font: inherit;
}

/* Поле 3:4 для изображений товаров в списках, без обрезки товара. */
.wp-block-woocommerce-product-image {
	background-color: var(--wp--preset--color--base, #ffffff);
	border-radius: 8px;
}

.wp-block-woocommerce-product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: contain;
}

/* Длинные названия не должны расширять сетку. */
.wc-block-product-template > li {
	min-width: 0;
	overflow-wrap: anywhere;
}

.wp-block-query-pagination :where(a, .page-numbers) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

@media (max-width: 781px) {
	.wp-block-woocommerce-product-image {
		border-radius: 6px;
	}

	.wp-block-query-pagination {
		flex-wrap: wrap;
	}
}

/* Простая шапка: название слева в той же сетке, что и каталог. */
.vms-site-header {
	border-bottom: 1px solid var(--wp--preset--color--border, #dddeda);
}

.vms-header-row {
	width: 100%;
	gap: 16px 32px;
}

.vms-header-brand {
	flex: 0 1 360px;
	min-width: 0;
	gap: 12px;
	justify-content: flex-start;
}

.vms-header-brand .wp-block-site-logo {
	flex-shrink: 0;
}

.vms-header-brand .vms-site-title {
	min-width: 0;
	margin: 0;
	text-align: left;
	line-height: 1.25;
}

.vms-site-title a {
	color: var(--wp--preset--color--contrast, #252b28);
	text-decoration: none;
}

.vms-header-navigation {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
}

.vms-header-navigation .wp-block-navigation__container {
	flex-wrap: wrap;
	gap: 8px 20px;
}

.vms-header-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--contrast, #252b28);
	text-decoration: none;
}

.vms-header-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent, #315a4b);
}

@media (max-width: 781px) {
	.vms-header-row {
		gap: 12px;
	}

	.vms-header-brand,
	.vms-header-navigation {
		flex-basis: 100%;
	}

	.vms-header-navigation .wp-block-navigation__container {
		gap: 8px 16px;
	}
}

/* Каркас страниц и подвал. */
body .wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

.vms-main {
	margin-top: 0;
	padding-block: clamp(24px, 4vw, 48px);
}

.vms-page > .wp-block-post-title {
	margin-top: 0;
}

.vms-search {
	min-width: 0;
}

.vms-header-search {
	flex: 1 1 260px;
	margin: 0;
}

.vms-search .wp-block-search__inside-wrapper {
	width: 100%;
	min-width: 0;
	padding: 4px;
	border: 1px solid var(--wp--preset--color--border, #dddeda);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #ffffff);
}

.vms-search .wp-block-search__input {
	min-width: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--wp--preset--color--contrast, #252b28);
	font-size: 16px;
}

.vms-search .wp-block-search__button {
	flex-shrink: 0;
	margin-left: 4px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--accent, #315a4b);
	color: var(--wp--preset--color--base, #ffffff);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}

.vms-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--accent-hover, #244638);
}

.vms-home-hero {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--wp--preset--color--border, #dddeda);
	border-radius: 16px;
	background: var(--wp--preset--color--base, #ffffff);
}

.vms-home-hero.is-layout-constrained > * {
	max-width: none;
	/* WordPress задаёт автоотступы constrained-блокам с !important. */
	margin-inline: 0 !important;
}

.vms-home-hero > h1 {
	margin-top: 0;
}

.vms-home-hero > p {
	max-width: 56ch;
	color: var(--wp--preset--color--secondary, #606a64);
}

.vms-section-heading {
	gap: 12px 24px;
	margin-bottom: 24px;
}

.vms-section-heading :where(h2, p) {
	margin: 0;
}

.vms-home-products .wp-block-button__link {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

.vms-empty-state,
.vms-search-result {
	padding: 24px;
	border: 1px solid var(--wp--preset--color--border, #dddeda);
	border-radius: 12px;
	background: var(--wp--preset--color--base, #ffffff);
}

.vms-site-footer {
	margin-top: 0;
	padding-block: 32px;
	border-top: 1px solid var(--wp--preset--color--border, #dddeda);
	background: var(--wp--preset--color--base, #ffffff);
}

.vms-footer-row {
	gap: 24px 48px;
}

.vms-footer-brand {
	flex: 1 1 240px;
	min-width: 0;
}

.vms-footer-brand .wp-block-site-title {
	margin: 0;
	overflow-wrap: anywhere;
}

.vms-footer-column {
	flex: 0 1 280px;
	min-width: 0;
}

.vms-footer-column > h2 {
	margin-top: 0;
}

.vms-footer-navigation .wp-block-navigation__container {
	align-items: flex-start;
	gap: 4px;
}

.vms-footer-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
	.vms-header-brand {
		flex: 1 1 240px;
	}

	.vms-header-search {
		order: 3;
		flex-basis: 100%;
	}
}

@media (max-width: 781px) {
	.vms-header-brand {
		flex-basis: 100%;
	}

	.vms-header-search {
		order: 2;
	}

	.vms-header-navigation {
		order: 3;
		flex-basis: 100%;
	}

	.vms-footer-brand,
	.vms-footer-column {
		flex-basis: 100%;
	}
}


/* Единые карточки в каталоге и на главной. */
.vms-products .wc-block-product-template.wc-block-product-template__responsive {
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 24px;
}
.vms-products .wc-block-product-template > li {
 display: flex;
 flex-direction: column;
 gap: 10px;
 padding: 12px 12px 16px;
 border: 1px solid var(--wp--preset--color--border);
 border-radius: 18px;
 background: var(--wp--preset--color--base);
 align-self: stretch;
 transition: border-color 160ms ease, box-shadow 160ms ease;
}
.vms-products .wc-block-product-template > li > * {
 margin-block: 0;
 width: 100%;
}
.vms-products .vms-card-title {
 min-height: 2.8em;
 font-size: 15px;
 font-weight: 400;
 line-height: 1.4;
 text-align: left;
}
.vms-products .vms-card-title a {
 color: var(--wp--preset--color--contrast, #252b28);
 text-decoration: none;
}
.vms-products .vms-card-title a:hover { color: var(--wp--preset--color--accent, #315a4b); }
.vms-products .vms-card-price {
 font-size: 22px;
 font-weight: 700;
 line-height: 1.3;
 text-align: left;
}
.vms-products .vms-card-price del {
 font-size: 14px;
 font-weight: 400;
 color: var(--wp--preset--color--secondary, #606a64);
}
.vms-products .vms-card-price ins { text-decoration: none; }
.vms-products .vms-card-price .wc-block-components-product-price__value { display: inline-block; }
.vms-products .vms-card-button { margin-top: auto; }
.vms-products .vms-card-button .wp-block-button__link {
 width: 100%;
 min-height: 44px;
 padding: 12px;
 white-space: normal;
 overflow-wrap: anywhere;
 text-align: center;
}
.vms-catalog .wp-block-query-title { margin-top: 0; }
.vms-catalog.is-layout-constrained > .vms-catalog-breadcrumbs {
 max-width: 1280px;
}
.vms-catalog-categories > h2 { margin-bottom: 12px; }
.vms-catalog-categories.is-layout-constrained > * {
 max-width: none;
 margin-inline: 0 !important;
}
.vms-catalog-categories .wc-block-product-categories-list {
 display: flex;
 flex-wrap: wrap;
 gap: 8px 16px;
 margin: 0;
 padding: 0;
 list-style: none;
}
.vms-catalog-categories .wc-block-product-categories-list .wc-block-product-categories-list {
 margin-top: 4px;
 padding-left: 12px;
}
.vms-catalog-categories .wc-block-product-categories-list-item a {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 overflow-wrap: anywhere;
}
.vms-catalog-toolbar { gap: 12px 24px; justify-content: space-between; }
.vms-catalog-toolbar .woocommerce-result-count,
.vms-catalog-toolbar .woocommerce-ordering { margin: 0; }
.vms-catalog-toolbar select {
 padding: 8px 12px;
 border: 1px solid var(--wp--preset--color--border, #dddeda);
 border-radius: 8px;
 background: white;
 color: var(--wp--preset--color--contrast, #252b28);
}
.vms-catalog-filters {
 margin-bottom: 24px;
 padding: 20px;
 border: 1px solid var(--wp--preset--color--border, #dddeda);
 border-radius: 12px;
 background: white;
}
.vms-filter-controls { gap: 24px 32px; align-items: flex-start; }
.vms-filter-controls > * { flex: 1 1 240px; min-width: 0; }
.vms-filter-controls h2 { margin-top: 0; margin-bottom: 12px; }
.vms-catalog-filters .wc-block-product-filter-price-slider .text input[type="text"] {
 width: 104px;
 max-width: 100%;
 font-size: 16px;
}
.vms-catalog-filters .wc-block-product-filter-checkbox-list__label { min-height: 44px; }
.vms-catalog-filters .wp-block-woocommerce-product-filter-active { margin-top: 16px; }
.vms-catalog-filters .wp-block-woocommerce-product-filter-active[hidden] { display: none; }
.vms-catalog-filters .wc-block-product-filter-clear-button .wp-block-button__link {
 background: transparent;
 color: var(--wp--preset--color--accent, #315a4b);
 border: 1px solid currentColor;
 text-decoration: none;
}
.vms-catalog-pagination { margin-top: 32px; gap: 8px; justify-content: center; }
@media (max-width: 1100px) {
 .vms-products .wc-block-product-template.wc-block-product-template__responsive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
 }
}
@media (max-width: 781px) {
 .vms-products .wc-block-product-template.wc-block-product-template__responsive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
 }
 .vms-products .wc-block-product-template > li { padding: 8px 8px 12px; gap: 8px; }
 .vms-products .vms-card-title { font-size: 14px; }
 .vms-products .vms-card-price { font-size: 18px; }
 .vms-products .vms-card-button .wp-block-button__link { font-size: 14px; padding: 10px 6px; }
 .vms-catalog-filters { padding: 16px; }
 .vms-catalog-toolbar > * { max-width: 100%; }
 .vms-catalog-toolbar .woocommerce-ordering { flex: 1 1 100%; }
 .vms-catalog-toolbar select { width: 100%; }
}

/* Страница товара: штатная галерея и формы WooCommerce. */
.vms-product.is-layout-constrained > .vms-product-breadcrumbs { max-width: 1280px; }
.vms-product-title { margin-top: 0; }
.vms-product-layout { gap: 32px; align-items: flex-start; }
.vms-product-gallery,
.vms-product-purchase {
 min-width: 0;
 padding: 24px;
 border: 1px solid var(--wp--preset--color--border, #dddeda);
 border-radius: 16px;
 background: var(--wp--preset--color--base, #fff);
}
.vms-product-gallery .woocommerce-product-gallery { width: 100%; margin: 0; float: none; }
.vms-product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.vms-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
 max-height: 640px;
 object-fit: contain;
}
/* Штатный FlexSlider: меняем оформление, сохраняя DOM, размеры слайдов и обработчики. */
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
 display: flex; gap: 10px; overflow-x: auto; padding: 2px; margin: 16px 0 0; list-style: none; scroll-padding-inline: 2px;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs::before,
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs::after { display: none; }
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li {
 flex: 0 0 84px; width: 84px; float: none; margin: 0; padding: 0;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img {
 display: block; width: 84px; height: 84px; max-width: 100%; object-fit: contain; padding: 5px;
 border: 2px solid var(--wp--preset--color--border); border-radius: 10px; background: #fff; opacity: 1; cursor: pointer;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img.flex-active {
 border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--accent-soft);
}
.vms-product-gallery .woocommerce-product-gallery__image > a { display: block; border-radius: 12px; overflow: hidden; }
.vms-product-purchase > :first-child { margin-top: 0; }
.vms-product-purchase > :last-child { margin-bottom: 0; }
.vms-product-purchase .vms-product-price { font-size: 32px; font-weight: 700; line-height: 1.3; }
.vms-product-purchase .vms-product-price del { font-size: 16px; font-weight: 400; color: var(--wp--preset--color--secondary, #606a64); }
.vms-product-purchase .vms-product-price ins { text-decoration: none; }
.vms-product-summary { line-height: 1.6; }
.vms-product-purchase form.cart:not(.variations_form):not(.grouped_form),
.vms-product-purchase .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.vms-product-purchase .quantity { flex: 0 1 96px; margin: 0; max-width: 140px; }
.vms-product-purchase form.cart .quantity .qty { width: 100%; min-height: 48px; padding: 10px; border: 1px solid var(--wp--preset--color--border, #dddeda); border-radius: 8px; }
.vms-product-purchase .quantity:has(> input[type="hidden"]) { display: none; }
.vms-product-purchase form.cart .single_add_to_cart_button {
 flex: 1 1 160px;
 min-height: 48px;
 margin: 0;
 padding: 12px 20px;
 border: 0;
 border-radius: 8px;
 background: var(--wp--preset--color--accent, #315a4b);
 color: #fff;
 font: inherit;
 font-weight: 600;
 white-space: normal;
}
.vms-product-purchase form.cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--accent-hover, #244638); }
.vms-product-purchase form.cart .single_add_to_cart_button:disabled,
.vms-product-purchase form.cart .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.vms-product-purchase .stock { margin: 0 0 12px; font-weight: 600; }
.vms-product-purchase .in-stock { color: var(--wp--preset--color--contrast, #252b28); }
.vms-product-purchase .out-of-stock { color: #9d2323; }
.vms-product-purchase table.variations { width: 100%; margin-bottom: 16px; }
.vms-product-purchase table.variations th { width: 32%; text-align: left; }
.vms-product-purchase table.variations :where(th,td) { padding: 6px 0; vertical-align: top; overflow-wrap: anywhere; }
.vms-product-purchase .variations_form table.variations select { width: 100%; height: 48px; min-height: 48px; padding: 8px 40px 8px 12px; font-size: 16px; line-height: 1.5; border: 1px solid var(--wp--preset--color--border, #dddeda); border-radius: 8px; background-color: #fff; }
.vms-product-purchase .reset_variations { display: inline-flex; align-items: center; min-height: 44px; }
.vms-product-meta { padding-top: 16px; border-top: 1px solid var(--wp--preset--color--border, #dddeda); color: var(--wp--preset--color--secondary, #606a64); font-size: 14px; }
.vms-product-meta > * + * { margin-top: 8px; }
.vms-product-help { gap: 8px 20px; }
.vms-product-help p { margin: 0; }
.vms-product-help a { display: inline-flex; align-items: center; min-height: 44px; }
/* Повышенная специфичность нужна для штатного is-style-minimal в product-details.css. */
.vms-product-details { padding: 28px; border: 1px solid var(--wp--preset--color--border); border-radius: 20px; background: #fff; }
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs {
 display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0 0 24px; list-style: none;
 border: 0; border-bottom: 1px solid var(--wp--preset--color--border); overflow: visible;
}
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li {
 display: block; float: none; margin: 0; padding: 0; border: 0; background: transparent; opacity: 1; font-weight: 500;
}
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li::before,
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li::after { display: none; }
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li a {
 display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0 12px;
 border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent;
 color: var(--wp--preset--color--secondary); font-size: 16px; line-height: 1.4; text-decoration: none;
}
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li.active a,
html body .wp-block-woocommerce-product-details.vms-product-details.is-style-minimal ul.tabs.wc-tabs li a:hover {
 border-bottom-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); background: transparent;
}
.vms-product-details .woocommerce-Tabs-panel { margin: 0; line-height: 1.75; }
.vms-product-details .woocommerce-Tabs-panel--description > :is(p,ul,ol) { max-width: 76ch; }
.vms-product-details .woocommerce-Tabs-panel--description > h2:first-child,
.vms-product-details .woocommerce-Tabs-panel--additional_information > h2:first-child { display: none; }
.vms-product-details .woocommerce-Tabs-panel > :first-child { margin-top: 0; }
.vms-product-details .woocommerce-Tabs-panel > :last-child { margin-bottom: 0; }
.vms-product-details .woocommerce-Tabs-panel > h2:first-child + * { margin-top: 0; }
.vms-product-details .woocommerce-Tabs-panel table.shop_attributes { border: 0; margin: 0; font-size: 15px; }
.vms-product-details .woocommerce-Tabs-panel table.shop_attributes :is(th,td) {
 border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: 14px 16px; font-style: normal; vertical-align: top;
}
.vms-product-details .woocommerce-Tabs-panel table.shop_attributes tr:last-child :is(th,td) { border-bottom: 0; }
.vms-product-details table.shop_attributes { width: 100%; border-collapse: collapse; }
.vms-product-details table.shop_attributes :where(th,td) { padding: 12px; border: 1px solid var(--wp--preset--color--border, #dddeda); text-align: left; overflow-wrap: anywhere; }
.vms-product-details table.shop_attributes th { width: 35%; font-weight: 600; }
.vms-product-details table.shop_attributes p { margin: 0; }
.vms-product-details #review_form :where(input[type="text"],input[type="email"],textarea) { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--wp--preset--color--border, #dddeda); border-radius: 8px; }
.vms-related-products { margin-top: 48px; }
@media (max-width: 781px) {
 .vms-product-layout { gap: 16px; }
 .vms-product-gallery, .vms-product-purchase, .vms-product-details { padding: 16px; border-radius: 12px; }
 .vms-product-purchase .vms-product-price { font-size: 28px; }
 .vms-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { max-height: 480px; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li { flex-basis: 72px; width: 72px; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img { width: 72px; height: 72px; }
}

/* Корзина и заказ: внешний каркас; расчёты и раскладка блоков — WooCommerce. */
.vms-commerce-content {
 padding: 24px;
 border: 1px solid var(--wp--preset--color--border, #dddeda);
 border-radius: 16px;
 background: var(--wp--preset--color--base, #fff);
}
.vms-commerce-content > :first-child { margin-top: 0; }
.vms-commerce-content > :last-child { margin-bottom: 0; }
.vms-checkout-header-row { gap: 16px 32px; }
.vms-checkout-header-row .wp-block-site-title { margin: 0; font-size: 22px; font-weight: 700; }
.vms-checkout-header-row .wp-block-site-title a { color: var(--wp--preset--color--contrast, #252b28); text-decoration: none; }
.vms-checkout-back { margin: 0; }
.vms-checkout-back a { display: inline-flex; align-items: center; min-height: 44px; }
.vms-commerce-content .wc-block-components-button:not(.is-link) {
 min-height: 48px;
 border: 0;
 border-radius: 8px;
 font-size: 16px;
 font-weight: 600;
 white-space: normal;
}
.vms-commerce-content .wc-block-components-button:not(.is-link):not(:disabled) {
 background-color: var(--wp--preset--color--accent, #315a4b);
 color: #fff;
}
.vms-commerce-content .wc-block-components-button:not(.is-link):not(:disabled):hover {
 background-color: var(--wp--preset--color--accent-hover, #244638);
}
.vms-commerce-content .wc-block-components-button:disabled { opacity: .5; }
.vms-commerce-content .wc-block-components-text-input input,
.vms-commerce-content .wc-block-components-textarea { font-size: 16px; }
.vms-commerce-content .wc-block-components-quantity-selector { min-height: 44px; }
.vms-commerce-content .wc-block-cart__submit-container { background: #fff; }
.vms-cart-empty { text-align: center; padding-block: 32px; }
.vms-cart-empty > :first-child { margin-top: 0; }
.vms-cart-empty > :last-child { margin-bottom: 0; }
.vms-cart-empty .wp-block-button__link { min-height: 48px; }
.vms-cart .wc-block-grid__product-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.vms-order-confirmation .wc-block-order-confirmation-address-wrapper { gap: 24px; }
.vms-order-confirmation table { width: 100%; }
.vms-order-confirmation :where(th,td) { overflow-wrap: anywhere; }
@media (max-width: 781px) {
 .vms-commerce-content { padding: 16px; border-radius: 12px; }
 .vms-checkout-header-row { gap: 8px 16px; }
 .vms-cart-empty { padding-block: 16px; }
}
.vms-commerce-content .wc-block-components-quantity-selector { width: 132px; max-width: 100%; }
.vms-commerce-content .wc-block-components-quantity-selector button { min-width: 44px; min-height: 44px; }
.vms-commerce-content .wc-block-components-quantity-selector input { min-width: 0; font-size: 16px; }
/* Штатные альтернативы WooCommerce используют тот же формат изображений. */
.vms-product .up-sells ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 0; margin: 0; }
.vms-product .up-sells ul.products::before, .vms-product .up-sells ul.products::after { display: none; }
.vms-product .up-sells ul.products li.product { width: auto; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--wp--preset--color--border,#dddeda); border-radius: 12px; background: #fff; }
.vms-product .up-sells ul.products li.product img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; }
.vms-product .up-sells ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 400; line-height: 1.4; }
.vms-product .up-sells ul.products li.product .price { font-size: 22px; font-weight: 700; color: var(--wp--preset--color--contrast,#252b28); }
.vms-product .up-sells ul.products li.product .button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; padding: 12px; border-radius: 8px; }
@media (max-width:1100px) { .vms-product .up-sells ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); gap:20px; } }
@media (max-width:781px) { .vms-product .up-sells ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap:16px; } .vms-product .up-sells ul.products li.product { padding:8px; } .vms-product .up-sells ul.products li.product .woocommerce-loop-product__title { font-size:14px; } .vms-product .up-sells ul.products li.product .price { font-size:18px; } }
.vms-product-details table.shop_attributes { table-layout: fixed; }
/* Узкая корзина: гибкая колонка описания; сумма остаётся видимой под товаром. */
@container (max-width: 919px) {
 .vms-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 64px minmax(0,1fr); }
 .vms-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-width: 0; }
 .vms-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 2; grid-row: 2; justify-content: flex-start; padding-top: 8px; }
 .vms-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity { flex-wrap: wrap; max-width: 100%; }
}

.vms-commerce-content .wc-block-components-button:focus-visible,
.vms-commerce-content .wc-block-components-quantity-selector__button:focus-visible,
.vms-commerce-content .wc-block-components-text-input input:focus-visible { outline: 3px solid var(--wp--preset--color--accent,#315a4b); outline-offset: 3px; }
.vms-product-purchase form.cart .quantity .qty { font-size: 16px; line-height: 1.5; }

/* Штатные формы личного кабинета; разметку и обработчики предоставляет WooCommerce. */
.woocommerce-account .vms-page .woocommerce { min-width: 0; }
.woocommerce-account .vms-page #customer_login { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.woocommerce-account .vms-page #customer_login::before,
.woocommerce-account .vms-page #customer_login::after { display: none; }
.woocommerce-account .vms-page #customer_login > :is(.col-1,.col-2) { float: none; width: auto; min-width: 0; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) {
 width: 100%; max-width: 640px; margin: 16px 0 32px; padding: 24px;
 border: 1px solid var(--wp--preset--color--border,#dddeda); border-radius: 16px;
 background: var(--wp--preset--color--base,#fff); color: var(--wp--preset--color--contrast,#252b28);
}
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .form-row { float: none; width: 100%; padding: 0; margin: 0 0 20px; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) label { line-height: 1.5; overflow-wrap: anywhere; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .input-text {
 width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
 font-size: 16px; line-height: 1.5; border: 1px solid var(--wp--preset--color--secondary,#606a64); border-radius: 8px; background: #fff; color: #252b28;
}
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .password-input { position: relative; display: block; width: 100%; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .password-input input { padding-right: 56px; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .show-password-input { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) button.button:not(.show-password-input) {
 float: none; min-height: 48px; max-width: 100%; padding: 12px 20px; margin: 0;
 border: 0; border-radius: 8px; font: inherit; font-weight: 600; white-space: normal;
 background: var(--wp--preset--color--accent,#315a4b); color: #fff;
}
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) button.button:not(.show-password-input):hover { background: var(--wp--preset--color--accent-hover,#244638); }
.woocommerce-account .vms-page form.login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 12px; }
.woocommerce-account .vms-page form.login input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--wp--preset--color--accent,#315a4b); }
.woocommerce-account .vms-page form.login .lost_password a { display: inline-flex; align-items: center; min-height: 44px; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) :is(input,button,a):focus-visible { outline: 3px solid var(--wp--preset--color--accent,#315a4b); outline-offset: 3px; }
@media (max-width:781px) {
 .woocommerce-account .vms-page #customer_login { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) { padding: 16px; border-radius: 12px; }
}


/* Этап 7.1. Общая визуальная основа и короткие реакции на действия. */
:root {
 --vms-radius-control: 10px;
 --vms-radius-card: 16px;
 --vms-radius-panel: 20px;
 --vms-motion-fast: 160ms;
}
.wp-site-blocks input:is([type="checkbox"], [type="radio"], [type="range"]) {
 accent-color: var(--wp--preset--color--accent, #315a4b);
}
.vms-home-hero {
 background: var(--wp--preset--color--accent-soft, #eaf0eb);
 border-radius: var(--vms-radius-panel);
}
.vms-products .wc-block-product,
.vms-empty-state,
.vms-search-result {
 border-radius: var(--vms-radius-card);
}
.vms-product-gallery,
.vms-product-purchase,
.vms-product-details,
.vms-commerce-content {
 border-radius: var(--vms-radius-panel);
}
.vms-search .wp-block-search__inside-wrapper,
.vms-search .wp-block-search__button,
.vms-products .wp-block-button__link,
.vms-product-purchase form.cart .single_add_to_cart_button,
.vms-product-purchase .variations_form table.variations select,
.vms-commerce-content .wc-block-components-button {
 border-radius: var(--vms-radius-control);
}
.wp-site-blocks :where(a, button, .wp-element-button) {
 transition: color var(--vms-motion-fast) ease, background-color var(--vms-motion-fast) ease, border-color var(--vms-motion-fast) ease;
}
@media (prefers-reduced-motion: reduce) {
 .wp-site-blocks :where(a, button, .wp-element-button) {
  transition: none;
 }
}

/* Этап 7.2: поиск в центре, каталог одним действием, штатная мини-корзина. */
.vms-header-row.is-layout-flex {
 position: relative;
 display: grid;
 grid-template-columns: minmax(130px, 190px) max-content minmax(180px, 1fr) max-content;
 gap: 16px;
 align-items: center;
}
.vms-header-row .vms-header-brand { min-width: 0; }
.vms-header-row > * { order: 0; }
.vms-header-row .vms-site-title { font-size: 20px; }
.vms-header-row .vms-site-title a { display: flex; align-items: center; min-height: 44px; }
.vms-header-row .vms-header-search { width: 100%; min-width: 0; margin: 0; }
.vms-header-actions { gap: 8px; margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
.vms-header-actions .vms-header-navigation { margin: 0; order: 0; flex: 0 0 auto; }
.vms-header-actions .wp-block-navigation-item__content { padding: 8px; font-size: 14px; }
.vms-catalog-menu { min-width: 0; margin: 0; }
.vms-catalog-menu > summary {
 display: flex; align-items: center; justify-content: center; gap: 10px;
 min-height: 48px; padding: 10px 16px; border-radius: var(--vms-radius-control);
 list-style: none; cursor: pointer; font-weight: 600; line-height: 1.25;
 background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base);
 transition: background-color var(--vms-motion-fast) ease;
}
.vms-catalog-menu > summary::-webkit-details-marker { display: none; }
.vms-catalog-menu > summary:hover,
.vms-catalog-menu[open] > summary { background: var(--wp--preset--color--accent-hover); }
.vms-catalog-menu > summary:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.vms-menu-mark { width: 16px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.vms-menu-mark::after { content: ''; position: absolute; top: 3px; left: 0; right: 0; border-top: 2px solid currentColor; }
.vms-catalog-panel {
 position: absolute; top: calc(100% + 16px); left: 0; z-index: 30;
 width: min(800px, 100%); max-height: min(65vh, 560px); overflow-y: auto; overscroll-behavior: contain;
 padding: 20px; border: 1px solid var(--wp--preset--color--border); border-radius: var(--vms-radius-card);
 background: var(--wp--preset--color--base); box-shadow: 0 12px 36px rgb(37 43 40 / 10%);
}
.vms-catalog-panel a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.vms-catalog-panel a:hover { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent); }
.vms-catalog-all { font-weight: 600; background: var(--wp--preset--color--accent-soft); margin-bottom: 12px; }
.vms-catalog-panel ul { list-style: none; padding: 0; margin: 0; }
.vms-catalog-root { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.vms-catalog-root > li > a { font-weight: 600; }
.vms-catalog-root ul a { color: var(--wp--preset--color--secondary); font-size: 14px; }
.vms-catalog-root ul ul { padding-left: 12px; }
.vms-header-cart .wc-block-mini-cart__button {
 display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
 border: 1px solid var(--wp--preset--color--border); border-radius: var(--vms-radius-control);
 background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; font-size: 14px;
}
.vms-header-cart .wc-block-mini-cart__button::after { content: 'Корзина'; }
.vms-header-cart .wc-block-mini-cart__button:hover { background: var(--wp--preset--color--accent-soft); }
.vms-header-cart .wc-block-mini-cart__badge { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); }
.vms-header-cart .wc-block-mini-cart__icon { width: 24px; height: 24px; }
.wc-block-mini-cart__drawer .wc-block-components-button { border-radius: var(--vms-radius-control); }
@media (max-width: 1100px) and (min-width: 782px) {
 .vms-header-row.is-layout-flex { grid-template-columns: minmax(0, 1fr) max-content max-content; }
 .vms-header-search { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 781px) {
 .vms-header-row.is-layout-flex { grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; }
 .vms-header-row .vms-site-title { font-size: 18px; }
 .vms-header-brand { grid-column: 1; grid-row: 1; }
 .vms-header-actions { grid-column: 2; grid-row: 1; }
 .vms-header-row .vms-header-search { grid-column: 1 / -1; grid-row: 2; }
 .vms-catalog-menu { grid-column: 1 / -1; grid-row: 3; }
 .vms-catalog-menu > summary { justify-content: flex-start; }
 .vms-catalog-panel { position: static; width: 100%; margin-top: 12px; max-height: 55vh; padding: 12px; box-shadow: none; }
 .vms-catalog-root { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
 .vms-header-actions .wp-block-navigation-item__content { padding: 8px 4px; }
 .vms-header-cart .wc-block-mini-cart__button { padding: 8px; }
 .vms-header-cart .wc-block-mini-cart__button::after { content: none; }
 .vms-header-row .wp-block-site-logo img { max-width: 36px; }
}
@media (max-width: 380px) {
 .vms-catalog-root { grid-template-columns: 1fr; }
}

/* 7.3: товары сразу под заголовком, фильтры — в боковой колонке. */
.vms-catalog-collection {
 display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start;
}
.vms-catalog-collection > .wc-block-components-notices { grid-column: 1 / -1; }
.vms-catalog-collection > .wc-block-components-notices:empty { display: none; }
.vms-catalog-collection > .vms-catalog-filters { grid-column: 1; grid-row: 1 / span 3; margin: 0; padding: 16px; border-radius: var(--vms-radius-card); }
.vms-catalog-collection > .wc-block-product-template { grid-column: 2; grid-row: 1; margin: 0; }
.vms-catalog-collection > .vms-catalog-pagination { grid-column: 2; grid-row: 2; margin-top: 8px; }
.vms-catalog-collection > .wp-block-woocommerce-product-collection-no-results,
.vms-catalog-collection > .vms-empty-state { grid-column: 2; grid-row: 1; margin: 0; }
.vms-catalog-filters .vms-filter-controls { display: flex; flex-direction: column; gap: 24px; }
.vms-catalog-filters .vms-filter-controls > * { width: 100%; flex: 0 0 auto; }
.vms-catalog-filters .wc-block-product-filter-price-slider .text input[type="text"] { width: 88px; }
.vms-catalog-filters .wc-block-product-filters__overlay-dialog { --wc-product-filters-overlay-background-color: var(--wp--preset--color--base); }
.vms-catalog-filters :is(.wc-block-product-filters__open-overlay, .wc-block-product-filters__close-overlay) { min-height: 44px; min-width: 44px; }
.vms-catalog-filters .wc-block-product-filters__apply { min-height: 48px; border-radius: var(--vms-radius-control); }
.vms-catalog-filters .wc-block-product-filters__overlay { transition: background-color 180ms ease; }
.vms-catalog-filters .wc-block-product-filters__overlay-dialog { transition: transform 200ms ease; }
.vms-catalog-toolbar select { min-height: 48px; border-radius: var(--vms-radius-control); font-size: 16px; }
@media (max-width: 782px) {
 .vms-catalog-collection { display: block; }
 .vms-catalog-collection > .vms-catalog-filters { padding: 0; margin-bottom: 16px; border: 0; background: transparent; }
 .vms-catalog-filters .wc-block-product-filters__open-overlay { padding: 10px 16px; border: 1px solid var(--wp--preset--color--border); border-radius: var(--vms-radius-control); background: var(--wp--preset--color--base); font: inherit; font-weight: 600; }
 .vms-catalog-filters .wc-block-product-filters__overlay-content { padding: 20px; }
 .vms-catalog-filters .wc-block-product-filters__overlay-footer { padding: 16px 20px; border-top: 1px solid var(--wp--preset--color--border); }
 .vms-catalog-toolbar select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
 .vms-catalog-filters .wc-block-product-filters__overlay,
 .vms-catalog-filters .wc-block-product-filters__overlay-dialog { transition: none; }
}

/* 7.4–7.5. Иерархия карточек и собранный блок покупки. */
.vms-products .wp-block-woocommerce-product-image { overflow: hidden; border: 1px solid var(--wp--preset--color--border); border-radius: var(--vms-radius-card); }
.vms-products .wp-block-woocommerce-product-image a { display: block; }
.vms-products .wp-block-woocommerce-product-image img { border-radius: 0; }
.vms-products .vms-card-price .wc-block-components-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.vms-products .vms-card-price ins { order: -1; }
.vms-products .wp-block-woocommerce-product-button,
.vms-cart .wc-block-grid__product-add-to-cart { display: none; }
.vms-products .vms-card-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; font-variant-numeric: tabular-nums; }
.vms-products .vms-card-title { font-weight: 500; }
.vms-products .vms-card-button .wp-block-button__link { min-height: 48px; border-radius: var(--vms-radius-control); }
.vms-products .wc-block-components-product-sale-badge { border: 0; border-radius: 6px; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent); font-weight: 600; padding: 6px 8px; }
.vms-product-price { font-variant-numeric: tabular-nums; }
.vms-product-purchase .vms-product-summary { color: var(--wp--preset--color--secondary); line-height: 1.65; }
.vms-product-purchase .stock { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--wp--preset--color--accent-soft); font-weight: 500; }
.vms-product-purchase .stock.out-of-stock { background: #f8efeb; }
.vms-product-purchase table.variations label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.vms-product-purchase .reset_variations { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.vms-product-meta { padding-top: 16px; border-top: 1px solid var(--wp--preset--color--border); font-size: 14px; color: var(--wp--preset--color--secondary); }
.vms-product-details table.shop_attributes { border-collapse: collapse; width: 100%; }
.vms-product-details table.shop_attributes th { width: 35%; color: var(--wp--preset--color--secondary); font-weight: 500; }
.vms-product-details table.shop_attributes tr:nth-child(even) { background: var(--wp--preset--color--background); }

/* 7.6. Ручная промокарусель и быстрые категории. */
.vms-promotions.is-layout-constrained > * { max-width: none; margin-inline: 0 !important; }
.vms-promotions:not(:has(.vms-promo)) { display: none; }
.vms-home-categories.is-layout-constrained > * { max-width: none; margin-inline: 0 !important; }
.vms-promo { min-width: 0; }
.vms-promo-track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--wp--preset--color--border) transparent; border-radius: var(--vms-radius-panel); }
.vms-promo-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 32%); align-items: center; gap: 24px; padding: clamp(24px, 4vw, 48px); background: var(--wp--preset--color--accent-soft); border-radius: var(--vms-radius-panel); }
.vms-promo-slide-1 { background: #eceff2; }
.vms-promo-slide-2 { background: #f0e8df; }
.vms-promo-slide:not(:has(.vms-promo-image)) { grid-template-columns: 1fr; }
.vms-promo-copy { min-width: 0; }
.vms-promo-copy h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 12px 0 16px; max-width: 18ch; }
.vms-promo-copy p { max-width: 48ch; margin: 0 0 20px; color: var(--wp--preset--color--secondary); }
.vms-promo-copy .vms-promo-eyebrow { color: var(--wp--preset--color--accent); font-size: 14px; font-weight: 600; margin: 0; }
.vms-promo-copy .wp-element-button { text-decoration: none; }
.vms-promo-image { display: block; width: 100%; height: 260px; object-fit: contain; border-radius: 12px; }
.vms-promo-controls:not([hidden]) { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.vms-promo-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--wp--preset--color--border); border-radius: 10px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; cursor: pointer; }
.vms-promo-controls button:disabled { opacity: .4; cursor: default; }
.vms-promo-dots { display: flex; align-items: center; }
.vms-promo-dots button { position: relative; background: transparent; border: 0; }
.vms-promo-dots button::after { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; margin: auto; background: var(--wp--preset--color--secondary); }
.vms-promo-dots button[aria-current="true"]::after { width: 22px; border-radius: 4px; background: var(--wp--preset--color--accent); }
.vms-category-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vms-category-tiles a { display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 64px; padding: 16px; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); text-decoration: none; font-size: 14px; font-weight: 500; }
.vms-category-tiles a:hover { background: var(--wp--preset--color--accent-soft); }
.vms-category-tiles span { flex-shrink: 0; color: var(--wp--preset--color--accent); }

/* 7.7–7.8. Единые суммы, сообщения и видимый фокус. */
.vms-commerce-content .wc-block-components-totals-item__value { font-variant-numeric: tabular-nums; }
.vms-commerce-content .wc-block-components-totals-footer-item { border-top: 1px solid var(--wp--preset--color--border); padding-top: 16px; font-size: 20px; font-weight: 700; }
.vms-commerce-content .wc-block-components-button { min-height: 48px; }
.vms-commerce-content .wc-block-components-notice-banner { border-radius: 12px; font-size: 14px; }

.vms-promo-track:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
@media (max-width: 781px) {
 .vms-promo-slide { grid-template-columns: minmax(0, 1fr) 32%; gap: 12px; padding: 24px; }
 .vms-promo-image { height: 180px; }
 .vms-category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .vms-products .vms-card-price { font-size: 18px; }
}
@media (max-width: 480px) {
 .vms-promo-slide { grid-template-columns: 1fr; }
 .vms-promo-image { height: 140px; }
 .vms-promo-copy h2 { max-width: none; }
 .vms-promo-copy .wp-element-button { max-width: 100%; white-space: normal; }
 .vms-category-tiles a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
 .vms-promo-track { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
 .vms-catalog-menu > summary { transition: none; }
}

/* 1.3.0. Цельная карточка: фото → цена → название → реальные сведения. */
.vms-products .wc-block-product-template > li:hover,
.vms-products .wc-block-product-template > li:focus-within {
 border-color: #b4c5bc; box-shadow: 0 4px 16px rgb(37 43 40 / 6%);
}
.vms-products .wp-block-woocommerce-product-image { border: 0; border-radius: 12px; background: #f5f6f3; }
.vms-products .vms-card-price { color: var(--wp--preset--color--accent); }
.vms-products .vms-card-price del { color: var(--wp--preset--color--secondary); font-size: 13px; }
.vms-products .vms-card-rating { font-size: 12px; color: var(--wp--preset--color--secondary); }
.vms-products .vms-card-rating:empty,
.vms-products .vms-card-stock:empty { display: none; }
.vms-products .vms-card-rating .wc-block-components-product-rating { margin: 0; }
.vms-products .vms-card-rating .star-rating { font-size: 12px; color: #896e32; }
.vms-products .vms-card-stock { font-size: 12px; line-height: 1.5; color: var(--wp--preset--color--secondary); }
.vms-products .vms-card-stock .stock { margin: 0; font-size: inherit; }
.vms-products .wc-block-components-product-stock-indicator--in-stock,
.vms-products .wc-block-components-product-stock-indicator--instock { display: none; }
.vms-products .wc-block-components-product-stock-indicator--out-of-stock {
 color: #925142; background: #f8efeb; padding: 4px 8px; border-radius: 6px;
}
.vms-header-search .wp-block-search__inside-wrapper { border: 2px solid var(--wp--preset--color--accent); padding: 3px; }
.vms-header-search .wp-block-search__input { border: 0; }
.vms-catalog-toolbar { padding: 12px 16px; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: var(--wp--preset--color--base); }
.vms-promo-copy .vms-promo-eyebrow { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / 75%); }
.vms-promo-image { height: 300px; padding: 12px; border-radius: 20px; background: #fff; }
/* Core задаёт align-items:normal!important; локально исключаем растянутую панель покупки. */
.wp-block-columns.vms-product-layout { align-items: flex-start !important; }
.vms-product-purchase { align-self: flex-start; }
@media (min-width: 1024px) {
 .vms-product-purchase { position: sticky; top: 24px; }
}
/* Старая штатная сетка рекомендаций: та же поверхность, рамка и типографика. */
.vms-cart .wc-block-grid__products .wc-block-grid__product {
 background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 18px;
 padding: 12px 12px 16px; overflow-wrap: anywhere;
}
.vms-cart .wc-block-grid__product-image { overflow: hidden; border-radius: 12px; margin-bottom: 10px; }
.vms-cart .wc-block-grid__product-title { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--wp--preset--color--contrast); }
.vms-cart .wc-block-grid__product-price { color: var(--wp--preset--color--accent); font-size: 22px; font-weight: 700; line-height: 1.3; }
.vms-cart .wc-block-grid__product-price del { color: var(--wp--preset--color--secondary); font-size: 13px; font-weight: 400; }
.vms-cart .wc-block-grid__product-price ins { text-decoration: none; }
@media (max-width: 781px) {
 .vms-promo-image { height: 180px; padding: 8px; border-radius: 12px; }
 .vms-cart .wc-block-grid__products .wc-block-grid__product { padding: 8px 8px 12px; }
 .vms-cart .wc-block-grid__product-title { font-size: 14px; }
 .vms-cart .wc-block-grid__product-price { font-size: 18px; }
}
@media (max-width: 480px) { .vms-promo-image { height: 140px; } }
@media (prefers-reduced-motion: reduce) {
 .vms-products .wc-block-product-template > li { transition: none; }
}

/* 1.3.1. Товар: галерея → сведения → компактная покупка. */
.wp-block-columns.vms-product-layout {
 display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(280px, 1fr); gap: 24px;
}
.vms-product-layout > .wp-block-column { min-width: 0; width: auto; margin: 0 !important; }
.vms-product-gallery { padding: 0 0 0 80px; border: 0; border-radius: 0; background: transparent; }
.woocommerce .vms-product-gallery div.woocommerce-product-gallery {
 position: relative; width: 100%; max-width: 480px; margin: 0 auto; float: none;
}
.vms-product-gallery .woocommerce-product-gallery__image > a { background: #fff; border-radius: 16px; }
.woocommerce .vms-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
 display: block; width: 100%; height: auto; max-height: none; object-fit: contain; background: transparent !important;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
 position: absolute; left: -80px; top: 0; display: flex; flex-direction: column; gap: 10px;
 width: 68px; max-height: 100%; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 2px;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li {
 flex: 0 0 84px; width: 64px;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img {
 width: 64px; height: 84px; padding: 3px; border-radius: 8px; background: #fff !important;
}
.woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img.flex-active {
 background: #fff !important;
}
.vms-product-info { padding: 4px 0; overflow-wrap: anywhere; }
.vms-product-info-title { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.vms-product-info .vms-product-summary { margin: 0 0 24px; color: var(--wp--preset--color--secondary); line-height: 1.65; }
.vms-product-info .vms-product-meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--border); font-size: 14px; line-height: 1.6; }
.vms-product-info .vms-product-meta > * { margin: 0 0 10px; }
.vms-product-info .woocommerce-product-rating { margin: 0 0 20px; }
.vms-product-purchase { padding: 24px; box-shadow: 0 6px 24px rgb(37 43 40 / 5%); }
.vms-product-purchase .vms-product-price { color: var(--wp--preset--color--accent); }
@media (min-width: 782px) and (max-width: 1099px) {
 .wp-block-columns.vms-product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
 .vms-product-gallery { grid-column: 1; grid-row: 1 / 3; }
 .vms-product-info { grid-column: 2; grid-row: 2; }
 .vms-product-purchase { grid-column: 2; grid-row: 1; position: static; }
}
@media (max-width: 781px) {
 .wp-block-columns.vms-product-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .vms-product-gallery { padding: 0; }
 .vms-product-info { padding: 0; order: 3; }
 .vms-product-purchase { padding: 20px; order: 2; position: static; }
 .vms-product-info-title { font-size: 20px; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
  position: static; flex-direction: row; width: auto; max-height: none; overflow-x: auto; overflow-y: hidden; margin: 16px 0 0;
 }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li { flex-basis: 56px; width: 56px; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img { width: 56px; height: 72px; }
}

/* 1.4.0. Единые карточки и компактная пустая корзина. Полный текст остаётся в DOM. */
.vms-products .vms-card-title,
.vms-cart .wc-block-grid__product-title {
 display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
 overflow: hidden; min-height: 2.8em; max-height: 2.8em; overflow-wrap: anywhere;
}
.vms-cart .wc-block-grid__products {
 display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
 padding: 0; margin: 0; list-style: none;
}
.vms-cart .wc-block-grid .wc-block-grid__products .wc-block-grid__product {
 position: relative; display: flex; flex-direction: column; gap: 10px;
 width: auto; max-width: none; min-width: 0; margin: 0; text-align: left;
 border: 1px solid var(--wp--preset--color--border); padding: 12px 12px 16px;
 border-radius: 18px; background: var(--wp--preset--color--base);
 transition: border-color 160ms ease, box-shadow 160ms ease;
}
.vms-cart .wc-block-grid__product-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.vms-cart .wc-block-grid__product-link > * { margin: 0; }
.vms-cart .wc-block-grid__product-image { display: block; width: 100%; aspect-ratio: 3 / 4; background: #f5f6f3; border: 0; }
.vms-cart .wc-block-grid__product-image img { width: 100%; height: 100%; max-width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: transparent !important; border: 0 !important; }
.vms-cart .wc-block-grid__product-title { line-height: 1.4; font-weight: 500; }
.vms-cart .wc-block-grid__product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.vms-cart .wc-block-grid__product-price ins { order: -1; }
.vms-cart .wc-block-grid__product-onsale {
 position: absolute; z-index: 1; top: 20px; right: 20px; margin: 0;
 padding: 6px 8px; border: 0; border-radius: 6px; color: var(--wp--preset--color--accent);
 background: var(--wp--preset--color--accent-soft); font-size: 12px; font-weight: 600; line-height: 1.25;
}
.vms-cart .wc-block-grid .wc-block-grid__products .wc-block-grid__product:is(:hover, :focus-within) {
 border-color: #b4c5bc; box-shadow: 0 4px 16px rgb(37 43 40 / 6%);
}
.vms-cart .wc-block-grid__product-title:hover { color: var(--wp--preset--color--accent); }
.vms-cart .wc-block-grid__product-rating { margin: 0; font-size: 12px; }
.vms-cart .vms-commerce-content:has(.wp-block-woocommerce-empty-cart-block):not(:has(.wc-block-cart-items__row)) {
 padding: 0; border: 0; border-radius: 0; background: transparent;
}
.vms-cart .wp-block-woocommerce-empty-cart-block { margin: 0; padding: 0; }
.vms-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
 margin: 0; padding: 24px 16px 0; font-size: 24px; line-height: 1.3;
}
.vms-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
 content: ''; display: block; position: static; transform: none; opacity: 1; width: 48px; height: 48px; margin: 0 auto 16px;
 background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23315a4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16h24l2 25H10l2-25Z'/%3E%3Cpath d='M18 17v-5a6 6 0 0 1 12 0v5'/%3E%3C/svg%3E");
 mask: none; -webkit-mask: none;
}
.vms-cart .vms-cart-empty-hint { margin: 12px auto 16px; padding-inline: 16px; color: var(--wp--preset--color--secondary); font-size: 16px; line-height: 1.5; }
.vms-cart .wc-block-cart__empty-cart__title + p:not(.vms-cart-empty-hint),
.vms-cart .vms-cart-empty-hint + p { margin: 16px 0 0; text-align: center; }
.vms-cart .vms-cart-browse {
 display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
 padding: 12px 24px; color: #fff; background: var(--wp--preset--color--accent);
 border: 0; border-radius: var(--vms-radius-control, 8px); font-size: 16px; line-height: 1.5; font-weight: 600; text-decoration: none;
}
.vms-cart .vms-cart-browse:hover { background: var(--wp--preset--color--accent-hover); color: #fff; }
.vms-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator { display: none; }
.vms-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) { margin: 40px 0 24px; text-align: left; font-size: 28px; line-height: 1.3; }
@media (min-width: 782px) and (max-width: 1100px) {
 .vms-cart .wc-block-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 781px) {
 .vms-cart .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
 .vms-cart .wc-block-grid .wc-block-grid__products .wc-block-grid__product { padding: 8px 8px 12px; gap: 8px; }
 .vms-cart .wc-block-grid__product-link { gap: 8px; }
 .vms-cart .wc-block-grid__product-onsale { top: 14px; right: 14px; padding: 4px 6px; font-size: 10px; }
 .vms-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { padding-top: 16px; font-size: 22px; }
 .vms-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) { margin: 32px 0 16px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
 .vms-cart .wc-block-grid .wc-block-grid__products .wc-block-grid__product { transition: none; }
}

/* 1.4.1. Пустая выдача без пустых панелей; штатные фильтры остаются в обычной выдаче. */
.vms-catalog:has(.vms-catalog-collection .vms-empty-state):not(:has(.vms-catalog-collection .wc-block-product)) .vms-catalog-toolbar {
 display: none;
}
.vms-catalog-collection:has(.vms-empty-state):not(:has(.wc-block-product)) {
 grid-template-columns: minmax(0, 1fr);
}
.vms-catalog-collection:has(.vms-empty-state):not(:has(.wc-block-product)) > :is(.vms-catalog-filters, .vms-catalog-pagination, .wc-block-product-template) {
 display: none;
}
.vms-catalog-collection:has(.vms-empty-state):not(:has(.wc-block-product)) > :is(.wp-block-woocommerce-product-collection-no-results, .vms-empty-state) {
 grid-column: 1 / -1; grid-row: auto; width: 100%; margin: 0;
}
.vms-catalog .vms-empty-state { padding: clamp(24px, 4vw, 48px); }
.vms-empty-state .vms-empty-title { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; overflow-wrap: anywhere; }
.vms-empty-state .vms-empty-hint { margin: 0 0 24px; color: var(--wp--preset--color--secondary); line-height: 1.6; }
.vms-empty-state .vms-empty-search { margin: 0; }
.vms-empty-search .wp-block-search__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.vms-empty-state .vms-empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.vms-empty-actions .wp-block-button__link { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; font-size: 16px; line-height: 1.5; white-space: normal; text-align: center; }
.vms-empty-actions .is-style-outline .wp-block-button__link { border: 1px solid var(--wp--preset--color--accent); background: transparent; color: var(--wp--preset--color--accent); }
.vms-empty-actions .is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--accent-soft); }
@media (max-width: 480px) {
 .vms-empty-actions > .wp-block-button { flex: 1 1 100%; }
 .vms-empty-actions .wp-block-button__link { width: 100%; }
}
.vms-empty-search .wp-block-search__input { flex: 1 1 0; width: 0; }
.vms-empty-search .wp-block-search__button { min-height: 48px; }
.vms-empty-state > :is(.vms-empty-title, .vms-empty-hint, .vms-empty-search, .vms-empty-actions) { max-width: 680px; margin-inline: auto; }

/* 1.5.0. Реальные характеристики и ясное состояние выбора варианта. */
.vms-product-facts { margin: 24px 0; }
.vms-product-facts-list { margin: 0; font-size: 14px; line-height: 1.5; }
.vms-product-facts-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--wp--preset--color--border); }
.vms-product-facts-list dt { color: var(--wp--preset--color--secondary); }
.vms-product-facts-list dd { margin: 0; color: var(--wp--preset--color--contrast); overflow-wrap: anywhere; }
.vms-product-facts > p { margin: 12px 0 0; }
.vms-product-facts-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.vms-product-details #tab-additional_information { scroll-margin-top: 24px; }
.vms-product-purchase .vms-selection-hint { margin: 16px 0; padding: 12px; border-radius: 8px; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--contrast); font-size: 14px; line-height: 1.5; }
.vms-product-purchase .vms-product-price .price { font: inherit; color: inherit; }
.vms-product-purchase.vms-variation-priced .woocommerce-variation-price { display: none; }
.vms-product-gallery .flex-control-thumbs img[role="button"]:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: -4px; }
@media (max-width: 781px) {
 .vms-product-facts-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.vms-product-facts-list dt { overflow-wrap: anywhere; }

/* 1.6.0 / E: последовательная лента, компактная главная, касание и формы. */
.vms-home-feed .vms-feed-pagination { margin-block: 24px; gap: 8px; }
.vms-home-feed.is-enhanced:not(.has-load-error) .vms-feed-pagination { display: none; }
.vms-feed-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 28px 12px; }
.vms-feed-more { min-height: 48px; min-width: 200px; max-width: 100%; padding: 12px 24px; border: 0; border-radius: var(--vms-radius-control,10px); background: var(--wp--preset--color--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vms-feed-more:hover:not(:disabled) { background: var(--wp--preset--color--accent-hover); }
.vms-feed-more:disabled { opacity: .6; cursor: wait; }
.vms-feed-more[hidden] { display: none; }
.vms-feed-status { margin: 0; max-width: 56ch; text-align: center; font-size: 14px; line-height: 1.5; color: var(--wp--preset--color--secondary); }
.vms-home-footer { margin-block: 0; padding: 20px max(16px, calc((100% - 1280px) / 2)) 28px; }
.vms-home-service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.vms-home-service-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: var(--wp--preset--color--secondary); font-size: 14px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.vms-catalog-toolbar .woocommerce-ordering { margin: 0; }
.vms-catalog-toolbar .orderby { padding: 10px 36px 10px 12px; border: 1px solid var(--wp--preset--color--border); background-color: #fff; color: var(--wp--preset--color--contrast); max-width: 100%; }
.vms-catalog-filters .wc-block-product-filter-price-slider .text input[type="text"] { width: 96px; min-height: 48px; border: 1px solid var(--wp--preset--color--secondary); border-radius: var(--vms-radius-control,10px); padding: 8px; text-align: left; }
.vms-catalog-filters .wc-block-product-filter-removable-chips__chip { min-height: 44px; max-width: 100%; border-radius: 8px; }
.vms-catalog-filters .wc-block-product-filter-checkbox-list__label { padding-block: 6px; }
.vms-catalog-filters .wc-block-product-filters__apply { padding: 12px 20px; border: 0; background: var(--wp--preset--color--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vms-catalog-filters .wc-block-product-filters__apply:hover { background: var(--wp--preset--color--accent-hover); }
/* Cart and checkout get separate native panels; empty carts retain their own presentation. */
.vms-cart .vms-commerce-content:has(.wc-block-cart-items__row),
.vms-checkout .vms-commerce-content:has(.wc-block-checkout) { padding: 0; border: 0; border-radius: 0; background: transparent; }
.vms-commerce-content :is(.wc-block-cart__main, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar) { min-width: 0; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--vms-radius-panel,16px); padding: 24px; }
.vms-commerce-content .wc-block-components-form .wc-block-components-checkout-step { margin-bottom: 28px; }
.vms-commerce-content .wc-block-components-sidebar-layout { row-gap: 24px; align-items: flex-start; }
.vms-commerce-content .wc-block-components-checkout-step__heading { margin-bottom: 16px; }
.vms-commerce-content .wc-block-components-title { line-height: 1.3; }
.vms-commerce-content .wc-block-components-text-input input,
.vms-commerce-content .wc-block-components-textarea,
.vms-commerce-content .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.vms-commerce-content .wc-block-components-select .wc-block-components-select__select { min-height: 52px; border-radius: var(--vms-radius-control,10px); font-size: 16px; }
.vms-commerce-content .wc-block-components-text-input:not(.has-error) input,
.vms-commerce-content .wc-block-components-textarea:not([aria-invalid="true"]),
.vms-commerce-content .wc-block-components-select:not(.has-error) .wc-block-components-select__select { border-color: var(--wp--preset--color--secondary); }
.vms-commerce-content :is(.wc-block-components-validation-error, .wc-block-components-notice-banner) { overflow-wrap: anywhere; }
.vms-commerce-content .wc-block-components-checkbox label { min-height: 44px; align-items: center; }
.vms-commerce-content .wc-block-components-checkbox .wc-block-components-checkbox__input { flex-shrink: 0; }
.vms-commerce-content .wc-block-components-totals-footer-item { font-size: 20px; font-weight: 700; }
.vms-commerce-content .wc-block-components-button:disabled { background: #e6e8e4; color: #606a64; opacity: 1; cursor: not-allowed; }
.vms-commerce-content > .wc-block-components-notice-banner { margin-bottom: 16px; }
.vms-commerce-content .wc-block-components-totals-coupon__button { min-height: 44px; text-align: left; }
.vms-commerce-content .wc-block-components-totals-coupon__form { gap: 12px; }
.vms-commerce-content :is(.wc-block-cart-item__remove-link, .wc-block-components-address-card__edit, .wc-block-components-address-card__remove) { min-height: 44px; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) .password-input .show-password-input { top: 50%; transform: translateY(-50%); margin: 0; }
.woocommerce-account .vms-page .woocommerce > h2 { max-width: 640px; margin-inline: 0; }
.woocommerce-account .vms-page :is(form.login,form.register,form.lost_reset_password) { box-shadow: 0 2px 12px rgb(37 43 40 / 3%); }
@media (max-width: 782px) {
 .vms-catalog-filters .wc-block-product-filters__overlay-dialog { height: 100%; max-height: 100dvh; }
 .vms-catalog-filters .wc-block-product-filters__overlay-header { flex-shrink: 0; padding: 12px 16px 0; }
 .vms-catalog-filters .wc-block-product-filters__overlay-content { min-height: 0; overscroll-behavior-y: contain; padding: 16px; }
 .vms-catalog-filters .wc-block-product-filters__overlay-footer { flex-shrink: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
 .vms-catalog-filters .wc-block-product-filters__apply { min-height: 48px; }
 .vms-catalog-filters.is-overlay-opened .wc-block-product-filters__overlay-content .vms-filter-controls { display: flex; gap: 24px; }
 .vms-catalog-filters.is-overlay-opened .wc-block-product-filters__overlay-content .vms-filter-controls > div { margin: 0; }
 .vms-commerce-content :is(.wc-block-cart__main, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar) { padding: 16px; border-radius: 12px; }
 .vms-commerce-content .wc-block-components-totals-coupon__form { flex-wrap: wrap; }
 .vms-commerce-content .wc-block-components-totals-coupon__form .wc-block-components-text-input { flex: 1 1 160px; min-width: 0; }
 .vms-home-service-links { gap: 0 16px; }
}
@media (max-width: 480px) {
 .vms-feed-more { width: 100%; }
 .vms-commerce-content .wc-block-components-totals-coupon__form .wc-block-components-button { flex: 1 1 100%; }
}

/* 1.6.1 / F: native reviews and the remaining legacy recommendation cards. */
.vms-product-details #reviews { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; }
.vms-product-details #reviews > :is(#comments, #review_form_wrapper) { min-width: 0; }
.vms-product-details #reviews > .clear { display: none; }
.vms-product-details #reviews .woocommerce-Reviews-title { margin: 0 0 20px; font-size: clamp(20px,2vw,26px); line-height: 1.35; }
.vms-product-details #reviews #comments ol.commentlist { list-style: none; margin: 0; padding: 0; }
.vms-product-details #reviews #comments ol.commentlist li { margin: 0 0 16px; padding: 0; min-width: 0; }
.vms-product-details #reviews #comments ol.commentlist li .comment_container { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; padding: 20px; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: #fff; }
.vms-product-details #reviews #comments ol.commentlist li .comment_container > img.avatar { position: static; float: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; object-fit: cover; }
.vms-product-details #reviews #comments ol.commentlist li .comment-text { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
.vms-product-details #reviews #comments .comment-text::before,
.vms-product-details #reviews #comments .comment-text::after { display: none; }
html body .vms-product-details #reviews #comments ol.commentlist li .comment-text p.meta { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; line-height: 1.4; color: var(--wp--preset--color--secondary); font-size: 13px; }
html body .vms-product-details #reviews #comments ol.commentlist li .comment-text:not(:has(.star-rating)) p.meta { grid-column: 1 / -1; }
.vms-product-details #reviews #comments .woocommerce-review__author { color: var(--wp--preset--color--contrast); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.vms-product-details #reviews #comments .woocommerce-review__dash { display: none; }
.vms-product-details #reviews #comments .comment-text .star-rating { grid-column: 2; grid-row: 1; float: none; margin: 0; align-self: start; color: var(--wp--preset--color--accent); }
.vms-product-details #reviews #comments ol.commentlist li .comment-text .description { grid-column: 1 / -1; min-width: 0; max-width: 78ch; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.vms-product-details #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; }
.vms-product-details #reviews #comments ol.commentlist li .comment-text .description p + p { margin-top: 12px; }
.vms-product-details #reviews #comments .children { list-style: none; padding: 0; margin: 16px 0 0 16px; }
.vms-product-details #review_form_wrapper { padding: 20px; border-radius: 16px; background: var(--wp--preset--color--background,#f6f4ef); align-self: start; }
.vms-product-details #review_form .comment-reply-title { display: block; margin: 0 0 16px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.vms-product-details #review_form .comment-notes { margin: 0 0 16px; color: var(--wp--preset--color--secondary); font-size: 13px; line-height: 1.5; }
.vms-product-details #review_form form > p { margin: 0 0 20px; }
.vms-product-details #review_form label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.vms-product-details #review_form :is(input[type="text"],input[type="email"]) { min-height: 48px; }
.vms-product-details #review_form textarea { min-height: 144px; resize: vertical; }
.vms-product-details #review_form p.stars { margin: 8px 0 20px; }
.vms-product-details #review_form p.stars > span { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 0; }
.vms-product-details #review_form p.stars a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; font-size: 20px; line-height: 1; color: var(--wp--preset--color--accent); }
.vms-product-details #review_form p.stars a::before { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.vms-product-details #review_form .comment-form-cookies-consent { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; }
.vms-product-details #review_form .comment-form-cookies-consent input { width: 20px; height: 20px; margin: 4px 0 0; }
.vms-product-details #review_form .comment-form-cookies-consent label { min-height: 44px; margin: 0; }
.vms-product-details #review_form .form-submit { margin: 0; }
.vms-product-details #review_form input[type="submit"] { min-height: 48px; max-width: 100%; cursor: pointer; }
.vms-product .up-sells ul.products li.product { position: relative; }
.vms-product .up-sells ul.products li.product > .button { display: none; }
.vms-product .up-sells ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.vms-product .up-sells ul.products li.product .woocommerce-LoopProduct-link > img { order: 0; margin: 0; border-radius: 12px; background: #f5f6f3; }
.vms-product .up-sells ul.products li.product .price { order: 1; margin: 0; line-height: 1.3; }
.vms-product .up-sells ul.products li.product .woocommerce-loop-product__title { order: 2; margin: 0; padding: 0; font-size: 15px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.8em; }
.vms-product .up-sells ul.products li.product .star-rating { order: 3; margin: 0; }
@media (min-width: 1101px) {
 .vms-product-details #reviews { grid-template-columns: minmax(0,1fr) 320px; gap: 32px; }
}
@media (max-width: 480px) {
 .vms-product-details #reviews #comments ol.commentlist li .comment_container { grid-template-columns: 32px minmax(0,1fr); padding: 12px; gap: 10px; }
 .vms-product-details #reviews #comments ol.commentlist li .comment_container > img.avatar { width: 32px; height: 32px; }
 .vms-product-details #reviews #comments ol.commentlist li .comment-text { display: contents; }
 html body .vms-product-details #reviews #comments ol.commentlist li .comment-text p.meta,
 html body .vms-product-details #reviews #comments ol.commentlist li .comment-text:not(:has(.star-rating)) p.meta { grid-column: 2; grid-row: 1; }
 .vms-product-details #reviews #comments .comment-text .star-rating { grid-column: 2; grid-row: 2; }
 .vms-product-details #reviews #comments ol.commentlist li .comment-text .description { grid-column: 1 / -1; }
 .vms-product-details #review_form_wrapper { padding: 12px; }
 .vms-product .up-sells ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
 .vms-product .up-sells ul.products li.product .woocommerce-LoopProduct-link { gap: 8px; }
}
/* Saved Woo cart cross-sells use a native collection without theme card classes. */
.vms-cart .wc-block-product-template { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; }
.vms-cart .wc-block-product-template > .wc-block-product { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: #fff; }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-button { display: none; }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-image { order: 0; margin: 0; overflow: hidden; border-radius: 12px; background: #f5f6f3; }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-image img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-price { order: 1; margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--wp--preset--color--accent); }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-price del { font-size: 13px; font-weight: 400; color: var(--wp--preset--color--secondary); }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-price ins { text-decoration: none; }
.vms-cart .wc-block-product-template .wp-block-post-title { order: 2; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: left; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.8em; }
.vms-cart .wc-block-product-template .wp-block-post-title a { color: inherit; text-decoration: none; }
.vms-cart .wc-block-product-template .wp-block-woocommerce-product-rating { order: 3; margin: 0; }
@media (max-width: 781px) {
 .vms-cart .wc-block-product-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .vms-cart .wc-block-product-template > .wc-block-product { padding: 8px; gap: 8px; }
 .vms-cart .wc-block-product-template .wp-block-woocommerce-product-price { font-size: 18px; }
 .vms-cart .wc-block-product-template .wp-block-post-title { font-size: 14px; }
}
.vms-product-details #reviews #comments ol.commentlist li .comment_container:not(:has(> img.avatar)) { grid-template-columns: minmax(0,1fr); }
@media (max-width: 480px) {
 .vms-product-details #reviews #comments ol.commentlist li .comment_container:not(:has(> img.avatar)) .comment-text { display: flex; flex-direction: column; }
 .vms-product-details #reviews #comments .comment-text p.meta { order: 0; }
 .vms-product-details #reviews #comments .comment-text .star-rating { order: 1; }
 .vms-product-details #reviews #comments .comment-text .description { order: 2; }
}

/* 1.7.0 — G1–G5. Mobile composition, one native purchase and a continuous product feed. */
.vms-bottom-nav,.vms-photo-actions,.vms-product-scrollbar,.vms-buy-dock,.vms-mobile-search,.vms-gallery-counter { display:none; }
.vms-product-title { font-size:clamp(22px,2.2vw,30px); line-height:1.3; overflow-wrap:anywhere; }
.vms-product-feed ul.products { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:0; margin:0; list-style:none; }
.vms-product-feed ul.products::before,.vms-product-feed ul.products::after { display:none!important; }
.woocommerce .vms-product-feed ul.products li.product { float:none; width:auto!important; margin:0!important; min-width:0; padding:12px; background:#fff; border-radius:16px; }
.vms-product-feed ul.products li.product .woocommerce-LoopProduct-link { display:flex; flex-direction:column; gap:8px; color:inherit; text-decoration:none; }
.vms-product-feed ul.products li.product .price { order:1; font-size:20px; font-weight:700; color:#315a4b; margin:0; }
.vms-product-feed ul.products li.product .woocommerce-loop-product__title { order:2; font-size:15px; line-height:1.4; margin:0; padding:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vms-product-feed ul.products li.product .star-rating { order:3; margin:0; }
.vms-product-feed ul.products li.product img { width:100%; aspect-ratio:3/4; object-fit:contain; margin:0!important; border-radius:10px; }
.vms-product-feed ul.products li.product .button { display:none!important; }
.vms-product-feed.is-enhanced:not(.has-load-error) .vms-feed-pagination { display:none; }
.vms-product-feed .vms-feed-pagination { display:flex; gap:24px; margin-block:24px; }
.vms-product-feed .vms-feed-pagination a { min-height:44px; display:inline-flex; align-items:center; }
.vms-product-details ul.tabs { display:flex!important; flex-wrap:nowrap; gap:8px; overflow-x:auto; padding:0!important; scrollbar-width:thin; }
.vms-product-details ul.tabs li { flex:0 0 auto; margin:0!important; }
.vms-product-details ul.tabs li a { min-height:44px; display:flex; align-items:center; padding:8px 16px!important; }
.vms-full-description summary { cursor:pointer; color:#315a4b; font-weight:600; min-height:44px; padding-block:10px; }
.vms-variant-options { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.vms-variant-options button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:44px; padding:8px 12px; border:1px solid #cbd1cb; background:#fff; color:#252b28; border-radius:10px; font:inherit; overflow-wrap:anywhere; cursor:pointer; max-width:100%; }
.vms-variant-options button[aria-pressed="true"] { border-color:#315a4b; background:#e9f0eb; box-shadow:inset 0 0 0 1px #315a4b; }
.vms-variant-options button:disabled { opacity:.45; cursor:not-allowed; text-decoration:line-through; }
.vms-variant-options img { width:40px; height:48px; object-fit:contain; border-radius:4px; }
@media (max-width:1099px) { .vms-product-feed ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:781px) {
 :root { --vms-bottom-height:calc(64px + env(safe-area-inset-bottom,0px)); --vms-dock-height:90px; }
 body:has(.vms-bottom-nav) { padding-bottom:calc(var(--vms-bottom-height) + 20px); }
 body:has(.vms-buy-dock:not([hidden])) { padding-bottom:calc(var(--vms-bottom-height) + var(--vms-dock-height) + 24px); }
 .vms-bottom-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); position:fixed; z-index:90; inset:auto 0 0; min-height:64px; padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px)); background:rgb(255 255 255 / 98%); border-top:1px solid #e6e9e3; box-sizing:border-box; }
 .vms-bottom-nav a { display:flex; flex-direction:column; justify-content:center; align-items:center; position:relative; gap:2px; padding:2px; min-height:48px; color:#606a64; text-decoration:none; font-size:11px; line-height:1.3; }
 .vms-bottom-nav a[aria-current] { color:#315a4b; font-weight:700; }
 .vms-nav-icon { font-size:25px; line-height:28px; }
 .vms-nav-count { position:absolute; top:0; left:calc(50% + 6px); background:#315a4b; color:#fff; min-width:16px; border-radius:10px; padding:1px 4px; font-size:10px; text-align:center; }
 .vms-site-header { padding:12px!important; }
 .vms-header-row { gap:0!important; }
 .vms-header-brand,.vms-header-actions,.vms-header-row > .vms-catalog-menu { display:none!important; }
 .vms-header-search { flex:1 1 100%!important; margin:0!important; width:100%; }
 .vms-home { padding-top:8px; }
 .vms-category-tiles { display:flex; overflow-x:auto; gap:8px; padding-bottom:6px; scroll-snap-type:x proximity; }
 .vms-category-tiles a { flex:0 0 auto; min-height:44px; padding:10px 14px; border:0; background:#fff; scroll-snap-align:start; max-width:85vw; }
 .vms-category-tiles span { display:none; }
 .vms-home-categories > h2 { font-size:19px; }
 .vms-promo-track { gap:10px; }
 .vms-promo-slide { flex-basis:92%!important; min-width:92%!important; scroll-snap-align:start; }
 .vms-products .wc-block-product-template,.vms-product-feed ul.products { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
 .vms-products .wc-block-product-template > li,.woocommerce .vms-product-feed ul.products li.product { padding:8px!important; border:0!important; border-radius:14px; box-shadow:none; }
 .vms-products .vms-card-title { font-size:14px; line-height:1.4; }
 .vms-products .vms-card-price { font-size:19px; }
 body.single-product .wp-site-blocks > header { display:none; }
 .vms-product { padding-top:0!important; padding-inline:10px!important; }
 .vms-product > .vms-product-breadcrumbs { display:none; }
 .wp-block-columns.vms-product-layout { gap:12px; margin-top:0!important; }
 .vms-product-layout > .wp-block-column.vms-product-gallery { position:relative; order:0; margin-inline:-10px!important; width:calc(100% + 20px)!important; padding:0!important; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery { max-width:none; }
 .vms-product-gallery .woocommerce-product-gallery__image > a { border-radius:0 0 18px 18px; }
 .woocommerce .vms-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) { width:100%; height:auto; max-height:78svh; object-fit:contain; background:#fff!important; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs { margin:8px 10px 0; }
 .vms-photo-actions { display:flex; justify-content:space-between; position:absolute; z-index:5; inset:12px 12px auto; pointer-events:none; }
 .vms-photo-actions a,.vms-product-scrollbar > a { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:14px; color:#252b28; background:rgb(255 255 255 / 92%); text-decoration:none; font-size:28px; pointer-events:auto; }
 .vms-product-gallery .woocommerce-product-gallery__trigger { top:64px!important; right:12px!important; }
 .vms-gallery-counter { display:block; position:absolute; right:12px; bottom:96px; background:rgb(255 255 255 / 92%); padding:4px 10px; border-radius:12px; font-size:12px; pointer-events:none; }
 .vms-gallery-counter[hidden] { display:none; }
 .vms-product-purchase { order:1; padding:16px!important; box-shadow:none; border:0; border-radius:16px; scroll-margin-top:72px; }
 .vms-product-purchase .vms-product-price { font-size:28px; margin-bottom:12px; }
 .vms-product-info { order:2; padding:16px; background:#fff; border-radius:16px; }
 .vms-product-title { font-size:22px; margin-bottom:12px; }
 .vms-product-details { padding:16px!important; border:0; margin-top:12px; }
 .vms-product-scrollbar:not([hidden]) { display:flex; gap:10px; align-items:center; position:fixed; z-index:95; inset:0 0 auto; padding:4px 8px; background:rgb(255 255 255 / 97%); border-bottom:1px solid #e6e9e3; }
 .vms-product-scrollbar > span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; }
 .vms-buy-dock:not([hidden]) { display:flex; align-items:center; gap:12px; position:fixed; z-index:91; inset:auto 0 var(--vms-bottom-height); min-height:90px; box-sizing:border-box; padding:10px 12px; background:rgb(255 255 255 / 98%); border-top:1px solid #e6e9e3; border-radius:18px 18px 0 0; box-shadow:0 -4px 18px rgb(37 43 40 / 5%); }
 .vms-buy-dock > div { min-width:0; flex:1; }
 .vms-dock-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; font-size:12px; color:#606a64; }
 .vms-dock-price { display:block; font-size:17px; overflow-wrap:anywhere; }
 .vms-buy-dock button { min-height:48px; max-width:58%; padding:10px 16px; font:inherit; font-size:14px; line-height:1.3; background:#315a4b; color:#fff; border:0; border-radius:12px; cursor:pointer; }
 .vms-buy-dock button:disabled { opacity:.5; cursor:wait; }
 .vms-mobile-search { display:block; margin:12px; }
 .vms-mobile-search summary { min-height:44px; color:#315a4b; cursor:pointer; }
 .vms-mobile-search[open] { position:fixed; z-index:100; inset:56px 8px auto; margin:0; background:#fff; border:1px solid #cbd1cb; padding:12px; border-radius:14px; box-shadow:0 8px 30px #252b2826; }
 .vms-mobile-search form { display:flex; gap:8px; }
 .vms-mobile-search input[type="search"] { min-width:0; width:100%; min-height:48px; font:inherit; border:1px solid #cbd1cb; border-radius:8px; padding:8px; }
 .vms-mobile-search button { min-height:48px; padding:8px 12px; border:0; border-radius:8px; background:#315a4b; color:#fff; font:inherit; }
 .vms-keyboard-open .vms-bottom-nav,.vms-keyboard-open .vms-buy-dock { display:none!important; }
 .vms-product-details .woocommerce-Tabs-panel { scroll-margin-top:72px; }
 .vms-home-footer { padding-inline:16px; }
}
@media (max-width:781px) and (max-height:500px) {
 .vms-buy-dock:not([hidden]) { min-height:64px; padding-block:6px; }

}
@media (prefers-reduced-motion:reduce) { .vms-product-scrollbar,.vms-buy-dock { transition:none; } }

@media (max-width:781px) { .vms-promo-track::after { content:""; flex:0 0 calc(8% - 10px); } .vms-product > .wp-block-woocommerce-store-notices:empty { display:none; } }

@media (max-width:781px) {
 .vms-bottom-nav a { font-size:.6875rem; }
 .vms-dock-title { font-size:.75rem; }
 .vms-dock-price { font-size:1.0625rem; }
 .vms-buy-dock button { font-size:.875rem; }
 .vms-product-enhanced:has(.vms-buy-dock:not([hidden])):not(.vms-keyboard-open) .vms-product-purchase form.cart:not(.grouped_form) button.single_add_to_cart_button { display:none; }
 .vms-products .vms-card-title { font-size:.875rem; }
 .vms-product-title { font-size:1.375rem; }
 .vms-product-purchase .vms-product-price { font-size:1.75rem; }
 .vms-nav-icon { display:flex; align-items:center; justify-content:center; }
}

.vms-feed-review-count { order:4; font-size:.75rem; line-height:1.4; color:#606a64; }
@media (max-width:781px) {
 .vms-home,.vms-catalog { padding-inline:10px; }
 .vms-header-search .wp-block-search__inside-wrapper { border:0; border-radius:14px; background:#eef1ec; padding:4px 6px; }
 .vms-header-search .wp-block-search__input { background:transparent; }
 .vms-header-search .wp-block-search__button { background:#fff; color:#315a4b; border-radius:10px; }
 .vms-promo-slide { grid-template-columns:minmax(0,1fr) 30%; padding:18px; gap:12px; }
 .vms-promo-copy h2 { font-size:1.25rem; margin:8px 0 10px; }
 .vms-promo-copy p { font-size:.75rem; line-height:1.4; margin-bottom:12px; }
 .vms-promo-copy .vms-promo-eyebrow { font-size:.75rem; }
 .vms-promo-copy .wp-element-button { min-height:44px; padding:10px 12px; font-size:.8125rem; line-height:1.35; }
 .vms-promo-image { height:150px; }
 .vms-cart .wc-block-grid__products,.vms-cart .wc-block-cart__main .wc-block-product-template { gap:10px!important; }
 .vms-native-options summary { min-height:44px; display:flex; align-items:center; font-size:.75rem; color:#606a64; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
}

.vms-native-options summary { min-height:44px; cursor:pointer; color:#606a64; font-size:.75rem; }
@media (min-width:601px) and (max-width:781px) { body.admin-bar .vms-product-scrollbar { top:46px; } body.admin-bar .vms-mobile-search[open] { top:102px; } }

/* 1.7.1 — home: header → compact banner → products. No intervening panels/footer. */
.vms-home { padding-block:16px; }
.vms-home > .vms-promotions { margin-block:0!important; }
.vms-home > .vms-home-products { margin-block-start:16px!important; }
.vms-home-products > .vms-products { margin-block-start:0!important; }
.vms-home-footer { display:none!important; }
.vms-promo { position:relative; }
.vms-promo-track { scrollbar-width:none; }
.vms-promo-track::-webkit-scrollbar { display:none; }
.vms-promo-slide { min-height:208px; padding:24px 52px; gap:24px; grid-template-columns:minmax(0,1fr) minmax(140px,30%); }
.vms-promo-copy h2 { font-size:clamp(24px,2.3vw,32px); margin-block:8px 12px; }
.vms-promo-copy p { margin-bottom:12px; font-size:14px; }
.vms-promo-image { height:160px; background:transparent; }
.vms-promo-controls:not([hidden]) { position:absolute; inset:50% 4px auto; transform:translateY(-50%); justify-content:space-between; margin:0; pointer-events:none; }
.vms-promo-controls button { pointer-events:auto; background:rgb(255 255 255 / 90%); border:0; }
.vms-promo-controls .vms-promo-dots { display:none; }
.vms-product-gallery > .wp-block-woocommerce-product-image-gallery { margin-block-start:0!important; }
.vms-gallery-counter { margin:0!important; }
.vms-mobile-search:not([open]) { display:none!important; }
@media (max-width:781px) {
 .vms-home { padding-block:10px 20px; }
 .vms-home > .vms-home-products { margin-block-start:12px!important; }
 .vms-promo-slide { min-height:166px; padding:16px 44px; gap:12px; grid-template-columns:minmax(0,1fr) 30%; }
 .vms-promo-copy h2 { font-size:1.125rem; margin-block:6px 10px; }
 .vms-promo-copy .vms-promo-description { display:none; }
 .vms-promo-copy .vms-promo-eyebrow { font-size:.6875rem; }
 .vms-promo-copy .wp-element-button { padding:8px 10px; font-size:.75rem; }
 .vms-promo-image { height:130px; }
 body.single-product .wp-site-blocks > .wp-block-group.woocommerce.product { margin-block-start:0!important; }
 .vms-product > .wp-block-woocommerce-store-notices:not(:has(.woocommerce-notices-wrapper > *,[role="alert"],[role="status"])) { display:none; }
 .vms-product > .vms-product-layout { margin-block-start:0!important; }
 .vms-product-gallery > .wp-block-woocommerce-product-image-gallery { margin-block:0!important; }
 .vms-mobile-search[open] { display:block; position:fixed; inset:64px auto auto 50%; transform:translateX(-50%); width:calc(100% - 24px); max-width:480px; margin:0; padding:16px; border:1px solid #cbd1cb; border-radius:16px; }
 .vms-mobile-search::backdrop { background:rgb(37 43 40 / 28%); }
 .vms-mobile-search .vms-search-close { display:block; margin:0 0 12px auto; }
}

.vms-header-search .wp-block-search__inside-wrapper { display:flex; align-items:center; flex-wrap:nowrap; }
.vms-header-search .wp-block-search__input { flex:1; width:100%; }
.vms-promo-copy h2 { max-width:30ch; font-size:clamp(22px,2vw,28px); }
.vms-promo-copy p { max-width:64ch; }
.vms-promo-copy .vms-promo-eyebrow { padding:4px 8px; font-size:12px; }
@media (max-width:781px) { .vms-promo-slide { padding-inline:48px; } .vms-promo-copy h2 { font-size:1.125rem; } .vms-promo-copy .vms-promo-eyebrow { font-size:.6875rem; } }

/* 1.7.2: mobile photo → compact price; native form and gallery remain the source. */
.vms-site-footer,.wp-site-blocks > footer.wp-block-template-part { display:none!important; }
.vms-promo-copy .wp-element-button { display:inline-flex; align-items:center; justify-content:center; width:fit-content; max-width:100%; box-sizing:border-box; text-align:center; overflow-wrap:normal; text-decoration:none; }
.vms-promo-position { display:none; }
.vms-quantity-options { display:contents; }
.vms-quantity-options > summary { display:none; }
.vms-quantity-options > .quantity { display:block!important; }
@media (max-width:781px) {
 .vms-promo-slide { padding:16px; gap:12px; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); min-height:166px; }
 .vms-promo-copy { align-self:center; }
 .vms-promo-copy .wp-element-button { white-space:normal; min-height:44px; padding:8px 10px; font-size:.75rem; line-height:1.3; }
 .vms-promo-image { width:100%; min-width:0; height:130px; padding:0; border-radius:12px; }
 .vms-promo-controls:not([hidden]) { display:none!important; }
 .vms-promo-position { display:block; position:absolute; right:16px; bottom:8px; pointer-events:none; padding:2px 6px; background:rgb(255 255 255 / 85%); color:#606a64; border-radius:8px; font-size:10px; line-height:1.3; }
 .woocommerce .vms-product-gallery div.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs { display:none!important; }
 .vms-product-gallery .woocommerce-product-gallery__image > a { border-radius:0; }
 .vms-gallery-counter { bottom:12px; right:12px; }
 .woocommerce .vms-product-gallery .onsale { top:auto!important; left:12px!important; right:auto!important; bottom:12px!important; min-height:0; min-width:0; width:auto; max-width:calc(100% - 100px); padding:6px 10px; border-radius:20px; line-height:1.3; font-size:.6875rem; z-index:2; background:#e9f0eb; color:#315a4b; }
 .vms-product > .vms-product-layout { row-gap:0; }
 .vms-product-layout > .wp-block-column.vms-product-info { margin-top:12px!important; }
 .vms-product-purchase { padding:10px 16px 12px!important; border-radius:0 0 16px 16px; }
 .vms-product-purchase > * { margin-block:0!important; }
 .vms-product-purchase .vms-product-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-size:1.625rem; line-height:1.2; }
 .vms-product-purchase .vms-product-price > .price { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
 .vms-product-purchase .vms-product-price ins { order:-1; font-size:inherit; }
 .vms-product-purchase .vms-product-price del { font-size:.875rem; line-height:1.3; }
 .vms-product-purchase .vms-product-cart { display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; }
 .vms-product-purchase form.cart { margin:0!important; gap:6px; }
 .vms-product-purchase .stock { padding:0; margin:0; border-radius:0; background:transparent; font-size:.8125rem; font-weight:400; }
 .vms-product-purchase .vms-selection-hint { margin-block:8px!important; padding:0; background:transparent; font-size:.8125rem; }
 .vms-product-purchase .vms-product-help { margin-top:8px!important; }
 .vms-product-purchase .variations_form { width:100%; }
 .vms-product-purchase table.variations { margin-block:8px; }
 .vms-quantity-options { display:block; margin:0; }
 .vms-quantity-options > summary { display:flex; align-items:center; min-height:44px; font-size:.8125rem; cursor:pointer; color:#606a64; text-decoration:underline; text-underline-offset:3px; }
 .vms-quantity-options:not([open]) > .quantity { display:none!important; }
 .vms-quantity-options[open] > .quantity { display:block!important; padding-bottom:8px; }
 .vms-dock-title { display:none!important; }
 .vms-buy-dock:not([hidden]) { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:12px; min-height:68px; padding:10px 12px; }
 .vms-buy-dock button { width:100%; max-width:none; min-height:48px; font-size:.875rem; padding:10px 12px; }
 .vms-dock-price { font-size:1.125rem; line-height:1.25; }
 :root { --vms-dock-height:68px; }
}
@media (max-width:781px) {
 .vms-product-gallery > .wp-block-woocommerce-product-image-gallery { position:relative; }
 .woocommerce .vms-product-gallery .onsale { position:absolute; }
}
@media (max-width:781px) { .vms-promo-slide { padding-inline:24px; } }
@media (max-width:781px) { .vms-promo-copy .wp-element-button { overflow-wrap:anywhere; } }

/* 1.7.3: convey discounts through native prices, leaving product images clear. */
.woocommerce span.onsale,
.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge {
 display:none!important;
}

/* 1.7.4: a compact promotion with a visible next slide and a composed image stage. */
.vms-promo-slide { flex-basis:86%; min-width:86%; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); min-height:196px; padding:20px 56px; gap:24px; overflow:hidden; background:#dfe9e2; }
.vms-promo-slide-1 { background:#e4e9ee; }
.vms-promo-slide-2 { background:#eee5d9; }
.vms-promo-copy h2 { max-width:24ch; margin:6px 0 10px; font-size:clamp(22px,2.2vw,28px); line-height:1.15; letter-spacing:-.025em; }
.vms-promo-copy p { margin-bottom:12px; }
.vms-promo-copy .vms-promo-eyebrow { display:block; padding:0; border:0; background:none; color:#496354; font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.vms-promo-copy .wp-element-button { min-height:44px; padding:10px 16px; border-radius:10px; font-size:13px; }
.vms-promo-art { position:relative; display:flex; justify-content:center; align-items:center; min-width:0; height:168px; isolation:isolate; }
.vms-promo-art::before { content:''; position:absolute; z-index:-1; width:100%; height:150%; border-radius:50%; background:rgb(255 255 255 / 46%); transform:rotate(-18deg); }
.vms-promo-art::after { content:''; position:absolute; z-index:-1; inset:12% 8%; border:1px solid rgb(49 90 75 / 16%); border-radius:50%; transform:rotate(-18deg); }
.vms-promo-art .vms-promo-image { width:auto; max-width:100%; height:184px; object-fit:contain; border:6px solid #fff; box-sizing:border-box; border-radius:14px; transform:rotate(4deg); box-shadow:0 10px 22px rgb(37 43 40 / 12%); }
.vms-promo-slide:not(:has(.vms-promo-art)) { grid-template-columns:1fr; }
.vms-promo-track::after { content:''; flex:0 0 calc(14% - 16px); }
.vms-promo-controls:not([hidden]) { inset:50% 8px auto; }
/* The full name is a single heading above the desktop columns, never truncated. */
.vms-product-heading { grid-column:1 / -1; grid-row:1; }
.vms-product-heading .vms-product-title { margin:0; max-width:100%; font-size:clamp(22px,1.8vw,26px); line-height:1.35; font-weight:600; letter-spacing:-.015em; }
.vms-product-heading .woocommerce-product-rating { margin:10px 0 0; font-size:14px; }
.vms-product-info-title { font-size:18px; margin-bottom:12px; }
.vms-product-info .vms-product-summary { font-size:15px; line-height:1.6; margin-bottom:18px; }
/* Match the specificity of native Woo selectors, including its anchor type. */
.woocommerce .vms-product-feed ul.products li.product > a.woocommerce-loop-product__link,
.woocommerce .vms-product-feed ul.products li.product > a.woocommerce-LoopProduct-link { display:flex; flex-direction:column; gap:8px; }
.woocommerce .vms-product-feed ul.products li.product > a > img { order:0; }
.woocommerce .vms-product-feed ul.products li.product .price { order:1; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; line-height:1.3; }
.woocommerce .vms-product-feed ul.products li.product .price ins { order:0; text-decoration:none; }
.woocommerce .vms-product-feed ul.products li.product .price del { order:1; font-size:13px; font-weight:400; color:#707b74; }
.woocommerce .vms-product-feed ul.products li.product .woocommerce-loop-product__title { order:2; font-weight:500; }
.woocommerce .vms-product-feed ul.products li.product .star-rating { order:3; }
.woocommerce .vms-product-feed ul.products li.product .vms-feed-review-count { order:4; font-size:12px; color:#606a64; }
@media (min-width:1100px) {
 .vms-product-gallery,.vms-product-info,.vms-product-purchase { grid-row:2; }
 .vms-product-purchase { padding:20px; }
}
@media (min-width:782px) and (max-width:1099px) {
 .vms-product-gallery { grid-row:2 / 4; }
 .vms-product-purchase { grid-row:2; }
 .vms-product-info { grid-row:3; }
}
@media (max-width:781px) {
 .vms-promo-slide { flex-basis:92%!important; min-width:92%!important; min-height:164px; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); padding:16px; gap:12px; }
 .vms-promo-copy h2 { font-size:1.125rem; line-height:1.2; margin:6px 0 12px; }
 .vms-promo-copy .vms-promo-eyebrow { font-size:10px; }
 .vms-promo-copy .wp-element-button { padding:8px 10px; font-size:.75rem; }
 .vms-promo-art { height:132px; }
 .vms-promo-art .vms-promo-image { height:140px; max-width:100%; border-width:4px; border-radius:10px; }
 .vms-promo-track::after { flex-basis:calc(8% - 10px); }
 .vms-product-heading { grid-column:auto; grid-row:auto; order:2; padding:16px 16px 0; background:#fff; border-radius:16px 16px 0 0; margin-top:12px!important; }
 .vms-product-heading .vms-product-title { font-size:20px; line-height:1.4; }
 .vms-product-layout > .wp-block-column.vms-product-info { order:3; margin-top:0!important; padding:16px; border-radius:0 0 16px 16px; }
}

/* 1.7.8: compact price immediately below the actual Woo gallery, without its native 2em margin.
   display:contents keeps the native price/form in their Woo parent for updates. */
@media (max-width:781px) {
 .woocommerce .vms-product-gallery div.images.woocommerce-product-gallery { margin-block:0!important; }
 .vms-product-layout > .wp-block-column.vms-product-purchase { display:contents; }
 .vms-product-purchase > .vms-product-price { order:1; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; min-width:0; width:100%; box-sizing:border-box; padding:8px 6px 0; margin:0!important; background:transparent; border:0; border-radius:0; box-shadow:none; font-size:1.25rem; line-height:1.3; color:#315a4b; }
 .vms-product-purchase > .vms-product-price > .price,
 .vms-product-purchase > .vms-product-price > .wc-block-components-product-price { display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:baseline; gap:4px 8px; margin:0; padding:0; text-align:left; font:inherit; }
 .vms-product-purchase .vms-product-price ins { order:-1; font-weight:700; text-decoration:none; }
 .vms-product-purchase .vms-product-price del { order:1; font-size:.875rem; font-weight:400; color:#7a827e; }
 .vms-product-layout > .wp-block-column.vms-product-heading { order:2; padding:16px; margin-top:8px!important; border-radius:16px 16px 0 0; }
 .vms-product-purchase > .vms-selection-hint { order:3; margin:0!important; padding:0 16px 8px; background:#fff; }
 .vms-product-purchase > .vms-product-cart { order:3; display:block; padding:0 16px 16px; margin:0!important; background:#fff; }
 .vms-product-layout > .wp-block-column.vms-product-info { order:4; }
 .vms-product-purchase > .vms-product-help { order:5; padding:12px 16px; margin:8px 0 0!important; background:#fff; border-radius:16px; }
}

/* 1.7.6: checkout summary must not squeeze long names between image and totals. */
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary .wc-block-components-order-summary-item {
 display:grid; grid-template-columns:48px minmax(0,1fr); gap:8px 12px; align-items:start; padding-block:16px; min-width:0;
}
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image { grid-column:1; grid-row:1 / 3; width:48px; flex:none; margin:0; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img { width:48px; height:64px; object-fit:contain; border-radius:8px; background:#f4f6f3; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description { grid-column:2; grid-row:1; width:auto; min-width:0; padding:0; margin:0; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-components-product-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; margin:0 0 6px; font-size:.875rem; line-height:1.45; font-weight:500; overflow-wrap:anywhere; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display:none; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-components-product-metadata { margin-top:6px; font-size:.75rem; line-height:1.4; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price { grid-column:2; grid-row:2; min-width:0; width:auto; margin:0; padding:0; text-align:left; justify-self:start; font-size:1rem; font-weight:700; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price::before { content:'Всего'; display:block; margin-bottom:2px; font-size:.6875rem; font-weight:400; color:#606a64; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items:flex-start; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-components-sale-badge { display:none; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-prices { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; font-size:.875rem; line-height:1.4; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-prices ins { order:-1; text-decoration:none; }
.vms-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-prices del { font-size:.75rem; color:#707b74; }

/* 1.8.0: live sale products in the existing homepage carousel. Badges stay off images. */
.vms-sale-promo .vms-promo-slide { min-height:232px; padding-block:20px; background:#e1ece4; }
.vms-sale-promo .vms-promo-slide-1 { background:#eee8dd; }
.vms-sale-promo .vms-promo-slide-2 { background:#e5eaf0; }
.vms-promo-badges { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.vms-promo-sale-label,.vms-promo-sale-badge { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border-radius:7px; font-size:12px; line-height:1.25; font-weight:700; }
.vms-promo-sale-label { background:#315a4b; color:#fff; }
.vms-promo-sale-badge { background:#9b3d2b; color:#fff; }
.vms-sale-promo .vms-promo-copy h2 { font-size:clamp(18px,1.7vw,24px); line-height:1.25; max-width:35ch; margin:10px 0 8px; }
.vms-promo-title-link { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:inherit; text-decoration:none; }
.vms-promo-title-link:hover { text-decoration:underline; text-underline-offset:3px; }
.vms-promo-title-link:focus-visible { outline:2px solid #315a4b; outline-offset:3px; }
.vms-sale-promo .vms-promo-copy .vms-promo-price-note { margin:0 0 3px; font-size:11px; color:#53645a; }
.vms-promo-sale-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin:0 0 12px; font-size:26px; line-height:1.2; font-weight:700; color:#315a4b; font-variant-numeric:tabular-nums; }
.vms-promo-sale-price ins { order:0; background:none; text-decoration:none; }
.vms-promo-sale-price del { order:1; color:#657067; font-size:14px; font-weight:400; }
.vms-promo-sale-price .amount { white-space:nowrap; }
.vms-promo-price-from { order:-1; font-size:14px; font-weight:400; }
.vms-sale-promo .vms-promo-copy .vms-promo-stock { margin:0 0 8px; font-size:12px; color:#6b3b30; }
.vms-sale-promo .vms-promo-art { height:184px; }
.vms-sale-promo .vms-promo-art .vms-promo-image { height:196px; border-width:4px; transform:rotate(2deg); }
.vms-sale-promo:has(.vms-promo-slide:only-child) .vms-promo-slide { flex-basis:100%!important; min-width:100%!important; }
.vms-sale-promo:has(.vms-promo-slide:only-child) .vms-promo-track::after { display:none; }
@media (max-width:781px) {
 .vms-sale-promo .vms-promo-slide { min-height:216px; padding:14px 12px 22px; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:10px; }
 .vms-sale-promo .vms-promo-copy h2 { font-size:15px; line-height:1.3; margin:8px 0; }
 .vms-sale-promo .vms-promo-title-link { -webkit-line-clamp:3; }
 .vms-promo-sale-label,.vms-promo-sale-badge { min-height:21px; padding:3px 7px; font-size:10px; }
 .vms-sale-promo .vms-promo-sale-price { font-size:20px; gap:3px 6px; margin-bottom:10px; }
 .vms-sale-promo .vms-promo-sale-price del { font-size:12px; }
 .vms-sale-promo .vms-promo-price-from { font-size:12px; }
 .vms-sale-promo .vms-promo-art { height:160px; }
 .vms-sale-promo .vms-promo-art .vms-promo-image { height:auto; max-height:170px; max-width:100%; border-width:3px; }
 .vms-sale-promo .vms-promo-copy .wp-element-button { min-height:44px; padding:8px 10px; }
}

.vms-sale-promo .vms-promo-slide:not(:has(.vms-promo-art)) { grid-template-columns:1fr; }
.vms-sale-promo .vms-promo-copy .wp-element-button { background:#315a4b; color:#fff; }
.vms-sale-promo .vms-promo-copy .wp-element-button:hover { background:#244638; color:#fff; }
