/*
Theme Name: EATON Store
Description: Интернет-магазин VIISAN на WooCommerce: каталог с фильтром, карточки с характеристиками и документами, оформление заказа для юрлиц.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: viisan-shop
*/

:root {
	--paper: #F4F6F7;
	--white: #FFFFFF;
	--graphite: #252A2C;
	--muted: #59636A;
	--line: #DCE2E5;
	--blue: #297ACC;
	--blue-dark: #1E5C9C;
	--scan: #00B7FF;
	--ok: #1E7A43;
	--warn: #9A5B00;
	--err: #B3261E;
	--r: 4px;
	--wrap: 1280px;
	--fs-s: 15px;
	--fs-m: 17px;
	--fs-l: 21px;
	--fs-xl: 27px;
	--fs-xxl: 36px;
	--fs-hero: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--graphite);
	font-family: 'Inter', sans-serif;
	font-size: var(--fs-m);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	padding: 10px 16px;
	background: var(--white);
}

.vs-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.vs-main { padding-top: 24px; padding-bottom: 64px; }
.vs-ico { flex: none; }

/* Кнопки */
.vs-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px;
	border: 0; border-radius: var(--r);
	background: var(--blue); color: var(--white);
	font: 700 var(--fs-m)/1 'Inter', sans-serif;
	text-decoration: none; cursor: pointer;
}
.vs-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--blue-dark); color: var(--white);
}
.woocommerce button.button:disabled, .woocommerce button.button.disabled { background: var(--line); color: var(--muted); }
.vs-btn--light { background: var(--white); color: var(--graphite); }
.vs-btn--light:hover { background: var(--paper); color: var(--graphite); }
.vs-btn-outline, .vs-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 20px;
	border: 1px solid var(--blue); border-radius: var(--r);
	color: var(--blue); font-weight: 700; text-decoration: none;
}
.vs-btn-ghost { border-color: var(--line); color: var(--graphite); }
.vs-btn-outline:hover, .vs-btn-ghost:hover { background: var(--white); color: var(--blue-dark); }

/* Уголки кадра — общий приём для фото */
.vs-frame, .vs-card__img, .vs-cat__img,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport { position: relative; }
.vs-card__img::after, .vs-cat__img::after,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper::after,
.woocommerce div.product div.images .flex-viewport::after {
	content: ""; position: absolute; inset: 6px; pointer-events: none;
	--c: var(--scan); --l: 20px; --w: 2px;
	background:
		linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
		linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
	transition: inset 0.25s ease;
}
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper::after { display: none; }
.woocommerce div.product div.images .flex-viewport { background: var(--white); padding: 24px; }
.woocommerce div.product div.images .flex-viewport .woocommerce-product-gallery__wrapper { padding: 0; }
.vs-card:hover .vs-card__img::after, .vs-cat:hover .vs-cat__img::after { inset: 14px; }
@media (prefers-reduced-motion: reduce) {
	.vs-card__img::after, .vs-cat__img::after { transition: none; }
}

/* Шапка */
.vs-header { background: var(--white); border-bottom: 1px solid var(--line); }
.vs-header__top {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
	padding-top: 14px; padding-bottom: 14px;
}
.vs-logo__text {
	font-size: 30px; font-weight: 700; letter-spacing: 0.04em;
	color: var(--graphite); text-decoration: none;
}
.vs-logo img { display: block; max-height: 48px; width: auto; }
.vs-search {
	flex: 1 1 280px; display: flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 0 14px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
	color: var(--muted);
}
.vs-search:focus-within { border-color: var(--blue); }
.vs-search input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
	font: inherit; font-size: var(--fs-s); color: var(--graphite);
}
.vs-header__phone { color: var(--graphite); font-weight: 700; text-decoration: none; white-space: nowrap; }
.vs-header__icon, .vs-header__cart {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; min-width: 44px; justify-content: center;
	color: var(--graphite); text-decoration: none;
}
.vs-header__cart { padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); }
.vs-header__cart:hover, .vs-header__icon:hover { color: var(--blue); }
.vs-cart-count {
	min-width: 22px; padding: 0 6px; border-radius: 11px;
	background: var(--graphite); color: var(--white);
	font-size: 13px; line-height: 22px; text-align: center;
}
.vs-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-bottom: 10px; }
.vs-nav__list { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.vs-nav__list a { display: inline-block; padding: 6px 0; color: var(--graphite); text-decoration: none; font-size: var(--fs-s); }
.vs-nav__list a:hover, .vs-nav__list .current-menu-item > a { color: var(--blue); }
.vs-nav__list--right a { color: var(--muted); }

/* Первый экран */
.vs-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.vs-hero__inner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
	padding-top: 72px; padding-bottom: 72px;
}
.vs-hero__text { flex: 1 1 460px; max-width: 640px; }
.vs-hero__eyebrow { color: var(--muted); font-size: var(--fs-s); margin-bottom: 14px; }
.vs-hero h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; margin-bottom: 20px; }
.vs-hero p { font-size: var(--fs-l); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.vs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Секции главной */
.vs-section { padding-top: 56px; padding-bottom: 8px; }
.vs-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.vs-section__head .vs-section__title { margin: 0; }
.vs-section__title { font-size: var(--fs-xxl); margin-bottom: 24px; }

.vs-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 24px; }
.vs-cat { display: flex; flex-direction: column; gap: 4px; color: var(--graphite); text-decoration: none; }
.vs-cat__img { display: block; aspect-ratio: 1; padding: 24px; background: var(--white); margin-bottom: 10px; }
.vs-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.vs-cat__name { font-size: var(--fs-l); font-weight: 700; line-height: 1.2; }
.vs-cat:hover .vs-cat__name { color: var(--blue); }
.vs-cat__count { color: var(--muted); font-size: var(--fs-s); }

.vs-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 56px; }
.vs-benefit { border-top: 3px solid var(--graphite); padding-top: 14px; }
.vs-benefit h3 { font-size: var(--fs-l); margin-bottom: 6px; }
.vs-benefit p { margin: 0; color: var(--muted); }

.vs-content { max-width: 820px; }
.vs-page-title { font-size: var(--fs-xxl); margin: 8px 0 24px; }

/* Хлебные крошки */
.woocommerce .vs-bc { font-size: var(--fs-s); color: var(--muted); margin: 0 0 8px; }
.woocommerce .vs-bc a { color: var(--muted); }
.vs-bc__sep { margin: 0 8px; }

/* Каталог: фильтр + сетка */
.vs-shop { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.vs-shop__aside { flex: 1 1 240px; max-width: 280px; }
.vs-shop__main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) { .vs-shop__aside { max-width: none; } }

.vs-filter__title { font-size: var(--fs-l); margin-bottom: 4px; }
.vs-filter__group { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.vs-filter__group legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: var(--fs-s); }
.vs-filter__group legend + * { clear: both; }
.vs-filter__link { display: flex; justify-content: space-between; padding: 6px 0; color: var(--graphite); text-decoration: none; }
.vs-filter__link span { color: var(--muted); font-size: var(--fs-s); }
.vs-filter__link:hover { color: var(--blue); }
.vs-filter__row { display: flex; gap: 10px; clear: both; }
.vs-filter__row label { flex: 1; }
.vs-filter input[type="number"] {
	width: 100%; min-height: 44px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit;
}
.vs-check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; clear: both; }
.vs-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.vs-filter > .vs-check { margin-top: 12px; }
.vs-filter__actions { display: flex; gap: 10px; margin-top: 18px; }
.vs-filter__actions .vs-btn { flex: 1; }

.woocommerce .woocommerce-result-count { color: var(--muted); font-size: var(--fs-s); margin: 10px 0 20px; }
.woocommerce .woocommerce-ordering select {
	min-height: 44px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit;
}

.woocommerce ul.products {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
	margin: 0 0 32px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product.vs-card {
	float: none; width: auto; margin: 0;
	display: flex; flex-direction: column; gap: 8px;
	padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
}
.vs-card__img { display: block; aspect-ratio: 1; padding: 18px; background: var(--white); }
.woocommerce ul.products li.product .vs-card__img img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.woocommerce ul.products li.product .vs-card__title { font-size: var(--fs-l); padding: 0; margin: 4px 0 0; }
.vs-card__title a { color: var(--graphite); text-decoration: none; }
.vs-card__title a:hover { color: var(--blue); }
.vs-card__desc { margin: 0; color: var(--muted); font-size: var(--fs-s); line-height: 1.4; }
.vs-card__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto; padding-top: 10px;
}
.woocommerce ul.products li.product .price { margin: 0; color: var(--graphite); font-size: var(--fs-l); font-weight: 700; }
.woocommerce ul.products li.product .button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; margin: 0; padding: 0 18px; line-height: 1;
}
.woocommerce a.added_to_cart { padding: 0; font-size: var(--fs-s); }

.vs-price-request { font-size: var(--fs-m); font-weight: 700; color: var(--muted); }
.vs-stock { font-size: var(--fs-s); }
.vs-stock.is-in { color: var(--ok); }
.vs-stock.is-backorder { color: var(--warn); }
.vs-stock.is-out { color: var(--err); }

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--graphite);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* Карточка товара */
.woocommerce div.product { margin-top: 8px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: var(--white); padding: 24px; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; display: flex; gap: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px; background: var(--white); border: 1px solid var(--line); }
.woocommerce div.product .product_title { font-size: var(--fs-xxl); margin-bottom: 6px; }
.vs-sku { color: var(--muted); font-size: var(--fs-s); margin-bottom: 14px; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: var(--fs-l); color: var(--muted); margin-bottom: 14px; max-width: 34em; }
.woocommerce div.product .summary > p.price { margin: 0 0 4px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--graphite); font-size: var(--fs-xl); font-weight: 700; }
.woocommerce div.product .stock { font-size: var(--fs-s); }
.woocommerce div.product .stock.in-stock { color: var(--ok); }
.woocommerce div.product .stock.out-of-stock { color: var(--err); }

.vs-buybox {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	padding: 20px; margin: 8px 0 18px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
}
.vs-buybox form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 !important; }
.vs-buybox form.cart::before, .vs-buybox form.cart::after { display: none; }
.vs-buybox .variations_form { flex-direction: column; align-items: stretch; width: 100%; }
.woocommerce .quantity .qty {
	width: 72px; min-height: 44px;
	border: 1px solid var(--line); border-radius: var(--r); font: inherit; text-align: center;
}
.woocommerce div.product form.cart .variations select {
	min-height: 44px; min-width: 160px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: var(--r); font: inherit; background: var(--white);
}
.woocommerce div.product form.cart .variations th { font-weight: 700; padding-right: 12px; }

.vs-terms { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: var(--fs-s); }
.vs-terms dt { font-weight: 700; }
.vs-terms dd { margin: 0; color: var(--muted); }

.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 32px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 4px 28px;
	margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 0; font-weight: 700; color: var(--muted);
	border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--graphite); border-bottom-color: var(--graphite); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 960px; }
.woocommerce div.product .woocommerce-tabs .panel p { max-width: 46em; }

.vs-specs-wrap { overflow-x: auto; }
.vs-specs { width: 100%; border-collapse: collapse; font-size: var(--fs-s); background: var(--white); }
.vs-specs th, .vs-specs td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs-specs th { width: 36%; font-weight: 700; color: var(--graphite); }
.vs-specs td { color: var(--graphite); }
.vs-specs tr:nth-child(even) th, .vs-specs tr:nth-child(even) td { background: #FAFBFB; }

.vs-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vs-docs a {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
	color: var(--graphite); text-decoration: none; font-weight: 700;
}
.vs-docs a:hover { border-color: var(--blue); color: var(--blue); }
.vs-docs .vs-ico { color: var(--blue); }

.woocommerce .related.products > h2, .woocommerce .up-sells > h2 { font-size: var(--fs-xl); margin-top: 40px; }

/* Уведомления */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 0 !important; border-left: 3px solid var(--blue) !important;
	background: var(--white) !important; color: var(--graphite) !important; border-radius: var(--r);
}
.woocommerce-error { border-left-color: var(--err) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue) !important; }

/* Корзина и оформление */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); border-collapse: separate; }
.woocommerce table.shop_table th { font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; border-color: var(--line); }
.woocommerce-cart table.cart img { width: 72px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 420px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: var(--fs-xl); }

.woocommerce form .form-row label { font-weight: 700; font-size: var(--fs-s); margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	min-height: 44px; padding: 8px 12px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--blue); outline: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--err); }

.vs-customer-type .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
.vs-customer-type input[type="radio"] { position: absolute; opacity: 0; }
.vs-customer-type input[type="radio"] + label {
	display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 18px; margin: 0 !important;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
	font-weight: 700; cursor: pointer;
}
.vs-customer-type input[type="radio"]:checked + label { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.vs-customer-type input[type="radio"]:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.woocommerce-checkout #payment { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-checkout #payment div.payment_box { background: var(--paper); color: var(--graphite); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--paper); }
#order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: var(--fs-l); }

/* Личный кабинет */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
	color: var(--graphite); text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { font-weight: 700; color: var(--blue); }

/* Подвал */
.vs-footer { background: var(--graphite); color: #C9D0D3; margin-top: 40px; }
.vs-footer__cols {
	display: flex; flex-wrap: wrap; gap: 32px 72px;
	padding-top: 48px; padding-bottom: 40px; font-size: var(--fs-s);
}
.vs-footer h2 { color: var(--white); font-size: var(--fs-m); margin-bottom: 12px; }
.vs-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vs-footer .vs-nav__list { flex-direction: column; gap: 8px; }
.vs-footer a, .vs-footer .vs-nav__list a { color: #C9D0D3; padding: 0; }
.vs-footer a:hover { color: var(--white); }
.vs-footer__legal {
	flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 32px;
	padding-top: 20px; border-top: 1px solid #3A4144; color: #9AA3A7; font-size: 14px;
}

/* Телефон */
@media (max-width: 720px) {
	:root { --fs-xxl: 30px; --fs-hero: 34px; --fs-l: 19px; }
	.vs-wrap { padding: 0 16px; }
	.vs-header__top { gap: 10px 14px; }
	.vs-header__catalog { order: 3; }
	.vs-search { order: 5; flex-basis: 100%; }
	.vs-header__phone { display: none; }
	.vs-header__cart span:not(.vs-cart-count) { display: none; }
	.vs-logo { margin-right: auto; }
	.vs-nav__list { flex-wrap: nowrap; overflow-x: auto; }
	.vs-nav__list a { white-space: nowrap; }
	.vs-hero__inner { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
		.woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.woocommerce ul.products li.product.vs-card { padding: 12px; }
	.vs-specs th { width: 44%; }
	.vs-specs th, .vs-specs td { padding: 10px; }
}

/* === VIISAN SHOP 2026-10-05b START: первый экран, наличие, меню, вкладки, контакты === */

/* Первый экран: изображение на всю ширину, текст слева на светлом поле, сканеры не перекрываются */
.vs-hero { position: relative; overflow: hidden; }
.vs-hero__media { position: relative; display: block; line-height: 0; }
.vs-hero__img { display: block; width: 100%; height: auto; }
.vs-hero.has-media .vs-hero__inner {
position: absolute; left: 0; right: 0; top: 0; bottom: 0;
max-width: none; margin: 0; padding: 0 0 0 clamp(24px, 4vw, 96px);
display: flex; align-items: center;
}
.vs-hero.has-media .vs-hero__text { flex: none; width: 29vw; max-width: 29vw; }
.vs-hero.has-media h1 { font-size: clamp(26px, 2.6vw, 46px); line-height: 1.15; margin-bottom: 18px; }
.vs-hero.has-media .vs-hero__eyebrow { margin-bottom: 10px; }
@media (max-width: 900px) {
.vs-hero.has-media .vs-hero__inner { position: static; display: block; padding: 28px 24px 36px; }
.vs-hero.has-media .vs-hero__text { width: auto; max-width: 640px; }
.vs-hero.has-media h1 { font-size: var(--fs-hero); }
}

/* Карточка в списке: наличие у нижнего края, над ценой */
.vs-card__more { align-self: flex-start; font-size: 14px; text-decoration: none; }
.vs-card__more::after { content: " \2197"; }
.vs-card__more:hover { text-decoration: underline; }
.vs-stock { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 700; }
.vs-stock::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.vs-stock + .vs-card__foot { margin-top: 0; }
.vs-stock.is-low { color: var(--warn); }
.vs-stock.is-mid, .vs-stock.is-high { color: var(--ok); }

/* Ссылка на описание на viisan.ru в карточке товара */
.vs-more { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-weight: 700; text-decoration: none; }
.vs-more:hover { text-decoration: underline; }

/* Меню разделов: графитовая полоса, голубой акцент */
.vs-navbar { background: var(--graphite); }
.vs-navbar .vs-nav { padding-top: 0; padding-bottom: 0; gap: 0 24px; }
.vs-navbar .vs-nav__list { gap: 0 2px; }
.vs-navbar .vs-nav__list a {
position: relative; display: block; padding: 15px 18px;
color: #E6EBEE; font-size: 16px; font-weight: 700; text-decoration: none;
transition: background 0.15s ease, color 0.15s ease;
}
.vs-navbar .vs-nav__list a::after {
content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
background: var(--scan); transform: scaleX(0); transform-origin: left center; transition: transform 0.2s ease;
}
.vs-navbar .vs-nav__list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.vs-navbar .vs-nav__list a:hover::after { transform: scaleX(1); }
.vs-navbar .vs-nav__list .current-menu-item > a { color: var(--white); background: var(--blue); }
.vs-navbar .vs-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.vs-navbar .vs-nav__list--right a { color: #AEB9BE; }
.vs-navbar .vs-nav__list--right a:hover, .vs-navbar .vs-nav__list--right .current-menu-item > a { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .vs-navbar .vs-nav__list a, .vs-navbar .vs-nav__list a::after { transition: none; } }

/* Вкладки карточки товара */
.woocommerce div.product .woocommerce-tabs ul.tabs {
display: flex; width: fit-content; max-width: 100%; overflow-x: auto;
gap: 4px; margin: 0 0 22px; padding: 5px;
background: #E7ECEF; border: 0; border-radius: 10px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
padding: 10px 24px; margin: 0; border: 0; border-radius: 7px;
color: var(--muted); font-weight: 700; white-space: nowrap;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a:hover { color: var(--graphite); background: rgba(255, 255, 255, 0.6); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(37, 42, 44, 0.18);
}

/* Контакты */
.vs-content--wide { max-width: none; }
.vs-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: stretch; margin: 8px 0 40px; }
.vs-contacts__info { display: flex; flex-direction: column; }
.vs-contacts__lead { font-size: 21px; line-height: 1.55; margin: 0 0 28px; }
.vs-contacts__info h2, .vs-contacts__form h2 { font-size: var(--fs-xl); margin: 0 0 14px; }
.vs-contacts__list { margin: 0; border-top: 1px solid var(--line); }
.vs-contacts__list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.vs-contacts__list dt { color: var(--muted); }
.vs-contacts__list dd { margin: 0; font-weight: 700; }
.vs-contacts__map { display: flex; flex-direction: column; gap: 10px; }
.vs-map { flex: 1; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.vs-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.vs-map__link { font-size: 15px; }
.vs-contacts__form { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.vs-contacts__form > p { margin: 0 0 20px; color: var(--muted); }
.vs-request__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.vs-request__f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.vs-request__f--wide, .vs-request__agree, .vs-request__act { grid-column: 1 / -1; }
.vs-request__f input, .vs-request__f textarea {
min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
background: var(--paper); font: inherit; font-weight: 400; color: var(--graphite);
}
.vs-request__f input:focus, .vs-request__f textarea:focus { border-color: var(--blue); outline: none; background: var(--white); }
.vs-request__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vs-request__note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--paper); }
.vs-request__note.is-ok { border-left-color: var(--ok); }
.vs-request__note.is-err { border-left-color: var(--err); }
@media (max-width: 900px) {
.vs-contacts { grid-template-columns: 1fr; gap: 28px; }
.vs-contacts__list > div { grid-template-columns: 120px minmax(0, 1fr); }
.vs-request__form { grid-template-columns: 1fr; }
.vs-contacts__form { padding: 20px; }
.vs-map, .vs-map iframe { min-height: 320px; }
}
.woocommerce div.product .stock.is-low { color: var(--warn); }
/* === VIISAN SHOP 2026-10-05b END === */

/* Описание товара на всю ширину */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description { max-width: none; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description p { max-width: none; }
.vs-requisites-status { display: block; margin-top: 6px; font-size: var(--fs-s); color: var(--muted); }
.vs-requisites-status:empty { display: none; }

/* Заказ принят */
.woocommerce-thankyou-order-received { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; font-weight: 700; color: var(--graphite); margin: 0 0 28px; }
.woocommerce-order-overview__payment-method { display: none; }
.woocommerce-checkout #payment ul.payment_methods { display: none; }

/* Уведомление о персональных данных */
.vs-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(37, 42, 44, 0.08); }
.vs-cookie[hidden] { display: none; }
.vs-cookie__in { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.vs-cookie__text { margin: 0; font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.vs-cookie__text a { color: var(--blue); }
.vs-cookie__btn { flex: none; }
@media (max-width: 720px) { .vs-cookie__in { flex-direction: column; align-items: stretch; gap: 12px; } }

/* Safari (iOS): блок картинки в карточке товара не шире карточки */
.woocommerce ul.products li.product.vs-card { min-width: 0; }
.woocommerce ul.products li.product .vs-card__img { width: 100%; max-width: 100%; min-width: 0; min-height: 0; align-self: stretch; box-sizing: border-box; }

/* Подвал: на мобильных .vs-wrap { padding: 0 16px } обнулял верхний и нижний отступ колонок */
@media (max-width: 720px) {
    .vs-footer .vs-footer__cols { padding-top: 24px; padding-bottom: 20px; }
}

/* Мобильное меню: список разделов раскрывается кнопкой «Каталог» (скрипт в functions.php) */
@media (max-width: 720px) {
    .vs-menu-js .vs-navbar.is-open .vs-nav { display: block; padding-top: 4px; padding-bottom: 8px; }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list { display: flex; flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0; }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list li { display: block; }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list a { display: block; padding: 12px 4px; white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list--right a { border-bottom: 0; }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list a::after { display: none; }
    .vs-menu-js .vs-navbar.is-open .vs-nav__list .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--scan); text-decoration-thickness: 3px; text-underline-offset: 8px; }
}

/* hero-scale-80: баннер главной уменьшен до 80% с сохранением пропорций */
@media (min-width: 901px) {
    .vs-hero.has-media .vs-hero__media { width: 80%; margin-inline: auto; }
    .vs-hero.has-media .vs-hero__inner { left: 10%; right: 10%; padding-left: clamp(19px, 3.2vw, 77px); }
    .vs-hero.has-media .vs-hero__text { width: 23.2vw; max-width: 23.2vw; }
    .vs-hero.has-media h1 { font-size: clamp(21px, 2.08vw, 37px); }
}

/* no-underline-site: подчёркивание ссылок убрано на всём сайте */
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }

/* inter-local: Inter (variable) загружается с сайта, файлы в assets/fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* cards-hide-desc-stock: в карточках каталога не показываем описание и наличие */
.vs-card .vs-card__desc, .vs-card .vs-stock { display: none !important; }
