/* Vachari – Shop Admin · plain CSS, no build step.
   Look: soft neo-brutalism – paper tone, ink outlines, offset shadows, pastel fills.
   Sections: fonts · tokens · base · bar · tabs · menus · receipt switch · cards · charts · tables · forms · drawer ·
   pages · overlays · login · responsive · print */

/* fonts (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-800-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

/* tokens */
:root {
    --display: "Unbounded", "Noto Sans Georgian", system-ui, sans-serif;
    --font: "Onest", "Noto Sans Georgian", system-ui, sans-serif;
    --lemon: #ffd84d; --mint: #9be3c4; --lilac: #c7b6ff; --peach: #ffb38a; --sky: #9fd3ff; --rose: #ff9fb2;
    --on-pastel: #151515;
    --radius: 16px; --radius-s: 11px; --bw: 2px;
    --ease: cubic-bezier(.3, .9, .3, 1);
}
:root[data-theme="light"] {
    color-scheme: light;
    --paper: #f6f1e7; --card: #fffdf8; --sunk: #efe8da; --ink: #151515; --muted: #5d584f; --faint: #8b857a; --line: #151515; --hair: rgba(21, 21, 21, .12);
    --tomato: #ff5a36; --green: #18864b; --red: #d0331f; --amber: #b86a00; --blue: #2459d6;
    --shadow-c: #151515;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #121110; --card: #1d1c1a; --sunk: #272522; --ink: #f4efe4; --muted: #bdb6a8; --faint: #8e887c; --line: #f4efe4; --hair: rgba(244, 239, 228, .14);
    --tomato: #ff7a5c; --green: #5fd394; --red: #ff7b6b; --amber: #ffc34d; --blue: #8fb2ff;
    --shadow-c: #000;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 15px/1.55 var(--font); color: var(--ink); background: var(--paper); background-image: radial-gradient(var(--hair) 1px, transparent 1.2px); background-size: 22px 22px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { font-weight: 800; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.flag { stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--lemon); color: var(--on-pastel); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--lemon); color: var(--on-pastel); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; border-bottom: var(--bw) solid var(--line); background: var(--card); }
.bar-row { display: flex; align-items: center; gap: 12px; max-width: 1440px; margin: 0 auto; padding: 12px clamp(14px, 3vw, 32px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-sticker { display: grid; place-items: center; width: 40px; height: 40px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--lemon); color: var(--on-pastel); box-shadow: 3px 3px 0 var(--shadow-c); transform: rotate(-6deg); transition: transform .3s var(--ease); }
.brand:hover .brand-sticker { transform: rotate(4deg) scale(1.05); }
.brand-sticker svg { width: 22px; height: 22px; stroke-width: 2.3; }
.brand-name { font: 700 20px var(--display); letter-spacing: -.03em; }
.store-state { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: var(--bw) solid var(--line); border-radius: 30px; background: var(--mint); color: var(--on-pastel); font-size: 13px; font-weight: 600; white-space: nowrap; }
.store-state[aria-pressed="false"] { background: var(--sunk); color: var(--muted); }
.store-dot { width: 9px; height: 9px; border-radius: 50%; background: #18864b; box-shadow: 0 0 0 3px rgba(24, 134, 75, .25); }
.store-state[aria-pressed="false"] .store-dot { background: var(--faint); box-shadow: none; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 460px; min-width: 0; margin-left: auto; padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); text-align: left; }
.search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { padding: 1px 7px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); font: 600 12px var(--font); color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); transition: transform .12s, box-shadow .12s; }
.icon-btn:hover { box-shadow: 3px 3px 0 var(--shadow-c); transform: translate(-1px, -1px); }
.badge { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px; border: var(--bw) solid var(--line); border-radius: 11px; background: var(--tomato); color: #fff; font: 600 11px/17px var(--font); }
[data-theme="dark"] .t-sun, [data-theme="light"] .t-moon { display: none; }
.user-btn { padding: 0; border: 0; background: none; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--lilac); color: var(--on-pastel); font-weight: 600; font-size: 14px; flex: none; }

/* tabs */
.tabs-nav { border-top: 1px solid var(--hair); }
.tabs-inner { display: flex; gap: 6px; max-width: 1440px; margin: 0 auto; padding: 8px clamp(14px, 3vw, 32px); overflow-x: auto; scrollbar-width: none; }
.tabs-inner a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: var(--bw) solid transparent; border-radius: 30px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.tabs-inner a:hover { border-color: var(--line); color: var(--ink); }
.tabs-inner a[aria-current="page"] { border-color: var(--line); background: var(--ink); color: var(--card); }
.tabs-inner a svg { width: 18px; height: 18px; }
.tab-badge { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--tomato); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; }

/* menus */
.menu { position: absolute; z-index: 50; margin: 0; padding: 6px; list-style: none; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow-c); animation: pop .18s var(--ease); }
.menu a, .menu li > button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; text-align: left; text-decoration: none; }
.menu a:hover, .menu li > button:hover { background: var(--sunk); }
.bell, .user, .receipt { position: relative; }
.user-menu { right: 0; top: calc(100% + 10px); min-width: 210px; }
.user-who { display: grid; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--hair); }
.user-who small { color: var(--muted); }
.bell-menu { right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 28px)); padding: 0; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: var(--bw) solid var(--line); }
.bell-list { max-height: 360px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.bell-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px; border-radius: 10px; }
.bell-list li.is-new { background: var(--sunk); }
.bell-ico { display: grid; place-items: center; width: 36px; height: 36px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--c, var(--lemon)); color: var(--on-pastel); }
.bell-ico svg { width: 17px; height: 17px; }
.bell-list p { font-size: 14px; }
.bell-list small { color: var(--muted); font-size: 12.5px; }
.link { padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* language switch: a till receipt with dotted leaders and a torn edge */
.receipt-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 8px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); }
.receipt-btn:hover { box-shadow: 3px 3px 0 var(--shadow-c); transform: translate(-1px, -1px); }
.receipt-flag { display: grid; width: 30px; height: 21px; border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; transform: rotate(-4deg); }
.receipt-flag .flag { width: 100%; height: 100%; }
.receipt-code { font-weight: 600; font-size: 13.5px; }
.caret { width: 16px; height: 16px; }
.receipt-paper { right: 0; top: calc(100% + 10px); width: 250px; padding: 14px 16px 22px; border-radius: 4px 4px 0 0; background: #fffef9; color: #151515; font-family: var(--font); --mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat; -webkit-mask: var(--mask); mask: var(--mask); box-shadow: none; filter: drop-shadow(4px 4px 0 var(--shadow-c)); transform-origin: top right; animation: print .35s var(--ease); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.receipt-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1.5px dashed #151515; text-align: center; }
.receipt-head b { font: 700 15px var(--display); letter-spacing: .12em; }
.receipt-head span { font-size: 12px; color: #5d584f; }
.lang-opt { display: grid; grid-template-columns: 24px auto 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 8px 4px; border: 0; border-radius: 6px; background: none; color: #151515; text-align: left; font-size: 14px; }
.lang-opt::after { content: ""; grid-column: 3; grid-row: 1; height: 0; border-bottom: 2px dotted #8b857a; margin-top: 6px; }
.lang-opt i { grid-column: 4; font-style: normal; font-weight: 600; font-size: 13px; }
.lang-opt .flag { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px #151515; }
.lang-opt:hover { background: #f3eddd; }
.lang-opt[aria-current="true"] { background: #ffd84d; }
.lang-opt[aria-current="true"] i::before { content: "✓ "; }
.receipt-foot { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed #151515; text-align: center; font-size: 12px; color: #5d584f; }

/* page head + cards */
.main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 26px clamp(14px, 3vw, 32px) 44px; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 36px); }
.page-head p { margin-top: 8px; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; min-width: 0; padding: 20px; border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 5px 5px 0 var(--shadow-c); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 16px; }
.card-head h2 { font-size: 17px; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.tile { display: grid; gap: 8px; background: var(--c); color: var(--on-pastel); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.tile-ico { display: grid; place-items: center; width: 34px; height: 34px; border: var(--bw) solid #151515; border-radius: 10px; background: #fffdf8; }
.tile-ico svg { width: 18px; height: 18px; }
.tile-value { font: 700 clamp(22px, 2.3vw, 30px)/1.1 var(--display); letter-spacing: -.03em; }
.tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: 13px; }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border: 1.5px solid #151515; border-radius: 20px; background: #fffdf8; font-weight: 600; white-space: nowrap; }
.delta svg { width: 14px; height: 14px; stroke-width: 2.4; }
.delta.down svg { transform: rotate(180deg); }
.minibars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.minibars i { width: 6px; height: var(--h); border: 1.5px solid #151515; border-radius: 3px 3px 0 0; background: #fffdf8; }

/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; }
.chart .grid-line { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font: 11.5px var(--font); }
.chart .bar { fill: var(--sky); stroke: var(--line); stroke-width: 2; transition: fill .15s; }
.chart .bar.is-hi { fill: var(--lemon); }
.chart .line { fill: none; stroke: var(--tomato); stroke-width: 3; }
.chart .pt { fill: var(--card); stroke: var(--tomato); stroke-width: 2.5; }
.chart-tip { position: absolute; z-index: 5; padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 3px 3px 0 var(--shadow-c); font-size: 13px; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.chart-tip b { display: block; margin-bottom: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--c); flex: none; }
.sw.line { height: 4px; border: 0; border-radius: 2px; }
.goal-bar { position: relative; height: 34px; margin: 14px 0 10px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--sunk); overflow: hidden; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: repeating-linear-gradient(-45deg, var(--lemon) 0 10px, #ffe58a 10px 20px); border-right: var(--bw) solid var(--line); transition: width 1s var(--ease); }
.goal-bar b { position: absolute; left: 50%; top: 50%; padding: 1px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 700 13px var(--display); transform: translate(-50%, -50%); }
.goal-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13.5px; }
.goal-row b { color: var(--ink); }
.pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.pipe { display: grid; gap: 2px; padding: 12px 14px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--c); color: var(--on-pastel); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.pipe:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow-c); }
.pipe b { font: 700 22px var(--display); }
.pipe span { font-size: 13px; font-weight: 600; }
.cats { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: 14px; }
.cats .track { grid-column: 1 / -1; height: 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--sunk); overflow: hidden; }
.cats .track i { display: block; height: 100%; width: var(--v); background: var(--c); border-right: 1.5px solid var(--line); transition: width .8s var(--ease); }

/* product thumbs and lists */
.thumb { display: grid; place-items: center; width: var(--s, 46px); height: var(--s, 46px); border: var(--bw) solid var(--line); border-radius: 12px; background: var(--c); color: var(--on-pastel); flex: none; }
.thumb svg { width: 60%; height: 60%; stroke-width: 1.7; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--hair); }
.rows li:last-child { border-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .grow small { color: var(--muted); font-size: 13px; }
.rows .end { text-align: right; white-space: nowrap; }
.rows .end small { display: block; color: var(--muted); font-size: 12.5px; }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 600; flex: none; }

/* tables */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .field-search { flex: 1 1 240px; }
.status-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding: 2px 6px 8px 2px; scrollbar-width: none; }
.status-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: var(--bw) solid var(--line); border-radius: 30px; background: var(--card); font-weight: 600; white-space: nowrap; }
.status-tabs button b { min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--sunk); font-size: 12.5px; line-height: 22px; text-align: center; }
.status-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--card); box-shadow: 3px 3px 0 var(--tomato); }
.status-tabs button[aria-pressed="true"] b { background: var(--tomato); color: #fff; }
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1.5px dashed var(--hair); text-align: left; white-space: nowrap; }
th { background: var(--sunk); border-bottom: var(--bw) solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--lemon) 22%, transparent); }
tbody tr.is-selected { background: color-mix(in srgb, var(--lilac) 30%, transparent); }
td.num, th.num { text-align: right; }
.th-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.th-sort::after { content: "↕"; opacity: .45; }
.th-sort[data-dir="asc"]::after { content: "↑"; opacity: 1; color: var(--tomato); }
.th-sort[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--tomato); }
.order-no { font-weight: 600; }
.cust { display: flex; align-items: center; gap: 10px; }
.cust .avatar { width: 32px; height: 32px; font-size: 12px; background: var(--c, var(--lilac)); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--c, var(--sunk)); color: var(--on-pastel); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pager-btns { display: flex; gap: 6px; }
.pager-btns button { min-width: 38px; height: 38px; padding: 0 10px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; }
.pager-btns button.is-on { background: var(--ink); color: var(--card); }
.pager-btns button:disabled { opacity: .35; cursor: default; }
.empty { padding: 44px 16px; text-align: center; color: var(--muted); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 14px; margin-bottom: 14px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--lilac); color: var(--on-pastel); font-weight: 600; }
.bulk .btn { min-height: 36px; padding: 6px 12px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid transparent; border-radius: 9px; background: none; color: var(--muted); }
.row-actions button:hover { border-color: var(--line); color: var(--ink); background: var(--card); }
.row-actions svg { width: 17px; height: 17px; }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 3px 3px 0 var(--shadow-c); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-c); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-c); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--tomato); color: #fff; }
.btn-yellow { background: var(--lemon); color: var(--on-pastel); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { box-shadow: none; border-color: transparent; background: none; }
.btn-ghost:hover { border-color: var(--line); box-shadow: none; transform: none; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field > label { font-weight: 600; font-size: 13.5px; }
.input, .select, .textarea { width: 100%; min-width: 0; padding: 10px 13px; border: var(--bw) solid var(--line); border-radius: 11px; background: var(--card); outline: none; transition: box-shadow .15s; }
.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 46px; }
.input[type="date"]::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 3px 3px 0 var(--tomato); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.field-search .input { padding-left: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1.5px dashed var(--hair); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--muted); font-size: 13px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 50px; height: 28px; border: var(--bw) solid var(--line); border-radius: 20px; background: var(--sunk); transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--card); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--mint); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid var(--tomato); outline-offset: 2px; }
.seg { display: inline-flex; padding: 3px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.check { width: 18px; height: 18px; accent-color: var(--tomato); }
.stepper { display: inline-flex; align-items: center; border: var(--bw) solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.stepper button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; }
.stepper button:hover { background: var(--sunk); }
.stepper svg { width: 15px; height: 15px; stroke-width: 2.4; }
.stepper output { min-width: 38px; padding: 0 4px; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); font-weight: 600; font-size: 14px; line-height: 30px; text-align: center; }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; transition: transform .15s; }
.product:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow-c); }
.product .thumb { --s: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 12px; }
.product .thumb svg { width: 42%; height: 42%; }
.product h3 { font: 600 16px/1.3 var(--font); letter-spacing: 0; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.price { font: 700 18px var(--display); letter-spacing: -.02em; }
.price { min-width: 0; }
.price s { display: block; color: var(--muted); font: 500 12.5px var(--font); }
.product-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 8px; padding-top: 10px; border-top: 1.5px dashed var(--hair); }
.product-foot > .muted { font-size: 13px; }
.stock-low { color: var(--amber); font-weight: 600; }
.stock-out { color: var(--red); font-weight: 600; }
.sale-tag { position: absolute; top: 24px; left: 24px; padding: 3px 9px; border: var(--bw) solid #151515; border-radius: 8px; background: var(--tomato); color: #fff; font: 700 12px var(--display); transform: rotate(-6deg); }
.is-off { opacity: .55; }
.products.is-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.products.is-list .product { grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; }
.products.is-list .product .thumb { --s: 70px; aspect-ratio: 1; }
.products.is-list .product-foot { grid-template-columns: auto auto minmax(90px, auto) auto; border: 0; padding: 0; gap: 8px 16px; }
.products.is-list .sale-tag { top: 8px; left: 8px; font-size: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--c); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--line); }
.swatches input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 4px; }

/* drawer (order and customer details) */
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; display: flex; flex-direction: column; width: min(520px, 100vw); border-left: var(--bw) solid var(--line); background: var(--paper); box-shadow: -6px 0 0 var(--shadow-c); transform: translateX(105%); transition: transform .35s var(--ease); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: var(--bw) solid var(--line); background: var(--card); }
.drawer-head h2 { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: var(--bw) solid var(--line); background: var(--card); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(21, 21, 21, .4); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-align: center; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); }
.steps li.is-done::before { content: "✓"; background: var(--mint); color: var(--on-pastel); }
.steps li.is-now::before { background: var(--lemon); color: var(--on-pastel); box-shadow: 2px 2px 0 var(--shadow-c); }
.steps li.is-done, .steps li.is-now { color: var(--ink); }
.box { padding: 14px 16px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); }
.box h3 { margin-bottom: 10px; font: 600 14px var(--font); letter-spacing: 0; color: var(--muted); }
.totals { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--hair); }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { padding-top: 6px; font: 700 17px var(--display); }
.timeline { margin: 0; padding: 0 0 0 4px; list-style: none; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--lemon); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: 0; border-left: 1.5px dashed var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--sky); color: var(--on-pastel); font-size: 13px; font-weight: 600; }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(21, 21, 21, .12); }
.chip svg { width: 12px; height: 12px; stroke-width: 2.6; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat3 div { padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--c); color: var(--on-pastel); }
.stat3 b { display: block; font: 700 17px var(--display); }
.stat3 small { font-size: 12px; font-weight: 600; }

/* segments + coupons */
.segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.segment { display: grid; gap: 2px; padding: 12px 14px; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--c); color: var(--on-pastel); text-align: left; transition: transform .12s, box-shadow .12s; }
.segment b { font: 700 22px var(--display); }
.segment span { font-size: 13px; font-weight: 600; }
.segment[aria-pressed="true"] { box-shadow: 4px 4px 0 var(--shadow-c); transform: translate(-2px, -2px); outline: 3px solid var(--line); outline-offset: -5px; }
.coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.coupon { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; padding: 0; overflow: hidden; }
.coupon-main { display: grid; gap: 10px; padding: 16px 18px; }
.coupon-side { display: grid; place-items: center; align-content: center; gap: 2px; padding: 10px 6px; border-left: 2.5px dashed var(--line); background: var(--c); color: var(--on-pastel); text-align: center; }
.coupon-side b { font: 700 24px var(--display); letter-spacing: -.03em; }
.coupon-side small { font-size: 11.5px; font-weight: 600; }
.coupon::before, .coupon::after { content: ""; position: absolute; right: 85px; width: 22px; height: 22px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--paper); }
.coupon::before { top: -12px; }
.coupon::after { bottom: -12px; }
.code { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 4px 6px 4px 12px; border: var(--bw) dashed var(--line); border-radius: 9px; font: 700 15px var(--display); letter-spacing: .06em; }
.code button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: var(--sunk); }
.code svg { width: 15px; height: 15px; }
.usage { height: 10px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--sunk); overflow: hidden; }
.usage i { display: block; width: var(--v); height: 100%; background: var(--tomato); }
.coupon-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.coupon-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coupon.is-expired { filter: grayscale(1); opacity: .7; }

/* settings */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 140px; display: grid; gap: 8px; }
.set-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; text-align: left; }
.set-nav button[aria-selected="true"] { background: var(--lemon); color: var(--on-pastel); box-shadow: 3px 3px 0 var(--shadow-c); }
.set-nav svg { width: 18px; height: 18px; }
.set-panel { display: grid; gap: 20px; }
.zones td { padding: 8px 10px; cursor: default; }
.zones tbody tr:hover { background: none; }
.zones .input { padding: 8px 10px; }
.tax-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tax-demo div { padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--sunk); }
.tax-demo small { display: block; color: var(--muted); font-size: 12px; }
.tax-demo b { font: 700 16px var(--display); }
.danger-zone { background: color-mix(in srgb, var(--rose) 30%, var(--card)); }

/* invoice */
.invoice { max-width: 860px; margin: 0 auto; padding: clamp(20px, 4vw, 44px); }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: var(--bw) solid var(--line); }
.inv-head h1 { font-size: 30px; }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; font-size: 14px; }
.inv-parties h3 { margin-bottom: 6px; font: 600 12.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .inv-parties h3 { letter-spacing: 0; text-transform: none; }
.inv-table td, .inv-table th { cursor: default; }
.inv-table tbody tr:hover { background: none; }
.inv-sum { display: grid; justify-content: end; gap: 6px; margin-top: 18px; font-size: 15px; }
.inv-sum div { display: flex; justify-content: space-between; gap: 40px; }
.inv-sum .grand { padding: 8px 12px; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--lemon); color: var(--on-pastel); font: 700 18px var(--display); }
.inv-note { margin-top: 26px; padding-top: 16px; border-top: 1.5px dashed var(--hair); color: var(--muted); font-size: 13px; }
.stamp { display: inline-block; margin-top: 12px; padding: 6px 14px; border: 3px solid var(--green); border-radius: 8px; color: var(--green); font: 700 18px var(--display); letter-spacing: .08em; transform: rotate(-8deg); }

/* overlays */
dialog.modal { width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: var(--bw) solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 7px 7px 0 var(--shadow-c); }
dialog.modal::backdrop { background: rgba(21, 21, 21, .45); }
dialog.modal[open] { animation: pop .22s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: var(--bw) solid var(--line); background: var(--lemon); color: var(--on-pastel); }
.modal-head h2 { font-size: 18px; }
.modal-head .icon-btn { width: 36px; height: 36px; background: #fffdf8; color: #151515; border-color: #151515; }
.modal-body { display: grid; gap: 16px; padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 20px 18px; border-top: 1.5px dashed var(--hair); }
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 12vh 12px 12px; background: rgba(21, 21, 21, .45); }
.palette-box { width: min(620px, 100%); border: var(--bw) solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 7px 7px 0 var(--shadow-c); overflow: hidden; animation: pop .2s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: var(--bw) solid var(--line); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.palette-list { max-height: 52vh; margin: 0; padding: 8px; list-style: none; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; }
.palette-list li[aria-selected="true"] { border-color: var(--line); background: var(--lemon); color: var(--on-pastel); }
.palette-list li small { margin-left: auto; color: inherit; opacity: .7; font-size: 12.5px; }
.palette-group { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: default !important; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: grid; gap: 10px; width: min(370px, calc(100vw - 36px)); }
.toast { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 14px; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 4px 4px 0 var(--shadow-c); font-size: 14px; animation: toast .3s var(--ease); }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .3s; }
.toast-ico { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid #151515; border-radius: 9px; background: var(--c, var(--mint)); color: var(--on-pastel); }
.toast-ico svg { width: 16px; height: 16px; }
.toast button { padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--lemon); color: var(--on-pastel); font-size: 13px; font-weight: 600; }
@keyframes toast { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } }

/* login + 404 */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 30px 16px; }
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(980px, 100%); padding: 0; overflow: hidden; }
.auth-form { display: grid; align-content: center; gap: 20px; padding: clamp(24px, 4vw, 44px); }
.auth-form h1 { font-size: clamp(26px, 3vw, 34px); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-art { position: relative; display: grid; align-content: end; gap: 14px; padding: 34px; border-left: var(--bw) solid var(--line); background: var(--lemon); color: var(--on-pastel); overflow: hidden; }
.auth-art svg.art { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 2; }
.auth-art blockquote { position: relative; margin: 0; padding: 16px 18px; border: var(--bw) solid #151515; border-radius: 14px; background: #fffdf8; box-shadow: 4px 4px 0 #151515; font: 600 17px/1.45 var(--font); }
.auth-art p { position: relative; font-weight: 600; font-size: 13.5px; }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw button { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 8px; background: none; }
.lost { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 30px 16px; text-align: center; }
.lost-tag { display: grid; place-items: center; width: min(320px, 80vw); aspect-ratio: 5 / 3; border: 3px solid var(--line); border-radius: 18px; background: var(--lemon); color: var(--on-pastel); box-shadow: 8px 8px 0 var(--shadow-c); transform: rotate(-4deg); font: 700 clamp(70px, 16vw, 120px)/1 var(--display); letter-spacing: -.05em; }
.lost p { max-width: 440px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; max-width: 1440px; width: 100%; margin: 0 auto; padding: 18px clamp(14px, 3vw, 32px); border-top: 1.5px dashed var(--hair); color: var(--muted); font-size: 13px; }

/* responsive */
@media (max-width: 1280px) {
    .span-3 { grid-column: span 6; }
    .span-5, .span-7 { grid-column: span 12; }
    .segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .span-4, .span-6, .span-8 { grid-column: span 12; }
    .search kbd, .store-state span:last-child { display: none; }
    .store-state { padding: 9px; }
}
@media (max-width: 860px) {
    .settings { grid-template-columns: minmax(0, 1fr); }
    .set-nav { position: static; display: flex; overflow-x: auto; padding: 2px 6px 8px 2px; }
    .set-nav button { white-space: nowrap; }
    .auth-card { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
    .inv-parties { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    body { padding-bottom: 74px; }
    .bar-row { gap: 8px; padding: 10px 12px; }
    .brand-name { display: none; }
    .search { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; justify-content: center; margin-left: auto; }
    .search span, .search kbd { display: none; }
    /* the tabs become a tab bar at the bottom of the screen */
    .tabs-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; border-top: var(--bw) solid var(--line); background: var(--card); }
    .tabs-inner { justify-content: space-between; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); overflow: visible; }
    .tabs-inner a { flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 2px; border-radius: 12px; font-size: 10.5px; }
    .tabs-inner a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .tabs-inner a svg { width: 21px; height: 21px; }
    .tab-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; line-height: 18px; font-size: 10.5px; }
    .lang-opt { font-size: 15px; }
    .receipt-paper, .bell-menu, .user-menu { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
    .receipt-btn .caret { display: none; }
    .grid { gap: 16px; }
    .card { padding: 16px; box-shadow: 4px 4px 0 var(--shadow-c); }
    .span-3 { grid-column: span 12; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toasts { right: 12px; bottom: 86px; width: calc(100vw - 24px); }
    .page-head .head-actions { width: 100%; }
    .page-head .head-actions .btn { flex: 1; }
    .products.is-list .product { grid-template-columns: 56px minmax(0, 1fr); }
    .products.is-list .product .thumb { --s: 56px; }
    .products.is-list .product-foot { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
    .tax-demo { grid-template-columns: minmax(0, 1fr); }
    .stat3 b { font-size: 15px; }
}
@media (max-width: 420px) {
    .tabs-inner a span { display: none; }
    .tabs-inner a { padding: 9px 2px; }
    .bar-actions { gap: 6px; }
    .icon-btn, .avatar, .receipt-btn { width: 38px; height: 38px; }
    .receipt-btn { padding: 0; justify-content: center; }
    .receipt-code { display: none; }
    .brand-sticker { width: 36px; height: 36px; }
    .store-state { padding: 8px; }
    .coupon { grid-template-columns: minmax(0, 1fr) 80px; }
    .coupon::before, .coupon::after { right: 69px; }
    .steps li { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .bar, .foot, .toasts, .head-actions, .no-print { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .card { box-shadow: none; }
    .main { padding: 0; }
}
