/*
 * Магазин на витрине ALUMIRROR (направление E): каталог, карточка модели, корзина, избранное, сравнение, поиск, кабинет,
 * «Собрать зеркало», окна и уведомления. Подключается после style.css (A), до motion.css (D) и theme.css (C).
 * Цвета, шрифты и сетка — только токены темы (PLATFORM.md); запасные значения — по макету.
 * Общие классы каркаса (.btn, .input, .field, .chip, .link-arrow, .container) задаются в style.css;
 * здесь для них только запасной вид через :where() — нулевая специфичность, стили A всегда главнее.
 */

/* ------------------------------------------------------------------ Запасной вид общих классов */
:where(.shop) :where(.container) { width: 100%; max-width: calc(var(--container, 1168px) + 2 * var(--gut-max, 56px)); margin-inline: auto; padding-inline: clamp(20px, 4.4vw, var(--gut-max, 56px)); box-sizing: border-box; }
:where(.btn) { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 14px 28px; border: 1px solid var(--brand, #0b2a24); background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font: 500 12px/18px var(--font-body, Montserrat), sans-serif; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; box-sizing: border-box; }
:where(.btn):hover { background: var(--brand-2, #163d35); border-color: var(--brand-2, #163d35); }
:where(.btn--light) { background: transparent; color: var(--text, #51382b); border-color: var(--line, #d9cfc2); }
:where(.btn--light):hover { background: var(--surface, #f0ebe3); border-color: var(--text, #51382b); color: var(--text, #51382b); }
:where(.btn--block) { display: flex; width: 100%; }
:where(.btn[disabled]), :where(.btn.is-busy) { opacity: .55; pointer-events: none; }
:where(.input), :where(.textarea) { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 16px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); color: var(--text, #51382b); font: 400 13px/1.4 var(--font-body, Montserrat), sans-serif; border-radius: var(--r-sm, 0); outline: none; transition: border-color .2s, box-shadow .2s; }
:where(.textarea) { padding: 14px 16px; min-height: 104px; resize: vertical; }
:where(.input):focus, :where(.textarea):focus { border-color: var(--text, #51382b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #0b2a24) 10%, transparent); }
:where(.input)::placeholder, :where(.textarea)::placeholder { color: color-mix(in srgb, var(--muted, #7a685b) 70%, transparent); }
:where(.field) { display: block; }
:where(.field__label) { display: block; margin-bottom: 10px; font: 400 12px/18px var(--font-body, Montserrat), sans-serif; color: var(--text, #51382b); }
:where(.chip) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line, #d9cfc2); font: 500 11px/16px var(--font-body, Montserrat), sans-serif; color: var(--text, #51382b); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
:where(.chip):hover { border-color: var(--text, #51382b); }
:where(.chip.is-active) { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--bg, #ede3d9); }
:where(.link-arrow) { display: inline-flex; align-items: center; gap: 20px; padding: 12px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--text, #51382b) 30%, transparent); background: none; color: var(--text, #51382b); font: 500 12px/18px var(--font-body, Montserrat), sans-serif; text-decoration: none; cursor: pointer; }
:where(.visually-hidden) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Значки и мелочи */
.si { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.si-heart, .si-cart, .si-compare, .si-share, .si-filter, .si-search, .si-trash, .si-zoom, .si-truck, .si-shield, .si-ruler, .si-user, .si-spark { width: 18px; height: 18px; }
.btn__arrow { display: inline-flex; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.shop-link .si-arrow, .link-arrow .si-arrow { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.shop-link:hover .si-arrow, .link-arrow:hover .si-arrow { transform: translate(2px, -2px); }
.shop-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.shop-muted { color: var(--muted, #7a685b); font-size: 12px; line-height: 22px; }
.shop-textbtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--muted, #7a685b); font: 400 11px/16px var(--font-body, Montserrat), sans-serif; cursor: pointer; transition: color .2s; }
.shop-textbtn:hover { color: var(--text, #51382b); }
.shop-spinner { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--line, #d9cfc2); border-top-color: var(--text, #51382b); border-radius: 50%; animation: shop-spin .8s linear infinite; }
@keyframes shop-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Заголовок страниц магазина */
.shop { color: var(--text, #51382b); font-family: var(--font-body, Montserrat), sans-serif; padding-bottom: clamp(56px, 8vw, var(--section-gap, 96px)); }
/* Крошки — общий вид .crumbs из style.css (разделитель там же); здесь только отступ и запасной вид */
.shop-crumbs { padding-top: 40px; }
:where(.shop-crumbs) { font: 400 10px/15px var(--font-body, Montserrat), sans-serif; color: var(--muted, #7a685b); }
:where(.shop-crumbs) ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
:where(.shop-crumbs) a { color: inherit; text-decoration: none; }
.shop-head { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line, #d9cfc2); }
.shop-head__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 398px); gap: 32px; align-items: start; margin-top: 32px; }
.shop-eyebrow { margin: 0; font: 400 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted, #7a685b); }
.shop-h1 { margin: 16px 0 0; font: var(--fw-heading, 300) clamp(32px, 4.2vw, 48px)/1.08 var(--font-heading, Montserrat), sans-serif; letter-spacing: .02em; color: var(--text, #51382b); }
.shop-h2 { margin: 12px 0 0; font: var(--fw-heading, 300) clamp(24px, 2.6vw, 32px)/1.25 var(--font-heading, Montserrat), sans-serif; letter-spacing: .015em; }
.shop-h3 { margin: 0; font: 500 clamp(17px, 1.6vw, 20px)/1.35 var(--font-heading, Montserrat), sans-serif; letter-spacing: .01em; }
.shop-lead { margin: 0; font: 400 12px/28px var(--font-body, Montserrat), sans-serif; color: var(--muted, #7a685b); }
.shop-desc { max-width: 760px; margin: -12px 0 40px; font-size: 13px; line-height: 26px; color: var(--muted, #7a685b); }

/* «Собрать зеркало» в заголовке каталога */
.shop-builder-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.shop-builder-cta__hint { max-width: 360px; margin: 0; font-size: 11px; line-height: 18px; color: var(--muted, #7a685b); }

/* ------------------------------------------------------------------ Разделы-плитки */
.shop-cats { margin-bottom: 48px; }
.shop-cats__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; color: inherit; text-decoration: none; }
.shop-cats__head .si { margin-left: auto; transition: transform .3s; }
.shop-cats__head:hover .si { transform: translate(2px, -2px); }
.shop-cats__count { font-size: 11px; color: var(--muted, #7a685b); }
.shop-cats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap, 24px); }
.shop-cats__grid.is-folded .shop-tile:nth-child(n + 11) { display: none; }
.shop-cats__more { margin-top: 16px; }
.shop-tile { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.shop-tile__media { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 12px; overflow: hidden; background: var(--surface, #f0ebe3); }
.shop-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.shop-tile:hover .shop-tile__media img { transform: scale(1.05); }
.shop-tile__eyebrow { font: 500 9px/14px var(--font-body, Montserrat), sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #7a685b); }
.shop-tile__title { font: 500 13px/19px var(--font-body, Montserrat), sans-serif; }
.shop-tile__count { font-size: 11px; line-height: 16px; color: var(--muted, #7a685b); }
.shop-subnav { display: flex; gap: 8px; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.shop-subnav::-webkit-scrollbar { display: none; }
.shop-subnav .chip { white-space: nowrap; }

/* ------------------------------------------------------------------ Список: фильтры и результаты */
.shop-listing { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 48px; align-items: start; }
.shop-filters { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.shop-filters__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #d9cfc2); }
.shop-filters__title { font: 500 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.shop-filters__reset { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted, #7a685b); font: 400 11px/16px var(--font-body, Montserrat), sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shop-filters__close, .shop-filters__foot { display: none; }
.shop-filters__form { margin: 0; }
.shop-fgroup { border-bottom: 1px solid var(--line, #d9cfc2); }
.shop-fgroup--search { padding: 16px 0; }
.shop-fgroup__label { display: flex; align-items: center; gap: 8px; padding: 16px 0; font: 500 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--text, #51382b); cursor: pointer; list-style: none; }
.shop-fgroup--search .shop-fgroup__label { padding: 0 0 12px; cursor: default; }
.shop-fgroup__label::-webkit-details-marker { display: none; }
.shop-fgroup__label .si-down { margin-left: auto; transition: transform .3s; }
.shop-fgroup[open] > .shop-fgroup__label .si-down { transform: rotate(180deg); }
.shop-fgroup__sel { min-width: 18px; padding: 0 6px; background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font-size: 9px; line-height: 18px; text-align: center; letter-spacing: 0; }
.shop-fgroup__sel:empty { display: none; }
.shop-fgroup__opts { display: grid; gap: 2px; padding-bottom: 16px; }
.shop-fgroup__opts--cols { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.shop-fopt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 12px; line-height: 16px; cursor: pointer; }
.shop-fopt input { position: absolute; opacity: 0; pointer-events: none; }
.shop-fopt__box { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border: 1px solid color-mix(in srgb, var(--text, #51382b) 45%, transparent); background: var(--surface-3, #faf8f2); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.shop-fopt__box .si { width: 12px; height: 12px; stroke-width: 1.6; }
.shop-fopt input:checked + .shop-fopt__box { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); }
.shop-fopt input:focus-visible + .shop-fopt__box { outline: 2px solid var(--brand, #0b2a24); outline-offset: 2px; }
.shop-fopt__sw { width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.shop-fopt__t { flex: 1; min-width: 0; }
.shop-fopt__n { font-size: 10px; color: var(--muted-2, #a6968a); }
.shop-fopt.is-zero { opacity: .38; }
.shop-search { position: relative; }
.shop-search .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted, #7a685b); pointer-events: none; }
.shop-search .input { padding-left: 42px; }
.shop-range { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; }
.shop-range .input { min-height: 40px; padding: 0 12px; font-size: 12px; }
.shop-range__dash { color: var(--muted, #7a685b); }

.shop-bar { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line, #d9cfc2); }
.shop-bar--plain { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.shop-bar__count { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted, #7a685b); }
.shop-bar__filters { display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); color: var(--text, #51382b); font: 500 11px/16px var(--font-body, Montserrat), sans-serif; cursor: pointer; }
.shop-bar__badge { min-width: 18px; padding: 0 5px; background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font-size: 9px; line-height: 18px; text-align: center; }
.shop-sort { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 11px; color: var(--muted, #7a685b); }
.shop-sort__select { appearance: none; min-height: 36px; padding: 0 26px 0 0; border: 0; background: none; color: var(--text, #51382b); font: 500 11px/16px var(--font-body, Montserrat), sans-serif; cursor: pointer; }
.shop-sort .si-down { position: absolute; right: 0; pointer-events: none; width: 14px; height: 14px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.shop-chips[hidden] { display: none; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); color: var(--text, #51382b); font: 400 11px/16px var(--font-body, Montserrat), sans-serif; cursor: pointer; transition: border-color .2s; }
.shop-chip:hover { border-color: var(--text, #51382b); }
.shop-chip .si { width: 10px; height: 10px; }
.shop-chip--reset { border-color: transparent; background: none; color: var(--muted, #7a685b); text-decoration: underline; text-underline-offset: 3px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--grid-gap, 24px); transition: opacity .3s; }
.shop-grid.is-loading { opacity: .45; }
.shop-grid--rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-more { display: grid; justify-items: center; gap: 20px; margin-top: 56px; }
.shop-more__btn { min-width: 220px; }
.shop-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.shop-pager a, .shop-pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; color: var(--muted, #7a685b); font-size: 11px; text-decoration: none; }
.shop-pager a:hover { border-color: var(--line, #d9cfc2); color: var(--text, #51382b); }
.shop-pager .is-current { border-color: var(--text, #51382b); color: var(--text, #51382b); }

/* ------------------------------------------------------------------ Карточка модели (как в макете) */
.sc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sc__media { position: relative; }
.sc__link { position: relative; display: block; aspect-ratio: 274 / 311; overflow: hidden; background: var(--surface, #f0ebe3); }
.sc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.sc__img--hover { opacity: 0; }
.sc:hover .sc__img { transform: scale(1.04); }
.sc:hover .sc__img--hover { opacity: 1; }
.sc__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.sc__badge { padding: 4px 8px; background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font: 500 9px/12px var(--font-body, Montserrat), sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sc__fav { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: color-mix(in srgb, var(--bg, #ede3d9) 80%, transparent); color: var(--text, #51382b); cursor: pointer; transition: background .25s, transform .25s; }
.sc__fav:hover { background: var(--bg, #ede3d9); }
.sc__fav:active { transform: scale(.92); }
.sc__fav .si { width: 17px; height: 17px; }
[data-fav][aria-pressed="true"] .si-heart { fill: var(--brand, #0b2a24); stroke: var(--brand, #0b2a24); }
[data-fav].is-pop .si-heart { animation: shop-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes shop-pop { 40% { transform: scale(1.35); } }
.sc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: inherit; text-decoration: none; }
.sc__title { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 500 14px/21px var(--font-body, Montserrat), sans-serif; letter-spacing: 0; }
.sc__head .si { flex: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.sc__head:hover .si { transform: translate(2px, -2px); }
.sc__sub { margin: 8px 0 0; font-size: 11px; line-height: 16.5px; color: var(--muted, #7a685b); }
.sc__sw { display: flex; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.sc__sw li { width: 10px; height: 10px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.sc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line, #d9cfc2) 70%, transparent); }
.sc__sub + .sc__foot, .sc__sw + .sc__foot, .sc__head + .sc__foot { margin-top: 16px; }
.sc__price { font-size: 12px; line-height: 18px; white-space: nowrap; }
.sc__more { font-size: 10px; line-height: 15px; color: var(--text, #51382b); text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s cubic-bezier(.2, .7, .2, 1); }
.sc__more:hover { background-size: 100% 1px; }

/* Образцы цветов (рамы, света): по подписи значения */
[data-c^="Белый"], [data-c^="белый"] { --sw: #f3f1ec; }
[data-c^="Золото"], [data-c^="золото"] { --sw: #c9a35f; }
[data-c^="Серебро"], [data-c^="серебро"] { --sw: #c4c6c8; }
[data-c^="Черный"], [data-c^="Чёрный"], [data-c^="черный"], [data-c^="чёрный"] { --sw: #1d1d1b; }
[data-c^="Тёплый"], [data-c^="Теплый"], [data-c^="тёплый"], [data-c^="теплый"] { --sw: #f6c98a; }
[data-c^="Нейтральный"], [data-c^="нейтральный"] { --sw: #fbecd0; }
[data-c^="Холодный"], [data-c^="холодный"] { --sw: #dfe9f7; }
[data-c^="Настраиваемый"], [data-c^="настраиваемый"] { --sw: conic-gradient(#f6c98a, #fbecd0, #dfe9f7, #f6c98a); }
.shop-fopt__sw { background: var(--sw, #ccc); }

/* ------------------------------------------------------------------ Пустые состояния, успех */
.shop-empty, .shop-done { display: grid; justify-items: center; gap: 12px; max-width: 520px; margin: 24px auto 0; padding: 56px 24px; text-align: center; }
.shop-empty[hidden], .shop-done[hidden] { display: none; }
.shop-empty__icon, .shop-done__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border: 1px solid var(--line, #d9cfc2); border-radius: 50%; color: var(--muted, #7a685b); }
.shop-empty__icon .si, .shop-done__icon .si { width: 24px; height: 24px; }
.shop-done__icon { border-color: var(--brand, #0b2a24); background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); }
.shop-empty__title { margin: 0; font: var(--fw-heading, 300) 26px/1.3 var(--font-heading, Montserrat), sans-serif; }
.shop-empty__text { margin: 0 0 12px; font-size: 12px; line-height: 22px; color: var(--muted, #7a685b); }
.shop-done__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 12px; }

.shop-rail { margin-top: clamp(64px, 8vw, var(--section-gap, 96px)); }
.shop-rail__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; margin-bottom: 40px; }
.shop-rail__head .shop-eyebrow { grid-column: 1 / -1; }
.shop-rail__head .shop-h2 { margin: 0; }

/* ------------------------------------------------------------------ Карточка варианта */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; margin-top: 32px; }
.pdp__gallery { position: sticky; top: 96px; min-width: 0; }
.pdp__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface, #f0ebe3); touch-action: pan-y; user-select: none; }
.pdp__track { position: absolute; inset: 0; }
.pdp__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .55s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transform: scale(1.02); }
.pdp__slide.is-active { opacity: 1; transform: none; z-index: 1; }
.pdp__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pdp__slide--empty { display: grid; place-items: center; color: var(--muted, #7a685b); font-size: 12px; }
.pdp__nav, .pdp__zoom { position: absolute; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: color-mix(in srgb, var(--bg, #ede3d9) 80%, transparent); color: var(--text, #51382b); cursor: pointer; transition: background .25s, opacity .25s; }
.pdp__nav:hover, .pdp__zoom:hover { background: var(--bg, #ede3d9); }
.pdp__nav--prev { right: 64px; bottom: 16px; }
.pdp__nav--next { right: 16px; bottom: 16px; }
.pdp__zoom { right: 16px; top: 16px; }
.pdp__counter { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 10px; background: color-mix(in srgb, var(--bg, #ede3d9) 80%, transparent); font: 500 9px/14px var(--font-body, Montserrat), sans-serif; letter-spacing: .14em; }
.pdp__disc { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 6px 10px; background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font: 500 10px/14px var(--font-body, Montserrat), sans-serif; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__thumb { flex: none; width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--surface, #f0ebe3); cursor: pointer; opacity: .7; scroll-snap-align: start; transition: opacity .25s, border-color .25s; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover { opacity: 1; }
.pdp__thumb.is-active { border-color: var(--text, #51382b); opacity: 1; }

.pdp__info { min-width: 0; }
.pdp__title { margin: 14px 0 0; font: var(--fw-heading, 300) clamp(24px, 2.4vw, 32px)/1.3 var(--font-heading, Montserrat), sans-serif; letter-spacing: .01em; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 11px; line-height: 16px; color: var(--muted, #7a685b); }
.pdp__meta b { font-weight: 500; color: var(--text, #51382b); }
.pdp__meta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 12px 2px -8px; border-radius: 50%; background: var(--line, #d9cfc2); vertical-align: middle; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 28px; }
.pdp__now { font: 300 clamp(28px, 2.6vw, 34px)/1.1 var(--font-heading, Montserrat), sans-serif; letter-spacing: .01em; }
.pdp__old { font-size: 14px; color: var(--muted, #7a685b); }
.pdp__hint { margin: 10px 0 0; font-size: 11px; line-height: 18px; color: var(--muted, #7a685b); }
.pdp__sel { display: grid; gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line, #d9cfc2); }
.psel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.psel__label { font: 500 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #7a685b); }
.psel__val { font-size: 12px; line-height: 18px; text-align: right; }
.psel__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.popt { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; min-width: 44px; justify-content: center; padding: 0 12px; border: 1px solid var(--line, #d9cfc2); background: transparent; color: var(--text, #51382b); font: 400 12px/16px var(--font-body, Montserrat), sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; box-sizing: border-box; }
a.popt:hover { border-color: var(--text, #51382b); }
.popt.is-current { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); cursor: default; }
.popt.is-x { border-style: dashed; color: var(--muted, #7a685b); }
.popt.is-more { display: none; }
.psel.is-open .popt.is-more { display: inline-flex; }
.psel.is-open .popt--toggle { display: none; }
.popt--toggle { border-color: transparent; color: var(--muted, #7a685b); text-decoration: underline; text-underline-offset: 3px; }
.popt--sw i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.popt.is-loading { pointer-events: none; opacity: .6; }
.pdp__legend { display: flex; align-items: center; gap: 10px; margin: -6px 0 0; font-size: 10px; line-height: 15px; color: var(--muted, #7a685b); }
.pdp__legend .popt { min-height: 22px; min-width: 30px; padding: 0 6px; font-size: 10px; pointer-events: none; }
.pdp__buy { display: flex; gap: 12px; margin-top: 32px; }
.pdp__add { flex: 1; }
.shop-qty { display: inline-flex; align-items: stretch; height: 48px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); }
.shop-qty button { width: 40px; padding: 0; border: 0; background: none; color: var(--text, #51382b); cursor: pointer; display: grid; place-items: center; }
.shop-qty button:hover { background: var(--surface, #f0ebe3); }
.shop-qty input { width: 40px; padding: 0; border: 0; background: none; color: var(--text, #51382b); font: 400 13px/1 var(--font-body, Montserrat), sans-serif; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.shop-qty input::-webkit-inner-spin-button, .shop-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty--sm { height: 36px; }
.shop-qty--sm button, .shop-qty--sm input { width: 32px; }
.pdp__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--line, #d9cfc2); }
.pdp__act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; border: 0; border-left: 1px solid var(--line, #d9cfc2); background: none; color: var(--text, #51382b); font: 400 10px/14px var(--font-body, Montserrat), sans-serif; text-align: center; cursor: pointer; transition: background .25s; }
.pdp__act:first-child { border-left: 0; }
.pdp__act:hover { background: var(--surface, #f0ebe3); }
.pdp__act [data-on], .pdp__act[aria-pressed="true"] [data-off] { display: none; }
.pdp__act[aria-pressed="true"] [data-on] { display: inline; }
[data-compare][aria-pressed="true"] .si-compare { stroke: var(--brand, #0b2a24); stroke-width: 2; }
.pdp__ask { margin-top: 20px; }
.pdp__facts { display: grid; gap: 14px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line, #d9cfc2); list-style: none; }
.pdp__facts li { display: flex; gap: 14px; align-items: flex-start; }
.pdp__facts .si { margin-top: 1px; color: var(--muted, #7a685b); }
.pdp__facts b { display: block; font: 500 12px/18px var(--font-body, Montserrat), sans-serif; }
.pdp__facts small { display: block; font-size: 11px; line-height: 17px; color: var(--muted, #7a685b); }

.pdp-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 64px); margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line, #d9cfc2); }
.pdp-more__text { margin-top: 24px; font-size: 13px; line-height: 26px; color: var(--muted, #7a685b); }
.pdp-more__text p { margin: 0 0 14px; }
.pdp-more__text ul { margin: 0 0 14px; padding-left: 18px; }
.pdp-more__text.is-clamped { max-height: 312px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pdp-chars { margin: 24px 0 0; }
.pdp-chars div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line, #d9cfc2); font-size: 12px; line-height: 18px; }
.pdp-chars dt { color: var(--muted, #7a685b); }
.pdp-chars dd { margin: 0; }
.pdp-delivery { display: flex; gap: 24px; margin-top: 56px; padding: 32px; background: var(--surface-2, #e6d6c3); }
.pdp-delivery__icon .si { width: 28px; height: 28px; }
.pdp-delivery p { margin: 10px 0 0; font-size: 12px; line-height: 22px; color: var(--muted, #7a685b); max-width: 760px; }
.pdp-bar { display: none; }

/* ------------------------------------------------------------------ Корзина */
.cart__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.cart__grid[hidden] { display: none; }
.cart__items-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line, #d9cfc2); font: 500 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #7a685b); }
.cart__list { margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 32px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line, #d9cfc2); transition: opacity .35s, transform .35s; }
.cart-item.is-removing { opacity: 0; transform: translateX(24px); }
.cart-item__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface, #f0ebe3); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { display: block; color: var(--text, #51382b); font: 500 13px/19px var(--font-body, Montserrat), sans-serif; text-decoration: none; }
.cart-item__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item__params { margin: 6px 0 0; font-size: 11px; line-height: 17px; color: var(--muted, #7a685b); }
.cart-item__unit { margin: 6px 0 0; font-size: 11px; color: var(--muted, #7a685b); }
.cart-item__sum { min-width: 96px; text-align: right; font-size: 13px; white-space: nowrap; }
.cart-item__sum s { display: block; font-size: 11px; color: var(--muted, #7a685b); }
.cart-item__rm { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted, #7a685b); cursor: pointer; transition: color .2s; }
.cart-item__rm:hover { color: var(--danger, #a33b2b); }
.cart-item--gone { opacity: .55; }
.cart__note { margin: 20px 0 0; font-size: 11px; line-height: 18px; color: var(--muted, #7a685b); max-width: 620px; }
.cart__side { position: sticky; top: 96px; display: grid; gap: 16px; }
.cart-sum, .cart-form { padding: 28px; border: 1px solid var(--line, #d9cfc2); background: color-mix(in srgb, var(--surface-3, #faf8f2) 70%, transparent); }
.cart-sum__rows { margin: 16px 0 0; }
.cart-sum__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 12px; line-height: 18px; }
.cart-sum__rows dt { color: var(--muted, #7a685b); }
.cart-sum__rows dd { margin: 0; }
.cart-sum__disc dd { color: var(--success, #2f6b4f); }
.cart-sum__disc[hidden] { display: none; }
.cart-sum__total { margin-top: 8px; padding-top: 16px !important; border-top: 1px solid var(--line, #d9cfc2); }
.cart-sum__total dt { color: var(--text, #51382b) !important; font-weight: 500; }
.cart-sum__total dd { font: 300 24px/1 var(--font-heading, Montserrat), sans-serif; }
.cart-promo { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line, #d9cfc2); }
.cart-promo .shop-fgroup__label { padding: 0 0 10px; cursor: default; }
.cart-promo__row { display: flex; gap: 8px; }
.cart-promo__row .input { text-transform: uppercase; }
.cart-promo__msg { min-height: 16px; margin: 8px 0 0; font-size: 11px; line-height: 16px; color: var(--muted, #7a685b); }
.cart-promo__msg.is-ok { color: var(--success, #2f6b4f); }
.cart-promo__msg.is-err { color: var(--danger, #a33b2b); }
.cart-form { display: grid; gap: 16px; }
.cart-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cart-form__note { margin: 0; font-size: 10px; line-height: 16px; color: var(--muted, #7a685b); }
.shop-check { display: flex; align-items: flex-start; gap: 12px; font-size: 10px; line-height: 18px; color: var(--muted, #7a685b); cursor: pointer; }
.shop-check input { position: absolute; opacity: 0; pointer-events: none; }
.shop-check__box { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; margin-top: 1px; border: 1px solid color-mix(in srgb, var(--text, #51382b) 45%, transparent); background: var(--surface-3, #faf8f2); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.shop-check__box .si { width: 12px; height: 12px; stroke-width: 1.6; }
.shop-check input:checked + .shop-check__box { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); }
.shop-check input:focus-visible + .shop-check__box { outline: 2px solid var(--brand, #0b2a24); outline-offset: 2px; }
.shop-check a { color: var(--text, #51382b); }
.shop-form-err { margin: 0; padding: 10px 14px; border-left: 2px solid var(--danger, #a33b2b); background: color-mix(in srgb, var(--danger, #a33b2b) 6%, transparent); font-size: 11px; line-height: 17px; color: var(--danger, #a33b2b); }
.shop-form-ok { margin: 0; padding: 10px 14px; border-left: 2px solid var(--success, #2f6b4f); background: color-mix(in srgb, var(--success, #2f6b4f) 6%, transparent); font-size: 11px; line-height: 17px; color: var(--success, #2f6b4f); }
.shop-form-err[hidden], .shop-form-ok[hidden] { display: none; }
.is-invalid { border-color: var(--danger, #a33b2b) !important; }

/* ------------------------------------------------------------------ Сравнение */
.shop-switch { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 11px; color: var(--muted, #7a685b); cursor: pointer; }
.shop-switch input { position: absolute; opacity: 0; }
.shop-switch__track { position: relative; width: 34px; height: 18px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); transition: background .25s; }
.shop-switch__track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; background: var(--muted, #7a685b); transition: transform .25s, background .25s; }
.shop-switch input:checked + .shop-switch__track { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); }
.shop-switch input:checked + .shop-switch__track::after { transform: translateX(16px); background: var(--on-brand, #faf8f2); }
.cmp[hidden] { display: none; }
.cmp__scroll { overflow-x: auto; border: 1px solid var(--line, #d9cfc2); scrollbar-width: thin; }
.cmp__table { border-collapse: collapse; min-width: 100%; font-size: 12px; line-height: 18px; }
.cmp__table th, .cmp__table td { min-width: 220px; padding: 12px 16px; border-bottom: 1px solid var(--line, #d9cfc2); border-left: 1px solid var(--line, #d9cfc2); text-align: left; vertical-align: top; }
.cmp__table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 160px; border-left: 0; background: var(--bg, #ede3d9); font: 500 10px/15px var(--font-body, Montserrat), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #7a685b); }
.cmp__table td { font-weight: 400; }
.cmp__table tr.is-diff td { background: color-mix(in srgb, var(--surface-2, #e6d6c3) 55%, transparent); }
.cmp__table.only-diff tr.is-same { display: none; }
.cmp__head { display: grid; gap: 10px; }
.cmp__img { display: block; aspect-ratio: 4 / 5; max-width: 180px; overflow: hidden; background: var(--surface, #f0ebe3); }
.cmp__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp__name { color: var(--text, #51382b); font-weight: 500; text-decoration: none; }
.cmp__price { font: 300 20px/1.2 var(--font-heading, Montserrat), sans-serif; }
.cmp__acts { display: flex; align-items: center; gap: 12px; }
.cmp__acts .btn { min-height: 36px; padding: 8px 16px; }

/* ------------------------------------------------------------------ Поиск */
.shop-bigsearch { position: relative; display: flex; gap: 12px; margin-bottom: 32px; }
.shop-bigsearch > .si { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted, #7a685b); pointer-events: none; }
.shop-bigsearch__input { flex: 1; min-width: 0; min-height: 56px; padding: 0 20px 0 50px; border: 1px solid var(--line, #d9cfc2); background: var(--surface-3, #faf8f2); color: var(--text, #51382b); font: 300 16px/1.4 var(--font-body, Montserrat), sans-serif; outline: none; }
.shop-bigsearch__input:focus { border-color: var(--text, #51382b); }
.shop-bigsearch .btn { min-height: 56px; }

/* ------------------------------------------------------------------ Кабинет */
.acc__loading { display: flex; align-items: center; gap: 12px; padding: 40px 0; font-size: 12px; color: var(--muted, #7a685b); }
.acc__loading[hidden], .acc-guest[hidden], .acc-user[hidden] { display: none; }
.acc-tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.acc-tabs__btn { min-height: 48px; padding: 0 24px; border: 1px solid var(--line, #d9cfc2); background: transparent; color: var(--text, #51382b); font: 500 11px/16px var(--font-body, Montserrat), sans-serif; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.acc-tabs__btn:hover { border-color: var(--text, #51382b); }
.acc-tabs__btn.is-active { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--bg, #ede3d9); }
.acc-guest__grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.acc-form { display: grid; gap: 16px; margin: 0; }
.acc-form[hidden] { display: none; }
.acc-form .shop-muted { margin: -8px 0 4px; }
.acc-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.acc-form__sep { margin-top: 12px; }
.acc-form--profile { max-width: 640px; }
.acc-aside { padding: 32px; background: var(--surface-2, #e6d6c3); }
.acc-aside__list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 20px; }
.acc-aside__list li { display: flex; gap: 12px; }
.acc-aside__list .si { margin-top: 2px; color: var(--brand, #0b2a24); }
.acc-aside__staff { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--text, #51382b) 15%, transparent); font-size: 11px; line-height: 18px; color: var(--muted, #7a685b); }
.acc-aside__staff a { color: var(--text, #51382b); }
.acc-user__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.acc-user__top .shop-h2 { margin: 8px 0 4px; }
.acc-orders__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.acc-order { padding: 24px; border: 1px solid var(--line, #d9cfc2); background: color-mix(in srgb, var(--surface-3, #faf8f2) 60%, transparent); }
.acc-order__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.acc-order__no { font: 500 14px/20px var(--font-body, Montserrat), sans-serif; }
.acc-order__date { font-size: 11px; color: var(--muted, #7a685b); }
.acc-order__status { padding: 4px 10px; border: 1px solid currentColor; font: 500 10px/14px var(--font-body, Montserrat), sans-serif; letter-spacing: .06em; }
.acc-order__total { margin-left: auto; font: 300 20px/1 var(--font-heading, Montserrat), sans-serif; }
.acc-order__items { display: grid; gap: 10px; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line, #d9cfc2); list-style: none; }
.acc-order__items li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 12px; line-height: 18px; }
.acc-order__items img, .acc-order__items .ph { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface, #f0ebe3); }
.acc-order__items a { color: var(--text, #51382b); text-decoration: none; }
.acc-order__items span { color: var(--muted, #7a685b); white-space: nowrap; }

/* ------------------------------------------------------------------ Окна: подбор, быстрый заказ, фото */
.shop-dlg { width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; background: var(--bg, #ede3d9); color: var(--text, #51382b); box-shadow: 0 30px 80px rgb(20 18 12 / .25); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1), overlay .45s allow-discrete, display .45s allow-discrete; }
.shop-dlg[open] { opacity: 1; transform: none; }
@starting-style { .shop-dlg[open] { opacity: 0; transform: translateY(16px) scale(.985); } }
.shop-dlg::backdrop { background: rgb(11 42 36 / 0); backdrop-filter: blur(0); transition: background .35s, backdrop-filter .35s, overlay .35s allow-discrete, display .35s allow-discrete; }
.shop-dlg[open]::backdrop { background: rgb(11 42 36 / .38); backdrop-filter: blur(4px); }
@starting-style { .shop-dlg[open]::backdrop { background: rgb(11 42 36 / 0); backdrop-filter: blur(0); } }
.shop-dlg__in { display: flex; flex-direction: column; max-height: inherit; }
.shop-dlg__head { display: flex; align-items: flex-start; gap: 16px; padding: 28px 32px 20px; border-bottom: 1px solid var(--line, #d9cfc2); }
.shop-dlg__head .shop-h2 { margin: 6px 0 0; }
.shop-dlg__close { display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -10px 0 auto; padding: 0; border: 0; background: none; color: var(--text, #51382b); cursor: pointer; transition: transform .3s; }
.shop-dlg__close:hover { transform: rotate(90deg); }
.shop-dlg__close .si { width: 18px; height: 18px; }
.shop-dlg__body { flex: 1; padding: 24px 32px; overflow: auto; overscroll-behavior: contain; }
.shop-dlg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 32px 24px; border-top: 1px solid var(--line, #d9cfc2); }

/* Собрать зеркало */
.bld__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.bld__steps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line, #d9cfc2); font-size: 10px; line-height: 14px; color: var(--muted, #7a685b); cursor: default; }
.bld__steps li.is-done { border-color: color-mix(in srgb, var(--text, #51382b) 35%, transparent); color: var(--text, #51382b); cursor: pointer; }
.bld__steps li.is-done:hover { background: var(--surface, #f0ebe3); }
.bld__steps li.is-now { background: var(--brand, #0b2a24); border-color: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); }
.bld__steps b { font-weight: 500; }
.bld__q { margin: 0 0 18px; font: var(--fw-heading, 300) 24px/1.3 var(--font-heading, Montserrat), sans-serif; }
.bld__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bld__opts--sizes { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.bld__opt { display: grid; gap: 4px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line, #d9cfc2); background: color-mix(in srgb, var(--surface-3, #faf8f2) 60%, transparent); color: var(--text, #51382b); font: 400 13px/18px var(--font-body, Montserrat), sans-serif; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.bld__opt:hover { border-color: var(--text, #51382b); transform: translateY(-2px); }
.bld__opt b { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.bld__opt small { font-size: 10px; line-height: 14px; color: var(--muted, #7a685b); }
.bld__opt i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.bld__res { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.bld__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line, #d9cfc2); color: var(--text, #51382b); text-decoration: none; transition: border-color .2s, background .2s; }
.bld__item:hover { border-color: var(--text, #51382b); background: var(--surface-3, #faf8f2); }
.bld__item img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface, #f0ebe3); }
.bld__item b { display: block; font-weight: 500; font-size: 12px; line-height: 17px; }
.bld__item span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted, #7a685b); }
.bld__sum { margin: 0 0 16px; font-size: 12px; line-height: 20px; color: var(--muted, #7a685b); }
.bld__foot-info { margin-right: auto; font-size: 11px; color: var(--muted, #7a685b); }

/* Быстрый заказ */
.qo__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line, #d9cfc2); }
.qo__item img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface, #f0ebe3); }
.qo__item b { display: block; font: 500 13px/19px var(--font-body, Montserrat), sans-serif; }
.qo__item span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #7a685b); }
.qo__form { display: grid; gap: 14px; }
.qo__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qo__done { display: grid; justify-items: center; gap: 10px; padding: 24px 0; text-align: center; }

/* Фото на весь экран */
.shop-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 22 19 / .96); color: #faf8f2; opacity: 0; transition: opacity .35s, overlay .35s allow-discrete, display .35s allow-discrete; }
.shop-lb[open] { opacity: 1; }
@starting-style { .shop-lb[open] { opacity: 0; } }
.shop-lb::backdrop { background: transparent; }
.shop-lb__stage { position: absolute; inset: 56px 72px; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.shop-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2, .7, .2, 1); cursor: zoom-in; user-select: none; }
.shop-lb.is-zoomed .shop-lb__img { cursor: zoom-out; }
.shop-lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgb(250 248 242 / .25); background: rgb(250 248 242 / .06); color: inherit; cursor: pointer; transition: background .25s; }
.shop-lb__btn:hover { background: rgb(250 248 242 / .16); }
.shop-lb__btn .si { width: 18px; height: 18px; }
.shop-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.shop-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.shop-lb__close { right: 16px; top: 16px; }
.shop-lb__count { position: absolute; left: 24px; top: 28px; font: 500 10px/14px var(--font-body, Montserrat), sans-serif; letter-spacing: .16em; }

/* Уведомления и панель сравнения */
.shop-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 1200; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.shop-toast { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--brand, #0b2a24); color: var(--on-brand, #faf8f2); font: 400 12px/18px var(--font-body, Montserrat), sans-serif; box-shadow: 0 16px 40px rgb(11 42 36 / .28); pointer-events: auto; animation: shop-toast-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.shop-toast.is-out { animation: shop-toast-out .35s ease both; }
.shop-toast a { margin-left: auto; color: inherit; font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.shop-toast .si { width: 18px; height: 18px; flex: none; }
@keyframes shop-toast-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes shop-toast-out { to { opacity: 0; transform: translateY(10px); } }
.shop-cmpbar { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; background: var(--surface-3, #faf8f2); color: var(--text, #51382b); border: 1px solid var(--line, #d9cfc2); box-shadow: 0 18px 44px rgb(20 18 12 / .14); font: 400 12px/18px var(--font-body, Montserrat), sans-serif; transform: translateY(0); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .35s; }
.shop-cmpbar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.shop-cmpbar b { font-weight: 500; }
.shop-cmpbar .btn { min-height: 40px; padding: 10px 18px; }
.shop-cmpbar button.shop-textbtn { padding: 0 4px; }
.shop-fly { position: fixed; z-index: 1300; pointer-events: none; object-fit: cover; transition: transform .75s cubic-bezier(.5, 0, .2, 1), opacity .75s ease; }

/* ------------------------------------------------------------------ Планшет */
@media (max-width: 1100px) {
  .shop-listing { grid-template-columns: minmax(0, 1fr); }
  .shop-filters { position: fixed; inset: 0 auto 0 0; z-index: 1150; width: min(380px, 88vw); max-height: none; padding: 20px 24px 0; background: var(--bg, #ede3d9); box-shadow: 0 0 60px rgb(20 18 12 / .2); transform: translateX(-105%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; }
  .shop-filters.is-open { transform: none; }
  .shop-filters__form { flex: 1; overflow: auto; overscroll-behavior: contain; }
  .shop-filters__close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--text, #51382b); cursor: pointer; }
  .shop-filters__foot { display: block; padding: 16px 0 20px; border-top: 1px solid var(--line, #d9cfc2); }
  .shop-filters-backdrop { position: fixed; inset: 0; z-index: 1140; background: rgb(11 42 36 / .3); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .shop-filters-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .shop-bar__filters { display: inline-flex; }
  .shop-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-grid--rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp, .pdp-more, .cart__grid { grid-template-columns: minmax(0, 1fr); }
  .pdp__gallery, .cart__side { position: static; }
  .pdp__stage { aspect-ratio: 1 / 1; }
  .acc-guest__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Телефон */
@media (max-width: 767px) {
  .shop-crumbs { padding-top: 24px; }
  .shop-pdp .shop-crumbs li:last-child { display: none; }
  .shop-head { padding-bottom: 28px; margin-bottom: 28px; }
  .shop-head__row { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
  .shop-h1 { font-size: 32px; line-height: 1.15; }
  .shop-lead { font-size: 13px; line-height: 24px; }
  .shop-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .shop-cats__grid.is-folded .shop-tile:nth-child(n + 7) { display: none; }
  .shop-grid, .shop-grid--rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .shop-bar { flex-wrap: wrap; gap: 10px 12px; }
  .shop-bar__count { order: 3; width: 100%; }
  .sc__link { aspect-ratio: 3 / 4; }
  .sc__fav { right: 8px; top: 8px; width: 36px; height: 36px; }
  .sc__head { margin-top: 10px; }
  .sc__head .si { display: none; }
  .sc__title { font-size: 13px; line-height: 20px; }
  .sc__sub { margin-top: 10px; font-size: 11px; line-height: 17px; }
  .sc__foot { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 12px; }
  .sc__price { font-size: 13px; line-height: 20px; }
  .sc__more { display: flex; align-items: center; min-height: 44px; font-size: 11px; }
  .shop-rail__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
  .shop-rail__head .shop-link { justify-self: start; }
  .pdp { margin-top: 20px; gap: 28px; }
  .pdp__stage { aspect-ratio: 4 / 5; margin-inline: calc(-1 * clamp(20px, 4.4vw, 56px)); }
  .pdp__thumbs { display: none; }
  .pdp__nav { display: none; }
  .pdp__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp__act:nth-child(3) { border-left: 0; }
  .pdp__act:nth-child(n + 3) { border-top: 1px solid var(--line, #d9cfc2); }
  .pdp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bg, #ede3d9); border-top: 1px solid var(--line, #d9cfc2); transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .pdp-bar.is-shown { transform: none; }
  .pdp-bar__price { display: grid; min-width: 0; }
  .pdp-bar__price b { font: 300 20px/1.2 var(--font-heading, Montserrat), sans-serif; }
  .pdp-bar__price small { overflow: hidden; font-size: 10px; color: var(--muted, #7a685b); white-space: nowrap; text-overflow: ellipsis; }
  .pdp-bar .btn { margin-left: auto; }
  .pdp-delivery { flex-direction: column; gap: 12px; padding: 24px; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr) 28px; grid-template-areas: 'img info rm' 'img qty sum'; gap: 10px 14px; align-items: start; }
  .cart-item__img { grid-area: img; }
  .cart-item__info { grid-area: info; }
  .cart-item .shop-qty { grid-area: qty; justify-self: start; }
  .cart-item__sum { grid-area: sum; align-self: center; min-width: 0; }
  .cart-item__rm { grid-area: rm; }
  .cart-sum, .cart-form { padding: 20px; }
  .cart-form__grid, .acc-form__pair, .qo__pair { grid-template-columns: minmax(0, 1fr); }
  .shop-bigsearch { flex-direction: column; }
  .shop-bigsearch > .si { top: 28px; }
  .shop-dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; }
  .shop-dlg__head { padding: 22px 20px 16px; }
  .shop-dlg__body { padding: 20px; }
  .shop-dlg__foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
  .bld__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bld__opts--sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-lb__stage { inset: 56px 0; }
  .shop-lb__prev, .shop-lb__next { top: auto; bottom: 16px; transform: none; }
  .shop-cmpbar { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .acc-tabs { overflow-x: auto; }
  .acc-user__top { flex-direction: column; align-items: flex-start; }
  .acc-order__total { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sc__img, .shop-tile__media img, .pdp__slide, .shop-dlg, .shop-filters, .pdp-bar, .cart-item, .shop-cmpbar { transition: none !important; }
  .shop-toast { animation: none !important; }
}
html[data-motion="off"] .sc__img, html[data-motion="off"] .pdp__slide, html[data-motion="off"] .shop-tile__media img { transition: none !important; }
