/*
Theme Name: Vitaline Catalog
Description: Закрытая (только для админа) витрина товаров WooCommerce с остатками по филиалам, синхронизируемая из Billz. Без корзины и оформления заказа — только просмотр каталога, товара, брендов и категорий.
Author: VITALINE
Version: 1.9.0
Requires PHP: 7.4
Requires at least: 6.0
WC requires at least: 6.0
Text Domain: vitaline-catalog
*/

:root {
	--vt-ink: #111111;
	--vt-ink-2: #333333;
	--vt-muted: #555555;
	--vt-muted-2: #767672;
	--vt-orange: #f28c28;
	--vt-orange-600: #dd7a17;
	--vt-orange-700: #b9620f;
	--vt-orange-50: #fdf3e8;
	--vt-orange-100: #fae3ca;
	--vt-navy: #2a357d;
	--vt-navy-600: #0c2440;
	--vt-navy-50: #eef2f8;
	--vt-navy-100: #d8e1ee;
	--vt-paper: #f7f7f5;
	--vt-paper-2: #f3f4f2;
	--vt-line: #e3e3de;
	--vt-line-2: #d3d3cd;
	--vt-success: #2f6d4f;
	--vt-sale: #c0341a;
	--vt-radius-xs: 2px;
	--vt-radius-sm: 3px;
	--vt-shadow-card: 0 1px 2px rgba(17, 17, 17, .04);
	--vt-shadow-raise: 0 6px 22px -12px rgba(17, 17, 17, .28);
	--vt-shadow-pop: 0 14px 40px -18px rgba(17, 17, 17, .3);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--vt-ink);
	font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	font-feature-settings: 'cv05' 1, 'ss03' 1;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.017em;
	color: var(--vt-ink);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

img {
	max-width: 100%;
	display: block;
}

strong, b {
	font-weight: 700;
}

::selection {
	background: var(--vt-orange-100);
	color: var(--vt-ink);
}

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

.tnum {
	font-variant-numeric: tabular-nums;
}

.vt-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.vt-shell {
	max-width: 1400px;
	margin: 0 auto;
	padding-inline: 16px;
}

@media (min-width: 576px) {
	.vt-shell {
		padding-inline: 24px;
	}
}

@media (min-width: 992px) {
	.vt-shell {
		padding-inline: 32px;
	}
}

@media (min-width: 1440px) {
	.vt-shell {
		padding-inline: 40px;
	}
}

/* ------------------------------------------------------------------ */
/* Home page                                                           */
/* ------------------------------------------------------------------ */

.vt-home {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 60px);
	text-align: center;
}

@media (min-width: 992px) {
	.vt-home {
		min-height: calc(100vh - 74px);
	}
}

.vt-home__title {
	font-size: clamp(28px, 4.4vw, 46px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.024em;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.vt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	border-bottom: 1px solid var(--vt-line);
}

.vt-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 60px;
}

@media (min-width: 992px) {
	.vt-header__row {
		min-height: 74px;
		gap: 32px;
	}
}

.vt-header__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--vt-ink);
}

.vt-header__logo::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--vt-orange);
	display: inline-block;
}

.vt-header__nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	margin-inline-start: auto;
}

.vt-header__nav a {
	height: 46px;
	display: inline-flex;
	align-items: center;
	padding-inline: 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--vt-ink-2);
}

.vt-header__nav a:hover {
	color: var(--vt-orange-700);
}

.vt-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 240px;
	max-width: 380px;
}

.vt-search__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: var(--vt-muted-2);
	pointer-events: none;
}

.vt-search__input {
	width: 100%;
	height: 40px;
	padding: 0 78px 0 38px;
	background: var(--vt-paper);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius-xs);
	font-family: inherit;
	font-size: 13.5px;
	color: var(--vt-ink);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .16s ease, background-color .16s ease;
}

.vt-search__input::-webkit-search-cancel-button,
.vt-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.vt-search__input::placeholder {
	color: var(--vt-muted-2);
}

.vt-search__input:focus {
	outline: none;
	border-color: var(--vt-line-2);
	background: #ffffff;
}

.vt-search__button {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	height: 32px;
	padding-inline: 14px;
	background: var(--vt-navy);
	color: #ffffff;
	border: none;
	border-radius: var(--vt-radius-xs);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .16s ease, transform .12s ease;
}

.vt-search__button:hover {
	background: var(--vt-navy-600);
}

.vt-search__button:active {
	transform: translateY(-50%) scale(0.96);
}

/* ------------------------------------------------------------------ */
/* Catalog toolbar + pagination                                       */
/* ------------------------------------------------------------------ */

.vt-page-title {
	font-size: clamp(28px, 4.4vw, 46px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.024em;
	padding-block: 32px 4px;
}

.vt-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-block: 16px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--vt-line);
	font-size: 13.5px;
	color: var(--vt-muted);
}

.vt-catalog-toolbar strong {
	color: var(--vt-ink);
	font-weight: 600;
}

.vt-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
	padding-block: 24px 48px;
	flex-wrap: wrap;
}

.vt-pagination a,
.vt-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding-inline: 8px;
	border: 1px solid var(--vt-line);
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
	color: var(--vt-ink);
}

.vt-pagination a:hover {
	border-color: var(--vt-ink);
}

.vt-pagination .current {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
	color: #ffffff;
}

.vt-empty {
	border: 1px solid var(--vt-line);
	padding: 56px 24px;
	text-align: center;
	margin: 24px 0 48px;
}

.vt-empty__title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 6px;
}

.vt-empty__desc {
	font-size: 13.5px;
	color: var(--vt-muted);
}

/* ------------------------------------------------------------------ */
/* Product grid + card                                                */
/* ------------------------------------------------------------------ */

.vt-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-left: 1px solid var(--vt-line);
	border-top: 1px solid var(--vt-line);
}

@media (min-width: 768px) {
	.vt-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1280px) {
	.vt-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.vt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-right: 1px solid var(--vt-line);
	border-bottom: 1px solid var(--vt-line);
	transition: box-shadow .16s ease;
}

.vt-card:hover {
	box-shadow: var(--vt-shadow-raise);
	z-index: 1;
}

.vt-card__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--vt-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 16px;
}

.vt-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.vt-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	height: 21px;
	display: inline-flex;
	align-items: center;
	padding-inline: 7px;
	border-radius: var(--vt-radius-xs);
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #ffffff;
}

.vt-badge--ok {
	background: var(--vt-success);
}

.vt-badge--bad {
	background: var(--vt-muted-2);
}

.vt-card__body {
	padding: 10px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	border-top: 1px solid var(--vt-line);
}

@media (min-width: 576px) {
	.vt-card__body {
		padding-inline: 14px;
	}
}

.vt-card__eyebrow {
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--vt-muted-2);
}

.vt-card__title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.32;
	color: var(--vt-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 576px) {
	.vt-card__title {
		font-size: 14.5px;
	}
}

.vt-card:hover .vt-card__title {
	color: var(--vt-orange-700);
}

.vt-card__sku {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--vt-muted-2);
	font-variant-numeric: tabular-nums;
}

.vt-card__price {
	margin-top: auto;
	padding-top: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--vt-ink);
	font-variant-numeric: tabular-nums;
}

.vt-card__price del {
	color: var(--vt-muted-2);
	font-weight: 400;
	font-size: .8em;
	margin-right: 6px;
	text-decoration: line-through;
}

.vt-card__price ins {
	text-decoration: none;
	color: var(--vt-sale);
}

/* ------------------------------------------------------------------ */
/* Single product                                                     */
/* ------------------------------------------------------------------ */

.vt-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-block: 20px 0;
	font-size: 12.5px;
	color: var(--vt-muted);
}

.vt-breadcrumbs a:hover {
	color: var(--vt-ink);
}

.vt-breadcrumbs__sep {
	color: var(--vt-line-2);
}

.vt-product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding-block: 24px 0;
}

@media (min-width: 1024px) {
	.vt-product {
		grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
		gap: 48px;
	}
}

.vt-gallery__main {
	background: #ffffff;
	border: 1px solid var(--vt-line);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
	padding: 28px;
}

.vt-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.vt-gallery__thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.vt-gallery__thumbs img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: var(--vt-paper);
	border: 1px solid var(--vt-line);
	padding: 6px;
	cursor: pointer;
	transition: border-color .16s ease;
}

.vt-gallery__thumbs img:hover {
	border-color: var(--vt-line-2);
}

.vt-gallery__thumbs img.is-active {
	border-color: var(--vt-orange);
}

.vt-product__category {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--vt-navy);
}

.vt-product__category:hover {
	color: var(--vt-orange-700);
}

.vt-product__title {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.024em;
	margin: 8px 0 0;
}

@media (min-width: 1024px) {
	.vt-product__title {
		font-size: 32px;
	}
}

.vt-product__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--vt-muted);
}

.vt-product__meta-row .vt-divider {
	width: 1px;
	height: 12px;
	background: var(--vt-line-2);
}

.vt-product__sku {
	font-size: 13px;
	color: var(--vt-muted);
	font-variant-numeric: tabular-nums;
}

.vt-product__taxonomies {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 16px;
}

.vt-product__taxonomy-group .vt-eyebrow {
	margin-bottom: 6px;
}

.vt-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vt-label-tag {
	display: inline-flex;
	align-items: center;
	height: 21px;
	padding-inline: 7px;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	background: #ffffff;
	color: var(--vt-ink);
	border: 1px solid var(--vt-line-2);
	border-radius: var(--vt-radius-xs);
}

.vt-product__price-block {
	border-top: 1px solid var(--vt-line);
	border-bottom: 1px solid var(--vt-line);
	padding-block: 16px;
	margin: 20px 0;
}

.vt-product__price {
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	color: var(--vt-ink);
	font-variant-numeric: tabular-nums;
}

.vt-product__price del {
	color: var(--vt-muted-2);
	font-size: 15px;
	font-weight: 400;
	margin-right: 8px;
	text-decoration: line-through;
}

.vt-product__price ins {
	text-decoration: none;
	color: var(--vt-sale);
}

.vt-stock-table {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 8px;
}

.vt-stock-table th {
	text-align: left;
	padding: 8px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--vt-muted-2);
	border-bottom: 1px solid var(--vt-line-2);
}

.vt-stock-table td {
	text-align: left;
	padding: 10px;
	font-size: 13px;
	border-bottom: 1px solid var(--vt-line);
}

.vt-stock-table tr:last-child td {
	border-bottom: none;
}

.vt-stock-qty--ok {
	color: var(--vt-success);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.vt-stock-qty--bad {
	color: var(--vt-muted-2);
}

.vt-stock-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vt-stock-price--up {
	color: var(--vt-orange-700);
	font-weight: 600;
}

.vt-stock-price__arrow {
	color: var(--vt-orange);
	margin-left: 3px;
	vertical-align: middle;
}

.vt-product__description {
	margin-top: 48px;
	grid-column: 1 / -1;
	border-top: 1px solid var(--vt-line);
	padding-block: 28px 48px;
	max-width: 900px;
}

.vt-product__description h2 {
	font-size: clamp(21px, 2.4vw, 28px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}

.vt-product__description p {
	color: var(--vt-ink-2);
}
