/* ═══════════════════════════════════════════════════════
   SortY — design system
   ═══════════════════════════════════════════════════════ */

:root {
  --blue: #0045D0;
  --blue-600: #0039AD;
  --blue-400: #3B74FF;
  --blue-50: #EEF3FF;
  --blue-25: #F5F8FF;
  --ink: #0E1726;
  --ink-2: #303846;
  --muted: #6B7280;
  --muted-2: #9AA1AD;
  --line: #E6E8EC;
  --soft: #F3F4F6;
  --soft-2: #F7F8FA;
  --bg: #FFFFFF;
  --navy: #0D1322;
  --navy-2: #161E31;
  --green: #12A150;
  --green-50: #EAF8F0;
  --red: #E0352B;
  --red-50: #FDEDEC;
  --amber: #C97A06;
  --amber-50: #FFF6E5;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 4px 16px rgba(14, 23, 38, .06);
  --shadow-lg: 0 12px 40px rgba(14, 23, 38, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-bottom: 56px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap; user-select: none;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: #E9EBEF; }
.btn-danger-soft { background: var(--red-50); color: var(--red); }
.btn-danger-soft:hover { background: #FBDAD7; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; height: 42px; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; color: var(--ink); transition: background .15s;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn.soft { background: var(--soft); }
.icon-btn.soft:hover { background: #E9EBEF; }

.badge-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: 14px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── Header ────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { flex: none; display: block; margin: 0 28px 0 12px; }
.logo img { height: 31px; width: auto; }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid transparent; border-radius: 10px;
  background: var(--soft); font-size: 14px; outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { background: #fff; border-color: var(--blue); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-2); pointer-events: none; }
.catalog-btn { height: 44px; padding: 0 26px; margin-left: 8px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 20px; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px;
  background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13px; margin-right: 6px; }
.balance-pill .icon { width: 17px; height: 17px; }
.balance-pill:hover { background: #E2EAFE; }

.catalog-panel { border-top: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 20px 0 24px; }
.catalog-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.catalog-link:hover { background: var(--soft); }
.catalog-link.strong { color: var(--blue); }
.catalog-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); }
.catalog-ico .icon { width: 22px; height: 22px; stroke-width: 1.5; }

/* ── Drawer ────────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13,19,34,.45); z-index: 90; animation: fade .2s; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(340px, 88vw); background: #fff;
  transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; padding: 16px 16px 32px;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-head img { height: 24px; width: auto; }
.drawer-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px;
  border-radius: var(--r); background: var(--blue-50); margin-bottom: 8px; }
.drawer-balance small { display: block; color: var(--muted); font-size: 12px; }
.drawer-balance b { color: var(--blue); font-size: 17px; }
.drawer-label { margin: 18px 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.drawer-nav a, .drawer-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; font-weight: 500; font-size: 15px; text-align: left; }
.drawer-nav a:hover, .drawer-nav button:hover { background: var(--soft); }
.drawer-nav .icon { width: 20px; height: 20px; color: var(--ink-2); stroke-width: 1.6; }

/* ── Toasts ────────────────────────────────────────── */
.toasts { position: fixed; top: calc(var(--header-h) + 10px); right: 20px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 16px; border-radius: var(--r); background: var(--ink);
  color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toast-in .25s ease; }
.toast .icon { width: 20px; height: 20px; margin-top: 1px; }
.toast span { flex: 1; }
.toast-success .icon:first-child { color: #4ADE80; }
.toast-error { background: #2B0E0C; } .toast-error .icon:first-child { color: #FF7A70; }
.toast-warning .icon:first-child { color: #FBBF24; }
.toast-close { color: rgba(255,255,255,.6); } .toast-close:hover { color: #fff; }
.toast-close .icon { width: 18px; height: 18px; margin: 0; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: .25s; }

/* ── Home: hero ────────────────────────────────────── */
.home { padding-top: 8px; }
.hero { position: relative; height: 330px; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade { position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 0% 10%, rgba(0, 69, 208, .85) 0%, rgba(0, 69, 208, .25) 38%, transparent 62%),
    linear-gradient(90deg, #0A0F1C 0%, #0A0F1C 30%, rgba(10,15,28,.75) 48%, rgba(10,15,28,0) 72%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; padding: 0 64px; max-width: 620px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #9DB6F5; margin-bottom: 14px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.04; text-transform: uppercase; letter-spacing: -.01em; }
.hero-title span { color: var(--blue-400); }
.hero-sub { margin: 14px 0 24px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; }
.hero .btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }
.hero-nav { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hero-count { color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.hero-count b { color: #fff; font-weight: 600; }
.hero-progress { width: 36px; height: 2px; background: rgba(255,255,255,.25); margin-right: 10px; overflow: hidden; }
.hero-progress i { display: block; height: 100%; width: 0; background: #fff; }
.round-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  color: #fff; transition: background .15s, color .15s; }
.round-btn:hover { background: #fff; color: var(--ink); }
.round-btn .icon { width: 18px; height: 18px; }
.hero-default { background: radial-gradient(90% 140% at 100% 100%, #13244F 0%, var(--navy) 60%); }
.hero-mark { position: absolute; right: -40px; bottom: -36px; width: 66%; max-width: 760px; opacity: .07; transform: rotate(-8deg); }
.hero-product { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.75) 70%, rgba(255,255,255,0)); display: grid; place-items: center; }
.hero-product img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }

/* ── Home: categories ──────────────────────────────── */
.cat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
.cat-tile { position: relative; height: 118px; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #1B1F27 0%, #0E1117 100%); transition: transform .2s; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile > img { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; z-index: -1; filter: grayscale(.2) brightness(.8); transition: transform .4s; }
.cat-tile:hover > img { transform: scale(1.05); }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,17,23,.96) 22%, rgba(14,17,23,.55) 60%, rgba(14,17,23,.2)); }
.cat-ghost { position: absolute; right: -6px; bottom: -14px; z-index: -1; color: rgba(255,255,255,.08); }
.cat-ghost .icon { width: 120px; height: 120px; stroke-width: 1.2; }
.cat-ico { position: absolute; left: 18px; top: 20px; }
.cat-ico .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.cat-name { position: absolute; left: 18px; bottom: 18px; right: 48px; font-weight: 600; font-size: 14px; line-height: 1.25; }
.cat-arrow { position: absolute; right: 16px; bottom: 16px; }
.cat-arrow .icon { width: 18px; height: 18px; }

/* ── Sections ──────────────────────────────────────── */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 20px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }

/* ── Product grid & card ───────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pgrid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--soft); border-radius: var(--r); padding: 10px;
  transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { display: block; aspect-ratio: 1 / 1.02; border-radius: 10px; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #C9CDD4; }
.pcard-placeholder .icon { width: 46%; height: 46%; stroke-width: 1; }
.pcard.is-out .pcard-media { opacity: .55; }
.pbadge { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.fav-btn { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink); transition: background .15s, color .15s, transform .15s; }
.fav-btn:hover { background: #fff; }
.fav-btn .icon { width: 19px; height: 19px; stroke-width: 1.7; }
.fav-btn.active { color: var(--red); }
.fav-btn.active .icon { fill: currentColor; }
.fav-btn.pop { animation: pop .3s; }
.pcard-body { padding: 10px 4px 2px; display: flex; flex-direction: column; flex: 1; }
.pcard-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title:hover { color: var(--blue); }
.pcard-sub { color: var(--muted-2); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; min-width: 0; }
.pcard-price b { font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.pcard-price s { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.cart-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink);
  transition: background .15s, color .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cart-btn:hover { background: var(--blue); color: #fff; }
.cart-btn .icon { width: 19px; height: 19px; }
.cart-btn.added { background: var(--green); color: #fff; }
.pcard-out { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Perks & promo ─────────────────────────────────── */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; padding: 22px 0; border-radius: var(--r);
  background: var(--blue-25); }
.perk { display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.perk + .perk { border-left: 1px solid #DCE3F3; }
.perk > .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; }
.perk b { display: block; font-size: 14px; font-weight: 700; }
.perk span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

.promo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px;
  padding: 26px 40px; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(70% 160% at 72% 50%, #1D2F66 0%, #0E1530 45%, #0A0F1E 75%); }
.promo::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 7px, rgba(255,255,255,.025) 7px 8px); }
.promo-label { position: absolute; left: 52%; top: 50%; z-index: -1; width: 230px; height: 64px; padding: 16px 24px; border-radius: 6px;
  transform: translate(-50%, -30%) rotate(-14deg); background: linear-gradient(160deg, #1A1F2B, #0E121B);
  box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.promo-label img { width: 100%; opacity: .55; }
.promo h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; margin: 2px 0 6px; }
.promo h2 span { color: var(--blue-400); }
.promo p { color: rgba(255,255,255,.8); font-size: 14px; }
.promo .eyebrow { margin-bottom: 6px; color: #C3CEE9; }

/* ── Footer ────────────────────────────────────────── */
.footer { position: relative; background: var(--navy); color: #fff; padding: 36px 0 34px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.6fr; gap: 32px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin: 12px 0 18px; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-brand small { color: rgba(255,255,255,.45); font-size: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col > a { display: block; color: rgba(255,255,255,.65); font-size: 13px; padding: 3px 0; transition: color .15s; }
.footer-col > a:hover { color: #fff; }
.socials { display: flex; gap: 6px; margin-bottom: 14px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: rgba(255,255,255,.75); transition: background .15s, color .15s; }
.socials a:hover { background: rgba(255,255,255,.1); color: #fff; }
.socials .icon { width: 20px; height: 20px; }
.footer-phone { font-weight: 600; color: #fff !important; }
.footer-news p { color: rgba(255,255,255,.6); font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; }
.news-form { position: relative; max-width: 300px; }
.news-form input { width: 100%; height: 42px; padding: 0 48px 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: #fff; outline: none; font-size: 13px; }
.news-form input::placeholder { color: rgba(255,255,255,.45); }
.news-form input:focus { border-color: rgba(255,255,255,.6); }
.news-form button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; }
.news-form button:hover { background: rgba(255,255,255,.1); }
.news-form .icon { width: 18px; height: 18px; }
.to-top { position: absolute; right: 24px; bottom: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .15s, color .15s; }
.to-top:hover { background: #fff; color: var(--ink); }
.to-top .icon { width: 18px; height: 18px; }

/* ── Breadcrumbs ───────────────────────────────────── */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 18px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs .icon { width: 14px; height: 14px; color: var(--muted-2); }
.crumbs span:last-child { color: var(--ink-2); }

/* ── Catalog ───────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--soft);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s; }
.chip:hover { background: #E9EBEF; }
.chip.active { background: var(--ink); color: #fff; }
.chip .icon { width: 18px; height: 18px; stroke-width: 1.5; }
.chip small { color: var(--muted-2); font-weight: 500; }
.chip.active small { color: rgba(255,255,255,.6); }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-box { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-box:first-child { padding-top: 0; }
.filter-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip { position: relative; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: inline-grid; place-items: center; min-width: 42px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.size-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-chip span:hover { border-color: var(--ink); }
.filter-actions { display: grid; gap: 8px; padding-top: 16px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.select { position: relative; }
.select select { appearance: none; height: 40px; padding: 0 38px 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 13.5px; cursor: pointer; outline: none; }
.select select:focus { border-color: var(--blue); }
.select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.filters-toggle { display: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  font-weight: 600; font-size: 14px; background: var(--soft); }
.pagination a:hover { background: #E9EBEF; }
.pagination .current { background: var(--ink); color: #fff; }
.pagination .icon { width: 18px; height: 18px; }

/* ── Product page ──────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; margin-top: 18px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery.single { grid-template-columns: 1fr; }
.gallery-thumbs { display: grid; gap: 10px; }
.gallery-thumb { aspect-ratio: 1; border-radius: 10px; background: var(--soft); overflow: hidden; border: 2px solid transparent; padding: 4px; }
.gallery-thumb.active { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-main { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--r-lg); background: var(--soft); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-main .pcard-placeholder .icon { width: 40%; height: 40%; }
.gallery-main .pbadge { left: 18px; top: 18px; font-size: 13px; padding: 5px 12px; }

.pinfo-cat { color: var(--blue); font-weight: 600; font-size: 13px; }
.pinfo h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: #F5B301; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .icon.off { fill: #DADDE3; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.price-block b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.price-block s { color: var(--muted-2); font-size: 17px; }
.price-block .save { padding: 4px 10px; border-radius: 999px; background: var(--red-50); color: var(--red); font-weight: 700; font-size: 13px; }
.pinfo-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.pinfo-meta b { color: var(--ink); font-weight: 600; }
.stock-ok { color: var(--green); font-weight: 600; }
.stock-low { color: var(--amber); font-weight: 600; }
.stock-out { color: var(--red); font-weight: 600; }
.opt-label { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.opt-label span { font-weight: 500; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.size-btn { min-width: 52px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; transition: .15s; }
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes.shake { animation: shake .35s; }
.buy-row { display: flex; gap: 10px; margin-bottom: 12px; }
.buy-row .btn { flex: 1; height: 52px; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 10px; flex: none; }
.qty button { display: grid; place-items: center; width: 42px; height: 100%; color: var(--ink-2); }
.qty button:hover { color: var(--blue); }
.qty button .icon { width: 18px; height: 18px; }
.qty input { width: 42px; text-align: center; border: 0; outline: none; font-weight: 700; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 38px; } .qty.sm button { width: 34px; } .qty.sm input { width: 34px; font-size: 14px; }
.fav-big { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); transition: .15s; }
.fav-big:hover { border-color: var(--ink); }
.fav-big .icon { width: 22px; height: 22px; }
.fav-big.active { color: var(--red); border-color: var(--red-50); background: var(--red-50); }
.fav-big.active .icon { fill: currentColor; }
.balance-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--blue-25); font-size: 13px; color: var(--ink-2); }
.balance-note .icon { color: var(--blue); width: 20px; height: 20px; }
.info-list { display: grid; gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.info-item { display: flex; gap: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
.info-item + .info-item { border-top: 1px solid var(--line); }
.info-item .icon { color: var(--blue); width: 22px; height: 22px; stroke-width: 1.6; }
.info-item b { display: block; color: var(--ink); font-size: 14px; }
.tabs { margin-top: 56px; }
.tab-btns { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab-btn { padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-pane { display: none; max-width: 820px; color: var(--ink-2); line-height: 1.7; }
.tab-pane.active { display: block; }
.chars { display: grid; gap: 0; }
.chars div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.chars dt { color: var(--muted); width: 180px; flex: none; }
.chars dd { margin: 0; font-weight: 500; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head b { font-size: 14px; }
.review-head small { color: var(--muted-2); margin-left: auto; }
.rate-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-input input { display: none; }
.rate-input label { cursor: pointer; color: #DADDE3; }
.rate-input label .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: #F5B301; }

/* ── Cards, forms ──────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card-title .icon { color: var(--blue); }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field textarea, .field select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
  font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,69,208,.12); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 500; }
.field-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--red-50); color: var(--red);
  font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.form-error .icon { width: 20px; height: 20px; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-2); pointer-events: none; }
.input-prefix input { padding-left: 58px !important; }
.pw-wrap { position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ── Auth ──────────────────────────────────────────── */
.auth { display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-pad { padding: 32px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-links { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 13px; }
.otp { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 20px; }
.otp input { width: 100%; max-width: 54px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,69,208,.12); }
.dev-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--amber-50); color: #7A4A00; font-size: 13px; margin-bottom: 18px; }
.dev-note .icon { width: 20px; height: 20px; color: var(--amber); }

/* ── Account ───────────────────────────────────────── */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.acc-side { position: sticky; top: calc(var(--header-h) + 16px); }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--soft-2); margin-bottom: 10px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; flex: none; }
.acc-user b { display: block; font-size: 15px; } .acc-user small { color: var(--muted); }
.acc-balance { display: block; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, var(--blue) 0%, #2A63E8 100%); color: #fff; margin-bottom: 10px; }
.acc-balance small { opacity: .8; font-size: 12px; }
.acc-balance b { display: block; font-size: 22px; font-weight: 800; margin: 2px 0 10px; }
.acc-balance span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.18); }
.acc-balance span .icon { width: 16px; height: 16px; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.acc-nav a:hover, .acc-nav button:hover { background: var(--soft); }
.acc-nav a.active { background: var(--soft); color: var(--ink); font-weight: 700; }
.acc-nav .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.acc-nav small { margin-left: auto; color: var(--muted-2); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; border-radius: var(--r); background: var(--soft-2); }
.stat small { color: var(--muted); font-size: 12.5px; } .stat b { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }

/* Orders */
.order-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.order-card + .order-card { margin-top: 12px; }
.order-card:hover { border-color: #CFD4DC; box-shadow: var(--shadow); }
.order-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-top b { font-size: 15px; }
.order-top .muted { font-size: 13px; }
.order-top .sum { margin-left: auto; font-weight: 800; }
.order-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.order-thumbs span { width: 56px; height: 56px; border-radius: 8px; background: var(--soft); overflow: hidden; display: grid; place-items: center; color: #C9CDD4; }
.order-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.order-thumbs .icon { width: 26px; height: 26px; stroke-width: 1.2; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--amber-50); color: var(--amber); }
.status-confirmed { background: var(--blue-50); color: var(--blue); }
.status-shipped { background: #F1ECFE; color: #6D3FE0; }
.status-received { background: #E3F5F2; color: #0F766E; }
.status-delivered, .status-paid, .status-approved { background: var(--green-50); color: var(--green); }
.status-cancelled, .status-rejected, .status-refunded { background: var(--red-50); color: var(--red); }
.status-processing, .status-created { background: var(--soft); color: var(--muted); }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 8px 0 24px; }
.step { position: relative; text-align: center; font-size: 12.5px; color: var(--muted-2); font-weight: 600; }
.step i { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: var(--soft); color: var(--muted-2); }
.step i .icon { width: 17px; height: 17px; }
.step::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--soft); }
.step:first-child::before { display: none; }
.step.done { color: var(--ink); }
.step.done i { background: var(--blue); color: #fff; }
.step.done::before { background: var(--blue); }
.line-items { display: grid; gap: 0; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.line-item + .line-item { border-top: 1px solid var(--line); }
.line-thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--soft); overflow: hidden; display: grid; place-items: center; color: #C9CDD4; }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-thumb .icon { width: 30px; height: 30px; stroke-width: 1.2; }
.line-title { font-weight: 600; font-size: 14.5px; }
.line-title:hover { color: var(--blue); }
.line-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.line-price { text-align: right; font-weight: 800; white-space: nowrap; }
.line-price s { display: block; font-weight: 500; color: var(--muted-2); font-size: 12px; }
.sum-rows { display: grid; gap: 10px; font-size: 14px; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; }
.sum-rows .muted b { color: var(--ink); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.sum-total span { font-weight: 700; } .sum-total b { font-size: 22px; font-weight: 800; }
.discount { color: var(--red); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-child { padding-top: 0; }
.cart-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-row .line-thumb { width: 100px; height: 110px; }
.cart-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-row-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; }
.cart-row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.text-btn:hover { color: var(--red); }
.text-btn .icon { width: 16px; height: 16px; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--amber-50); color: #7A4A00; font-size: 13.5px; }
.warn .icon { width: 20px; height: 20px; color: var(--amber); }
.ok-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--green-50); color: #0B6B36; font-size: 13.5px; }
.ok-note .icon { width: 20px; height: 20px; color: var(--green); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.balance-box { padding: 16px; border-radius: var(--r); background: var(--blue-25); margin-top: 16px; }
.balance-box .row { display: flex; justify-content: space-between; font-size: 14px; }
.balance-box .row b { font-weight: 800; }
.balance-box.short { background: var(--red-50); }
.balance-box .btn { margin-top: 12px; }

/* Top-up */
.topup { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.amount-input { position: relative; }
.amount-input input { height: 64px !important; font-size: 28px !important; font-weight: 800; padding-right: 64px !important; letter-spacing: -.01em; }
.amount-input span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preset { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 13px; }
.preset:hover, .preset.active { background: var(--ink); color: #fff; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.method:hover { border-color: #C5CBD5; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:has(input:checked) { border-color: var(--blue); background: var(--blue-25); }
.method.is-off { opacity: .5; cursor: not-allowed; }
.method b { display: block; font-size: 14.5px; } .method small { display: block; color: var(--muted); font-size: 12px; }
.method-tag { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--amber-50); color: var(--amber); font-size: 10.5px; font-weight: 700; }
.method .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.method .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.method:has(input:checked) .tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.paylogo { display: grid; place-items: center; width: 60px; height: 38px; border-radius: 8px; flex: none; font-weight: 800; font-size: 13px; letter-spacing: -.02em; white-space: nowrap; }
.paylogo.click { background: #00A3E8; color: #fff; font-size: 14px; }
.paylogo.payme { background: #fff; border: 1px solid var(--line); color: #0B1F3A; font-size: 13px; }
.paylogo.payme i { font-style: normal; color: #2EC4C4; }
.paylogo.card { background: #fff; border: 1px solid var(--line); position: relative; }
.paylogo.card .mc { position: relative; width: 30px; height: 18px; }
.paylogo.card .mc::before, .paylogo.card .mc::after { content: ''; position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.paylogo.card .mc::before { left: 0; background: #EB001B; }
.paylogo.card .mc::after { right: 0; background: #F79E1B; mix-blend-mode: multiply; }
.paylogo.applepay { background: #000; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.paylogo.payme { display: flex; justify-content: center; }
.manual-link { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--soft-2); margin-top: 16px; font-size: 14px; }
.manual-link .icon { color: var(--ink-2); }
.manual-link b { display: block; } .manual-link small { color: var(--muted); }
.manual-link:hover { background: var(--soft); }
.manual-link > .icon:last-child { margin-left: auto; width: 18px; height: 18px; }
.bank-card { position: relative; padding: 22px; border-radius: var(--r-lg); color: #fff; overflow: hidden; background: linear-gradient(135deg, #0D1322, #1C2B55 60%, var(--blue)); margin-bottom: 20px; }
.bank-card small { opacity: .7; font-size: 12px; }
.bank-card .num { font-size: 22px; font-weight: 700; letter-spacing: .08em; margin: 10px 0 18px; display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.bank-card .num button { color: rgba(255,255,255,.8); } .bank-card .num button:hover { color: #fff; }
.bank-card .row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; border: 1.5px dashed #CBD1DA; border-radius: var(--r); text-align: center; cursor: pointer; color: var(--muted); font-size: 14px; transition: border-color .15s, background .15s; }
.file-drop:hover { border-color: var(--blue); background: var(--blue-25); }
.file-drop .icon { width: 28px; height: 28px; color: var(--blue); }
.file-drop input { display: none; }
.file-drop img { max-height: 220px; border-radius: 8px; }

/* Result & demo */
.result { max-width: 520px; margin: 48px auto; text-align: center; }
.result-ico { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; }
.result-ico .icon { width: 42px; height: 42px; stroke-width: 2; }
.result-ico.ok { background: var(--green-50); color: var(--green); }
.result-ico.fail { background: var(--red-50); color: var(--red); }
.result-ico.wait { background: var(--blue-50); color: var(--blue); }
.result-ico.wait .icon { animation: spin 1.4s linear infinite; }
.result h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.result p { color: var(--muted); margin-bottom: 24px; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.demo-pay { max-width: 440px; margin: 40px auto; }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.demo-banner { padding: 10px 24px; background: var(--amber-50); color: #7A4A00; font-size: 12.5px; font-weight: 600; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.plus { color: var(--green); font-weight: 700; white-space: nowrap; }
.minus { color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 10px; margin-bottom: 16px; }
.seg button { padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* Empty state, info pages, errors */
.empty { text-align: center; padding: 56px 20px; border-radius: var(--r-lg); background: var(--soft-2); }
.empty-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.empty-ico .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.prose { max-width: 760px; color: var(--ink-2); line-height: 1.75; }
.prose h2 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.pages-nav { display: grid; gap: 4px; }
.pages-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.pages-nav a:hover { background: var(--soft); }
.pages-nav a.active { background: var(--soft); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin-top: 10px; }
.error-page { text-align: center; padding: 80px 20px; }
.error-code { font-family: var(--font-display); font-size: 96px; font-weight: 900; color: var(--blue); line-height: 1; }
.error-page h1 { font-size: 26px; margin: 12px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

/* ── Animations ────────────────────────────────────── */
@keyframes fade { from { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pop { 50% { transform: scale(1.25); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1180px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid > .pcard:nth-child(5):last-child { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
  .balance-pill span { display: none; }
  .balance-pill { padding: 0 10px; }
}
@media (max-width: 1024px) {
  .catalog-btn span { display: none; }
  .catalog-btn { padding: 0 14px; }
  .logo { margin: 0 8px; }
  .cat-row { grid-template-columns: repeat(5, 200px); overflow-x: auto; scrollbar-width: none; margin-right: -24px; padding-right: 24px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .perks { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .perk:nth-child(3) { border-left: 0; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(340px, 88vw); background: #fff; padding: 20px; overflow-y: auto;
    transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow-lg); top: 0; }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart-layout, .checkout, .topup { grid-template-columns: 1fr; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .acc-side { position: static; }
  .acc-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .acc-nav a, .acc-nav button { white-space: nowrap; width: auto; }
  .acc-nav small { display: none; }
}
@media (max-width: 860px) {
  .pgrid, .pgrid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid > .pcard:nth-child(5):last-child { display: flex; }
  .hero-content { padding: 0 36px; }
  .hero-title { font-size: 32px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo-label { left: auto; right: -30px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 116px; }
  .container { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 6px; }
  .logo { margin: 0 auto 0 6px; }
  .logo img { height: 26px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .catalog-btn { display: none; }
  .header-actions { margin-left: 0; gap: 2px; }
  .hide-sm { display: none !important; }
  .balance-pill { display: none; }
  .hero { height: 360px; }
  .hero-img { width: 100%; opacity: .55; }
  .hero-shade { background: radial-gradient(80% 90% at 0% 0%, rgba(0,69,208,.8), transparent 70%), linear-gradient(0deg, rgba(10,15,28,.95) 15%, rgba(10,15,28,.35)); }
  .hero-content { padding: 0 22px; justify-content: flex-end; padding-bottom: 76px; }
  .hero-title { font-size: 27px; }
  .hero-sub br { display: none; }
  .hero-nav { left: 22px; right: auto; bottom: 18px; }
  .hero-product { width: 170px; height: 170px; top: 22%; right: -16px; }
  .hero-default .hero-content { padding-bottom: 30px; }
  .hero-mark { width: 150%; max-width: none; right: -55%; top: 26px; bottom: auto; opacity: .09; }
  .cat-row { grid-template-columns: repeat(5, 150px); gap: 10px; margin-right: -16px; padding-right: 16px; }
  .cat-tile { height: 100px; }
  .cat-name { font-size: 13px; left: 14px; bottom: 14px; }
  .cat-ico { left: 14px; top: 14px; }
  .pgrid, .pgrid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section { margin-top: 32px; }
  .section-head h2, .page-title { font-size: 22px; }
  .perks { grid-template-columns: 1fr; padding: 6px 0; }
  .perk { padding: 14px 20px; } .perk + .perk { border-left: 0; border-top: 1px solid #DCE3F3; }
  .promo { padding: 24px; }
  .promo h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .to-top { bottom: auto; top: 30px; right: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { order: 2; display: flex; overflow-x: auto; }
  .gallery-thumb { width: 64px; flex: none; }
  .pinfo h1 { font-size: 24px; }
  .price-block b { font-size: 26px; }
  .buy-row { flex-wrap: wrap; }
  .chars dt { width: 130px; }
  .methods { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:last-child { grid-column: 1 / -1; }
  .cart-row { grid-template-columns: 84px 1fr; }
  .cart-row .line-thumb { width: 84px; height: 96px; }
  .cart-row-side { grid-column: 2; flex-direction: row; align-items: center; }
  .card-pad { padding: 18px; }
  .auth-card .card-pad { padding: 24px 20px; }
  .steps { font-size: 11px; }
  .toasts { right: 16px; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Marketplace: stores, seller cabinet, ratings
   ═══════════════════════════════════════════════════════ */

/* Verified tick */
.vbadge { display: inline-flex; color: #1D8CF8; flex: none; }
.vbadge .icon { width: 24px; height: 24px; }
.vbadge.sm .icon { width: 17px; height: 17px; }
.vbadge.xs .icon { width: 14px; height: 14px; }
.is-light .vbadge { color: #0A6FE0; }

/* Store logo (avatar) */
.store-logo { display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none;
  background: #000; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-logo > span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 64px; background: linear-gradient(135deg, var(--blue), #6D3FE0); }
.store-logo.sm { width: 88px; height: 88px; box-shadow: 0 0 0 1px var(--line); }
.store-logo.sm > span { font-size: 34px; }
.store-logo.xs { width: 26px; height: 26px; box-shadow: 0 0 0 1px var(--line); }
.store-logo.xs > span { font-size: 12px; font-family: var(--font); }
.store-logo.md { width: 46px; height: 46px; }
.store-logo.md > span { font-size: 19px; }

/* Store header (profile) */
.store-head { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); color: #fff; padding: 34px 36px 26px;
  background-color: var(--navy); transition: background-color .2s; }
.store-head.is-light { color: var(--ink); }
.store-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.store-head.has-image::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,12,22,.82) 0%, rgba(8,12,22,.55) 55%, rgba(8,12,22,.35) 100%); }
.store-head-body { display: flex; align-items: center; gap: 40px; }
.store-info { min-width: 0; flex: 1; }
.store-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-title h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; word-break: break-word; }
.store-gear { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: inherit; transition: background .15s; }
.store-gear:hover { background: rgba(255,255,255,.14); }
.is-light .store-gear:hover { background: rgba(14,23,38,.08); }
.store-gear .icon { width: 26px; height: 26px; }
.store-handle { margin-top: 4px; font-size: 15px; opacity: .72; }
.store-stats { display: flex; flex-wrap: wrap; gap: 8px 30px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 16px; }
.store-stats b { font-weight: 800; margin-right: 2px; }
.store-star { display: inline-flex; vertical-align: -2px; margin: 0 2px 0 -1px; }
.store-star .icon { width: 16px; height: 16px; fill: #F5B301; stroke: none; }
.store-desc { margin-top: 14px; max-width: 680px; line-height: 1.55; opacity: .92; white-space: pre-line; overflow-wrap: anywhere; }
.store-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.store-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #9DBBFF; }
.store-links a:hover { text-decoration: underline; }
.store-links .icon { width: 18px; height: 18px; }
.is-light .store-links a { color: var(--blue); }
.store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px;
  background: rgba(255,255,255,.13); color: inherit; font-weight: 700; font-size: 15px; transition: background .15s, transform .1s;
  backdrop-filter: blur(6px); }
.store-btn:hover { background: rgba(255,255,255,.22); }
.store-btn:active { transform: translateY(1px); }
.store-btn .icon { width: 20px; height: 20px; }
.is-light .store-btn { background: rgba(14,23,38,.07); }
.is-light .store-btn:hover { background: rgba(14,23,38,.12); }
.store-btn.is-liked .icon { color: #FF4D6D; fill: currentColor; }
.store-btn.pop .icon { animation: pop .3s; }

.store-tabs { display: flex; gap: 6px; margin: 24px 0 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--line); }
.store-tabs::-webkit-scrollbar { display: none; }
.store-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.store-tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }
.store-tabs .icon { width: 18px; height: 18px; }
.store-tabs small { color: var(--muted-2); font-weight: 600; }
.store-reviews { max-width: 820px; }
.rating-summary { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r); background: var(--soft-2); margin-bottom: 6px; }
.rating-summary > b { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.rating-summary small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.rating-summary .stars .icon { width: 20px; height: 20px; }

/* Store cards (list, home) */
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.store-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s; }
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.store-card-cover { position: relative; display: block; height: 86px; background-color: var(--navy); }
.store-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-card-logo { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin: -33px 0 0 16px; border-radius: 50%;
  border: 3px solid #fff; overflow: hidden; background: linear-gradient(135deg, var(--blue), #6D3FE0); color: #fff; font-weight: 800; font-size: 26px; }
.store-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card-body { display: grid; gap: 6px; padding: 8px 16px 16px; }
.store-card-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15.5px; min-width: 0; }
.store-card-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.store-card-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.store-card-stats .icon { width: 15px; height: 15px; }
.store-search { flex: none; width: min(320px, 100%); margin: 0; }
.sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 26px 36px; border-radius: var(--r);
  color: #fff; background: radial-gradient(70% 160% at 80% 50%, #1D2F66 0%, #0E1530 45%, #0A0F1E 75%); }
.sell-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 2px 0 6px; }
.sell-cta h2 span { color: var(--blue-400); }
.sell-cta p { color: rgba(255,255,255,.8); font-size: 14px; max-width: 560px; }
.sell-cta .eyebrow { margin-bottom: 6px; color: #C3CEE9; }

/* Product card & page: seller */
.pcard-store { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-store:hover { color: var(--blue); }
.seller-box { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s; }
.seller-box:hover { border-color: #C9CFD8; }
.seller-box-info { display: grid; min-width: 0; }
.seller-box small { color: var(--muted); font-size: 12px; }
.seller-box b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.seller-box-stats { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.seller-box-stats .icon { width: 14px; height: 14px; fill: #F5B301; stroke: none; }
.seller-box > .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--muted-2); }

/* Account / seller cabinet */
.acc-nav-label { margin: 16px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.dot-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff !important; font-size: 11px; font-weight: 700; line-height: 1; margin-left: auto; }
.drawer-nav .dot-badge { margin-left: 4px; }
.stat-row-4 { grid-template-columns: repeat(4, 1fr); }
.stat .small { font-size: 12px; font-weight: 500; }
.stat > .muted.small { display: block; margin-top: 2px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.quick:hover { border-color: #CFD4DC; box-shadow: var(--shadow); }
.quick .icon { width: 24px; height: 24px; color: var(--blue); margin-bottom: 6px; }
.quick b { font-size: 14.5px; } .quick small { color: var(--muted); font-size: 12.5px; }
.seller-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.seller-row.is-hidden .line-thumb { opacity: .45; }
.seller-row-info { min-width: 0; display: grid; gap: 2px; }
.seller-row-info s { color: var(--muted-2); }
.seller-row-actions { display: flex; gap: 6px; }
.seller-row-actions .icon { width: 19px; height: 19px; }
.icon-btn.danger:hover { background: var(--red-50); color: var(--red); }
.ink { color: var(--ink); }
.join-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; }
.join-ico .icon { width: 28px; height: 28px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 14px 0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); }
.settings-preview { margin-bottom: 20px; }
.settings-col { min-width: 0; }
.logo-row { display: flex; align-items: center; gap: 20px; }
.logo-row .btn { cursor: pointer; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.field .input-icon input { padding-left: 44px; }
.file-drop.has-error { border-color: var(--red); }

/* Photos (product form) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-grid.preview { width: 100%; margin: 6px 0 0; }
.photo-grid.preview:empty { display: none; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.photo-tile:has(.photo-del input:checked) img { opacity: .3; }
.photo-main, .photo-del { position: absolute; cursor: pointer; }
.photo-main input, .photo-del input { position: absolute; opacity: 0; pointer-events: none; }
.photo-main { left: 6px; bottom: 6px; }
.photo-main span { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.photo-main input:checked + span { background: var(--blue); color: #fff; }
.photo-del { right: 6px; top: 6px; }
.photo-del span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); }
.photo-del span .icon { width: 16px; height: 16px; }
.photo-del input:checked + span { background: var(--red); color: #fff; }
.photo-main input:focus-visible + span, .photo-del input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Segmented switch (account type, cover mode) */
.mode-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--soft); }
.mode-switch label { position: relative; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 9px;
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.mode-switch span .icon { width: 18px; height: 18px; }
.mode-switch input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mode-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.account-type { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.account-type span { width: 100%; padding: 9px 8px; font-size: 13.5px; white-space: nowrap; }
.seller-fields { display: none; }
form:has(input[name="account_type"][value="seller"]:checked) .seller-fields { display: block; }
[data-pane-image] { display: none; }
form:has(input[name="cover_mode"][value="image"]:checked) [data-pane-image] { display: block; }
form:has(input[name="cover_mode"][value="image"]:checked) [data-pane-color] { display: none; }

/* Colour wheel */
.cw { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cw-wheel { position: relative; flex: none; width: 220px; height: 220px; border-radius: 50%; cursor: crosshair; touch-action: none;
  background: radial-gradient(circle closest-side, #fff, rgba(255,255,255,0)),
              conic-gradient(from 0deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.cw-wheel:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 50%; }
.cw-shade { position: absolute; inset: 0; border-radius: 50%; background: #000; opacity: 0; pointer-events: none; }
.cw-knob { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.35); pointer-events: none; }
.cw-side { flex: 1; min-width: 220px; }
.cw-range { width: 100%; height: 14px; border-radius: 7px; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #000, #fff); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.cw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.cw-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.cw-range:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cw-hex { display: flex; align-items: center; gap: 10px; }
.cw-swatch { width: 46px; height: 46px; flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.cw-hex .input { max-width: 170px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.cw-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-presets button { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); transition: transform .1s; }
.cw-presets button:hover { transform: scale(1.12); }

/* Orders: store, rating */
.order-block + .order-block { margin-top: 12px; }
.order-store { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.order-review { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 13.5px; }
.line-item.compact { grid-template-columns: 48px 1fr auto; padding: 10px 0; }
.line-item.compact .line-thumb { width: 48px; height: 48px; }
.rate-box { margin: 0 0 16px; padding: 16px 18px; border: 1px solid #F1D48A; border-radius: var(--r); background: #FFFBEF;
  scroll-margin-top: calc(var(--header-h) + 20px); }
.order-block .rate-box { margin: 8px 0 0; }
.rate-box-head { margin-bottom: 8px; }
.rate-box-head b { display: block; font-size: 15px; }
.rate-box-head small { color: var(--muted); font-size: 12.5px; }
.rate-box .field textarea { background: #fff; }
.rate-strip { background: #FFF6E0; border-bottom: 1px solid #F3E2BD; }
.rate-strip-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.rate-strip-ico .icon { width: 20px; height: 20px; fill: #F5B301; stroke: none; }
.rate-strip .btn { margin-left: auto; flex: none; }

@media (max-width: 1180px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .acc-nav-label { display: none; }
  .quick-grid, .stat-row-4 { grid-template-columns: 1fr 1fr; }
  .store-row { grid-template-columns: repeat(8, 240px); overflow-x: auto; scrollbar-width: none; margin-right: -24px; padding-right: 24px; }
  .store-row::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .store-head { padding: 20px 18px 18px; }
  .store-head-body { gap: 18px; align-items: flex-start; }
  .store-logo { width: 86px; height: 86px; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
  .store-logo > span { font-size: 34px; }
  .store-title h1 { font-size: 21px; }
  .store-gear { width: 32px; height: 32px; }
  .store-gear .icon { width: 22px; height: 22px; }
  .vbadge .icon { width: 20px; height: 20px; }
  .store-handle { font-size: 13.5px; }
  .store-stats { gap: 4px 16px; font-size: 14px; margin-top: 12px; }
  .store-actions { gap: 8px; margin-top: 18px; }
  .store-btn { height: 42px; font-size: 14px; }
  .store-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .store-row { grid-template-columns: repeat(8, 200px); margin-right: -16px; padding-right: 16px; }
  .store-card-cover { height: 64px; }
  .store-card-logo { width: 54px; height: 54px; margin-top: -27px; font-size: 21px; }
  .store-card-body { padding: 6px 12px 12px; }
  .store-card-stats { gap: 10px; font-size: 12px; }
  .store-search { width: 100%; }
  .sell-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .sell-cta h2 { font-size: 21px; }
  .quick-grid { gap: 8px; }
  .seller-row { grid-template-columns: 56px 1fr; }
  .seller-row .line-thumb { width: 56px; height: 56px; }
  .seller-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .cw-wheel { width: 200px; height: 200px; margin: 0 auto; }
  .cw-side { min-width: 0; }
  .rate-strip-inner { flex-wrap: wrap; font-size: 13px; }
  .stat-row.stat-row-4 .stat:last-child { grid-column: auto; }
  .form-actions .btn { flex: 1; }
}
/* Log in with Telegram (browser) */
.tg-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted-2); font-size: 13px; }
.tg-divider::before, .tg-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-tg { background: #2AABEE; color: #fff; gap: 10px; }
.btn-tg:hover { background: #1E96D6; }
.btn-tg .icon { width: 20px; height: 20px; }
/* Narrow screens: a wide menu inside the account column must scroll inside itself, not widen the page */
.account > *, .acc-side { min-width: 0; max-width: 100%; }
.acc-nav { max-width: 100%; }
