/* ==========================================================================
   Форсита — магазин: карточки, каталог, фильтры, товар, корзина, кабинет
   ========================================================================== */

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: var(--s-4); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .02em; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }
.crumbs__sep { opacity: .6; }

/* Сетка товаров */
.products-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .products-grid { gap: var(--s-6) var(--s-3); } }
.products-grid--catalog.is-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) { .products-grid--catalog.is-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .products-grid--catalog.is-big { grid-template-columns: 1fr; } }
/* Каталог — на всю ширину экрана, колонок столько, сколько помещается
   (≈5 на ноутбуке, 7–8 на широком мониторе, 2 на телефоне). */
.catalog.container { max-width: none; }
.products-grid--catalog { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-6) 8px; }
.products-grid--catalog.is-big { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
@media (max-width: 759px) {
	.products-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) 6px; }
	.products-grid--catalog.is-big { grid-template-columns: 1fr; }
}
.products-grid--rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; gap: var(--s-4); }
@media (min-width: 760px) { .products-grid--rail { grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3); gap: var(--s-5); } }
@media (min-width: 1200px) { .products-grid--rail { grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); } }

/* Карточка товара */
.product-card { position: relative; height: 100%; display: flex; flex-direction: column; }
.product-card__media { position: relative; overflow: hidden; background: var(--linen); aspect-ratio: 2 / 3; border-radius: 10px; isolation: isolate; } /* как у фото: без обрезки */
.product-card__link { display: block; height: 100%; }
/* До трёх фото стопкой: видно активное, остальные — при движении мыши по карточке или свайпе. */
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--img-focus, 50% 0%); opacity: 0; transition: opacity .35s var(--ease); }
.product-card__img.is-active { opacity: 1; }
.product-card.is-out .product-card__img.is-active { filter: grayscale(.4); opacity: .75; }
/* Индикатор фото — короткие полоски по центру внизу кадра */
.product-card__dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; transition: opacity .25s; }
.product-card__dots span { width: 22px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 3px rgba(0, 0, 0, .25); transition: background .25s; }
.product-card__dots span.is-active { background: #fff; }
@media (hover: hover) {
	.product-card__dots { opacity: 0; }
	.product-card:hover .product-card__dots { opacity: 1; }
}
.product-card__media { touch-action: pan-y; }
.product-card__body { padding-top: var(--s-4); display: grid; gap: 4px; }
.product-card__brand { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.product-card__title { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: .02em; }
.product-card__title a { text-decoration: none; }
.product-card__price { font-size: 14px; font-weight: 500; letter-spacing: .02em; }

.price ins, .price__now { text-decoration: none; color: var(--wine); }
.price del, .price__old { color: var(--ink-3); font-weight: 400; margin-left: 6px; font-size: .9em; }
.price__from { font-weight: 400; color: var(--ink-2); }

.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(247, 243, 238, .82); color: var(--ink); backdrop-filter: blur(6px); transition: transform .2s, color .2s, background .2s; }
.fav-btn:hover { background: var(--paper); transform: scale(1.06); }
.fav-btn.is-active { color: var(--wine); }
.fav-btn.is-active .icon { fill: currentColor; }
.fav-btn--label { position: static; width: auto; height: var(--control-h); padding: 0 22px; gap: 10px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); background: transparent; font-size: var(--fs-sm); font-weight: 600; backdrop-filter: none; }
.fav-btn--label:hover { transform: none; border-color: var(--ink); }

.quick-add { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; padding: 10px; background: rgba(247, 243, 238, .94); backdrop-filter: blur(8px); transform: translateY(calc(100% + 12px)); transition: transform .35s var(--ease); }
.product-card:hover .quick-add, .quick-add:focus-within { transform: none; }
.quick-add__label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; text-align: center; }
.quick-add__sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.size-chip { min-width: 40px; height: 34px; padding: 0 8px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: all .2s; }
.size-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quick-add__btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; height: 40px; border: 0; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.quick-add__btn:hover { background: var(--wine); }
.js-quick-add.is-loading { opacity: .5; pointer-events: none; }
@media (hover: none) { .quick-add { display: none; } }

/* Каталог */
.catalog { padding-bottom: var(--section); }
.catalog-head { padding-block: var(--s-3) var(--s-5); }
.catalog-head__desc { max-width: 720px; color: var(--ink-2); margin-top: var(--s-3); }
.catalog-head__desc p:last-child { margin: 0; }
.subcats { display: flex; gap: 8px; margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcats::-webkit-scrollbar { display: none; }

.catalog-toolbar { position: sticky; top: var(--sticky-top); z-index: 20; display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-3); background: var(--paper); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.catalog-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.catalog-count { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 40px; border-radius: var(--pill); border-color: var(--line); font-size: var(--fs-sm); padding-left: 16px; background-color: transparent; width: auto; }
.grid-toggle { display: flex; }
.grid-toggle .icon-btn { width: 36px; height: 36px; color: var(--ink-3); }
.grid-toggle .icon-btn.is-active { color: var(--ink); }
.filters-open { min-height: 40px; padding: 0 18px; }
.filters-open__n, .filter__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; letter-spacing: 0; }

/* Фильтры: общий вид */
.filters__groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter { position: relative; }
.filter__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 18px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: var(--fs-sm); cursor: pointer; list-style: none; user-select: none; white-space: nowrap; transition: border-color .2s; }
.filter__toggle::-webkit-details-marker { display: none; }
.filter__toggle:hover, .filter[open] .filter__toggle, .filter.is-active .filter__toggle { border-color: var(--ink); }
.filter[open] .filter__toggle .icon { transform: rotate(180deg); }
.filter__panel { display: grid; gap: 2px; }
.filter__panel--chips { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--radius); cursor: pointer; font-size: var(--fs-sm); }
.opt:hover { background: var(--linen); }
.opt input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ink); flex: none; }
.opt__label { flex: 1; }
.opt__count { font-size: var(--fs-xs); color: var(--ink-3); }
.opt__swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); flex: none; }
.opt__swatch--multi { background: conic-gradient(#d84b4b, #e8cb57, #5e7d57, #2c4a7e, #7b5aa6, #d84b4b); }
.opt--chips { position: relative; justify-content: center; padding: 0; border: 1px solid var(--line-2); font-weight: 600; }
.opt--chips input { position: absolute; opacity: 0; pointer-events: none; }
.opt--chips .opt__label { flex: none; }
.opt--chips:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt--chips:has(input:focus-visible) { outline: 2px solid var(--wine); outline-offset: 2px; }
.opt--switch { min-height: 40px; border: 1px solid transparent; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-3); }
.price-range label { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--ink-2); }
.price-range .input { min-height: 42px; }
.filters__head, .filters__foot { display: none; }

/* Фильтры: компьютер — выпадающие панели в строке */
@media (min-width: 1024px) {
	.filters-open { display: none; }
	.filter__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 260px; max-height: 360px; overflow: auto; padding: var(--s-3); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); }
	.filter__panel--chips { min-width: 300px; }
	html:not(.js) .filters__foot { display: flex; gap: 8px; margin-left: 8px; }
	html:not(.js) .filters__foot .btn { min-height: 40px; }
	.filters-backdrop { display: none !important; }
}

/* Фильтры: телефон и планшет — выезжающая панель */
@media (max-width: 1023px) {
	.catalog-toolbar { flex-wrap: wrap; }
	.grid-toggle { display: none; }
	.catalog-toolbar__right { gap: var(--s-2); }
	.woocommerce-ordering select { max-width: 46vw; }
	.filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 120; width: min(420px, 92vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(-105%); visibility: hidden; overflow: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
	.filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
	.filters__foot .btn { min-width: 0; padding-inline: 12px; }
	.filters__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
	.filters__title { margin: 0; font-family: var(--serif); font-size: 26px; }
	.filters__groups { flex: 1; overflow-y: auto; display: block; padding: 0 var(--s-5); }
	.filter { border-bottom: 1px solid var(--line); }
	.filter__toggle { width: 100%; justify-content: space-between; border: 0; border-radius: 0; padding: 0; min-height: 56px; font-size: var(--fs-base); font-weight: 600; }
	.filter__toggle .icon { margin-left: auto; }
	.filter__panel { padding-bottom: var(--s-4); }
	.opt--switch { padding: var(--s-3) 0; }
	.filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-2); padding: var(--s-4) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
	.filters-backdrop { position: fixed; inset: 0; z-index: 110; background: var(--overlay); }
	.catalog-toolbar:has(.filters.is-open), .catalog-toolbar.is-raised { z-index: 130; }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s-5); }
.active-filters .chip { background: var(--linen); border-color: var(--linen); }
.active-filters .chip:hover { border-color: var(--ink); }

/* Пагинация */
.woocommerce-pagination { margin-top: var(--s-8); }
.woocommerce-pagination ul.page-numbers, .nav-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.page-numbers a, .page-numbers span, .nav-links a, .nav-links span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 50%; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.page-numbers .current, .nav-links .current { background: var(--ink); color: var(--paper); }
.page-numbers a:hover, .nav-links a:hover { background: var(--linen); color: var(--ink); }

/* Уведомления WooCommerce */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--ok); background: var(--surface); font-size: var(--fs-sm);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.woocommerce-info { border-left-color: var(--ink-2); }
.woocommerce-error { border-left-color: var(--error); display: block; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---- Кнопки WooCommerce (классические формы) ---- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .single_add_to_cart_button, .woocommerce-Button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--control-h); padding: 0 28px; border: 1px solid var(--ink); border-radius: var(--pill);
	background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.woocommerce .button:hover, .single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
html.js .variations_form:has(.variation_id[value="0"]) .single_add_to_cart_button { opacity: .45; cursor: not-allowed; }

/* ---- Страница товара: фото на половину экрана + закреплённая колонка информации ---- */
.single-product-wrap { padding-bottom: var(--section); }
.single-product-wrap > .product { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
	/* Блок товара — ровно в высоту экрана: страница не растёт от количества фото,
	   фото и колонка информации прокручиваются внутри своих половин. */
	.single-product-wrap > .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: calc(100vh - var(--sticky-top)); min-height: 560px; }
}

/* Галерея */
.pgallery { position: relative; background: var(--linen); }
.pgallery__track { display: grid; gap: 4px; }
.pgallery__item { margin: 0; aspect-ratio: 2 / 3; background: var(--linen); }
.pgallery__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
/* Все кадры одной пропорции 2:3 (как у фото со съёмок) — без пустых полос.
   Вертикальное фото заполняет кадр целиком; горизонтальное подрезается по бокам
   (что оставить — «Главное на фото» в медиатеке, по умолчанию центр). Целиком — в крупном просмотре. */
.pgallery__item .pgallery__img, .pgallery__item img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--img-focus, 50% 0%); }
.pgallery__thumbs { display: none; }
.pgallery__counter { display: none; }
@media (min-width: 960px) {
	/* фото друг под другом целиком, без обрезки — листаются внутри своей половины экрана */
	.pgallery { height: 100%; min-height: 0; }
	.pgallery__track { height: 100%; overflow-y: auto; gap: 0; scrollbar-width: none; scroll-behavior: smooth; }
	.pgallery__track::-webkit-scrollbar { display: none; }
	.pgallery__thumbs { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 32px); overflow-y: auto; scrollbar-width: none; }
	.pgallery__thumb { display: block; width: 44px; padding: 0; border: 1px solid transparent; background: var(--paper); opacity: .6; transition: opacity .2s, border-color .2s; }
	.pgallery__thumb img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 0%; }
	.pgallery__thumb:hover { opacity: 1; }
	.pgallery__thumb.is-active { opacity: 1; border-color: var(--ink); }
}
@media (max-width: 959px) {
	/* на телефоне — горизонтальная лента со свайпом и счётчиком */
	.pgallery__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
	.pgallery__track::-webkit-scrollbar { display: none; }
	.pgallery__item { flex: 0 0 100%; scroll-snap-align: start; }
	.pgallery__counter { display: block; position: absolute; right: var(--gutter); bottom: 14px; margin: 0; padding: 4px 10px; background: rgba(247, 243, 238, .9); font-size: 11px; letter-spacing: .14em; }
}

/* Колонка информации */
.summary { padding: var(--s-6) var(--gutter) var(--s-7); }
@media (min-width: 960px) {
	.summary { height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: auto; padding: var(--s-6) clamp(32px, 5vw, 96px) var(--s-8); }
	.summary::-webkit-scrollbar { display: none; } /* одна полоса прокрутки — у страницы */
	.summary > * { max-width: 520px; }
}
.summary .crumbs { padding: 0 0 var(--s-6); }
.summary__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.summary__top .badges { position: static; flex-direction: row; }
.summary__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.summary .product_title { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 400; line-height: 1.08; margin: 0 0 var(--s-3); }
.summary__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-5); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.summary__meta a { color: var(--ink-2); text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.summary > .price { font-size: 20px; font-weight: 500; letter-spacing: .02em; margin: 0 0 var(--s-5); }
.summary__intro { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; margin: 0 0 var(--s-5); }
.summary__intro .link-inline { color: var(--ink); }
.summary__color { display: flex; align-items: center; gap: 10px; padding: var(--s-4) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.summary__label, .summary table.variations th label { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-right: var(--s-3); }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 2px var(--paper); }
.color-dot--multi { background: conic-gradient(#d84b4b, #e8cb57, #5e7d57, #2c4a7e, #7b5aa6, #d84b4b); }
.summary__sizeguide { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: var(--s-4); margin-bottom: calc(-1 * var(--s-6)); position: relative; z-index: 1; pointer-events: none; }
.summary__sizeguide .link-inline { pointer-events: auto; font-size: 12px; }
.summary form.cart { margin: 0 0 var(--s-5); }
.summary table.variations { width: 100%; border-collapse: collapse; margin-bottom: var(--s-2); }
.summary table.variations tr { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.summary table.variations th, .summary table.variations td { display: block; padding: 0; text-align: left; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { min-width: 52px; height: 48px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 500; letter-spacing: .06em; transition: all .2s; }
.swatch:hover { border-color: var(--ink); }
.swatch.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swatch.is-disabled { color: var(--ink-3); background: transparent; text-decoration: line-through; cursor: not-allowed; }
.swatches__select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html:not(.js) .swatches { display: none; }
html:not(.js) .swatches__select { position: static; width: auto; height: auto; clip: auto; }
.reset_variations { margin-top: var(--s-2); font-size: 12px; }
.woocommerce-variation-price .price { font-size: 20px; font-weight: 500; display: block; margin-bottom: var(--s-3); }
.woocommerce-variation-availability .stock, .summary .stock { font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--error); }
.woocommerce-variation-add-to-cart, .summary form.cart:not(.variations_form) { display: flex; gap: 8px; align-items: stretch; }
.single_add_to_cart_button { flex: 1 1 auto; min-height: 56px !important; }
/* WooCommerce sets an inline display value when shoppers select a variation. */
html.js .summary form.cart:has([data-product-cart-controls]) .quantity { display: none !important; }
/* Пока корзина обновляется, кнопки не тускнеют — без мерцания */
.has-product-cart[aria-busy="true"] .single_add_to_cart_button { cursor: progress; }
.product-cart-controls { display: flex; flex: 1 1 0; min-width: 0; gap: 8px; }
.product-cart-controls__link {
	display: grid; flex: 1 1 0; place-items: center; min-height: 56px; padding: 0 10px;
	background: var(--wine); color: #fff; border: 1px solid var(--wine); text-align: center; text-decoration: none;
	font-size: var(--fs-sm); font-weight: 600; transition: background var(--dur), border-color var(--dur);
}
.product-cart-controls__link:hover { background: var(--wine-2); border-color: var(--wine-2); color: #fff; }
.product-cart-controls__quantity {
	display: grid; grid-template-columns: 42px minmax(24px, auto) 42px;
	align-items: stretch; border: 1px solid var(--line-2); text-align: center; font-variant-numeric: tabular-nums;
}
.product-cart-controls__quantity span { align-self: center; }
.product-cart-controls__quantity button {
	padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 20px;
	transition: background var(--dur), color var(--dur);
}
.product-cart-controls__quantity button:hover { background: var(--line); }
.product-cart-controls__quantity button[aria-disabled="true"] { opacity: .45; background: transparent; cursor: default; }
.has-product-cart[aria-busy="true"] .product-cart-controls__quantity button[aria-disabled="true"] { opacity: 1; }
.summary .fav-btn { position: static; flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; backdrop-filter: none; }
.summary .fav-btn:hover { border-color: var(--ink); transform: none; }

.accordion { border-top: 1px solid var(--line); margin-top: var(--s-4); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item > summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; list-style: none; }
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__icon { transition: transform var(--dur); }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { padding-bottom: var(--s-5); font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion__body a { color: var(--ink); }
.stock-line { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.stock-line.is-in .icon { color: var(--ok); }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-links .btn { color: var(--ink); }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--fs-sm); }
.woocommerce-product-attributes th { width: 40%; font-weight: 400; color: var(--ink-3); }
.woocommerce-product-attributes td p { margin: 0; }
.product-section { margin-top: var(--section); }

/* Лайтбокс: фото на весь экран, листание стрелками, свайпом и клавишами */
.lightbox { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lightbox__img { max-width: 100vw; max-height: 100vh; width: auto; height: 100vh; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; z-index: 2; background: rgba(247, 243, 238, .9); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -22px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -22px; }
.lightbox__count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 12px; letter-spacing: .16em; }
@media (max-width: 700px) { .lightbox__img { height: auto; width: 100vw; } .lightbox__prev, .lightbox__next { display: none; } }

/* Мобильная кнопка покупки — закреплена снизу */
@media (max-width: 959px) {
	.single-product .site-main { padding-bottom: 84px; }
	.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: rgba(247, 243, 238, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
	.sticky-buy.is-visible { transform: none; }
	.sticky-buy__price { font-weight: 500; white-space: nowrap; letter-spacing: .04em; }
	.sticky-buy .btn { flex: 1; justify-content: space-between; min-height: 54px; }
}
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* ---- Корзина и оформление (блоки WooCommerce) ---- */
.page-wrap--shop .page-header { margin-bottom: var(--s-5); }
.wc-block-cart, .wc-block-checkout { font-family: var(--sans); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin-bottom: var(--section); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; font-weight: 500 !important; text-transform: none !important; font-size: var(--fs-lg) !important; letter-spacing: 0 !important; }
.wc-block-components-sidebar, .wc-block-cart__sidebar { background: var(--surface); padding: var(--s-5) !important; }
.wc-block-components-product-name { font-weight: 600; text-decoration: none; color: var(--ink) !important; }
.wc-block-cart-items__row .wc-block-cart-item__image img { aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 0%; }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--radius) !important; border-color: var(--line-2) !important; background: var(--surface) !important; }
.wc-block-components-text-input.is-active input, .wc-block-components-text-input input:focus { border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { width: 100%; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--ink) !important; border-color: var(--ink) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: var(--fs-lg); }
.wc-block-cart .wc-block-cart__submit-button { width: 100%; }
.wc-block-components-quantity-selector { border-radius: var(--pill) !important; }
.wc-block-components-quantity-selector::after { border-radius: var(--pill) !important; border-color: var(--line-2) !important; }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-family: var(--serif); }
.wc-block-components-product-badge { border-radius: var(--pill) !important; }
.wc-block-components-local-pickup-rates-control .wc-block-components-radio-control__option { padding-block: var(--s-4) !important; }
.wc-block-order-confirmation-status, .woocommerce-order { max-width: 860px; }
.wp-block-woocommerce-cart-items-block .wc-block-components-product-image img {
	width: 100%; height: auto !important; aspect-ratio: 2 / 3 !important; object-fit: contain !important;
}
.woocommerce-order-received .woocommerce-customer-details {
	margin-block: var(--s-6); padding: clamp(20px, 4vw, 36px);
	border: 1px solid var(--line); border-top: 2px solid var(--wine); background: var(--paper);
}
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 0 16px; font-size: clamp(26px, 4vw, 36px);
}
.woocommerce-order-received .woocommerce-customer-details address {
	margin: 0; font-style: normal; line-height: 1.6; overflow-wrap: anywhere;
}
.woocommerce-order-received .woocommerce-customer-details address p {
	margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ink-2);
}

/* ---- Личный кабинет ---- */
.woocommerce-account.logged-in .entry-content > .woocommerce { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .woocommerce-account.logged-in .entry-content > .woocommerce { grid-template-columns: 240px 1fr; gap: var(--s-8); } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .woocommerce-MyAccount-navigation ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); } }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
@media (min-width: 900px) { .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); } }
@media (max-width: 899px) { .woocommerce-MyAccount-navigation a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--pill); } }
.woocommerce-MyAccount-navigation .is-active a { color: var(--wine); }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-orders-table, .shop_table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.woocommerce-orders-table th, .woocommerce-orders-table td, .shop_table th, .shop_table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-orders-table .button { min-height: 36px; padding: 0 16px; font-size: 11px; }
@media (max-width: 700px) {
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.woocommerce-orders-table td { border: 0; padding: 4px 0; }
	.woocommerce-orders-table td::before { content: attr(data-title) ": "; color: var(--ink-3); }
}
.woocommerce-form-row, .form-row { display: grid; gap: 6px; margin: 0 0 var(--s-4); }
.woocommerce-form-row label, .form-row label { font-weight: 500; }
.woocommerce form.login, .woocommerce form.register, .woocommerce-ResetPassword { max-width: 440px; }
.u-columns.col2-set { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .u-columns.col2-set { grid-template-columns: 1fr 1fr; } }
.woocommerce-form-login__rememberme { display: flex; gap: 8px; align-items: center; }
.woocommerce-form-login__rememberme input { width: 18px; min-height: 0; }
.woocommerce-LostPassword { font-size: var(--fs-sm); }
.woocommerce-Addresses { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address address { font-style: normal; color: var(--ink-2); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: var(--s-6); }
.order-again .button { margin-top: var(--s-4); }
mark { background: none; color: inherit; font-weight: 600; }

/* Избранное */
.favorites { padding-bottom: var(--section); }
.favorites__empty { text-align: center; padding: var(--s-8) 0; color: var(--ink-2); max-width: 520px; margin: 0 auto; }
.favorites__hint { font-size: var(--fs-sm); margin-top: var(--s-5); }

/* Подборка-образ */
.look-hero { display: grid; gap: var(--s-6); padding-bottom: var(--s-5); }
@media (min-width: 900px) { .look-hero { grid-template-columns: 6fr 5fr; gap: var(--s-8); align-items: center; } }
.look-hero__img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: var(--img-focus, 50% 0%); }
.look-hero__meta { color: var(--ink-2); font-size: var(--fs-sm); margin: var(--s-5) 0; }
.look-hero__content .page-title { margin-bottom: var(--s-5); }
.u-columns .u-column1, .u-columns .u-column2 { min-width: 0; }
.u-columns h2 { font-size: var(--fs-xl); }
.woocommerce form .woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--ink-2); }
.woocommerce-password-strength, .woocommerce-password-hint { font-size: var(--fs-xs); }
.password-input { position: relative; display: block; }
.show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 28px; height: 28px; opacity: .6; }
.show-password-input::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27%3E%3Cpath d=%27M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27%3E%3Cpath d=%27M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%273%27/%3E%3C/svg%3E") center/contain no-repeat; }
.wc-block-cart-item__prices, .wc-block-components-product-metadata, .wc-block-components-product-price, .wc-block-cart .wc-block-components-product-price__value { font-size: 13px !important; }
.wc-block-components-product-price .woocommerce-Price-currencySymbol { font-size: inherit !important; }

/* Корзина и оформление заказа */
.bag-panel { position:fixed; inset:0 0 0 auto; margin:0; padding:0; width:min(440px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border:0; color:var(--ink); background:var(--paper); }
.bag-panel[open] { display:flex; flex-direction:column; }
.bag-panel::backdrop { background:rgb(28 24 21 / .36); }
body:has(.bag-panel[open]) { overflow:hidden; }
.bag-panel header,.bag-panel footer { flex:none; padding:18px 22px; }
.bag-panel header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.bag-panel h2 { margin:0; font:500 30px/1 var(--serif); }
.bag-panel h2 span { font:500 14px var(--sans); vertical-align:middle; color:var(--ink-2); }
.bag-panel .icon-btn { font-size:26px; }
.bag-items { overflow:auto; padding:0 20px; min-height:0; }
.bag-item { display:grid; grid-template-columns:68px minmax(0,1fr) auto; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.bag-photo img { width:68px; height:96px; border-radius:6px; object-fit:cover; }
.bag-detail,.bag-amount { display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.bag-name { color:inherit; font-weight:600; text-decoration:none; line-height:1.35; }
.bag-detail small,.bag-status { color:var(--ink-2); }
.bag-quantity { margin-top:auto; display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; }
.bag-quantity button,.bag-amount button { padding:0; border:0; background:none; width:32px; height:32px; font-size:18px; }
.bag-quantity button:disabled { opacity:.35; }
.bag-quantity output { min-width:18px; text-align:center; }
.bag-amount { align-items:flex-end; justify-content:space-between; white-space:nowrap; font-size:14px; }
.bag-status { margin:10px 22px; }
.bag-panel footer { margin-top:auto; border-top:1px solid var(--line); padding-bottom:max(18px,env(safe-area-inset-bottom)); }
.bag-checkout,.order-next { display:flex; justify-content:space-between; align-items:center; background:var(--ok); color:white; border:0; border-radius:8px; padding:14px 20px; font-weight:600; text-decoration:none; }
.bag-view { display:block; text-align:center; color:var(--ink-2); margin-top:10px; font-size:13px; }
@media(prefers-reduced-motion:no-preference){.bag-panel[open]{animation:bag-enter .22s ease-out;}@keyframes bag-enter{from{transform:translateX(100%)}to{transform:none}}}
.checkout-back { display:inline-block; margin:10px 0; color:var(--ink-2); text-decoration:none; }
.woocommerce-checkout .page-header:has(.order-progress) { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.order-progress { display:flex; flex-wrap:wrap; gap:4px; }
.order-progress button { background:none; color:var(--ink-2); padding:8px 10px; border:1px solid var(--line); border-radius:22px; font-size:12px; }
.order-progress [aria-current=step] { color:white; background:var(--ink); border-color:var(--ink); }
.order-progress button span { margin-right:3px; }
.order-step-hidden { display:none !important; }
.wc-block-checkout .wc-block-checkout__main,.wc-block-checkout .wc-block-checkout__sidebar { background:white; padding:clamp(16px,2.5vw,36px) !important; border:1px solid var(--line); border-radius:14px; box-sizing:border-box; }
@media(min-width:900px){.wc-block-checkout.wc-block-components-sidebar-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.54fr); align-items:start; gap:24px; }.wc-block-checkout.wc-block-components-sidebar-layout > :is(.wc-block-checkout__main,.wc-block-checkout__sidebar){width:auto;margin:0;}.wc-block-checkout__sidebar{position:sticky;top:calc(var(--sticky-top,80px) + 12px);}}
.order-step-controls { display:flex; align-items:center; gap:16px; margin-top:18px; border-top:1px solid var(--line); padding-top:18px; }
.order-next { margin-left:auto; }
.order-prev { color:var(--ink); border:0; background:transparent; text-decoration:underline; padding:10px 0; }
@media(max-width:699px){.order-progress button{padding:6px;font-size:11px;}.wc-block-checkout__sidebar{margin-top:14px;}}

/* Последний блок страницы не должен прилипать к подвалу. */
.site-main > article > .product-section:last-child,
.site-main > .product-section:last-child { padding-bottom: var(--section); }

/* ===== Оформление заказа: единый стиль сайта ===== */
.bag-checkout, .order-next {
	min-height: var(--control-h); padding: 0 28px; border-radius: var(--pill); background: var(--wine); color: #fff;
	font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: background var(--dur), color var(--dur);
}
.bag-checkout:hover, .order-next:hover { background: var(--wine-2); color: #fff; }
.order-prev { font-size: var(--fs-sm); color: var(--ink-2); }

/* Шаги — одна строка, без «таблеток» */
.woocommerce-checkout .page-header:has(.order-progress) { align-items: flex-end; gap: var(--s-5); }
.order-progress { flex-wrap: nowrap; gap: var(--s-5); }
.order-progress button { padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--ink-3); font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.order-progress [aria-current=step] { background: none; color: var(--ink); border-bottom-color: var(--wine); }
.order-progress button span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; letter-spacing: 0; }
.order-progress [aria-current=step] span { background: var(--wine); border-color: var(--wine); color: #fff; }
@media (max-width: 699px) { .order-progress { gap: var(--s-3); } .order-progress button { font-size: 10px; letter-spacing: .06em; } .order-progress button span { display: none; } }

/* Карточки формы и заказа */
.wc-block-checkout .wc-block-checkout__main, .wc-block-checkout .wc-block-checkout__sidebar { border-radius: 0; background: var(--surface); }
.wc-block-checkout .wc-block-checkout__sidebar { background: var(--linen); border-color: var(--line); }
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-title { font-family: var(--serif) !important; font-size: clamp(24px, 2.2vw, 30px) !important; font-weight: 500 !important; }
.wc-block-checkout .wc-block-components-checkout-step__description, .wc-block-checkout .wc-block-components-checkbox__label { font-size: var(--fs-sm); color: var(--ink-2); }
.wc-block-checkout .wc-block-components-text-input label, .wc-block-checkout .wc-blocks-components-select__label { font-size: var(--fs-sm); }
.wc-block-checkout input, .wc-block-checkout select { font-size: var(--fs-base) !important; }
.wc-block-checkout .wc-block-components-text-input, .wc-block-checkout .wc-blocks-components-select { margin-top: var(--s-4); }

/* Состав заказа: одинаковые фото 2:3, ровные строки */
.wc-block-components-order-summary-item { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; padding-block: var(--s-4) !important; border-bottom: 1px solid var(--line); }
.wc-block-components-order-summary-item:last-child { border-bottom: 0; }
.wc-block-components-order-summary-item__image { position: relative; width: 64px !important; padding: 0 !important; margin: 0 !important; }
.wc-block-components-order-summary-item__image img { display: block; width: 64px !important; height: 96px !important; max-width: none !important; object-fit: cover; object-position: 50% 0; background: var(--linen); }
.wc-block-components-order-summary-item__quantity { top: -8px; left: -8px; right: auto !important; background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; box-shadow: none !important; min-width: 20px; height: 20px; font-size: 11px; }
.wc-block-components-order-summary-item__description { padding: 0 !important; width: auto !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: var(--fs-sm); font-weight: 600; margin: 0 0 4px; }
.wc-block-components-order-summary-item__individual-prices { display: none !important; }
.wc-block-components-order-summary-item .wc-block-components-product-details { margin: 0; font-size: 12px; color: var(--ink-2); }
.wc-block-components-order-summary-item__total-price { padding: 0 !important; font-size: var(--fs-sm); font-weight: 600; text-align: right; white-space: nowrap; }
.wc-block-components-order-summary-item .wc-block-components-sale-badge { border-radius: 0 !important; background: transparent !important; border: 0 !important; padding: 0 !important; color: var(--wine) !important; font-size: 11px !important; font-weight: 500; }
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }
.wc-block-components-totals-wrapper { border-color: var(--line) !important; }
.wc-block-components-totals-item { font-size: var(--fs-sm); }
.wc-block-components-totals-footer-item { font-size: var(--fs-md); }

/* Скруглённые фото товаров в заказе и в панели корзины */
.wc-block-components-order-summary-item__image img, .bag-photo img { border-radius: 10px; }

/* Стрелки просмотра фото — всегда в бордовом кружке */
.lightbox__prev, .lightbox__next { width: 52px; height: 52px; margin-top: -26px; border: 2px solid var(--wine); border-radius: 50%; }

/* Компьютер: каждый кадр целиком помещается в экран, листаются только фото */
@media (min-width: 960px) {
	.single-product-wrap > .product { height: calc(100svh - var(--sticky-top) - 34px); } /* 34px — верхняя полоса */
	.pgallery__track { display: block; scroll-snap-type: y mandatory; }
	.pgallery__item { height: 100%; aspect-ratio: auto; scroll-snap-align: start; scroll-snap-stop: always; }
	.pgallery__item .pgallery__img, .pgallery__item img { object-fit: contain; object-position: 50% 50%; }
	/* Какое фото открыто — видно по миниатюре */
	.pgallery__thumbs { gap: 10px; padding: 4px; }
	.pgallery__thumb { width: 56px; flex: none; opacity: .5; border: 0; outline: 1px solid var(--line-2); }
	.pgallery__thumb.is-active { opacity: 1; outline: 3px solid var(--wine); outline-offset: 1px; }
	.pgallery__counter { display: block; position: absolute; right: 16px; bottom: 16px; z-index: 3; margin: 0; padding: 6px 14px; background: var(--wine); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; }
}

/* Оформление заказа: выбор страны не нужен */
.wc-block-components-address-form__country { display: none !important; }

/* Оформление заказа: способ оплаты — карточка в стиле сайта вместо чёрных рамок */
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control { border: 0; box-shadow: none; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control::after,
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::after,
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option::after { display: none !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
	background: var(--paper); border: 1px solid var(--line-2) !important; box-shadow: none !important; margin-bottom: var(--s-3);
}
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input:checked) { border-color: var(--wine) !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option { padding: var(--s-5) var(--s-5) var(--s-5) 60px !important; border: 0 !important; box-shadow: none !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input { left: var(--s-5); border: 1px solid var(--line-2) !important; background: var(--surface) !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input:checked { border: 2px solid var(--wine) !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input:checked::before { background: var(--wine) !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
	margin: 0 var(--s-5) 0 60px; padding: var(--s-4) 0 var(--s-5) !important; border: 0 !important; border-top: 1px solid var(--line) !important; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2);
}

/* Галерея товара: соседние кадры мягко гаснут, открытый плавно «проявляется» */
@media (min-width: 960px) {
	.pgallery.is-animated .pgallery__track { scroll-behavior: auto; }
	.pgallery.is-animated .pgallery__item img { transition: opacity .65s var(--ease), transform .65s var(--ease); }
	.pgallery.is-animated .pgallery__item:not(.is-current) img { opacity: .2; transform: scale(.94); }
	.pgallery__thumb { transition: opacity .35s var(--ease), outline-color .35s var(--ease), transform .35s var(--ease); }
	.pgallery__thumb.is-active { transform: scale(1.06); }
}

/* Переход «В корзину» ⇄ «В корзине»: меняются только ширина и цвет — без вспышек и пропадающего текста */
@media (prefers-reduced-motion: no-preference) {
	[data-product-cart-controls].is-added .product-cart-controls__link { animation: cart-to-wine .35s var(--ease) both; }
	[data-product-cart-controls].is-added .product-cart-controls__quantity { animation: cart-qty-in .35s var(--ease) both; overflow: hidden; }
	[data-product-cart-controls].is-leaving { pointer-events: none; }
	[data-product-cart-controls].is-leaving .product-cart-controls__link { animation: cart-to-ink .35s var(--ease) forwards; }
	[data-product-cart-controls].is-leaving .product-cart-controls__quantity { animation: cart-qty-out .35s var(--ease) forwards; overflow: hidden; }
}
@keyframes cart-to-wine { from { background: var(--ink); border-color: var(--ink); } }
@keyframes cart-to-ink { to { background: var(--ink); border-color: var(--ink); } }
@keyframes cart-qty-in { from { max-width: 0; margin-left: -8px; border-width: 0; opacity: 0; } to { max-width: 140px; } }
@keyframes cart-qty-out { from { max-width: 140px; } to { max-width: 0; margin-left: -8px; border-width: 0; opacity: 0; } }

/* Товар на компьютере: колонка с описанием не прокручивается отдельно (иначе текст обрезался посередине).
   Страница листается целиком, а фото всё это время остаётся на экране. */
@media (min-width: 960px) {
	.single-product-wrap > .product { height: auto; min-height: 0; align-items: start; }
	.single-product-wrap > .product > .pgallery { position: sticky; top: var(--sticky-top); height: calc(100svh - var(--sticky-top) - 34px); min-height: 520px; }
	.single-product-wrap > .product > .summary { height: auto; overflow: visible; }
}

/* ===== Оформление заказа: мягкие карточки и поля ===== */
.woocommerce-checkout .wc-block-checkout .wc-block-checkout__main,
.woocommerce-checkout .wc-block-checkout .wc-block-checkout__sidebar { border-radius: 16px; box-shadow: 0 24px 60px -44px rgba(34, 30, 27, .35); }
.woocommerce-checkout .wc-block-checkout .wc-block-checkout__main { padding: clamp(18px, 3.2vw, 48px) !important; }
.wc-block-checkout__sidebar .wc-block-checkout-order-summary, .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { background: var(--surface); border-color: var(--line) !important; border-radius: 12px; }

/* Заголовок блока с короткой бордовой чертой */
.wc-block-checkout .wc-block-components-checkout-step__title { position: relative; padding-bottom: 12px; }
.wc-block-checkout .wc-block-components-checkout-step__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: var(--wine); }
.wc-block-checkout .wc-block-components-checkout-step__heading { align-items: center; margin-bottom: var(--s-2) !important; }
.wc-block-checkout .wc-block-components-checkout-step__heading-content a { color: var(--wine); font-weight: 600; text-underline-offset: 4px; }
.wc-block-checkout .wc-block-checkout__guest-checkout-notice { margin-top: var(--s-2); font-size: 12px; color: var(--ink-3); }

/* Поля ввода */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-checkout .wc-blocks-components-select__select {
	min-height: 60px; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important; color: var(--ink);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wc-block-checkout .wc-block-components-text-input input { padding-left: 16px !important; padding-right: 16px !important; }
.wc-block-checkout .wc-block-components-text-input label { left: 6px; color: var(--ink-3); }
.wc-block-checkout .wc-block-components-text-input input:hover, .wc-block-checkout .wc-block-components-textarea:hover { border-color: var(--line-2) !important; }
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea:focus { background: var(--surface) !important; border-color: var(--wine) !important; box-shadow: 0 0 0 4px rgba(123, 45, 59, .12) !important; outline: 0; }
.wc-block-checkout .wc-block-components-text-input.is-active label { color: var(--wine); }
.wc-block-checkout .wc-block-components-text-input.has-error input { border-color: var(--error) !important; }

/* Галочки */
.wc-block-checkout .wc-block-components-checkbox__input[type=checkbox] { border: 1px solid var(--line-2) !important; border-radius: 6px; }
.wc-block-checkout .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--wine) !important; border-color: var(--wine) !important; }

/* Кнопки шагов и оформления */
.wc-block-checkout .order-step-controls { margin-top: var(--s-6); padding-top: var(--s-5); }
.wc-block-checkout .order-next, .wc-block-checkout .wc-block-components-checkout-place-order-button {
	min-height: 58px; min-width: 240px; justify-content: center; gap: 12px; border-radius: 12px !important; box-shadow: 0 14px 28px -16px rgba(123, 45, 59, .8);
}
.wc-block-checkout .order-next::after { content: "→"; font-size: 16px; letter-spacing: 0; transition: transform .25s var(--ease); }
.wc-block-checkout .order-next:hover::after { transform: translateX(5px); }
.wc-block-checkout .wc-block-components-checkout-place-order-button { background: var(--wine) !important; border-color: var(--wine) !important; color: #fff !important; }
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--wine-2) !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option { border-radius: 12px; }
@media (max-width: 599px) { .wc-block-checkout .order-next { min-width: 0; flex: 1; } }

/* Детали заказа: количество крупной бордовой меткой «5 шт.» на фото */
.wc-block-checkout .wc-block-components-order-summary-item__quantity {
	top: -9px !important; left: -9px !important; right: auto !important; transform: none !important; z-index: 2;
	display: flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 0; height: 28px; padding: 0 10px !important;
	background: var(--wine) !important; color: #fff !important; border: 2px solid #fff !important; border-radius: 999px !important;
	box-shadow: 0 4px 10px -3px rgba(34, 30, 27, .45) !important; font: 700 14px/1 var(--sans) !important; white-space: nowrap;
}
.wc-block-checkout .wc-block-components-order-summary-item__quantity span[aria-hidden="true"]::after { content: " шт."; font-weight: 600; font-size: 12px; }
.wc-block-checkout .wc-block-components-order-summary-item { overflow: visible; }

/* Количество — под размером, фото ничем не закрыто */
.wc-block-checkout .wc-block-components-order-summary-item { grid-template-rows: auto 1fr; row-gap: 8px !important; }
.wc-block-checkout .wc-block-components-order-summary-item__image { display: contents !important; }
.wc-block-checkout .wc-block-components-order-summary-item__image > img { grid-column: 1; grid-row: 1 / span 2; }
.wc-block-checkout .wc-block-components-order-summary-item__description { grid-column: 2; grid-row: 1; }
.wc-block-checkout .wc-block-components-order-summary-item__total-price { grid-column: 3; grid-row: 1; }
.wc-block-checkout .wc-block-components-order-summary-item__quantity { position: static !important; grid-column: 2; grid-row: 2; justify-self: start; align-self: start; border: 0 !important; box-shadow: none !important; }

/* Приглашение зарегистрироваться на оформлении заказа */
.checkout-auth { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--wine); border-radius: 12px; }
.checkout-auth p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.checkout-auth p b { color: var(--ink); margin-right: 6px; }
.checkout-auth__actions { display: flex; gap: var(--s-2); }
.checkout-auth .btn { border-radius: 10px; }
.checkout-auth .btn--primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.checkout-auth .btn--primary:hover { background: var(--wine-2); }

/* Вход и регистрация: две карточки */
.u-columns .u-column1, .u-columns .u-column2 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 40px); box-shadow: 0 24px 60px -44px rgba(34, 30, 27, .35); }
.u-columns .u-column2 { border-top: 3px solid var(--wine); }
.u-columns h2 { margin-top: 0; }
.u-columns form.login, .u-columns form.register { border: 0; padding: 0; margin: 0; }
.u-columns .input-text { width: 100%; min-height: 52px; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important; }
.u-columns .input-text:focus { border-color: var(--wine) !important; background: var(--surface) !important; box-shadow: 0 0 0 4px rgba(123, 45, 59, .12); outline: 0; }
.u-columns button.woocommerce-button, .u-columns button[type="submit"].button { width: 100%; min-height: 54px; border-radius: 12px; background: var(--wine); border-color: var(--wine); color: #fff; }
.u-columns .woocommerce-form-login__rememberme { display: flex; gap: 8px; align-items: center; margin-bottom: var(--s-3); }
.register-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.register-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wine); }
#register { display: block; scroll-margin-top: calc(var(--sticky-top) + 90px); }
.u-columns form.woocommerce-form, .u-columns form .form-row { max-width: none; width: 100%; }

/* Поле пароля: место справа под «глаз», чтобы значок менеджера паролей браузера не наезжал на него */
.u-columns .password-input { position: relative; display: block; }
.u-columns .password-input input.input-text { padding-right: 64px !important; }
.u-columns .password-input .show-password-input { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; margin: 0; }
.u-columns .password-input .show-password-input::after { margin: 0; }

/* ===== Личный кабинет: как весь сайт — прямые углы, тонкие линии, крупный serif, без плашек и теней ===== */
.woocommerce-account .page-header { text-align: center; }
.woocommerce-account.logged-in .entry-content { max-width: 980px; margin-inline: auto; }
.woocommerce-account.logged-in .entry-content > .woocommerce { display: block; }

/* Разделы — строка, как меню в шапке */
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: safe center; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--s-7); padding: 0; border: 0; border-block: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li { flex: none; margin: 0; border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 18px 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--ink); border-bottom-color: var(--wine); }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ink-3); }

/* Главная */
.woocommerce-MyAccount-content .account-hello { margin: 0 0 var(--s-6); font-family: var(--serif); font-size: clamp(34px, 4.6vw, 62px); font-weight: 400; line-height: 1.08; text-align: center; }
.account-hello em { color: var(--wine); }
.woocommerce-MyAccount-content ul.account-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.account-list li { margin: 0; border-bottom: 1px solid var(--line-2); }
.account-list a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; text-decoration: none; color: var(--ink); }
.account-list__title { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; transition: color var(--dur), transform var(--dur) var(--ease); }
.account-list__text { font-size: var(--fs-sm); color: var(--ink-3); }
.account-list .icon { transition: transform var(--dur) var(--ease); }
.account-list a:hover .account-list__title { color: var(--wine); transform: translateX(8px); }
.account-list a:hover .icon { color: var(--wine); transform: translateX(6px); }
@media (max-width: 599px) { .account-list a { grid-template-columns: 1fr auto; } .account-list__text { display: none; } }

/* Формы, адреса и заказы */
.woocommerce-MyAccount-content .input-text, .woocommerce-MyAccount-content select, .woocommerce-MyAccount-content .select2-selection,
.u-columns .input-text { width: 100%; min-height: 52px; border: 1px solid var(--line-2) !important; border-radius: var(--radius) !important; background: transparent !important; box-shadow: none; }
.woocommerce-MyAccount-content .input-text:focus, .woocommerce-MyAccount-content select:focus, .u-columns .input-text:focus { border-color: var(--ink) !important; background: var(--surface) !important; box-shadow: none; outline: 0; }
.woocommerce-MyAccount-content fieldset { border: 0; border-top: 1px solid var(--line); padding: var(--s-5) 0 0; margin: var(--s-6) 0 0; }
.woocommerce-MyAccount-content legend { font-family: var(--serif); font-size: 26px; padding: 0 var(--s-3) 0 0; }
.woocommerce-MyAccount-content button.button, .woocommerce-MyAccount-content a.button,
.u-columns button.woocommerce-button, .u-columns button[type="submit"].button { border-radius: var(--radius); background: var(--wine); border-color: var(--wine); color: #fff; box-shadow: none; }
.woocommerce-MyAccount-content button.button:hover, .woocommerce-MyAccount-content a.button:hover,
.u-columns button.woocommerce-button:hover, .u-columns button[type="submit"].button:hover { background: var(--wine-2); border-color: var(--wine-2); color: #fff; }
.woocommerce-MyAccount-content .u-columns .woocommerce-Address { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: none; padding: var(--s-5) 0 0; }
.woocommerce-MyAccount-content .woocommerce-Address h2, .woocommerce-MyAccount-content .woocommerce-Address h3 { font-size: 26px; line-height: 1.2; margin: 0 0 var(--s-2); }
.woocommerce-MyAccount-content .woocommerce-Address-title a { color: var(--wine); font-size: var(--fs-sm); }

/* Вход и регистрация: две колонки, разделённые линией */
.u-columns .u-column1, .u-columns .u-column2 { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.u-columns { max-width: 1100px; margin-inline: auto; }
@media (min-width: 900px) { .u-columns.col2-set { gap: 0; } .u-columns .u-column1 { padding-right: var(--s-8); } .u-columns .u-column2 { padding-left: var(--s-8); border-left: 1px solid var(--line-2); } }
/* Поля входа и регистрации — одной линией, как строка поиска на сайте */
.u-columns h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 400; margin-bottom: var(--s-6); }
.u-columns label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.u-columns .input-text { border: 0 !important; border-bottom: 1px solid var(--line-2) !important; padding-left: 0 !important; font-size: var(--fs-md); text-transform: none; letter-spacing: normal; }
.u-columns .input-text:focus { border-bottom-color: var(--wine) !important; background: transparent !important; }
.u-columns .register-consent label, .u-columns .woocommerce-form-login__rememberme { font-size: var(--fs-sm); letter-spacing: normal; text-transform: none; }
.u-columns .lost_password a { color: var(--wine); font-size: var(--fs-sm); }
/* Автозаполнение браузера не красит поля в голубой */
.u-columns input:-webkit-autofill, .woocommerce-MyAccount-content input:-webkit-autofill, .wc-block-checkout input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 100px var(--paper) inset !important; -webkit-text-fill-color: var(--ink) !important;
}

/* Анкета: «Отображаемое имя» не нужно — берётся обычное имя */
.woocommerce-EditAccountForm p:has(> #account_display_name) { display: none !important; }

/* Поле пароля: «глаз» отодвинут, правый край оставлен значку менеджера паролей браузера */
.u-columns .password-input, .woocommerce-MyAccount-content .password-input { position: relative; display: block; }
.u-columns .password-input input.input-text, .woocommerce-MyAccount-content .password-input input { width: 100%; padding-right: 128px !important; }
.u-columns .password-input .show-password-input, .woocommerce-MyAccount-content .password-input .show-password-input { position: absolute; right: 76px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; margin: 0; }
.confirm-hint { padding: var(--s-3) 0; border-block: 1px solid var(--line); color: var(--wine); font-size: var(--fs-sm); }

/* ===== Меню кабинета слева: покупатель, разделы со значками, «Выйти» ===== */
.woocommerce-account.logged-in .entry-content { max-width: 1280px; }
.woocommerce-account.logged-in .entry-content > .woocommerce { display: grid; gap: var(--s-6); align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation { background: var(--surface); border: 1px solid var(--line); }
.account-user { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); border-bottom: 1px solid var(--line); }
.account-user__avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 26px; line-height: 1; }
.account-user__info { display: grid; min-width: 0; }
.account-user__name { font-family: var(--serif); font-size: 24px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-user__contact { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; overflow: visible; margin: 0; padding: var(--s-3) var(--s-3) 0; border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 0; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.woocommerce-account .woocommerce-MyAccount-navigation li a .icon { flex: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--linen); color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--wine); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: var(--s-3) calc(-1 * var(--s-3)) 0; padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--wine); font-weight: 600; }
@media (min-width: 900px) {
	.woocommerce-account.logged-in .entry-content > .woocommerce { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-7); }
	.woocommerce-account .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--sticky-top) + 16px); }
}
.woocommerce-MyAccount-content .account-hello { text-align: left; font-size: clamp(30px, 3.4vw, 46px); }

/* Паспорт размеров */
.size-passport__lead { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0; }
.size-passport__lead a { color: var(--wine); }
.woocommerce-MyAccount-content .size-passport fieldset:first-of-type { margin-top: var(--s-5); }
.size-passport__grid { display: grid; gap: 0 var(--s-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); clear: both; padding-top: var(--s-3); }
.size-passport label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.size-passport .input-text, .size-passport select { width: 100%; }

/* Глаз у правого края. Пароль скрыт (точки) — глаз перечёркнут; пароль виден — глаз открыт. */
.u-columns .password-input input.input-text, .woocommerce-MyAccount-content .password-input input { padding-right: 60px !important; }
.u-columns .password-input .show-password-input, .woocommerce-MyAccount-content .password-input .show-password-input { right: 6px; opacity: .65; }
.u-columns .password-input .show-password-input:hover, .woocommerce-MyAccount-content .password-input .show-password-input:hover { opacity: 1; color: var(--wine); }
.password-input .show-password-input::after { content: none !important; }
.password-input .show-password-input::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E") center/contain no-repeat;
}
.password-input .show-password-input.display-password::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Вход и регистрация по очереди: одна колонка по центру */
.auth-login .u-columns, .auth-register .u-columns { display: block; max-width: 480px; margin-inline: auto; }
.auth-login .u-columns .u-column2, .auth-register .u-columns .u-column1 { display: none; }
.auth-login .u-columns .u-column1, .auth-register .u-columns .u-column2 { float: none; width: 100%; padding: 0; border: 0; }
.auth-login .u-columns h2, .auth-register .u-columns h2 { text-align: center; }
.auth-switch { margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); text-align: center; font-size: var(--fs-sm); color: var(--ink-2); }
.auth-switch a { color: var(--wine); font-weight: 600; text-underline-offset: 4px; margin-left: 4px; }
