/*
Theme Name: Elegant White
Description: Светлая тема магазина мужской классики. Работает вместе с плагином Elegant Shop.
Author: Elegant White
Version: 1.0.0
Text Domain: elegant-white
*/
:root {
  --paper: #f4f5f2;
  --white: #ffffff;
  --ink: #15181e;
  --navy: #222e4a;
  --chalk: #dcdfd9;
  --wash: #eceeea;
  --stone: #6a6f78;
  --bad: #a4332b;
  --display: 'Jost', 'Century Gothic', 'Segoe UI', sans-serif;
  --body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 99; }
.muted { color: var(--stone); } .small { font-size: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; letter-spacing: -0.005em; line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 24px; }
.section { padding: clamp(40px, 7vw, 96px) var(--pad); max-width: 1440px; margin: 0 auto; }
.section.top { padding-top: clamp(28px, 4vw, 48px); }
.section.narrow { max-width: 560px; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }
.textlink { background: none; border: 0; padding: 0; font-size: 14px; color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 2px; font-weight: 500; letter-spacing: .01em; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; margin-top: 12px; }
.btn.danger, .btn.ghost.danger { color: var(--bad); border-color: var(--bad); } .btn.ghost.danger:hover { background: var(--bad); color: #fff; }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); background: rgba(244,245,242,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--chalk); }
.logo { font-family: var(--display); font-size: 1.45rem; font-weight: 400; letter-spacing: .04em; }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; line-height: 1; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1440px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--pad); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 28px; max-width: 12em; }
.lead { font-size: 1.1rem; max-width: 34em; color: #3b4048; margin: 0 0 36px; }
.hero-visual { position: relative; padding: 28px 0 28px 12%; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(34,46,74,.07) 22px 23px); }
.hero-main { position: relative; display: block; aspect-ratio: 4/5; background: var(--wash); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-second { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 3/4; border: 8px solid var(--paper); background: var(--wash); }
.hero-second img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tag { position: absolute; right: -14px; bottom: 11%; display: grid; gap: 2px; padding: 14px 18px 14px 26px; width: min(240px, 58%); background: var(--white); box-shadow: 0 10px 28px rgba(21,24,30,.14); font-size: 13px; line-height: 1.35; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transition: transform .3s; }
.tag::before { content: ''; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--chalk); }
.tag b { font-weight: 500; font-size: 14px; } .tag span { color: var(--stone); }
.tag .tag-price { color: var(--ink); font-family: var(--display); font-size: 1.25rem; margin-top: 4px; }
.hero-main:hover .tag { transform: rotate(-2deg) translateX(-4px); }

/* разделы главной */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px); margin-top: 28px; }
.cat { display: grid; gap: 2px; }
.cat-img { aspect-ratio: 4/5; overflow: hidden; background: var(--wash); margin-bottom: 10px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-name { font-family: var(--display); font-size: 1.3rem; }
.steps ol { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 24px 8px 0; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2rem; font-weight: 300; color: var(--navy); }
.steps b { font-weight: 500; font-size: 1.05rem; } .steps li span { color: #4a4f57; font-size: 15px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--navy); color: #fff; max-width: none; margin-top: 24px; }
.band > * { max-width: 700px; } .band p { margin: 8px 0 0; opacity: .85; }
.band .btn { background: #fff; color: var(--navy); border-color: #fff; } .band .btn:hover { background: var(--paper); }

/* каталог */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 16px; border: 1px solid var(--chalk); background: transparent; border-radius: 999px; font-size: 14px; }
.chip span { color: var(--stone); font-size: 12px; } .chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chip.on span { color: #bbb; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea { padding: 10px 12px; background: var(--white); border: 1px solid var(--chalk); border-radius: 2px; min-height: 42px; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(34,46,74,.12); }
input.bad { border-color: var(--bad); } .err { color: var(--bad); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px) clamp(12px, 2vw, 28px); }
.card { position: relative; }
.card-img { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--wash); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s; }
.card-img .alt { opacity: 0; } .card:hover .card-img .alt { opacity: 1; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--stone); font-size: 13px; }
.card-info { display: grid; gap: 1px; padding-top: 12px; }
.brand { font-size: 13px; color: var(--stone); letter-spacing: .04em; }
.title { font-weight: 500; line-height: 1.35; }
.price { font-family: var(--display); font-size: 1.15rem; margin-top: 2px; }
.dots { display: flex; gap: 4px; align-items: center; margin-top: 6px; } .dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); } .dots em { font-size: 12px; color: var(--stone); font-style: normal; }
.like { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); transition: transform .15s; }
.like:hover { transform: scale(1.08); } .like.on { color: var(--navy); }
.like.big { position: static; width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; border-radius: 2px; }

/* товар */
.back { display: inline-block; margin-bottom: 18px; color: var(--stone); font-size: 14px; } .back::before { content: '←  '; } .back:hover { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; position: sticky; top: 84px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 80vh; overflow: auto; scrollbar-width: none; }
.thumb { padding: 0; border: 1px solid transparent; background: var(--wash); aspect-ratio: 4/5; flex-shrink: 0; opacity: .7; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; border-color: var(--ink); }
.mainimg { aspect-ratio: 4/5; background: var(--wash); } .mainimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.opt-h .textlink { margin-left: auto; }
.pinfo h1 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: 4px 0 10px; }
.pprice { font-family: var(--display); font-size: 1.9rem; margin-bottom: 24px; }
.opt { margin-bottom: 22px; } .opt-h { display: flex; justify-content: flex-start; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--stone); } .opt-h b { color: var(--ink); font-weight: 500; }
.swatches, .sizes, .seg { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; padding: 3px; border: 1px solid transparent; border-radius: 50%; background: transparent; } .sw i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sw:hover { border-color: var(--chalk); } .sw.on { border-color: var(--ink); }
.size { min-width: 52px; min-height: 46px; padding: 0 14px; background: var(--white); border: 1px solid var(--chalk); border-radius: 2px; } .size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button { display: grid; text-align: left; padding: 10px 16px; background: var(--white); border: 1px solid var(--chalk); border-radius: 2px; } .seg button span { color: var(--stone); font-size: 13px; }
.seg button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.warn { color: var(--bad); font-size: 14px; margin-top: 8px; }
.desc { margin: 28px 0 8px; max-width: 34em; }
.specs { margin: 0; border-top: 1px solid var(--chalk); } .specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--chalk); font-size: 15px; } .specs dt { color: var(--stone); } .specs dd { margin: 0; }

/* корзина, заявка */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.line { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--chalk); }
.line:first-child { border-top: 1px solid var(--chalk); }
.lthumb { display: block; width: 88px; aspect-ratio: 4/5; background: var(--wash); flex-shrink: 0; overflow: hidden; } .lthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.linfo { display: grid; gap: 2px; justify-items: start; }
.qty { display: flex; align-items: center; gap: 12px; } .qty button { width: 32px; height: 32px; border: 1px solid var(--chalk); background: var(--white); border-radius: 50%; } .qty button:hover { border-color: var(--ink); } .qty.static { color: var(--stone); }
.lsum { min-width: 96px; text-align: right; font-family: var(--display); font-size: 1.15rem; }
.line.gone .linfo, .line.gone .lsum, .aitem-row.gone .grow { opacity: .45; text-decoration: line-through; }
.chg { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #fff3d6; color: #6a4c00; font-size: 13px; border-radius: 2px; text-decoration: none; }
.checkout { background: var(--white); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--chalk); position: sticky; top: 84px; }
.checkout h2 { font-size: 1.5rem; margin-bottom: 8px; }
.checkout label, .field { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--stone); }
.checkout label input, .checkout label textarea { color: var(--ink); font-size: 16px; }
.req { color: var(--navy); font-size: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 6px; font-size: 1.05rem; } .total b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.notice { padding: 16px 20px; background: #e6eef9; border-left: 3px solid var(--navy); margin-bottom: 24px; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; background: var(--wash); color: var(--ink); white-space: nowrap; }
.s-new { background: #e6eef9; color: var(--navy); } .s-work { background: #fff3d6; color: #6a4c00; } .s-pay { background: #fde6d8; color: #8a3b0f; } .s-paid, .s-sent { background: #dff0e1; color: #1f5d2a; } .s-cancel { background: #f3dedb; color: var(--bad); }
.note { background: var(--paper); padding: 12px 14px; border-left: 3px solid var(--navy); margin: 8px 0 0; }
.log { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; font-size: 14px; } .log time { display: block; color: var(--stone); font-size: 12px; }
.olist { display: grid; border-top: 1px solid var(--chalk); } .orow { display: grid; grid-template-columns: 140px 1fr auto 120px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--chalk); } .orow:hover { background: var(--wash); }
.empty { padding: clamp(32px, 8vw, 96px) 0; display: grid; gap: 16px; justify-items: start; } .empty.wide { grid-column: 1/-1; } .empty p { margin: 0; max-width: 32em; font-size: 1.05rem; }

/* футер, toast */
.footer { margin-top: 40px; border-top: 1px solid var(--chalk); padding: 40px var(--pad); } .footer-in { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; } .footer a:hover { text-decoration: underline; } .footer p { margin: 8px 0 0; max-width: 28em; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 14px 22px; background: var(--ink); color: #fff; border-radius: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: up .25s ease-out; } .toast a { color: #fff; text-decoration: underline; margin-left: 10px; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }

/* админка */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--chalk); margin-bottom: 28px; } .tabs button { padding: 12px 20px; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--stone); } .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.alayout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.alist { display: grid; gap: 8px; } .aitem { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 12px 14px; background: var(--white); border: 1px solid var(--chalk); border-radius: 2px; } .aitem.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } .aitem span.muted { grid-column: 1; } .aitem span.small:last-child { grid-column: 2; grid-row: 2; }
.apanel, .aform { background: var(--white); border: 1px solid var(--chalk); padding: clamp(18px, 3vw, 32px); } .aform { max-width: 520px; display: grid; gap: 14px; } .aform.wide { max-width: 860px; }
.aform label { display: grid; gap: 6px; font-size: 14px; color: var(--stone); }
.aitem-row, .prow { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--chalk); } .prow.gone { opacity: .55; }
.selects { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; } .selects label { display: grid; gap: 2px; font-size: 12px; color: var(--stone); } .selects input[type=number] { width: 80px; } .selects select { min-width: 90px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.crow { display: grid; grid-template-columns: 1fr 56px 140px auto; gap: 8px; align-items: center; margin-bottom: 8px; } .crow input[type=color] { padding: 2px; height: 42px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 12px; } .photo { display: grid; gap: 4px; cursor: grab; } .photo.dragover { outline: 2px solid #111; outline-offset: 2px; } .photo > :first-child, .photo img { aspect-ratio: 4/5; width: 100%; object-fit: cover; background: var(--wash); }
.check { display: flex !important; align-items: center; gap: 10px !important; color: var(--ink) !important; } .check input { width: 18px; height: 18px; min-height: 0; }
.ptable { border-top: 1px solid var(--chalk); background: var(--white); padding: 0 16px; }

@media (max-width: 960px) {
  .hero, .pgrid, .cartgrid, .alayout { grid-template-columns: 1fr; }
  .hero-visual { padding-left: 14%; max-width: 560px; }
  .cats, .grid { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .gallery, .checkout { position: static; }
  .gallery { grid-template-columns: minmax(0, 1fr); } .gallery .mainwrap { order: -1; } .thumbs { flex-direction: row; max-height: none; overflow-x: auto; } .thumb { width: 64px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header { flex-direction: column; gap: 8px; } .line { grid-template-columns: 72px 1fr; } .line .qty, .line .lsum { grid-column: 2; } .lsum { text-align: left; }
  .lthumb { width: 72px; } .two, .crow { grid-template-columns: 1fr; } .orow { grid-template-columns: 1fr 1fr; } .specs div { grid-template-columns: 110px 1fr; }
  .steps ol { grid-template-columns: 1fr; } .aitem-row, .prow { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* вход и личный кабинет */
.navbtn { padding: 8px 20px; background: transparent; border: 1px solid var(--ink); border-radius: 2px; font-size: 15px; transition: background .15s, color .15s; }
.navbtn:hover { background: var(--ink); color: #fff; }
.nav a:has(.ava) { display: inline-flex; align-items: center; gap: 8px; }
.ava { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-size: 1.8rem; flex-shrink: 0; }
.ava.sm { width: 26px; height: 26px; font-size: 13px; font-family: var(--body); }
.tgbtn { gap: 10px; background: #229ed9; border-color: #229ed9; } .tgbtn:hover { background: #1b87b9; border-color: #1b87b9; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(21,24,30,.5); }
.modal-box { position: relative; width: min(440px, 100%); max-height: 94vh; overflow: auto; padding: 32px; background: var(--paper); border-radius: 2px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal-box h2 { margin-bottom: 18px; }
.mx { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--stone); } .mx:hover { color: var(--ink); }
.msteps { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 6px; }
.demo { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--chalk); } .demo p { margin: 0; color: var(--stone); } .demo .btn.block { margin-top: 2px; }
body.noscroll { overflow: hidden; }
.notice.slim { padding: 10px 14px; margin: 12px 0 0; font-size: 14px; }
.whoami { display: flex; gap: 12px; align-items: center; margin: 16px 0 0; padding: 12px 14px; background: var(--paper); line-height: 1.35; }
.profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--chalk); }
.profile h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.orow2 { display: grid; grid-template-columns: 112px 1fr auto 110px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--chalk); } .orow2:hover { background: var(--wash); }
.strip { display: flex; } .strip i { width: 36px; aspect-ratio: 4/5; margin-right: -10px; border: 2px solid var(--paper); background: var(--wash); overflow: hidden; } .strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.links { list-style: none; margin: 12px 0 0; padding: 0; } .links li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--chalk); } .links a:hover { text-decoration: underline; }
@media (max-width: 960px) { .acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .orow2 { grid-template-columns: 1fr auto; } .strip { grid-column: 1/-1; } .modal-box { padding: 24px 20px; } }
.cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.cat-name { font-size: 1.1rem; }

/* заказ: этапы, код входа, загрузка */
.codebox { display: grid; justify-items: center; gap: 2px; margin: 16px 0; padding: 14px; background: var(--white); border: 1px dashed var(--chalk); } .codebox b { font-family: var(--display); font-size: 2.4rem; letter-spacing: .2em; font-weight: 400; }
.waiting { margin: 14px 0 0; text-align: center; }
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 110px; padding: 10px 8px 0 0; border-top: 2px solid var(--chalk); font-size: 13px; color: var(--stone); }
.stepper li.done { border-top-color: var(--navy); color: var(--ink); } .stepper li.cur { border-top-color: var(--navy); color: var(--navy); font-weight: 600; }
.notice.bad { background: #f3dedb; border-color: var(--bad); }
.checkout textarea { width: 100%; }

/* WordPress */
.loading { padding: 40px var(--pad); color: var(--stone); }
.narrow-text { max-width: 820px; }
.entry > * + * { margin-top: 1em; } .entry img { height: auto; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.linkbox { display: flex; gap: 8px; margin: 10px 0; } .linkbox input { flex: 1; min-width: 0; font-size: 14px; }
.stack > * + * { margin-top: 10px; }
.line .sel { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; } .line .sel select { min-height: 36px; padding: 4px 8px; font-size: 14px; }
.sr { display: contents; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--stone); margin-top: 4px; } .check-line input { min-height: 0; width: 16px; height: 16px; }
.line.na .linfo .title, .line.na .lsum { text-decoration: line-through; opacity: .5; }
.line .lthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* панель управления */
.tabs .tabl { padding: 12px 20px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--stone); } .tabs .tabl.on { color: var(--ink); border-bottom-color: var(--ink); }
.importbox { padding: 12px 14px; background: var(--paper); border: 1px dashed var(--chalk); } .importbox summary { cursor: pointer; font-weight: 500; } .importbox textarea { width: 100%; margin: 8px 0; }
.crow.parts { grid-template-columns: 1fr 120px auto auto; }
.aform .field input, .aform .field select, .aform .field textarea { width: 100%; color: var(--ink); }
.prow .lthumb { width: 56px; } .prow { flex-wrap: wrap; }
.sizechart { margin-top: 56px; scroll-margin-top: 90px; } .sizechart h2 { margin: 0 0 16px; font-weight: 400; } .sizechart img { display: block; width: 100%; max-width: 720px; height: auto; border: 1px solid var(--chalk); background: #fff; }
.sizeimg-edit { display: grid; gap: 8px; margin: 6px 0 14px; } .sizeimg-edit img { max-width: 260px; height: auto; border: 1px solid var(--chalk); }

/* каталог: список разделов слева */
.catlayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.catnav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 15px; }
.catnav summary { font-family: var(--display); font-size: 1.15rem; padding-bottom: 12px; cursor: default; list-style: none; } .catnav summary::-webkit-details-marker { display: none; }
.catnav ul { list-style: none; margin: 0; padding: 0; } .catnav > details > ul { border-top: 1px solid var(--chalk); }
.catnav li > a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ink); } .catnav li > a span { color: var(--stone); font-size: 12px; align-self: center; }
.catnav li > a.top { font-weight: 500; } .catnav li > a:hover { color: var(--navy); }
.catnav li > a.on { color: var(--navy); font-weight: 500; box-shadow: inset 2px 0 0 var(--navy); padding-left: 10px; }
.catnav li > ul { display: none; padding: 0 0 8px 12px; } .catnav li.open > ul { display: block; } .catnav li li > a { padding: 6px 0; color: var(--stone); } .catnav li li > a.on, .catnav li li > a:hover { color: var(--navy); }
.catlayout .grid { grid-template-columns: repeat(3, 1fr); }
.toolbar { justify-content: flex-end; }
.card .mat { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--stone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.total-box { margin-top: 22px; border-top: 1px solid var(--chalk); } .total-box .trow { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--stone); } .total-box .total { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--chalk); }
@media (max-width: 960px) {
  .catlayout { grid-template-columns: 1fr; gap: 20px; } .catnav { position: static; max-height: none; border: 1px solid var(--chalk); padding: 0 16px; background: #fff; }
  .catnav summary { cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; } .catnav summary::after { content: '▾'; color: var(--stone); } .catnav details[open] summary::after { content: '▴'; }
  .catlayout .grid { grid-template-columns: repeat(2, 1fr); } .toolbar { justify-content: stretch; } .filters { width: 100%; } .filters input[type=search] { flex: 1 1 100%; }
}
.cartgrid > *, .pgrid > *, .catlayout > * { min-width: 0; } .sel { flex-wrap: wrap; } .sel select { max-width: 100%; }
@media (max-width: 960px) { .cartgrid { grid-template-columns: minmax(0, 1fr); } }
.nav a { white-space: nowrap; } .nav .count { margin-left: 4px; }

/* Страница «Оформление» */
.how-head { background: var(--navy); color: #fff; padding: clamp(40px, 8vw, 96px) var(--pad); }
.how-head-in { max-width: 1440px; margin: 0 auto; display: grid; gap: 16px; justify-items: start; }
.how-head .h1 { margin: 0; max-width: 14em; }
.how-lead { margin: 0; max-width: 34em; font-size: 1.15rem; line-height: 1.55; color: #dfe3ec; }
.how-meta { margin: 0; color: #aeb6c8; }
.how-head .btn { background: #fff; color: var(--navy); border-color: #fff; margin-top: 8px; } .how-head .btn:hover { background: var(--paper); }
.how-sec { padding: clamp(32px, 6vw, 72px) var(--pad); max-width: 1440px; margin: 0 auto; }
.how-sec p { margin: 0 0 .8em; max-width: 38em; line-height: 1.6; }
.how-h { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 20px; }
.how-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--chalk); }
.how-steps li { display: grid; grid-template-columns: clamp(56px, 9vw, 120px) minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--chalk); }
.how-n { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; color: var(--navy); }
.how-steps h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.how-steps p { margin: 0; max-width: 42em; line-height: 1.6; color: #343942; }
.how-steps a { color: var(--navy); text-decoration: underline; }
.how-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.how-ph { padding: 28px 20px; border: 1px dashed var(--stone); color: var(--stone); background: var(--wash); max-width: 38em; }
.how-note { padding-top: 20px; border-top: 2px solid var(--navy); }
.how-faq { border-top: 1px solid var(--chalk); max-width: 820px; }
.how-faq details { border-bottom: 1px solid var(--chalk); }
.how-faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 500; list-style: none; position: relative; }
.how-faq summary::-webkit-details-marker { display: none; }
.how-faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 300; }
.how-faq details[open] summary::after { content: '\2212'; }
.how-faq details p { margin: 0 0 20px; max-width: 40em; line-height: 1.6; color: #343942; }
.how-end { background: var(--wash); padding: clamp(36px, 6vw, 72px) var(--pad); display: grid; gap: 12px; justify-items: start; }
.how-end h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); } .how-end p { margin: 0; }
@media (max-width: 760px) { .how-two { grid-template-columns: minmax(0, 1fr); } .how-steps li { grid-template-columns: 48px minmax(0, 1fr); } }
.sizechart a { display: block; } .sizechart a + a, .sizechart a + p { margin-top: 12px; }
.pinfo .sizechart { margin-top: 32px; } .pinfo .sizechart h2 { font-size: 1.15rem; } .pinfo .sizechart img { max-width: 100%; }

/* Вкладки «Описание / Размеры» */
.tabs { display: flex; gap: clamp(18px, 3vw, 32px); margin-top: 32px; border-bottom: 1px solid var(--chalk); }
.tab { background: none; border: 0; padding: 0 0 12px; margin-bottom: -1px; font: inherit; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); cursor: pointer; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); } .tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.tabpanel { padding-top: 20px; } .tabpanel .desc { margin-top: 0; }
.pinfo .sizechart { margin-top: 0; }
button.textlink { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Обувь: фото целиком, без обрезки */
.card.shoe .card-img { aspect-ratio: 1/1; } .card.shoe .card-img img { object-fit: contain; object-position: center; }
.gallery.shoe .mainimg { aspect-ratio: 1/1; } .gallery.shoe .mainimg img { object-fit: contain; object-position: center; }
.gallery.shoe .thumb { aspect-ratio: 1/1; } .gallery.shoe .thumb img { object-fit: contain; }
.card.shoe .card-img, .gallery.shoe .mainimg, .gallery.shoe .thumb { background: #fff; }
.card.shoe .card-img { aspect-ratio: 4/3; } .gallery.shoe .mainimg { aspect-ratio: 4/3; } .gallery.shoe .thumb { aspect-ratio: 4/3; }
.card.shoe .card-img, .gallery.shoe .mainimg, .gallery.shoe .thumb { aspect-ratio: 1/1; }
.cat-img.shoe { background: #f2f2f2; } .cat-img.shoe img { object-fit: contain; object-position: center; }

/* Разделы: стрелка рядом с названием, числа ровным столбцом справа */
.catnav .row { display: flex; align-items: center; }
.catnav .row > a { display: block; flex: 0 1 auto; padding: 9px 0; color: var(--ink); } .catnav .row > a:hover { color: var(--navy); }
.catnav .row > a.on { color: var(--navy); font-weight: 500; box-shadow: inset 2px 0 0 var(--navy); padding-left: 10px; }
.catnav .cnt { margin-left: auto; color: var(--stone); font-size: 12px; font-variant-numeric: tabular-nums; }
.catnav li > a span { font-variant-numeric: tabular-nums; }
.catnav .tgl { position: relative; flex: 0 0 auto; width: 30px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.catnav .tgl::before { content: ''; position: absolute; left: 11px; top: 12px; width: 7px; height: 7px; border-right: 1.5px solid var(--stone); border-bottom: 1.5px solid var(--stone); transform: rotate(45deg); transition: transform .2s; }
.catnav li.open > .row > .tgl::before { transform: rotate(225deg); top: 16px; }
.catnav .tgl:hover::before { border-color: var(--navy); } .catnav .tgl:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* Данные для доставки в корзине */
.delivery-data { margin: 0 0 28px; padding: 20px clamp(16px, 2.4vw, 28px) 24px; background: #fff; border: 1px solid var(--chalk); }
.delivery-data h2 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 400; }
.cfgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; } .cf { display: grid; gap: 6px; font-size: 13px; color: var(--stone); }
.cf input { min-height: 44px; padding: 0 12px; border: 1px solid var(--chalk); background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); border-radius: 2px; } .cf input:focus { outline: 2px solid var(--navy); outline-offset: -1px; background: #fff; }
.cf b { font-weight: 400; font-size: 15px; color: var(--ink); }
@media (max-width: 760px) { .cfgrid { grid-template-columns: 1fr; } }

/* Обувь в корзине: фото целиком */
.lthumb.shoe { aspect-ratio: 1/1; background: #fff; } .lthumb.shoe img, .line .lthumb.shoe img { object-fit: contain; object-position: center; }

/* Цвета: крупные квадраты под главным фото */
.mainwrap { min-width: 0; } .colorpick { margin-top: 18px; } .colorpick .opt-h { margin-bottom: 10px; }
.swatches.sq { gap: 10px; }
.swatches.sq .sw { width: 64px; height: 64px; padding: 4px; border-radius: 0; border: 1px solid var(--chalk); background: #fff; }
.swatches.sq .sw i { border-radius: 0; }
.swatches.sq .sw:hover { border-color: var(--stone); } .swatches.sq .sw.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatches.sq .sw:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 960px) { .swatches.sq .sw { width: 56px; height: 56px; } }

/* Каталог: цвета крупными квадратами сразу под фото */
.card .dots { gap: 6px; margin: 10px 0 0; flex-wrap: wrap; }
.card .dots i { width: 26px; height: 26px; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.card .dots em { font-size: 13px; align-self: center; margin-left: 2px; }
/* на странице товара цвета снова кружками справа */
.swatches.sq { gap: 10px; }

/* Страницы каталога */
.catmain { min-width: 0; }
.pager { margin-top: 40px; } .pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--chalk); background: #fff; color: var(--ink); }
.pager a:hover { border-color: var(--ink); } .pager .current { background: var(--navy); border-color: var(--navy); color: #fff; } .pager .dots { border-color: transparent; background: none; }

/* Панель управления: поиск и объединение товаров */
.findbox { width: 100%; max-width: 420px; min-height: 44px; margin: 4px 0 12px; padding: 0 14px; border: 1px solid var(--chalk); background: #fff; font: inherit; border-radius: 2px; }
.mergebar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 52px; padding: 8px 16px; margin-bottom: 8px; background: var(--paper); border: 1px dashed var(--chalk); }
.mergebar.on { background: #fff; border: 1px solid var(--navy); }
.pick { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; cursor: pointer; } .pick input { width: 20px; height: 20px; accent-color: var(--navy); cursor: pointer; }
.prow[hidden] { display: none; }

/* стрелки листания фото на странице товара */
.mainwrap { position: relative; }
.mainimg { touch-action: pan-y; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); font-size: 26px; line-height: 1; padding: 0 0 3px; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.18); transition: background .15s; }
.gnav:hover { background: #fff; }
.gnav.prev { left: 10px; } .gnav.next { right: 10px; }
.gcount { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.mainwrap { align-self: start; }
.lcolor { font-size: 13px; color: var(--stone); margin: 2px 0 6px; } .lcolor b { color: var(--ink); font-weight: 500; }

.filedrop { outline: 3px dashed #111; outline-offset: -6px; }

.cblock { margin-bottom: 14px; } .cpick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cth { position: relative; width: 56px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; } .cth img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; } .cth span { position: absolute; left: 2px; bottom: 2px; font-size: 11px; background: #fff; padding: 0 4px; } .cth.on { border-color: #111; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .chip { border: 1px solid #bbb; background: #fff; padding: 4px 10px; border-radius: 14px; font: inherit; font-size: 13px; cursor: pointer; } .chip:hover { border-color: #111; }
.sizedrop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed #bbb; padding: 14px; margin-bottom: 10px; } .sizedrop img { max-height: 120px; width: auto; }
