/* ============================================================
   KUMORI — светлый сдержанный минимализм
   Шрифты: Unbounded (заголовки) + Manrope (текст)
   ============================================================ */
:root {
    --bg: #ffffff;
    --bg-2: #f6f6f7;
    --surface: #ffffff;
    --surface-2: #f4f4f6;
    --border: #e6e7eb;
    --text: #111318;
    --muted: #70737c;
    --accent: #ff2e63;      /* только точечно: скидки, бейджи */
    --dark: #111318;        /* основной интерактив — чёрный */
    --dark-2: #2a2d35;
    --ok: #1a9b57;
    --warn: #b97a0a;
    --err: #d23c3c;
    --radius: 14px;
    --radius-sm: 10px;
    --font-d: 'Unbounded', sans-serif;
    --font-t: 'Manrope', system-ui, sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --shadow: 0 12px 34px rgba(17, 19, 24, .1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-t);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 20px 0; }
h2 { font-size: clamp(1.1rem, 2.6vw, 1.45rem); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; padding-bottom: 70px; }
.main > h1, .main > h2, .main > h3, .main > .filterbar, .main > .grid, .main > .pagination, .main > .empty,
.main > .cart, .main > .checkout, .main > .product, .main > .section:not(.container),
.main > .auth-box, .main > .order-status, .main > .account-head, .main > .table, .main > p, .main > form {
    margin-left: auto; margin-right: auto; max-width: 1240px;
    padding-left: 20px; padding-right: 20px;
}

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex: none; }
.icon--sm { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 14px; height: 64px;
}
.header__left { justify-self: start; display: flex; align-items: center; gap: 6px; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.logo { display: flex; align-items: center; gap: 9px; }
.header__inner .logo { justify-self: center; }
.logo__img { width: 34px; height: auto; }
.logo--big .logo__img { width: 48px; }
.logo__word { font-family: var(--font-d); font-weight: 900; font-size: 1.1rem; letter-spacing: .06em; color: var(--text); }
.logo__jp { font-family: var(--font-jp); font-size: .66rem; color: var(--muted); letter-spacing: .2em; margin-top: 4px; }
.logo--big .logo__word { font-size: 1.4rem; }

/* Кнопка «Каталог» */
.catbtn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--dark); color: #fff !important; border-radius: 12px;
    padding: 10px 18px; font-weight: 700; font-size: .92rem; cursor: pointer;
    transition: background .2s, transform .15s;
}
.catbtn:hover { background: var(--dark-2); }
.catbtn:active { transform: translateY(1px); }

/* Навигация в шапке */
.nav__drop { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; font-weight: 600; font-size: .93rem; color: var(--text);
    padding: 10px 10px; border-radius: 10px; transition: background .15s;
}
.nav__link:hover { background: var(--surface-2); }

.drop {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow); padding: 8px; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__drop:hover .drop, .nav__drop.open .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--text); font-weight: 600; font-size: .93rem; transition: background .15s;
}
.drop a:hover { background: var(--surface-2); }
.drop__all { border-bottom: 1px solid var(--border); border-radius: 10px 10px 0 0 !important; margin-bottom: 4px; font-weight: 700 !important; }
.drop__more {
    border-top: 1px solid var(--border); border-radius: 0 0 10px 10px !important; margin-top: 4px;
    display: flex !important; align-items: center; gap: 8px; color: var(--muted) !important;
}
.drop__more:hover { color: var(--text) !important; }
.drop__more .icon { transition: transform .2s; }
.drop__more:hover .icon { transform: translateX(3px); }

/* Мега-меню коллекций: карточки с обводкой, лого в монохроме для единообразия */
.drop--mega {
    position: fixed; left: 50%; top: 64px;
    transform: translateX(-50%) translateY(8px);
    width: min(1020px, calc(100vw - 32px));
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    padding: 16px; max-height: calc(100vh - 90px); overflow-y: auto;
}
.nav__drop:hover .drop--mega, .nav__drop.open .drop--mega { transform: translateX(-50%) translateY(0); }
.drop--mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mega__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 10px 13px !important; font-size: .85rem !important; text-align: center;
    border: 1px solid var(--border); border-radius: 12px !important;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.mega__item:hover { background: #fff !important; border-color: var(--dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17, 19, 24, .08); }
.mega__item > span:last-child { line-height: 1.25; }
.mega__logo {
    height: 32px; width: 100%; object-fit: contain; object-position: center;
    filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s;
}
.mega__item:hover .mega__logo { filter: none; opacity: 1; }
.mega__fallback {
    width: 100%; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d); font-size: 1rem; font-weight: 900; color: var(--muted);
}
.mega__all {
    grid-column: 1 / -1; margin-top: 4px; padding: 12px 12px 4px !important;
    border-top: 1px solid var(--border); border-radius: 0 !important;
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    color: var(--muted) !important; font-weight: 700 !important;
}
.mega__all:hover { color: var(--text) !important; background: none !important; }
.mega__all .icon { transition: transform .2s; }
.mega__all:hover .icon { transform: translateX(3px); }
@media (max-width: 1000px) { .drop--mega { grid-template-columns: repeat(3, 1fr); } }
.drop--right { left: auto; right: 0; min-width: 160px; }
.drop a.is-current { color: var(--accent); }

/* Селектор валюты */
.currency__btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); font-family: var(--font-t); font-weight: 700; font-size: .92rem;
    padding: 9px 12px; cursor: pointer; transition: border-color .2s;
}
.currency__btn:hover { border-color: var(--dark); }

.iconbtn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: none; background: none;
    color: var(--text); cursor: pointer; transition: background .2s; position: relative;
}
.iconbtn:hover { background: var(--surface-2); }
.search { position: relative; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input {
    background: var(--surface-2); border: 1px solid transparent; border-radius: 12px;
    color: var(--text); padding: 9px 14px 9px 36px; width: 160px; font-family: var(--font-t);
    transition: width .25s, border-color .2s, background .2s; outline: none;
}
.search input:focus { width: 220px; border-color: var(--dark); background: #fff; }
.search input::placeholder { color: var(--muted); }
.cart-badge {
    position: absolute; top: 3px; right: 3px; background: var(--accent); color: #fff;
    border-radius: 50%; font-size: .68rem; font-weight: 700; min-width: 17px; height: 17px;
    display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.is-on { display: flex; }

/* Мобильное меню */
.mobile-nav {
    display: none; flex-direction: column; padding: 10px 20px 18px;
    background: #fff; border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav.open { display: flex; }

@media (max-width: 800px) {
    .header__inner { gap: 8px; }
    .logo__jp { display: none; }
    .logo__img { width: 28px; }
    .logo__word { font-size: .95rem; }
    .catbtn { padding: 9px 12px; }
    .catbtn span { display: none; }
    .nav__link--top { display: none; } /* верхние ссылки на мобиле в меню */
    .search { display: none; }
    .iconbtn { width: 38px; height: 38px; }
    .currency__btn { padding: 8px 9px; font-size: .88rem; gap: 2px; }
    .drop { display: none; }
}

/* ---------- Flash & toast ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .95rem; border: 1px solid; }
.flash--success { background: #ecf8f1; border-color: #bfe6d0; color: var(--ok); }
.flash--error { background: #fdefef; border-color: #f2c9c9; color: var(--err); }
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
    background: var(--dark); color: #fff;
    padding: 13px 22px; border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
    font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #7ce0a8; }
.toast.toast--err .icon { color: #ff9d9d; }

/* ---------- Слайдер баннеров ---------- */
.slider { position: relative; overflow: hidden; background: var(--surface-2); }
.slider__track { display: flex; transition: transform .55s cubic-bezier(.25, .8, .25, 1); }
.slide {
    flex: 0 0 100%; position: relative; min-height: clamp(480px, 78vh, 800px);
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
}
.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}
.slide--noimg::after { display: none; }
.slide--noimg { background: var(--surface-2); }
.slide__inner {
    position: relative; z-index: 2; width: 100%; max-width: 1240px;
    margin: 0 auto; padding: 0 20px 54px;
    color: #fff;
}
.slide--noimg .slide__inner { color: var(--text); }
.slide__title { font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.slide__text { font-size: clamp(.95rem, 1.6vw, 1.1rem); max-width: 52ch; margin-bottom: 22px; opacity: .95; }
.slide__btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--text); border-radius: 12px;
    padding: 13px 26px; font-weight: 700; font-size: .95rem;
    transition: transform .15s, box-shadow .2s;
}
.slide__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.slide--noimg .slide__btn { background: var(--dark); color: #fff; }

.slider__nav {
    position: absolute; bottom: 20px; right: 24px; z-index: 5;
    display: flex; align-items: center; gap: 8px;
}
.slider__arrow {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s;
}
.slider__arrow:hover { background: #fff; transform: scale(1.05); }
.slider__arrow--prev .icon { transform: rotate(180deg); }
.slider__dots {
    position: absolute; bottom: 26px; left: 0; right: 0; z-index: 4;
    display: flex; justify-content: center; gap: 8px; pointer-events: none;
}
.slider__dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; pointer-events: auto;
    background: rgba(255, 255, 255, .45); transition: background .2s, width .2s;
}
.slider__dot.is-on { background: #fff; width: 22px; border-radius: 4px; }

/* ---------- Секции / сетки / карточки ---------- */
.section { margin: 48px auto; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__title { position: relative; }
.section__more { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 700; font-size: .9rem; transition: color .2s, gap .2s; }
.section__more:hover { color: var(--text); gap: 11px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Компактная сетка (сопутствующие в корзине) */
@media (min-width: 760px) { .grid--mini { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.grid--mini .card__body { padding: 10px 12px 12px; }
.grid--mini .card__name { font-size: .82rem; height: 2.7em; margin-bottom: 6px; }
.grid--mini .card__price { font-size: .88rem; }
.grid--mini .card__old { font-size: .75rem; margin-left: 5px; }
.grid--mini .card__add { width: 36px; height: 36px; border-radius: 10px; }
.grid--mini .card__add .icon { width: 17px; height: 17px; }
.grid--mini .badge--sale { font-size: .68rem; padding: 3px 8px; top: 8px; left: 8px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: block; position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { display: block; aspect-ratio: 3/4; position: relative; background: var(--surface-2); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.card__placeholder .icon { width: 54px; height: 34px; color: var(--border); }
.badge--sale {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800;
    padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.card__body { padding: 14px 16px 16px; position: relative; }
.card__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 600; font-size: .95rem; line-height: 1.35; height: 2.7em;
    margin-bottom: 10px; color: var(--text);
}
.card__name:hover { color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--font-d); font-weight: 700; font-size: 1rem; color: var(--text); }
.card__old { color: var(--muted); font-family: var(--font-t); font-weight: 500; font-size: .85rem; margin-left: 8px; text-decoration: line-through; }
.card__add {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--dark); color: #fff; border: none;
    cursor: pointer; transition: background .18s, transform .15s;
}
.card__add .icon { width: 19px; height: 19px; }
.card__add:hover { background: var(--dark-2); transform: scale(1.05); }
.card__add:active { transform: scale(.97); }
.card__qa {
    position: absolute; left: 8px; right: 8px; bottom: calc(100% - 6px); z-index: 5;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 12px; box-shadow: var(--shadow);
}
.card__qa-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.card__qa-items { display: flex; gap: 6px; flex-wrap: wrap; }
.card__qa-items button {
    padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
    background: #fff; color: var(--text); font-weight: 700; font-size: .85rem;
    cursor: pointer; font-family: var(--font-t); transition: all .15s;
}
.card__qa-items button:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------- Галерея (лукбук) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a, .gallery__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Плашки категорий на главной ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles .coll-card { aspect-ratio: 3/4; }
.tiles .coll-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(0, 0, 0, .38); transition: background .3s;
}
.tiles .coll-card:hover::before { background: rgba(0, 0, 0, .52); }
.tiles .coll-card__name {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: none; padding: 20px;
    font-family: var(--font-d); font-weight: 900; text-transform: uppercase;
    font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: .05em; color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.tiles .coll-card__go {
    position: absolute; left: 50%; bottom: 24px; z-index: 3;
    transform: translate(-50%, 160%); opacity: 0;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    background: #fff; color: var(--text); border-radius: 999px;
    padding: 12px 26px; font-weight: 700; font-size: .92rem;
    transition: transform .3s cubic-bezier(.25, .8, .25, 1), opacity .3s;
}
.tiles .coll-card:hover .coll-card__go { transform: translate(-50%, 0); opacity: 1; }
/* Карусель плашек (больше трёх) */
.tiles--car {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-behavior: smooth;
}
.tiles--car::-webkit-scrollbar { display: none; }
.tiles--car .coll-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.tcar__nav { display: flex; gap: 8px; }
.tcar__arrow {
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--border); background: #fff; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
}
.tcar__arrow:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.tcar__arrow--prev .icon { transform: rotate(180deg); }

@media (max-width: 760px) {
    .tiles, .tiles--4 { grid-template-columns: 1fr; gap: 10px; }
    .tiles .coll-card { aspect-ratio: 16/10; }
    .tiles .coll-card img { object-position: center 25%; }
    .tiles .coll-card__go { display: none; } /* на тач вся плашка кликабельна */
    .tiles--car { display: flex; }
    .tiles--car .coll-card { flex: 0 0 82%; aspect-ratio: 4/5; }
    .tcar__nav { display: none; } /* на тач — свайп */
}

/* ---------- Коллекции (хаб) ---------- */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px auto; max-width: 1240px; padding: 0 20px; }
.coll-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); display: block; }
.coll-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.coll-card:hover img { transform: scale(1.04); }
.coll-card__name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
    color: #fff; font-weight: 700; font-size: 1.02rem;
}
.coll-card__count { display: block; font-size: .8rem; font-weight: 500; opacity: .85; }
@media (max-width: 760px) { .collections { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px; } }

/* USP */
.usp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; margin-bottom: 20px; }
@media (min-width: 760px) { .usp { grid-template-columns: repeat(4, 1fr); } }
.usp__item {
    background: var(--surface-2); border-radius: var(--radius);
    padding: 22px 20px;
}
.usp__item b { display: block; font-family: var(--font-d); font-size: 1rem; margin-bottom: 6px; }
.usp__item span { color: var(--muted); font-size: .9rem; }

/* Reveal — мягкий */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .slider__track { transition: none; }
}

/* ---------- Кнопки и поля ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--dark); color: #fff; border: none; border-radius: 12px;
    padding: 13px 26px; font-size: .95rem; font-weight: 700; font-family: var(--font-t);
    cursor: pointer; transition: background .2s, transform .15s;
}
.btn:hover { background: var(--dark-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s ease; }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--secondary { background: var(--surface-2); color: var(--text); }
.btn--secondary:hover { background: var(--border); }
.btn--wide { width: 100%; }
.btn--small { padding: 8px 16px; font-size: .85rem; border-radius: 10px; }

input, select, textarea {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); padding: 12px 14px; font-size: .98rem; font-family: var(--font-t);
    width: 100%; outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--dark); }
input::placeholder, textarea::placeholder { color: #a4a7b0; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2370737c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.link-danger { background: none; border: none; color: var(--err); cursor: pointer; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.link-danger .icon { width: 17px; height: 17px; }
.form-error { color: var(--err); margin-top: 10px; font-size: .9rem; font-weight: 600; }

/* ---------- Фильтры / пагинация ---------- */
.filterbar { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin: 18px auto 26px; }
.filterbar__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filterbar__label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.fchip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
    background: #fff; color: var(--text); font-weight: 600; font-size: .88rem;
    cursor: pointer; transition: all .18s;
}
.fchip:hover { border-color: var(--dark); }
.fchip.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
.fchip--color { gap: 7px; }
.fchip__dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; display: inline-block; }
.fchip--color.is-on .fchip__dot { border-color: rgba(255, 255, 255, .5); }
.fchip--btn { background: var(--dark); color: #fff; border-color: var(--dark); }
.fchip--btn:hover { background: var(--dark-2); }
.filterbar__price input { width: 92px; padding: 8px 12px; border-radius: 999px; text-align: center; }
.filterbar__dash { color: var(--muted); }
.filterbar__reset { color: var(--muted); font-size: .85rem; }
.filterbar__reset:hover { color: var(--err); }

.pagination { display: flex; gap: 8px; margin: 30px auto; }
.pagination a {
    padding: 9px 16px; border: 1px solid var(--border); border-radius: 12px;
    font-weight: 600; color: var(--muted); transition: all .2s;
}
.pagination a:hover { color: var(--text); border-color: var(--dark); }
.pagination a.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.empty { color: var(--muted); margin: 40px auto; }
.empty a { color: var(--text); font-weight: 700; text-decoration: underline; }
.empty-state { margin: 30px auto 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 1240px; padding: 0 20px; }
.empty-state p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Страница товара ---------- */
.product { display: grid; gap: 34px; margin-top: 26px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.product__gallery img { border-radius: var(--radius); border: 1px solid var(--border); }
#main-image { width: 100%; height: auto; }
.product__placeholder { aspect-ratio: 3/4; border-radius: var(--radius); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border); opacity: .7; transition: opacity .2s, border-color .2s;
}
.thumbs img:hover { opacity: 1; border-color: var(--dark); }
.product__price { font-family: var(--font-d); font-size: 1.6rem; font-weight: 900; margin: 12px 0 20px; }
.option-group { margin-bottom: 20px; }
.option-group__label { font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.size-link { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 10px; text-decoration: underline; }
.option-group__items { display: flex; gap: 9px; flex-wrap: wrap; }
.chip input { display: none; }
.chip span {
    display: inline-block; padding: 10px 18px; border: 1px solid var(--border);
    border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem;
    transition: all .18s; background: #fff;
}
.chip span:hover { border-color: var(--dark); }
.chip input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.product__meta {
    display: flex; align-items: center; gap: 9px; margin: 18px 0 4px;
    background: var(--surface-2); border-radius: 12px; padding: 12px 16px;
    font-size: .92rem; color: #3c3f46;
}
.product__meta .icon { color: var(--muted); }
.product__meta b { font-weight: 700; color: var(--text); }
.product__actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.product__description { margin: 26px 0; color: #3c3f46; }
.size-table summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.size-table table { border-collapse: collapse; margin-top: 14px; width: 100%; }
.size-table td, .size-table th { border: 1px solid var(--border); padding: 8px 14px; text-align: left; font-size: .92rem; }
.size-table th { color: var(--muted); }

/* ---------- Корзина ---------- */
.cart { display: grid; gap: 26px; margin-top: 10px; }
@media (min-width: 900px) { .cart { grid-template-columns: 2fr 1fr; align-items: start; } }
.cart-item {
    display: grid; grid-template-columns: 76px 1fr auto auto; gap: 14px; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-item__img img { width: 76px; height: 95px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.cart-item__info a { font-weight: 700; }
.cart-item__info a:hover { color: var(--muted); }
.cart-item__opts { color: var(--muted); font-size: .85rem; margin: 2px 0; }
.cart-item__price { color: var(--muted); font-size: .9rem; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty input { width: 62px; text-align: center; padding: 9px 6px; }
.cart-item__sum { font-family: var(--font-d); font-weight: 700; }
.cart__summary {
    background: var(--surface-2); border-radius: var(--radius);
    padding: 22px; position: sticky; top: 84px;
}
.promo-form { display: flex; gap: 8px; margin-bottom: 16px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .95rem; }
.totals__discount { color: var(--ok); }
.totals__grand { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 12px !important; }
.cart__summary .btn { margin-top: 16px; }

/* ---------- Оформление ---------- */
.checkout { display: grid; gap: 26px; margin-top: 10px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 2fr 1fr; align-items: start; } }
.checkout__form { display: flex; flex-direction: column; gap: 12px; }
.checkout__form h3 { font-size: 1.05rem; margin-top: 16px; }
.checkout__note { color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* iOS-переключатели доставки */
.switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px; cursor: pointer;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    transition: border-color .25s, background .25s;
}
.switch-row:hover { border-color: #c9cbd2; }
.switch-row:has(input:checked) { border-color: var(--dark); background: var(--surface-2); }
.switch-row__text { font-weight: 600; font-size: .95rem; color: var(--text); }
.switch-row__text b { font-weight: 700; white-space: nowrap; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
    flex: none; width: 50px; height: 29px; border-radius: 999px;
    background: #d6d8de; position: relative;
    transition: background .25s ease;
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 23px; height: 23px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.switch-row input:checked ~ .switch { background: var(--dark); }
.switch-row input:checked ~ .switch::after { transform: translateX(21px); }

/* Город с подсказкой (СДЭК) */
.city-field { position: relative; }
.city-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 5px; }
.city-sugg {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto;
}
.city-sugg__item {
    display: block; width: 100%; text-align: left; border: none; background: none;
    padding: 11px 14px; font-family: var(--font-t); font-size: .93rem; color: var(--text);
    cursor: pointer; border-bottom: 1px solid var(--surface-2);
}
.city-sugg__item:last-child { border-bottom: none; }
.city-sugg__item:hover, .city-sugg__item.is-active { background: var(--surface-2); }
.city-sugg__item b { font-weight: 700; }
.city-sugg__item span { color: var(--muted); font-size: .85rem; }
.city-sugg__empty { padding: 11px 14px; color: var(--muted); font-size: .9rem; }

/* Блок СДЭК на оформлении */
.cdek { display: flex; flex-direction: column; gap: 10px; }
.cdek__note { color: var(--muted); font-size: .9rem; padding: 4px 2px; }
.cdek__label { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.cdek__days { color: var(--muted); font-weight: 500; font-size: .86rem; }
.cdek select { max-width: 100%; }

.radio-row {
    display: flex; gap: 12px; align-items: center; padding: 13px 16px; cursor: pointer;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    transition: border-color .2s; font-weight: 600; font-size: .95rem;
}
.radio-row:hover { border-color: var(--dark); }
.radio-row input { width: auto; accent-color: var(--dark); }

/* ---------- Auth / аккаунт / статусы ---------- */
.auth-box { max-width: 400px; margin: 60px auto; display: flex; flex-direction: column; gap: 14px; }
.auth-box form { display: flex; flex-direction: column; gap: 12px; }
.auth-box a { color: var(--text); font-weight: 600; text-decoration: underline; }
.account-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.account-head__meta { display: flex; gap: 16px; align-items: center; }
.bonus-pill { background: #fff6e8; border: 1px solid #f0dcbb; border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.bonus-balance b { font-family: var(--font-d); font-size: 1.4rem; }
.table { width: 100%; border-collapse: collapse; margin: 16px auto; }
.table td, .table th { padding: 13px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.table a { font-weight: 700; }
.table a:hover { color: var(--muted); }
.text-ok { color: var(--ok); }
.text-err { color: var(--err); }
.order-status { max-width: 620px; margin: 40px auto; }
.status { display: inline-block; padding: 8px 20px; border-radius: 999px; font-weight: 700; margin: 10px 0 20px; border: 1px solid; }
.status--ok { background: #ecf8f1; border-color: #bfe6d0; color: var(--ok); }
.status--warn { background: #fdf6e8; border-color: #eeddba; color: var(--warn); }
.status--err { background: #fdefef; border-color: #f2c9c9; color: var(--err); }
.order-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.order-table td { padding: 11px 4px; border-bottom: 1px solid var(--border); }
.order-table__total td { font-family: var(--font-d); font-weight: 700; border-bottom: none; }
.order-status .btn { margin: 6px 8px 6px 0; }

/* ---------- Наверх ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
    background: #fff; color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover .icon { transform: rotate(-90deg); }

/* ---------- Sticky-панель покупки (товар, мобильные) ---------- */
.buybar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    align-items: center; gap: 14px;
}
.buybar__price { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.buybar .btn { flex: 1; padding: 12px 16px; }
@media (max-width: 800px) {
    .buybar { display: flex; }
    .product { padding-bottom: 30px; }
    .to-top { bottom: 84px; }
}

/* ---------- Инфо-страницы ---------- */
.page { max-width: 780px !important; margin: 30px auto 60px; }
.page__content { color: #33363d; }
.page__content h2, .page__content h3 { margin: 28px 0 12px; color: var(--text); }
.page__content p { margin: 12px 0; }
.page__content ul, .page__content ol { margin: 12px 0 12px 22px; }
.page__content li { margin: 6px 0; }
.page__content a { color: var(--text); font-weight: 600; text-decoration: underline; }
.page__content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.page__content td, .page__content th { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

/* ---------- Блог ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px auto; max-width: 1240px; padding: 0 20px; }
.post-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__date { color: var(--muted); font-size: .82rem; font-weight: 600; }
.post-card__title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.post-card__excerpt { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; font-size: .9rem; margin-top: auto; }

.post { max-width: 780px !important; margin: 10px auto 50px; }
.post__head h1 { margin: 8px 0 14px; }
.post__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.post__tags .fchip { cursor: default; font-size: .8rem; padding: 6px 13px; }
.post__cover { width: 100%; border-radius: var(--radius); margin: 14px 0 22px; border: 1px solid var(--border); }
.post__content, .post__content *:not(a) { color: inherit !important; background: transparent !important; }
.post__content a { color: var(--text); font-weight: 600; text-decoration: underline; }
.post__content img { border-radius: 12px; margin: 14px 0; }
.post__content iframe.ql-video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: 14px 0; }
.post__content h2, .post__content h3 { margin: 26px 0 12px; }
.post__content blockquote { border-left: 3px solid var(--dark); padding: 4px 0 4px 16px; color: var(--muted); margin: 16px 0; }

@media (max-width: 760px) {
    .blog-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 14px; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px auto 4px; max-width: 1240px; padding: 0 20px; font-size: .88rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 600; }

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 640px) {
    .container, .crumbs { padding-left: 14px; padding-right: 14px; }
    .main > * { padding-left: 14px !important; padding-right: 14px !important; }
    h1 { font-size: 1.3rem; }

    .slide { min-height: 72vh; background-position: 72% center; }
    .slide__inner { padding: 0 14px 60px; }
    .slider__nav { display: none; } /* на тач — свайп и точки */

    .grid { gap: 10px; }
    .card__body { padding: 10px 12px 12px; }
    .card__name { font-size: .85rem; height: 2.7em; margin-bottom: 8px; }
    .card__price { font-size: .95rem; }
    .card__add { width: 38px; height: 38px; border-radius: 11px; }
    .card__add .icon { width: 18px; height: 18px; }

    .filterbar { gap: 12px; }
    .filterbar__group { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .filterbar__group::-webkit-scrollbar { display: none; }
    .filterbar__price input { width: 80px; }

    .cart-item { grid-template-columns: 64px 1fr; grid-template-areas: "img info" "img controls"; }
    .cart-item__img { grid-area: img; }
    .cart-item__img img { width: 64px; height: 80px; }
    .cart-item__info { grid-area: info; }
    .cart-item__qty { grid-area: controls; justify-self: start; }
    .cart-item__sum { grid-area: controls; justify-self: end; align-self: center; }
    .cart__summary { position: static; }

    .product { gap: 20px; }
    .product__actions .btn { flex: 1; }

    .table { display: block; overflow-x: auto; white-space: nowrap; }

    .section { margin: 36px auto; }
    .usp { grid-template-columns: 1fr 1fr; gap: 10px; }
    .usp__item { padding: 16px 14px; }
    .toast { width: calc(100% - 28px); justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 50px 0 28px; margin-top: 40px; }
.footer__top { display: grid; gap: 36px; margin-bottom: 36px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.2fr 1fr; } }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border); color: var(--text);
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.socials a:hover { background: var(--dark); border-color: var(--dark); color: #fff; transform: translateY(-2px); }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer__nav h4 { font-family: var(--font-d); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.footer__nav a { display: block; padding: 5px 0; color: var(--text); font-size: .95rem; }
.footer__nav a:hover { color: var(--muted); }
.footer__bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: .88rem;
}
.footer__jp { font-family: var(--font-jp); }
@media (max-width: 640px) {
    .footer { padding: 36px 0 24px; }
    .footer__bottom { flex-direction: column; gap: 6px; }
}
