:root {
  --bg: #F5F6F9;
  --card: #FFFFFF;
  --accent: #8A1538;
  --accent-press: #6E0F2B;
  --accent-soft: #F7E8ED;
  --text: #000000;
  --text2: #232447;
  --hint: rgba(35, 36, 71, .4);
  --hint2: rgba(35, 36, 71, .62);
  --line: #EDF1F3;
  --chip: #F1F2F6;
  --field: #E1E4EC;
  --danger: #E5383B;
  --sale: #F0384A;
  --green: #17A558;
  --nav-h: 90px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.3; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.i { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 20px); }
body.has-bar #app { padding-bottom: calc(var(--nav-h) + 96px); }
.page { padding: 0 16px; }

/* ---------- Шапка с поиском ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; background: var(--bg); }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; background: #fff; border-radius: 999px; cursor: text; }
.search .i { width: 24px; height: 24px; color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--hint2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); flex: none; transition: transform .1s; }
.round-btn:active { transform: scale(.94); }
.round-btn .i { width: 26px; height: 26px; }
.round-btn.back { color: var(--text2); }

.title-bar { position: sticky; top: 0; z-index: 20; background: var(--bg); height: 60px; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.title-bar h1 { font-size: 18px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-bar .round-btn { position: absolute; left: 16px; width: 40px; height: 40px; }

/* ---------- Баннеры ---------- */
.banner-wrap { position: relative; margin: 4px 0 28px; }
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.banners::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .g-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; height: 192px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 20px; cursor: pointer; }
.banner-text { position: relative; z-index: 1; max-width: 60%; }
.banner-title { font-size: 26px; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 10px; color: #111; }
.banner-sub { font-size: 14px; line-height: 1.3; color: rgba(0, 0, 0, .72); }
.banner-img { position: absolute; right: -8px; bottom: -14px; width: 176px; height: 200px; }
.banner-img svg { width: 100%; height: 100%; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .18); transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--accent); }

/* ---------- Секции ---------- */
.sec { margin-bottom: 28px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.sec-head h2, .page-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.page-title { margin: 4px 0 16px; }
.sec-head a { color: var(--accent); font-size: 16px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.hscroll .card { flex: 0 0 166px; scroll-snap-align: start; }

/* ---------- Карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; cursor: pointer; min-width: 0; }
.card-img { height: 100px; display: grid; place-items: center; margin: 8px 0 16px; }
.card-img svg, .card-img img { width: 100px; height: 100px; object-fit: contain; }
.card-fav { position: absolute; top: 4px; right: 4px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; color: var(--text2); }
.fav.on { color: var(--sale); }
.card-name { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3); margin-bottom: 12px; overflow-wrap: anywhere; }
.card-price { font-size: 15px; font-weight: 700; margin-top: auto; margin-bottom: 12px; min-height: 20px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.card-price s, .p-price s { font-size: 12px; font-weight: 400; color: var(--hint); }
.ask { color: var(--accent); font-weight: 500; font-size: 14px; line-height: 1.3; }
.sale-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 8px; }
.sale-badge.static { position: static; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 12px; font-weight: 500; transition: background .15s, transform .1s, opacity .15s; text-align: center; }
.btn:active { transform: scale(.97); background: var(--accent-press); }
.btn:disabled { opacity: 1; background: #A9AEBB; pointer-events: none; }
.btn-sm { height: 40px; width: 100%; font-size: 14px; padding: 0 8px; }
.stepper-sm { height: 40px; display: flex; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: 12px; color: var(--accent); font-weight: 600; }
.stepper-sm button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); }
.stepper-sm .i { width: 18px; height: 18px; }

/* ---------- Каталог ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 16px; min-height: 110px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; text-align: center; transition: transform .1s; }
.tile:active { transform: scale(.96); }
.tile-img svg { width: 62px; height: 62px; }
.tile-name { font-size: 14px; line-height: 1.2; margin-top: 6px; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.wordmark { font-size: 15px; font-weight: 600; color: #111; }
.wm-apple { font-size: 19px; letter-spacing: -.03em; }
.wm-samsung { font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.wm-whoop { font-size: 16px; font-weight: 900; letter-spacing: .14em; }
.wm-dji { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.wm-rayban { font-size: 19px; font-weight: 700; font-style: italic; letter-spacing: -.02em; font-family: "Brush Script MT", "Segoe Script", Georgia, serif; }
.wm-canon { font-size: 20px; font-weight: 800; font-style: italic; letter-spacing: -.01em; font-family: Georgia, "Times New Roman", serif; }
.wm-power { font-size: min(12.5px, 3.15vw); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.wm-insta360 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.wm-google { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.wm-playstation { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Панель фильтров / сортировки ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 14px; }
.tool-btn { display: flex; align-items: center; gap: 10px; font-size: 16px; height: 40px; }
.tool-btn .i { color: var(--accent); width: 24px; height: 24px; }
.sort-btn .i { width: 22px; height: 22px; transition: transform .2s; }
.sort-btn.open .i { transform: rotate(180deg); }
.fbadge { background: var(--accent); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.sort { position: relative; }
.sort-menu { position: absolute; right: 0; top: 46px; width: 320px; max-width: calc(100vw - 48px); background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 30, 60, .16); z-index: 30; overflow: hidden; animation: pop .16s ease-out; }
.sort-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 18px; height: 52px; font-size: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.sort-menu button:last-child { border-bottom: 0; }
.sort-menu button.on { color: var(--accent); font-weight: 500; }
.sort-menu .i { width: 18px; height: 18px; color: var(--accent); opacity: .65; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Шторка ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#sheet-root.open { pointer-events: auto; }
.overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
.open .overlay { opacity: 1; }
.sheet { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: calc(100% - 48px); max-width: 536px; margin: 0 auto; background: #fff; border-radius: 20px; display: flex; flex-direction: column; transform: translateY(40px); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.sheet.tall { top: 48px; }
.open .sheet { transform: none; opacity: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 20px; font-weight: 600; }
.sheet-head .close { width: 32px; height: 32px; display: grid; place-items: center; color: #444; }
.sheet-head .close .i { width: 26px; height: 26px; }
.sheet-body { padding: 20px; overflow: auto; flex: 1; }
.sheet-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.btn-lg { height: 52px; flex: 1; font-size: 17px; border-radius: 14px; }
.btn-ghost { background: var(--chip); color: var(--text2); height: 52px; padding: 0 18px; border-radius: 14px; }
.btn-ghost:active { background: #E5E7EE; }

.price-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.price-row .lbl { font-weight: 500; }
.range { position: relative; height: 28px; margin: 0 2px 26px; }
.range-track { position: absolute; left: 13px; right: 13px; top: 12px; height: 4px; background: #E3E6EE; border-radius: 2px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.range input { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: none; height: 28px; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.range input::-moz-range-track { background: none; }
.range input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.f-title { font-size: 17px; font-weight: 500; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1.5px solid #E6E8EF; border-radius: 12px; font-size: 14px; color: #8E95A5; transition: all .15s; }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); flex: none; display: inline-block; }

/* ---------- Страница товара ---------- */
.gallery { position: relative; background: linear-gradient(180deg, #E4E5E8 0%, #FFFFFF 100%); border-radius: 16px; overflow: hidden; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 268px; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.g-slide svg, .g-slide img { width: 220px; height: 220px; object-fit: contain; }
.g-count { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: #6C6F78; padding: 4px 12px; border-radius: 12px; }
.g-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 7px; height: 7px; border-radius: 4px; background: #D3D5DA; transition: width .25s, background .25s; }
.g-dots i.on { width: 28px; background: #A0A4AD; }
.p-title { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 20px 0 14px; letter-spacing: -.01em; }
.p-price { font-size: 22px; font-weight: 700; margin-bottom: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.p-price s { font-size: 15px; }
.opt-title { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ochip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1.5px solid #343B57; border-radius: 14px; font-size: 15px; background: #fff; transition: border-color .15s; }
.ochip .sw { width: 22px; height: 22px; }
.ochip.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ochip.dim { border-color: #D5D8E0; color: #9AA0AE; }
.p-desc h3 { font-size: 17px; font-weight: 600; margin: 4px 0 12px; }
.desc-text { white-space: pre-line; font-size: 15px; line-height: 1.55; color: #2A2B3D; background: #fff; border-radius: 16px; padding: 16px; }

/* ---------- Нижняя панель над меню ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 40; max-width: 560px; margin: 0 auto; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 6px; }
.bar-ic { width: 48px; height: 52px; display: grid; place-items: center; color: var(--text2); flex: none; transition: color .15s, transform .1s; }
.bar-ic:active { transform: scale(.9); }
.bar-ic .i { width: 26px; height: 26px; }
.bar-ic.on { color: var(--accent); }
.bar-ic.fav.on { color: var(--sale); }
.bar-main { flex: 1; display: flex; min-width: 0; }
.btn-main { height: 52px; width: 100%; font-size: 17px; border-radius: 14px; padding: 0 18px; white-space: nowrap; }
.btn-main .i { width: 22px; height: 22px; }
.btn-main.in { background: var(--accent-soft); color: var(--accent); }
.btn-main.wide { width: 100%; }
.total { flex: 1; min-width: 0; }
.total .hint { color: var(--hint2); font-size: 15px; }
.total b { font-size: 17px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.checkout { width: auto; flex: none; padding: 0 22px; }

/* ---------- Нижнее меню ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--nav-h); max-width: 560px; margin: 0 auto; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: flex-start; padding: 0 12px; }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 11px; font-size: 12px; color: var(--hint); position: relative; white-space: nowrap; }
.tab.active { color: #000; font-weight: 700; }
.tab.active::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tab-ic { position: relative; width: 28px; height: 28px; color: #A5A8B8; }
.tab-ic .i { width: 28px; height: 28px; stroke-width: 1.6; }
.tab.active .tab-ic { color: var(--accent); }
.tab.active .tab-ic .i { fill: var(--accent-soft); }
.badge { position: absolute; top: -9px; right: -12px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Корзина ---------- */
.cart-item { display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ci-img { width: 84px; height: 84px; flex: none; display: grid; place-items: center; cursor: pointer; }
.ci-img svg, .ci-img img { width: 84px; height: 84px; object-fit: contain; }
.ci-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ci-top { display: flex; gap: 8px; justify-content: space-between; }
.ci-name { font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.ci-del { color: #B9BDC8; width: 30px; height: 30px; flex: none; display: grid; place-items: center; margin: -4px -6px 0 0; }
.ci-del .i { width: 22px; height: 22px; }
.ci-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.stepper { display: flex; align-items: center; background: var(--chip); border-radius: 10px; height: 34px; }
.stepper span { min-width: 34px; text-align: center; font-weight: 500; }
.st-minus, .st-plus { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.st-plus { background: var(--accent); color: #fff; }
.st-minus { color: #444; }
.stepper .i { width: 18px; height: 18px; }
.ci-price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.pay-info { margin-top: 26px; }
.pay-info h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.pay-info .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: var(--hint); }
.pay-info .row b { color: #000; font-size: 17px; white-space: nowrap; }
.green { color: var(--green) !important; }
.promo { display: flex; gap: 12px; }
.promo input { flex: 1; min-width: 0; height: 56px; border-radius: 14px; border: 1.5px solid var(--field); padding: 0 16px; font-size: 16px; background: #fff; outline: 0; text-transform: uppercase; }
.promo input::placeholder { text-transform: none; color: var(--hint); }
.promo input:focus { border-color: var(--accent); }
.promo-btn { height: 56px; padding: 0 18px; font-size: 16px; border-radius: 14px; flex: none; }

/* ---------- Пустые состояния / поддержка ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 12px 24px; }
.empty-ic { width: 88px; height: 88px; border-radius: 50%; background: #EAECF1; display: grid; place-items: center; color: #9CA1AE; margin-bottom: 24px; }
.empty-ic .i { width: 44px; height: 44px; }
.empty-ic.soft { background: #EEF0F4; color: #8E93A0; }
.empty-ic.ok { background: #E2F5EA; color: var(--green); }
.empty h2 { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: #111827; }
.empty p { color: var(--hint2); font-size: 16px; line-height: 1.5; margin: 0 0 28px; max-width: 320px; }
.btn-wide { height: 56px; width: 100%; max-width: 360px; font-size: 17px; border-radius: 14px; margin-bottom: 10px; }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:active { background: #F0D5DE; }
.btn-grad { background: linear-gradient(90deg, #B8325C 0%, #8A1538 100%); box-shadow: 0 10px 24px rgba(138, 21, 56, .28); font-size: 18px; font-weight: 600; }
.btn-grad .i { width: 26px; height: 26px; }
.support { padding-top: 120px; }
.hint-small { color: var(--hint2); font-size: 14px; margin-top: 6px; }

/* ---------- Профиль ---------- */
.profile-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 16px; margin: 8px 0 24px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #D4718F, #8A1538); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; flex: none; }
.p-who { flex: 1; min-width: 0; }
.p-name { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-user { color: var(--hint); font-size: 15px; margin-top: 4px; }
.p-edit { color: #9AA0AE; width: 40px; height: 40px; display: grid; place-items: center; }
.group-title { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--hint); text-transform: uppercase; padding: 0 4px; margin: 0 0 8px; }
.group { background: #fff; border-radius: 16px; margin-bottom: 22px; overflow: hidden; }
.row-link { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.row-link:last-child { border-bottom: 0; }
.row-link:active { background: #FAFBFC; }
.row-link .ic .i { color: var(--accent); }
.row-link span { flex: 1; }
.row-link em { font-style: normal; color: var(--hint); font-size: 15px; }
.row-link > .i:last-child { width: 20px; height: 20px; color: #B5B9C4; }

/* ---------- Формы ---------- */
.f-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.f-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--hint2); margin-bottom: 6px; }
.field input, .field textarea, .f-card > textarea { width: 100%; border: 1.5px solid var(--field); border-radius: 12px; padding: 13px 14px; font-size: 16px; outline: 0; background: #fff; resize: none; }
.field input:focus, .field textarea:focus, .f-card > textarea:focus { border-color: var(--accent); }
.invalid { border-color: var(--danger) !important; }
.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; height: 40px; border-radius: 10px; font-size: 15px; color: var(--hint2); transition: all .15s; }
.seg button.on { background: #fff; color: #000; font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.radio:first-child { border-top: 0; padding-top: 4px; }
.radio input { accent-color: var(--accent); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.radio b { display: block; font-weight: 500; margin-bottom: 2px; }
.radio small { color: var(--hint2); font-size: 14px; }
.link-btn { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 15px; font-weight: 500; height: 34px; }
.link-btn .i { width: 18px; height: 18px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; }
.sum-line span { color: #333; }
.sum-line b { white-space: nowrap; }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px; }
.sum-total span { color: #000; font-weight: 600; }
.req-item { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-weight: 500; }
.req-item .ci-img, .req-item .ci-img svg { width: 64px; height: 64px; }
.note { color: var(--hint2); font-size: 14px; line-height: 1.45; margin: 0 0 14px; }

/* ---------- Заказы / уведомления / магазины ---------- */
.order { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.o-head { display: flex; justify-content: space-between; align-items: center; }
.status { background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.o-date { color: var(--hint); font-size: 14px; margin: 4px 0 12px; }
.o-imgs { display: flex; gap: 8px; margin-bottom: 12px; }
.o-img { width: 56px; height: 56px; background: var(--bg); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.o-img svg, .o-img img { width: 46px; height: 46px; object-fit: contain; }
.o-foot { display: flex; justify-content: space-between; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--hint); font-size: 13px; margin-top: 2px; }
.toggle-row input { display: none; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #E3E5EB; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .2s; }
input:checked + .switch { background: var(--accent); }
input:checked + .switch::after { transform: translateX(20px); }
.store { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.s-name { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.s-line { display: flex; gap: 10px; align-items: center; color: var(--text2); font-size: 15px; margin-bottom: 8px; }
.s-line .i { width: 20px; height: 20px; color: var(--accent); }
.store .btn { height: 44px; width: 100%; margin-top: 6px; }

/* ---------- Поиск ---------- */
.found { color: var(--hint2); font-size: 14px; margin: 2px 0 12px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg button { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; height: 40px; padding: 0 14px; font-size: 15px; }
.sugg .i { width: 16px; height: 16px; color: var(--hint); }

/* ---------- Тост ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translate(-50%, 16px); background: rgba(22, 24, 38, .92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-bar #toast { bottom: calc(var(--nav-h) + 92px); }

@media (max-width: 359px) {
  .hscroll .card { flex-basis: 150px; }
  .tab { font-size: 11px; }
  .banner-title { font-size: 22px; }
}

/* ---------- Наличие / загрузка ---------- */
.oos { font-size: 12px; font-weight: 500; color: var(--hint2); flex-basis: 100%; }
.oos-line { margin: -12px 0 20px; color: var(--accent); font-size: 15px; font-weight: 500; }
.loader { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--hint2); font-size: 15px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner-img img, .tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-img img { width: 62px; height: 62px; }

/* ---------- Настоящие фото товаров ---------- */
/* белый фон фото «растворяется» в сером фоне галереи */
.g-slide img { width: 100%; height: 268px; padding: 30px 24px 34px; object-fit: contain; mix-blend-mode: multiply; }
.card-img img, .ci-img img, .o-img img { mix-blend-mode: multiply; }

.oos.soon { color: var(--accent); }
.page-title.small { font-size: 20px; margin-bottom: 14px; }
.tile-img img { width: 70px; height: 70px; object-fit: contain; mix-blend-mode: multiply; }

.banner-title.long { font-size: 21px; }
.banner-img img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.banner-img { right: 4px; bottom: 6px; width: 150px; height: 176px; }
.banner-text { max-width: 55%; }
.banner-title.long { font-size: 19px; }
.banner-img { width: 140px; height: 172px; }

.wm-dyson { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }

/* Нет фото — нейтральная плашка вместо рисунка */
.noimg { width: 100%; height: 100%; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #B9BDC8; font-size: 12px; }
.noimg .i { width: 28px; height: 28px; }
.g-slide .noimg { font-size: 15px; } .g-slide .noimg .i { width: 44px; height: 44px; }

.chip-sub { display: block; font-size: 11px; color: var(--hint2); margin-top: 1px; }
.ochip:has(.chip-sub) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: auto; min-height: 44px; padding: 6px 14px; line-height: 1.2; }
