
/* LiFIT SHOP. Layout: one phone column. Ink "today" card on top, everything else on soft surfaces; each category has its own colour (water aqua, bars amber, clothes coral, other violet). Floating pill tab bar, cart bar above it, all actions in bottom sheets. */
:root {
  --bg: #f3f3f6;
  --surface: #ffffff;
  --surface2: #ebebf0;
  --ink: #101218;
  --muted: #6b6f7d;
  --line: #e2e3e9;
  --accent: #3355ff;
  --on-accent: #ffffff;
  --hero: #12141b;
  --hero-text: #ffffff;
  --hero-muted: #a2a6b4;
  --glass: rgba(255, 255, 255, .78);
  --ok: #17915a; --warn: #b86e00; --danger: #d63c3c;
  --c-water: #1fa3c7; --c-bars: #e8970f; --c-clothes: #ee5277; --c-other: #8a5cf0;
  --c-green: #2a9d55; --c-red: #e0443a; --c-blue: #3b6cf0; --c-brown: #a26a35;
  --shadow: 0 12px 34px rgba(16, 18, 30, .14);
  --display: "Unbounded", "Manrope", -apple-system, sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --surface: #17191f; --surface2: #22252d; --ink: #f1f2f6; --muted: #9094a2; --line: #2a2d36;
    --accent: #6b85ff; --on-accent: #ffffff; --hero: #1d2030; --hero-text: #ffffff; --hero-muted: #a2a6b8;
    --glass: rgba(23, 25, 31, .8);
    --ok: #43c98a; --warn: #f2b04f; --danger: #f2655f;
    --c-water: #3fc0e3; --c-bars: #f5ad35; --c-clothes: #ff7094; --c-other: #a684ff;
    --c-green: #4cc47a; --c-red: #ff6a5f; --c-blue: #6f93ff; --c-brown: #d29a62;
    --shadow: 0 12px 34px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --surface: #17191f; --surface2: #22252d; --ink: #f1f2f6; --muted: #9094a2; --line: #2a2d36;
  --accent: #6b85ff; --on-accent: #ffffff; --hero: #1d2030; --hero-text: #ffffff; --hero-muted: #a2a6b8;
  --glass: rgba(23, 25, 31, .8);
  --ok: #43c98a; --warn: #f2b04f; --danger: #f2655f;
  --c-water: #3fc0e3; --c-bars: #f5ad35; --c-clothes: #ff7094; --c-other: #a684ff;
    --c-green: #4cc47a; --c-red: #ff6a5f; --c-blue: #6f93ff; --c-brown: #d29a62;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; font-weight: 600; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
input { font: inherit; color: var(--ink); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.disp { font-family: var(--display); letter-spacing: -.02em; }

.app {
  max-width: 460px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px 170px;
  display: flex; flex-direction: column; gap: 18px;
}
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head .eyebrow { font-size: 13px; color: var(--muted); }
.head h1 { margin: 2px 0 0; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.head.brand { justify-content: flex-start; align-items: center; gap: 12px; }
.logo { width: 56px; height: 56px; border-radius: 16px; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.icon-btn { width: 42px; height: 42px; border-radius: 99px; background: var(--surface); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.pill-btn { background: var(--surface); padding: 10px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex: none; }

/* hero */
.hero { background: var(--hero); color: var(--hero-text); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c-water), var(--c-other), var(--c-clothes), var(--c-bars), var(--c-water)); opacity: .32; filter: blur(30px); pointer-events: none; }
.hero .lbl { font-size: 13px; color: var(--hero-muted); }
.hero .big { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: var(--hero-text); }
.tag.up { background: color-mix(in srgb, var(--ok) 28%, transparent); }
.cashline { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border-radius: 18px; padding: 10px 10px 10px 14px; position: relative; z-index: 1; }
.cashline .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--hero-muted); }
.cashline .t b { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--hero-text); }
.cashline .mini { background: rgba(255, 255, 255, .14); color: var(--hero-text); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; }

/* sections */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec > h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec > h2 small { font-size: 13px; color: var(--muted); font-weight: 700; }
.list { background: var(--surface); border-radius: 22px; padding: 4px 14px; display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-width: 0; width: 100%; }
.item + .item { border-top: 1px solid var(--line); }
.item .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item .t { font-weight: 800; overflow-wrap: anywhere; }
.item .d { font-size: 13px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.item .r { text-align: right; font-weight: 800; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.item .r small { font-size: 12px; color: var(--muted); font-weight: 700; }
button.item { cursor: pointer; }
.ava { width: 40px; height: 40px; border-radius: 14px; background: var(--surface2); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.emo { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; flex: none; background: color-mix(in srgb, var(--cc) 16%, transparent); }
.pay { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--pc) 15%, transparent); color: var(--pc); white-space: nowrap; }
.pay.cash { --pc: var(--ok); } .pay.card { --pc: var(--accent); } .pay.abon { --pc: var(--c-other); } .pay.unpaid { --pc: var(--danger); }
.sp { font-size: 11px; font-weight: 800; color: var(--warn); }

.debt { background: var(--surface); border-radius: 22px; padding: 4px 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 55%, transparent); }
.debt .go { background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; flex: none; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.low { flex: none; width: 150px; background: var(--surface); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.low .n { font-weight: 800; font-size: 14px; }
.low .q { font-size: 12px; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--cc, var(--accent)); }

/* sell */
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.cats .cat { flex: 1 0 84px; }
.cat { position: relative; border-radius: 20px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); font-size: 13px; font-weight: 800; border: 2px solid transparent; }
.cat .e { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--cc) 16%, transparent); }
.cat[aria-pressed="true"] { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, var(--surface)); }
.cat .badge { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--cc); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod { position: relative; border-radius: 24px; padding: 14px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; background: var(--surface); border: 2px solid transparent; }
.prod .e { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--cc) 16%, transparent); }
.prod .nm { font-weight: 800; }
.prod .pr { font-family: var(--display); font-size: 18px; font-weight: 600; }
.prod .lf { font-size: 12px; color: var(--muted); }
.prod.on { border-color: var(--cc); }
.prod .qty { position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; border-radius: 99px; background: var(--cc); color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 8px; }
.prod .minus { position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 99px; background: var(--surface2); font-size: 20px; font-weight: 800; display: grid; place-items: center; }
.prod:disabled { opacity: .4; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 10px; background: var(--surface); border-radius: 20px; }

.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 6;
  width: min(428px, calc(100% - 32px)); background: var(--accent); color: var(--on-accent); border-radius: 22px; padding: 12px 12px 12px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.cartbar .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; opacity: .95; }
.cartbar .t b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.cartbar .go { background: rgba(255, 255, 255, .2); padding: 10px 16px; border-radius: 99px; font-weight: 800; }

/* tabs */
nav.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  width: min(428px, calc(100% - 32px)); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 26px; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; box-shadow: var(--shadow); }
nav.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 20px; font-size: 11px; font-weight: 800; color: var(--muted); }
nav.tabs button svg { width: 22px; height: 22px; }
nav.tabs button[aria-current="page"] { color: var(--ink); background: var(--surface2); }
nav.tabs button.sell { color: var(--on-accent); background: var(--accent); }
nav.tabs button.sell[aria-current="page"] { color: var(--ink); background: var(--surface2); }

/* goods */
.ghero { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: color-mix(in srgb, var(--cc) 14%, var(--surface)); }
.ghero .top { display: flex; align-items: center; gap: 14px; }
.ghero .e { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: var(--surface); }
.ghero h2 { margin: 0; font-size: 22px; font-weight: 800; }
.ghero .cat-n { font-size: 13px; color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trio div { background: var(--surface); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.trio span { font-size: 11px; color: var(--muted); }
.trio b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.btn { width: 100%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; padding: 15px; border-radius: 18px; text-align: center; }
.btn[disabled] { opacity: .35; cursor: default; }
.btn.soft { background: var(--surface); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.red { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how { background: var(--surface); border-radius: 20px; padding: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.how .eq { display: flex; justify-content: space-between; gap: 10px; }
.how .eq.res { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; }
.how .eq.res b { color: var(--ok); }
.how .note2 { font-size: 12px; color: var(--muted); }

.catbar { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px; padding: 12px 14px; font-weight: 800; font-size: 14px; }
.catbar .dots { display: flex; }
.catbar .dots i { width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--surface); margin-left: -4px; }
.catbar .dots i:first-child { margin-left: 0; }
.catbar span:nth-child(2) { flex: 1; }
.catbar b { color: var(--accent); font-size: 13px; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 36px; height: 36px; border-radius: 99px; border: 3px solid var(--bg); box-shadow: 0 0 0 2px transparent; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* reports */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-radius: 99px; padding: 4px; gap: 4px; }
.seg button { padding: 9px 4px; border-radius: 99px; font-weight: 800; font-size: 13px; color: var(--muted); text-align: center; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 3px; }
.stack i { display: block; height: 100%; border-radius: 99px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.legend b { margin-left: auto; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: 20px; padding: 6px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: right; color: var(--muted); font-weight: 700; padding: 8px 4px; font-size: 11px; }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 9px 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.p { color: var(--ok); font-weight: 800; }
tr.sum td { font-weight: 800; }

/* sheet */
.veil { position: fixed; inset: 0; background: rgba(6, 8, 14, .5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 460px; border-radius: 30px 30px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); align-self: center; }
.sheet h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet h3 button { font-family: var(--body); color: var(--muted); font-size: 14px; font-weight: 800; background: var(--surface); padding: 7px 12px; border-radius: 99px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lab { font-size: 13px; font-weight: 800; color: var(--muted); }
.field .req { color: var(--danger); }
.field input { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 14px; font-size: 16px; width: 100%; font-weight: 700; }
.field input.bad { border-color: var(--danger); }
.err { font-size: 12px; color: var(--danger); font-weight: 800; }
.sugg { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.sugg button { padding: 12px 14px; font-weight: 700; }
.sugg button + button { border-top: 1px solid var(--line); }
.sugg button b { color: var(--accent); }
.choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.choice.three { grid-template-columns: repeat(3, 1fr); }
.choice button { background: var(--surface); border-radius: 14px; padding: 11px 4px; font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; border: 1.5px solid transparent; }
.choice button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.choice button.u[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.grid-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.grid-pick button { background: var(--surface); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; text-align: center; border: 1.5px solid transparent; }
.grid-pick button .e { font-size: 24px; }
.grid-pick button[aria-pressed="true"] { border-color: var(--ink); }
.grid-pick.emoji { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.grid-pick.emoji button { padding: 8px 4px; font-size: 22px; }
.line { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px; padding: 10px 12px; }
.line .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line .mid b { font-weight: 800; }
.line .price { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.line .price button { color: var(--accent); font-weight: 800; }
.line .price input { width: 80px; padding: 5px 8px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--bg); font-weight: 800; }
.step { display: flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 99px; padding: 3px; flex: none; }
.step button { width: 30px; height: 30px; border-radius: 99px; background: var(--surface); font-size: 18px; font-weight: 800; display: grid; place-items: center; text-align: center; }
.step span { min-width: 22px; text-align: center; font-weight: 800; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.sum-row span { color: var(--muted); font-weight: 800; }
.sum-row b { font-family: var(--display); font-size: 26px; font-weight: 600; }
.info { background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.info.muted { color: var(--muted); font-size: 13px; }
.diff { border-radius: 16px; padding: 12px 14px; font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--dc) 14%, var(--surface)); color: var(--dc); }
.confirm { display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: 18px; padding: 12px; }
.confirm p { margin: 0; font-size: 14px; color: var(--danger); font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: calc(160px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-weight: 800; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up .24s cubic-bezier(.2, .8, .2, 1); }
  @keyframes up { from { transform: translateY(40px); } }
  .prod, .cat { transition: border-color .15s, background .15s; }
}

/* app extras */
html, body { background: var(--bg); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); }
.login { position: fixed; inset: 0; background: var(--bg); z-index: 40; display: flex; align-items: center; justify-content: center;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.lcard { width: min(340px, 100%); display: flex; flex-direction: column; gap: 16px; }
.lcard h1 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast.bad { background: var(--danger); color: #fff; }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }
.logout { align-self: center; color: var(--muted); font-weight: 800; font-size: 14px; padding: 10px 16px; }
.start { background: var(--surface); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.start h2 { margin: 0; font-size: 17px; font-weight: 800; }
.start p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ===== планшет і комп'ютер ===== */
.cols, .col, .secs { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (hover: hover) {
  button.item:hover, .list button.item:hover { background: color-mix(in srgb, var(--surface2) 55%, transparent); }
  .list button.item { border-radius: 12px; }
  .prod:hover:not(:disabled), .cat:hover, .low:hover { box-shadow: var(--shadow); }
  .btn:hover:not([disabled]), .pill-btn:hover, .go:hover, .mini:hover { filter: brightness(1.06); }
  nav.tabs button:hover:not([aria-current="page"]) { color: var(--ink); }
}
@media (min-width: 720px) {
  .app { max-width: 760px; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .cats .cat { flex: 1 0 110px; }
  .veil { align-items: center; padding: 24px; }
  .sheet { max-width: 540px; border-radius: 30px; max-height: 86vh; padding-bottom: 22px; }
  .sheet .grab { display: none; }
  .head h1 { font-size: 34px; }
}
@media (min-width: 1024px) {
  body { padding-left: 240px; }
  .app { max-width: 1180px; padding-left: 40px; padding-right: 40px; padding-block: 32px 120px; }
  nav.tabs {
    left: 0; top: 0; bottom: 0; transform: none; width: 240px; border-radius: 0; border: 0; border-right: 1px solid var(--line);
    background: var(--surface); box-shadow: none; display: flex; flex-direction: column; gap: 6px; padding: 28px 16px;
  }
  nav.tabs::before { order: -2; content: "LiFIT SHOP"; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; padding: 0 12px 22px; color: var(--ink); }
  nav.tabs button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 12px 14px; border-radius: 14px; }
  nav.tabs button.sell { order: -1; justify-content: center; margin-bottom: 14px; padding: 14px; }
  nav.tabs button[aria-current="page"].sell, nav.tabs button.sell[aria-current="page"] { background: var(--surface2); color: var(--ink); }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; align-items: start; }
  .head h1 { font-size: 38px; }
  .hero .big { font-size: 48px; }
  .prods { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .cats { flex-wrap: wrap; overflow: visible; }
  .cats .cat { flex: 0 0 130px; }
  .cartbar { left: auto; right: 40px; transform: none; width: 400px; bottom: 32px; }
  .toast { bottom: 40px; left: calc(50% + 120px); }
  .head > .pill-btn:only-child { margin-left: auto; }
}
nav.tabs:empty { display: none; }
@media (min-width: 1024px) { body:has(nav.tabs:empty) { padding-left: 0; } }
