/* Elegant White: редизайн (ноябрь 2026). Зелёная палитра, скруглённые рамки, карточка «фото + текст» как одно целое. */
:root {
  --paper: #fafbf8;
  --white: #ffffff;
  --ink: #1f2b23;
  --navy: #4a6b50;      /* основной зелёный: кнопки, акценты */
  --navy-dark: #3b5740;
  --chalk: #e2e7dd;     /* тонкие рамки */
  --wash: #eef2ea;      /* светлые зелёные панели */
  --sage: #e8eee3;
  --stone: #6a786d;
  --bad: #a4332b;
  --display: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --pad: clamp(16px, 4vw, 88px);
}
body { background: var(--paper); color: var(--ink); }
h1, h2, h3, .logo { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.035em; }
.section { max-width: 1280px; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--stone); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* все рамки — скруглённые прямоугольники */
input, select, textarea { border-radius: var(--r-m); border-color: var(--chalk); background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(74,107,80,.14); outline: none; }
.btn { border-radius: var(--r-m); background: var(--navy); border-color: var(--navy); font-weight: 500; letter-spacing: 0; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--chalk); }
.btn.ghost:hover { background: var(--wash); color: var(--ink); border-color: var(--chalk); }
.btn.arrow { justify-content: space-between; gap: 20px; }
.btn.arrow i { font-style: normal; opacity: .85; font-size: 1.1em; }
.count { background: var(--sage); color: var(--navy-dark); }
.notice, .empty, .specs-like > div, .ocard, .trackcard, .accrow, .cform, .checkout, .delivery-data, .how-faq details, .how-note, .how-ph, .steps li, .band, .suggest, .modal-box, .toast, .tabs .tab, .chip, .size, .sw, .pill { border-radius: var(--r-m); }
.checkout, .accrow, .cform { border-color: var(--chalk); }
.toast { border-radius: var(--r-m); }
.textlink { color: var(--stone); }
.back { color: var(--stone); }

/* шапка */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 7px var(--pad); background: var(--sage); color: var(--navy-dark); font-size: 13px; }
.topbar span { grid-column: 2; text-align: center; }
.topbar a { grid-column: 3; justify-self: end; display: inline-flex; gap: 6px; color: var(--navy-dark); }
.topbar a:hover { text-decoration: underline; }
.header { background: rgba(250,251,248,.94); border-bottom: 0; padding: 14px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.logo { display: grid; line-height: 1.1; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.04em; }
.logo small { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--stone); margin-top: 3px; }
.nav { gap: 4px; align-items: center; }
.nav.main { justify-self: center; }
.nav a { padding: 8px 14px; border: 0; border-radius: 12px; font-size: 15px; }
.nav a:hover, .nav a.on { background: var(--sage); border: 0; }
.nav.tools { justify-self: end; gap: 2px; }
.nav.tools a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.nav.tools a svg { flex: none; }
.nav.tools .cartlink { padding: 10px 14px; }
.nav.tools .count { margin: 0; background: transparent; padding: 0; min-width: 0; height: auto; border-radius: 0; font-size: 13px; color: var(--ink); }
.nav.tools .favlink .count { background: var(--sage); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; color: var(--navy-dark); margin: 0; }
@media (max-width: 960px) {
  .header { grid-template-columns: minmax(0, 1fr) auto; }
  .nav.main { grid-column: 1 / -1; order: 3; justify-self: start; overflow-x: auto; width: 100%; min-width: 0; max-width: 100%; }
  .topbar { grid-template-columns: 1fr; text-align: center; } .topbar a { display: none; } .topbar span { grid-column: 1; }
  .nav.tools .lbl { display: none; }
}
@media (max-width: 360px) {
  .nav.tools a { padding-left: 10px; padding-right: 10px; }
  .nav.tools .cartlink { padding-left: 10px; padding-right: 10px; }
  .nav.main a { padding-left: 9px; padding-right: 9px; }
}

/* карточка товара: фото и текст — одно целое */
.grid { gap: clamp(14px, 1.8vw, 24px); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--chalk); border-radius: var(--r-l); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { border-color: #d3dbcd; box-shadow: 0 10px 30px rgba(31,43,35,.08); transform: translateY(-2px); }
.card-img { border-radius: 0; aspect-ratio: 3/4; background: var(--wash); order: 0; }
.card-info { order: 1; padding: 16px 18px 6px; gap: 3px; }
.card .dots { order: 2; margin: 0; padding: 4px 18px 18px; align-items: center; gap: 8px; }
.card .dots::before { content: 'Цвета'; font-size: 12px; color: var(--stone); margin-right: 2px; }
.card .dots i { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.card .dots em { font-size: 12px; color: var(--stone); }
.card:not(:has(.dots)) .card-info { padding-bottom: 18px; }
.card-info .brand { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.card-info .title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.card .mat { font-size: 13px; color: var(--stone); }
.card-info .price { margin-top: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.like { top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(31,43,35,.12); z-index: 2; }
.like.on { color: var(--navy); }
.like.big { border-radius: var(--r-m); border-color: var(--chalk); background: var(--white); box-shadow: none; }
.card.shoe .card-img { aspect-ratio: 3/4; background: #fff; }

/* главная: бегущие ленты */
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 8px; }
.hero-top h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 22em; }
.hero-top p { margin: 10px 0 0; color: var(--stone); max-width: 38em; }
.ribbons { display: grid; gap: 16px; overflow: hidden; margin: 18px calc(var(--pad) * -1) 0; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ribbon { overflow: hidden; }
.ribbon-track { display: flex; gap: 16px; width: max-content; animation: ew-left 90s linear infinite; will-change: transform; }
.ribbon.right .ribbon-track { animation-name: ew-right; animation-duration: 105s; }
.ribbons:hover .ribbon-track, .ribbons.paused .ribbon-track { animation-play-state: paused; }
@keyframes ew-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ew-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rcard { flex: none; width: 200px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--chalk); border-radius: var(--r-l); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.rcard:hover { box-shadow: 0 10px 28px rgba(31,43,35,.1); border-color: #d3dbcd; }
.rcard .ri { aspect-ratio: 4/5; background: var(--wash); overflow: hidden; }
.rcard .ri img { width: 100%; height: 100%; object-fit: cover; }
.rcard.shoe .ri { background: #fff; } .rcard.shoe .ri img { object-fit: contain; }
.rcard .rt { padding: 12px 14px 14px; display: grid; gap: 6px; }
.rcard .rl { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--stone); }
.rcard .rl b { color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rcard .rn { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ribbon-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.pausebtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; background: var(--sage); color: var(--navy-dark); border-radius: var(--r-m); font-weight: 500; }
.pausebtn:hover { background: #dfe8d9; }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } .ribbon { overflow-x: auto; } .pausebtn { display: none; } }

.brandstrip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 8px 8px; color: var(--stone); }
.brandstrip .bl { font-size: 13px; }
.brandstrip a { font-weight: 700; letter-spacing: .08em; color: #7d8b80; font-size: 17px; text-transform: uppercase; }
.brandstrip a:hover { color: var(--navy); }

.cats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { display: flex; flex-direction: column; background: var(--sage); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--chalk); transition: box-shadow .2s, transform .2s; }
.cat:hover { box-shadow: 0 10px 30px rgba(31,43,35,.09); transform: translateY(-2px); }
.cat-img { aspect-ratio: 2/3; border-radius: 0; background: var(--wash); margin-bottom: 0; }
.cats .cat-img img { object-fit: cover; }
.cat:hover .cat-img img { transform: none; }
.cat-name { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 500; }
.cat-name::after { content: '↗'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); font-size: 14px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

.steps ol { gap: 16px; }
.steps li { background: var(--sage); border: 0; border-radius: var(--r-l); padding: 22px; }
.band { background: var(--sage); color: var(--ink); border-radius: var(--r-xl); }
.band h2 { color: var(--ink); } .band p { color: var(--stone); }
.band .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.cart-custom-order { padding: clamp(22px, 3vw, 36px); gap: 20px; }
.cart-custom-order h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.3; margin: 0; }
.cart-custom-order > div { flex: 1 1 320px; min-width: 0; }
.cart-custom-order .btn { flex-shrink: 0; }
.btn:disabled, .btn:disabled:hover { opacity: .55; cursor: not-allowed; background: var(--navy); border-color: var(--navy); color: #fff; }
.head-row .textlink, .head-link { color: var(--navy-dark); text-decoration: none; display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; }

/* каталог */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--stone); margin: 0 0 22px; }
.crumbs a:hover { color: var(--ink); } .crumbs i { font-style: normal; opacity: .6; }
.cathead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.cathead p { margin: 0; max-width: 24em; color: var(--stone); }
.catlayout { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
.catside { display: grid; gap: 16px; align-content: start; }
.panel { background: var(--wash); border-radius: var(--r-l); padding: 18px; }
.panel h4 { margin: 4px 6px 12px; font-size: 14px; font-weight: 600; }
.catnav { margin: 0; }
.catnav summary { font-weight: 600; padding: 4px 6px 12px; list-style: none; cursor: default; }
.catnav li > a, .catnav .row > a { border-radius: 12px; padding: 9px 12px; }
.catnav li > a.on, .catnav .row > a.on { background: #d9e5d3; color: var(--ink); box-shadow: none; padding-left: 12px; font-weight: 500; }
.catnav li > a span, .catnav .cnt { color: var(--stone); font-size: 13px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 15px; }
.radio::before { content: ''; flex: none; width: 20px; height: 20px; border: 1.5px solid #a8b8ab; border-radius: 50%; background: var(--white); }
.radio.on::before { border: 6px solid var(--navy); }
.radio:hover { background: #e3ecde; }
.panel .reset { display: inline-block; margin: 8px 10px 2px; color: var(--navy-dark); font-weight: 500; font-size: 14px; }
.panel .help { font-size: 14px; color: var(--stone); } .panel .help a { color: var(--navy-dark); font-weight: 500; display: inline-block; margin-top: 8px; }
.searchbar { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--chalk); border-radius: var(--r-l); padding: 0 8px 0 18px; min-height: 56px; margin-bottom: 14px; }
.searchbar:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(74,107,80,.12); }
.searchbar input { flex: 1; border: 0; background: transparent; min-height: 52px; padding: 0; box-shadow: none !important; }
.searchbar button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--sage); color: var(--navy-dark); }
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 2px 18px; font-size: 14px; color: var(--stone); }
.listbar select { min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--white); width: auto; }
.catlayout .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .catlayout .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .catlayout { grid-template-columns: 1fr; } .catside { order: 2; } }
@media (max-width: 520px) { .catlayout .grid { grid-template-columns: 1fr 1fr; } .card-info { padding: 12px 12px 4px; } .card .dots { padding: 4px 12px 12px; } .card .dots::before { display: none; } }
.pager a, .pager span { border-radius: 12px; border-color: var(--chalk); }
.pager .current { background: var(--navy); border-color: var(--navy); }

/* страница товара */
.mainimg, .mainwrap { border-radius: var(--r-xl); }
.mainimg { background: var(--wash); }
.thumb { border-radius: 12px; overflow: hidden; }
.thumb.on, .thumb:hover { border-color: var(--navy); }
.pinfo h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -0.035em; font-weight: 600; }
.pinfo .brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-dark); font-weight: 600; }
.pprice { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.size { border-radius: 12px; border-color: var(--chalk); background: var(--white); min-width: 48px; }
.size.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sw { border-radius: 50%; }
.swatches.sq .sw, .swatches.sq .sw i { border-radius: 12px; }
.pinfo .btn[data-act="add"] { justify-content: space-between; padding: 0 22px; }
.pinfo .btn[data-act="add"]::after { content: '↗'; opacity: .85; }
.tabs { gap: 6px; border-bottom: 0; }
.tab, .tabs .tabl { border-radius: 12px; border: 0; background: transparent; padding: 10px 16px; }
.tab.on, .tabs .tabl.on, .tab[aria-selected="true"] { background: var(--sage); color: var(--ink); border: 0; }
.tabpanel, .specs { border-radius: var(--r-l); }
.sizechart a, .pinfo .sizechart, .szrail a { border-radius: var(--r-m); }
.specs .product-taobao { grid-template-columns: 140px minmax(0, 1fr); }
.product-taobao dt small { display: block; font-size: 12px; line-height: 1.4; margin-top: 6px; }
.product-taobao dd { min-width: 0; }
.product-taobao form { display: grid; gap: 10px; }
.product-taobao input { width: 100%; min-width: 0; padding: 10px 12px; }
.product-taobao .row-gap { flex-wrap: wrap; gap: 10px 16px; }
@media (max-width: 560px) { .specs .product-taobao { grid-template-columns: minmax(0, 1fr); } }
.related { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--chalk); padding-top: clamp(28px, 4vw, 48px); }
.related .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .related .grid { grid-template-columns: repeat(2, 1fr); } }

/* корзина и заказ */
.line { border-color: var(--chalk); }
.lthumb { border-radius: var(--r-m); overflow: hidden; }
.qty { background: var(--sage); border-radius: 12px; }
.qty button { border-radius: 10px; }
.checkout { background: var(--sage); border: 0; border-radius: var(--r-xl); padding: 26px; }
.checkout h2 { font-size: 1.7rem; }
.ordnum { background: var(--white); border-radius: var(--r-m); }
.delivery-data { background: var(--white); }
.okchip, .waitchip, .chg.nachip, .pill { border-radius: 999px; }
.total-box { border-radius: var(--r-l); }

/* подвал */
.footer { background: var(--sage); border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: 56px; }
.footer .logo { font-size: 1.6rem; }

/* оформление, кабинет */
.how-head { background: var(--sage); color: var(--ink); border-radius: var(--r-xl); }
.how-lead { color: var(--ink); }
.delivery-rates-wrap { overflow: hidden; border: 1px solid var(--chalk); border-radius: var(--r-l); background: var(--white); }
.delivery-rates { width: 100%; border-collapse: collapse; font-size: 15px; }
.delivery-rates th, .delivery-rates td { padding: 13px 18px; text-align: left; vertical-align: top; }
.delivery-rates thead { background: var(--sage); }
.delivery-rates thead th { font-weight: 600; }
.delivery-rates tbody th { font-weight: 400; }
.delivery-rates tbody tr + tr { border-top: 1px solid var(--chalk); }
.delivery-rates td, .delivery-rates th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 400px) { .delivery-rates th, .delivery-rates td { padding: 12px; } }
.how-steps li, .how-faq details, .how-note { background: var(--white); border: 1px solid var(--chalk); }
.how-n { background: #d9e5d3; color: var(--navy-dark); border-radius: 50%; }
.how-end { background: var(--sage); border-radius: var(--r-xl); }
.tabs.otabs { border-bottom: 1px solid var(--chalk); }

/* панель «Управление» */
.ocard { background: var(--white); border-color: var(--chalk); border-radius: var(--r-l); }
.ocard.is-cart { background: var(--wash); }
.ocard input, .ocard select { border-radius: 12px; }
.otabs2 .chip { border-radius: 999px; border-color: var(--chalk); background: var(--white); }
.otabs2 .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.findbox { border-radius: var(--r-m); }

.catmain .filters { display: block; }
.product > .back { display: none; }
.product > .pgrid { clear: both; }

body { overflow-x: clip; }

/* --- правки клиента 08.11 --- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg button { border-radius: var(--r-m); padding: 14px 18px; border: 1px solid var(--chalk); background: var(--white); min-width: 150px; }
.seg button span { color: var(--stone); }
.seg button:hover { border-color: #b9c6b4; }
.seg button.on { background: var(--sage); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--ink); }
.ordnum { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 18px; margin: 8px 0 14px; }
.copyic { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.copyic:hover { background: var(--sage); }
.szdots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.szdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c5cdc1; cursor: pointer; transition: width .2s, background .2s; }
.szdot.on { width: 22px; border-radius: 8px; background: var(--navy); }
.szarr { top: 45%; }
.hwrap { position: relative; }
.hrail { display: flex; gap: clamp(14px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 16px; }
.hrail::-webkit-scrollbar { display: none; }
.hrail .card { flex: 0 0 clamp(210px, 23vw, 290px); scroll-snap-align: start; }
.hwrap .gnav { position: absolute; top: 38%; z-index: 3; }
.hwrap .gnav.prev { left: -14px; } .hwrap .gnav.next { right: -14px; }
@media (max-width: 760px) { .hwrap .gnav { display: none; } .hrail .card { flex-basis: 62vw; } }
.band { padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 48px); margin-top: 8px; }
.band p { opacity: 1; }
.mainimg { border-radius: var(--r-xl); overflow: hidden; }
.mainimg img { border-radius: 0; }
.fcol { display: grid; gap: 10px; align-content: start; }
.fcol b { margin-bottom: 4px; }
.fcol a { display: block; }
.footer { border-radius: var(--r-xl); margin: 40px 12px 12px; }
.btn.ghost { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.ghost.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost.danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.qty.static { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 5px 12px; border: 1.5px solid #c9d6c3; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.addrtag { display: inline-block; width: fit-content; justify-self: start; align-self: start; padding: 0 8px; font-size: 11px; line-height: 1.5; margin-left: 6px; }
.cf .addrtag { vertical-align: 1px; }

/* статусы заказов: цвет и иконка */
.stg { --c: #808080; --bg: #f2f2f2; display: inline-flex; align-items: center; gap: 12px; }
.stg i { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--c); display: grid; place-items: center; }
.stg i svg { width: 24px; height: 24px; }
.stg b { font-weight: 500; color: var(--ink); }
.stg-wait { --c: #2861a3; --bg: #e4eefc; }
.stg-bought { --c: #d99116; --bg: #fff1d6; }
.stg-to_ru { --c: #896400; --bg: #fff4bf; }
.stg-pickup { --c: #27965b; --bg: #e0f4e8; }
.stg-delivered { --c: #fff; --bg: #1f8a4c; }
.stg.sm { gap: 8px; margin: 4px 8px 4px 0; }
.stg.sm i { width: 28px; height: 28px; border-radius: 9px; } .stg.sm i svg { width: 17px; height: 17px; }
.stg.sm b { font-size: 14px; }
/* Оплаченные заказы: цвет этапа; неоплаченные корзины — серые. */
.order-stage-wait { --stage-bg: #e6effb; --stage-line: #b4ccea; --stage-ink: #24578c; }
.order-stage-bought { --stage-bg: #fff0df; --stage-line: #edc394; --stage-ink: #8a4c13; }
.order-stage-to_ru { --stage-bg: #fff7d2; --stage-line: #e5d47b; --stage-ink: #705b0d; }
.order-stage-pickup { --stage-bg: #e2f3e8; --stage-line: #b4dbc3; --stage-ink: #24633f; }
.order-stage-delivered { --stage-bg: #c9ebd5; --stage-line: #7fc79a; --stage-ink: #14532d; }
.ocard.is-paid { background: var(--stage-bg, #f2f2f2); border-color: var(--stage-line, #d4d4d4); }
.ocard.is-cart { background: #ececec; border-color: #d4d4d4; }
.ocard.is-paid .ocard-h, .ocard.is-paid .ocard-items { border-color: var(--stage-line, #d4d4d4); }
.ocard.is-cart .ocard-h, .ocard.is-cart .ocard-items { border-color: #d4d4d4; }
.ocard input, .ocard select { background: #fff; }
.ostage-tabs { margin-top: 0; }
.otabs2 .chip.order-stage { background: var(--stage-bg); border-color: var(--stage-line); color: var(--stage-ink); text-align: left; white-space: normal; }
.otabs2 .chip.order-stage.on { border-color: var(--stage-ink); box-shadow: inset 0 0 0 1px var(--stage-ink); }
.ostage-badge { display: inline-block; margin-top: 8px; color: var(--stage-ink); font-weight: 500; font-size: 14px; }
/* шапка: лёгкая рамка, без верхней полоски */
.topbar { display: none; }
.header { top: 10px; margin: 12px clamp(10px, 1.6vw, 22px) 0; padding: 12px clamp(16px, 2vw, 26px); border: 1px solid var(--chalk); border-radius: var(--r-xl); background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(31,43,35,.05); }
@media (max-width: 760px) { .header { margin: 8px 8px 0; padding: 10px 14px; } }

/* цены в юанях (админка) */
.crow.parts { grid-template-columns: minmax(0, 1fr) 96px auto 104px auto; }
.crow.parts > input { min-width: 0; }
.crow.parts > span.muted { white-space: nowrap; }
.crow.parts > input[data-p="sizes"] { grid-column: 1 / 3; }
.crow.parts > label { grid-column: 3 / 5; display: flex; align-items: center; gap: 6px; }
.pricebox .row-gap { display: flex; flex-wrap: wrap; gap: 12px; }
.pricebox .row-gap label { flex: 1 1 140px; }
.aform input.calc { background: #f4f2ee; color: var(--stone); }
.noyuan { color: #a5551c; }
.prtable { border-collapse: collapse; font-size: 14px; color: var(--ink); }
.prtable td { padding: 4px 12px 4px 0; }
.prtable td:last-child { font-weight: 500; }
@media (max-width: 560px) {
  .crow.parts { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .crow.parts > input[data-p="label"], .crow.parts > input[data-p="sizes"], .crow.parts > label, .crow.parts > button { grid-column: 1 / -1; }
}
.aform .two > .field { align-content: start; }

/* каталог: фильтры (бренд — раскрывающийся блок, на мобильном всё сверху и свёрнуто) */
.bfold > summary { list-style: none; margin: 4px 6px 12px; font-size: 14px; font-weight: 600; cursor: default; }
.bfold > summary::-webkit-details-marker { display: none; }
.catnav summary em, .bfold > summary em { display: none; }
.helpbox-m { display: none; }
@media (max-width: 860px) {
  .catside { order: 0; gap: 10px; }
  .catside .panel { padding: 4px 16px; }
  .catside .helpbox { display: none; }
  .helpbox-m { display: block; margin-top: 20px; padding: 16px 18px; }
  .catnav { border: 0; padding: 0; background: none; }
  .catnav summary, .bfold > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; font-size: 15px; font-weight: 600; }
  .catnav summary::after, .bfold > summary::after { content: '▾'; margin-left: auto; color: var(--stone); }
  .catnav details[open] summary::after, .bfold[open] > summary::after { content: '▴'; }
  .catnav summary em, .bfold > summary em { display: inline; font-style: normal; font-weight: 500; color: var(--navy-dark); background: #d9e5d3; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
  .bfold[open] { padding-bottom: 10px; }
}
.mnote-view:first-child, .lines > .mnote:first-child { margin-top: 0; }

/* ссылки на Taobao: несколько, по цветам */
.crow.links { grid-template-columns: minmax(0, 1fr) 190px auto auto; }
.crow.links > * { min-width: 0; }
.tblinks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tblinks li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tblinks .tbc { font-size: 13px; background: var(--wash); border-radius: 999px; padding: 2px 10px; color: var(--ink); }
.product-taobao select { padding: 8px 10px; max-width: 100%; }
@media (max-width: 560px) { .crow.links { grid-template-columns: minmax(0, 1fr) auto; } .crow.links > input, .crow.links > select { grid-column: 1 / -1; } }
.aform [data-act="ladd"] { justify-self: start; }

/* корзина: цена товара в юанях (менеджер) */
.cnyline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 2px; font-size: 14px; }
.cnyline .cnyl { color: var(--stone); }
.cnyin { display: inline-flex; align-items: center; gap: 6px; }
.cnyin input { width: 96px; padding: 6px 10px; font: inherit; font-weight: 600; border: 1px solid var(--chalk); border-radius: 10px; background: #fff; color: var(--ink); }
.cnyin input:hover { border-color: #b9c6b4; } .cnyin input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(74,107,80,.15); }
.cnyprev { color: var(--navy-dark); font-weight: 500; }

/* админка: заказы таблицей — одна строка на заказ, прокрутка вбок, номер и шапка закреплены */
.ewo-wrap { overflow: auto; max-height: calc(100vh - 160px); margin: 12px 0 32px; border: 1px solid var(--chalk); border-radius: var(--r-m); background: var(--white); -webkit-overflow-scrolling: touch; }
.ewo { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; line-height: 1.3; }
.ewo th { position: sticky; top: 0; z-index: 2; background: #f3f5f0; color: var(--stone); font-weight: 500; text-align: left; white-space: nowrap; padding: 9px 10px; border-bottom: 1px solid var(--chalk); }
.ewo td { padding: 5px 10px; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: middle; white-space: nowrap; }
.ewo tr.ewo-row { background: var(--stage-bg, #fff); }
.ewo tr.ewo-row.is-cart { background: #f4f4f2; }
.ewo tr.ewo-row:hover td { box-shadow: inset 0 0 0 999px rgba(0,0,0,.025); }
.ewo th:first-child, .ewo td.oc-code { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 var(--chalk); }
.ewo th:first-child { z-index: 3; background: #f3f5f0; }
.ewo .ewo-code { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ewo .late { display: block; width: fit-content; margin-top: 2px; padding: 0 6px; font-size: 11px; background: #fbeaea; color: #b32d2e; border-radius: 6px; }
.ewo .oc-num { text-align: right; font-variant-numeric: tabular-nums; }
.ewo .ost { color: var(--stone); }
.ewo input, .ewo select { font: inherit; font-size: 13px; height: 30px; min-height: 0; padding: 0 8px; border: 1px solid var(--chalk); border-radius: 8px; background: #fff; color: var(--ink); box-sizing: border-box; }
.ewo .oc-stage select { width: 190px; } .ewo .oc-pay select { width: 130px; }
.ewo .oc-in-num input { width: 90px; text-align: right; } .ewo .oc-track input { width: 150px; } .ewo .oc-dt input { width: 132px; padding-right: 4px; }
.ewo .oc-client { max-width: 190px; white-space: normal; } .ewo .oc-client .muted { font-size: 12px; }
.ewo .oaddr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; width: 220px; font-size: 12px; color: var(--stone); }
.ewo .obtn { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid var(--chalk); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ewo .obtn:hover { border-color: var(--navy); } .ewo .obtn.danger { color: var(--bad); }
.ewo .busy { outline: 2px solid #dba617; } .ewo .ok { outline: 2px solid #46b450; } .ewo .err { outline: 2px solid #d63638; }
.ewo tr.ewo-det { display: none; } .ewo tr.ewo-det.open { display: table-row; }
.ewo tr.ewo-det[hidden], .ewo tr.ewo-row[hidden] { display: none; }
.ewo tr.ewo-det td { background: var(--white); white-space: normal; padding: 10px 14px 14px; }
.ewo tr.ewo-det .oitems { margin: 0; display: grid; gap: 10px; max-width: 900px; position: sticky; left: 14px; }
.ewo tr.ewo-det .oitems li { display: flex; gap: 10px; margin: 0; } .ewo tr.ewo-det .oitems img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; float: none; flex: none; }
.ewo tr.ewo-det .oitf { grid-template-columns: repeat(3, minmax(0, 200px)); }
@media (max-width: 560px) { .ewo tr.ewo-det .oitf { grid-template-columns: 1fr; } .ewo-wrap { max-height: calc(100vh - 120px); } }
.ewo .oc-client { white-space: nowrap; max-width: none; }
.ewo .oc-client .oname, .ewo .oc-client .osub { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.ewo .oc-client .osub { font-size: 12px; }
.ewo .oc-stage select { width: 250px; }
@media (min-width: 1000px) { .ewo-wrap { width: calc(100vw - 48px); margin-left: calc(50% - 50vw + 24px); } }
/* заказы: проверка СДЭК, статус посылки, маржа */
.cdekbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 4px; }
.ewo .oc-cdek { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.ewo .ocdek { font-size: 12px; color: var(--stone); } .ewo .ocdek em { font-style: normal; opacity: .8; }
.ewo .ocdek.ok { color: #1f7a49; font-weight: 600; } .ewo .ocdek.err { color: #b32d2e; }
.ewo .oc-in-num input::placeholder { color: #b9b9b9; }
.ctb { margin: 4px 0 6px; }
/* отслеживание: все этапы, текущий выделен */
.trk-steps-row { align-items: flex-start; }
.trk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; flex: 1 1 300px; min-width: 0; }
.trk-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; color: #9c9c9c; } .trk-steps li > span { padding-top: 7px; }
.trk-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: -12px; width: 2px; border-radius: 1px; background: #e4e4e4; }
.trk-steps li.ts-done:not(:last-child)::after { background: #9fd8b6; }
.trk-steps i { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #f3f3f3; color: #b0b0b0; }
.trk-steps i svg { width: 20px; height: 20px; }
.trk-steps b { font-weight: 400; } .trk-steps small { display: block; font-size: 12px; margin-top: 1px; }
.trk-steps .ts-done { color: var(--stone); } .trk-steps .ts-done i { background: #e0f4e8; color: #27965b; }
.trk-steps .ts-cur i { background: var(--bg); color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.trk-steps .ts-cur b { font-weight: 600; color: var(--ink); } .trk-steps .ts-cur small { color: var(--c); font-weight: 600; }
/* таблица размеров: одно фото во всю ширину, просмотр во весь экран */
.szrail.one a { flex-basis: 100%; }
.szrail a { cursor: zoom-in; }
html.lb-on { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,17,20,.92); }
.lb-sc { position: absolute; inset: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 60px 12px 48px; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.lb-sc img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; cursor: zoom-in; }
.lb.zoom .lb-sc { display: block; }
.lb.zoom .lb-sc img { max-width: none; max-height: none; height: auto; margin: 0 auto; cursor: zoom-out; }
.lb-x, .lb-a { position: absolute; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #15181e; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.lb-x { top: 10px; right: 10px; }
.lb-a { top: 50%; transform: translateY(-50%); } .lb-a.prev { left: 10px; } .lb-a.next { right: 10px; }
.lb-n, .lb-hint { position: absolute; z-index: 2; bottom: 12px; color: rgba(255,255,255,.85); font-size: 13px; pointer-events: none; }
.lb-n { left: 14px; } .lb-hint { right: 14px; }
.lb.zoom .lb-hint { display: none; }
.mgr-steps { margin-bottom: 18px; }

/* архив и выбор заказов галочками */
.ewo .osel, .ewo .osel-all { width: 16px; height: 16px; margin: 0 6px 0 0; padding: 0; vertical-align: -3px; accent-color: var(--navy); }
.obulk { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--navy); border-radius: var(--r-m); background: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.obulk[hidden] { display: none; }
/* способы оплаты */
.paytotal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 14px 0 6px; }
.paytotal b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.paylist { display: grid; gap: 10px; margin: 10px 0 18px; }
.payrow { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(180px, 1.5fr) auto; gap: 14px 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--chalk); border-radius: var(--r-m); background: var(--white); }
.payrow.off { background: #f6f6f4; } .payrow.off .pay-name input[type=text] { color: var(--stone); }
.pay-nm { display: flex; align-items: center; gap: 10px; }
.pay-name input[type=text] { flex: 1; min-width: 0; width: 100%; font: inherit; font-weight: 500; height: 36px; padding: 0 10px; border: 1px solid var(--chalk); border-radius: 8px; box-sizing: border-box; }
.pay-name .small { margin-top: 4px; }
.pswatch { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
label.pswatch { cursor: pointer; } label.pswatch:hover, label.pswatch:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.pswatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pay-sum b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.pbar { height: 6px; margin-top: 8px; border-radius: 3px; background: #eef0ec; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; }
.pchart { display: flex; gap: 14px; align-items: stretch; margin: 8px 0 18px; padding: 16px 16px 12px; border: 1px solid var(--chalk); border-radius: var(--r-m); background: var(--white); overflow-x: auto; }
.pcol { flex: 1 0 84px; display: flex; flex-direction: column; text-align: center; cursor: default; }
.pcol-v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 4px; white-space: nowrap; }
.pcol-bar { height: 170px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--chalk); }
.pcol-bar i { display: block; width: min(72px, 70%); border-radius: 4px 4px 0 0; }
.pcol:hover .pcol-bar i { filter: brightness(1.1); }
.pcol-l { margin-top: 7px; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.pcol-n { font-size: 11px; color: var(--stone); }
.pay-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pay-act .obtn { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid var(--chalk); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.pay-act .obtn:disabled { opacity: .35; cursor: default; } .pay-act .obtn.danger { color: var(--bad); }
.payadd { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.payadd input { flex: 1 1 240px; font: inherit; height: 42px; padding: 0 12px; border: 1px solid var(--chalk); border-radius: 10px; }
@media (max-width: 860px) { .payrow { grid-template-columns: 1fr 1fr; } .pay-act { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 560px) { .pchart { gap: 8px; padding: 12px 10px 10px; } .pcol { flex-basis: 64px; } .pcol-bar { height: 130px; } }
@media (max-width: 480px) { .payrow { grid-template-columns: 1fr; } }
/* вкладки панели управления на узком экране — переносятся, а не вылезают за край */
@media (max-width: 720px) { #ew-manage > .tabs { flex-wrap: wrap; gap: 4px; } #ew-manage > .tabs .tabl { padding: 8px 12px; white-space: nowrap; } }

/* корзина: дата и способ оплаты перед «Оплачено» */
.paidform { display: grid; gap: 10px; margin: 0 0 10px; padding: 12px; border: 1px solid var(--chalk); border-radius: 12px; background: #fafaf8; }
.paidform label { display: grid; gap: 4px; font-size: 13px; color: var(--stone); }
.paidform input, .paidform select { font: inherit; font-size: 15px; color: var(--ink); height: 40px; padding: 0 10px; border: 1px solid var(--chalk); border-radius: 8px; background: #fff; box-sizing: border-box; width: 100%; }
