/* eShop — PC theme (sidebar, filters, grid/list) and phone theme (category strip, 2-column grid, filter sheet, tab bar).
   Colours come from the company's website theme (--acc). */
:root {
  --acc: #0b6e99; --acc-ink: #fff; --ink: #14212b; --soft: #5b6b78; --line: #e3e8ec; --mist: #f4f6f8; --bg: #fff;
  --sale: #d92d20; --hot: #e8590c; --new: #0e9f6e; --ok: #0e7a4f; --warn: #a15c00;
  --r: 12px; --f: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.wait body { visibility: hidden; }
body { margin: 0; font: 400 15px/1.5 var(--f); color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 45%, white); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--acc);
  background: var(--acc); color: var(--acc-ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
.x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--soft); width: 40px; height: 40px; }

/* header */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hd__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 74px; }
.hd__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; max-width: 280px; }
.hd__brand img { height: 42px; max-width: 170px; object-fit: contain; }
.hd__search { display: flex; border: 2px solid var(--acc); border-radius: 12px; overflow: hidden; background: #fff; max-width: 720px; width: 100%; justify-self: center; }
.hd__search select { border: 0; border-right: 1px solid var(--line); background: var(--mist); padding: 0 12px; max-width: 190px; min-height: 44px; }
.hd__search input { flex: 1; border: 0; padding: 0 14px; min-width: 0; font-size: 15px; }
.hd__search input:focus { outline: none; }
.hd__go { border: 0; background: var(--acc); color: var(--acc-ink); width: 54px; cursor: pointer; }
.hd__acts { display: flex; align-items: center; gap: 14px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: #fff; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--soft); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hd__site { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--soft); }
.hd__cart { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.hd__cart svg { width: 24px; height: 24px; }
.hd__cartn { position: absolute; top: -6px; left: 26px; background: var(--sale); color: #fff; font-size: 11px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cats { background: var(--acc); color: var(--acc-ink); }
.cats__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.cats__in::-webkit-scrollbar { display: none; }
/* [stated] the owner, 24 Nov 2026: "A" — the selected category is a white rounded tab with the brand colour as text */
.cats a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; opacity: .92; color: inherit; }
.cats a:hover { opacity: 1; background: rgba(255,255,255,.16); }
.cats a[aria-current="true"] { opacity: 1; background: #fff; color: var(--acc); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chipsrow { display: none; }
.hd__in, .hd__brand img { transition: min-height .18s ease, height .18s ease; }
@media (min-width: 861px) {
  body.slim .hd__in { min-height: 56px; }
  body.slim .hd__brand img { height: 30px; }
  body.slim .hd__brand { font-size: 17px; }
  body.slim .langs, body.slim .hd__site, body.slim .cats { display: none; }
  body.slim .hd__search select, body.slim .hd__search input { min-height: 38px; }
}

/* list */
.main { padding-top: 18px; padding-bottom: 60px; }
.crumb { margin: 0 0 14px; font-size: 13px; color: var(--soft); }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.shop { display: grid; grid-template-columns: 264px 1fr; gap: 22px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: calc(var(--hdh, 120px) + 14px); max-height: calc(100vh - var(--hdh, 120px) - 28px); display: flex; flex-direction: column; }
.side__head, .side__foot { display: none; }
.side__body { overflow-y: auto; padding: 6px 0; }
.box { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.box:last-child { border-bottom: 0; }
.box h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .02em; color: var(--soft); font-weight: 700; }
.catlist, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.catlist button { width: 100%; display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.catlist button:hover { background: var(--mist); }
.catlist button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 12%, white); color: var(--acc); font-weight: 700; }
.catlist small, .checks small { color: var(--soft); font-size: 12px; }
.checks label, .tick { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.checks label span { flex: 1; }
.checks input, .tick input { width: 17px; height: 17px; accent-color: var(--acc); }
.more { border: 0; background: none; color: var(--acc); font-weight: 700; padding: 6px 2px; cursor: pointer; font-size: 13px; }
.price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.res { min-width: 0; }
.bar { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.bar__n { font-weight: 700; margin-right: auto; }
.bar__filter { display: none; }
.bar__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.bar__sort select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--ink); font-weight: 600; }
.bar__view { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bar__view button { border: 0; background: #fff; padding: 7px 9px; cursor: pointer; color: var(--soft); display: grid; }
.bar__view button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bar__view svg { width: 18px; height: 18px; }
.bar__side { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--soft); }
.bar__side svg { width: 18px; height: 18px; }
.bar__side[aria-pressed="false"] { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.active:empty { display: none; }
.active button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.active button::after { content: " ×"; color: var(--soft); }

.grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1360px) { .grid { --cols: 5; } }
@media (min-width: 1560px) { .grid { --cols: 6; } }
@media (max-width: 1120px) { .grid { --cols: 3; } }
@media (min-width: 861px) { .shop--noside { grid-template-columns: 1fr; } .shop--noside .side { display: none; } }
.shop--noside .grid { --cols: 5; }
@media (min-width: 1360px) { .shop--noside .grid { --cols: 6; } }
@media (min-width: 1560px) { .shop--noside .grid { --cols: 7; } }
@media (max-width: 1120px) { .shop--noside .grid { --cols: 4; } }
/* small cards: two more per row, tighter card */
.grid--small { gap: 10px; grid-template-columns: repeat(calc(var(--cols) + 2), minmax(0, 1fr)); }
.grid--small .pc__img { padding: 8px; }
.grid--small .pc__body { padding: 8px 10px 10px; gap: 2px; }
.grid--small .pc__brand { font-size: 10.5px; }
.grid--small .pc__t { font-size: 13px; }
.grid--small .now { font-size: 15px; }
.grid--small .stk { display: none; }
.grid--small .pc__btn { min-height: 32px; font-size: 12.5px; margin-top: 6px; }
.grid--small .bd { font-size: 10px; padding: 2px 6px; }
.pc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.pc:hover { border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); box-shadow: 0 6px 20px rgba(20, 33, 43, .08); }
.pc__img { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 14px; }
.pc__img img { width: 100%; height: 100%; object-fit: contain; }
.pc__img img + img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: 0; transition: opacity .2s; background: #fff; }
.pc:hover .pc__img img + img { opacity: 1; }
.badges { position: absolute; top: 10px; left: 10px; display: grid; gap: 4px; justify-items: start; z-index: 1; }
.bd { font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; padding: 3px 8px; border-radius: 6px; }
.bd--sale { background: var(--sale); } .bd--hot { background: var(--hot); } .bd--new { background: var(--new); }
.pc__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.pc__brand { font-size: 12px; color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pc__t { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc__t a { text-decoration: none; }
.pc__t a::before { content: ""; position: absolute; inset: 0; }
.pc__pr { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.now { font-weight: 800; font-size: 17px; color: var(--ink); }
.now--sale { color: var(--sale); }
.was { color: var(--soft); text-decoration: line-through; font-size: 13px; }
.ask { font-weight: 600; font-size: 13.5px; color: var(--soft); }
.stk { font-size: 12px; font-weight: 600; }
.stk--in_stock { color: var(--ok); } .stk--low { color: var(--warn); } .stk--order, .stk--ask { color: var(--soft); }
.pc__btn { position: relative; z-index: 1; margin-top: 8px; width: 100%; min-height: 38px; border-radius: 9px; border: 1px solid var(--acc); background: #fff; color: var(--acc); font-weight: 700; cursor: pointer; }
.pc__btn--buy { background: var(--acc); color: var(--acc-ink); }
.grid--list { grid-template-columns: 1fr; }
.grid--list .pc { flex-direction: row; }
.grid--list .pc__img { width: 180px; flex: 0 0 180px; }
.grid--list .pc__body { border-top: 0; border-left: 1px solid var(--line); }
.grid--list .pc__btn { width: auto; align-self: flex-start; padding: 0 20px; }
.grid--row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--soft); }
.loadmore { text-align: center; margin-top: 20px; }

/* product page */
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.gal { min-width: 0; }
.gal__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; }
.gal__main::-webkit-scrollbar { display: none; }
.gal__main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; padding: 20px; background: #fff; }
.gal__th { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gal__th button { flex: 0 0 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
.gal__th button[aria-current="true"] { border-color: var(--acc); border-width: 2px; }
.gal__th img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 8px; letter-spacing: -.01em; }
.info .meta { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.info .pr { display: flex; align-items: baseline; gap: 12px; margin: 10px 0; }
.info .now { font-size: 28px; }
.info .badges { position: static; display: flex; gap: 6px; }
.buyrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--mist); font-size: 18px; cursor: pointer; }
.qty input { width: 52px; text-align: center; border: 0; font-weight: 700; }
.btn--wa { background: #1fa855; border-color: #1fa855; }
.desc { border-top: 1px solid var(--line); padding-top: 16px; color: #2d3b46; }
.desc h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.desc p { margin: 0 0 6px; }
.desc ul { margin: 0 0 10px; padding-left: 1.2em; }
.desc li { margin: 2px 0; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--soft); font-weight: 600; width: 40%; }
.rel { margin-top: 28px; }
.rel h2 { font-size: 20px; margin: 0; }

/* account */
.acct { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.acct .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; }
.acct h2 { margin: 0; font-size: 19px; }
.acct .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acct .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ord { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.ord__h { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ord__h b { margin-right: auto; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--soft); }
.tag--ok { background: #e3f5ec; color: var(--ok); } .tag--warn { background: #fff3e0; color: var(--warn); } .tag--bad { background: #fde8e7; color: var(--sale); }
.ord ul { margin: 0; padding-left: 18px; font-size: 14px; color: #2d3b46; }
.addr { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: start; }
.addr input, .addr textarea { font: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 15px; width: 100%; }
@media (max-width: 860px) { .acct .g2, .addr { grid-template-columns: 1fr; } }

/* footer */
.ft { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; color: var(--soft); font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 2fr 1fr auto; gap: 20px; }
.ft b { color: var(--ink); }
.ft p { margin: 4px 0; }
.ft__credit { font-size: 12px; margin-top: 14px; }
.tabbar, .wa { display: none; }

/* cart */
.cart { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; max-width: 100%; width: min(440px, 100%); background: #fff; color: var(--ink); }
.cart::backdrop { background: rgba(15, 25, 35, .45); }
.cart[open] { display: flex; flex-direction: column; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font-size: 19px; }
.cart__body { overflow-y: auto; padding: 16px 18px 28px; flex: 1; }
.cl { list-style: none; margin: 0; padding: 0; }
.cl li { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl img { width: 58px; height: 58px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.cl b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cl small { color: var(--soft); }
.cl .gone b { text-decoration: line-through; color: var(--soft); }
.cl .qty button { width: 30px; } .cl .qty span { min-width: 28px; display: grid; place-items: center; font-weight: 700; }
.tot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin: 14px 0; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--soft); }
.form input, .form textarea, .form select { font-family: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 16px; color: var(--ink); background: #fff; }
.form fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin: 0; display: grid; gap: 6px; }
.form fieldset legend { font-size: 13px; font-weight: 600; color: var(--soft); padding: 0 4px; }
.form fieldset label { flex-direction: row; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 500; }
.say { font-weight: 600; margin: 6px 0 0; }
.say[data-bad="1"] { color: var(--sale); }
.paid { display: grid; gap: 12px; }
.paid h3 { margin: 0; font-size: 20px; }
.bank { background: var(--mist); border-radius: 10px; padding: 14px; display: grid; gap: 4px; }
.bank b { font-size: 18px; letter-spacing: .02em; }
.trap { position: absolute; left: -9999px; }

/* phone theme */
@media (max-width: 860px) {
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 12px; }
  .hd__in { grid-template-columns: 1fr auto; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .hd__brand { font-size: 17px; } .hd__brand img { height: 32px; }
  .hd__search { grid-column: 1 / -1; grid-row: 2; border-width: 1.5px; }
  .hd__search select { display: none; }
  .hd__search input { min-height: 42px; }
  .hd__site, .hd__cartt { display: none; }
  .hd__cart { padding: 6px 10px; }
  .langs button { padding: 5px 8px; }
  .cats { display: none; }
  .chipsrow { display: block; background: #fff; border-bottom: 1px solid var(--line); }
  .chipsrow__in { display: flex; gap: 14px; overflow-x: auto; padding: 12px; scrollbar-width: none; }
  .chipsrow__in::-webkit-scrollbar { display: none; }
  .chipsrow button { flex: 0 0 68px; border: 0; background: none; display: grid; justify-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
  .chipsrow button i { width: 56px; height: 56px; border-radius: 16px; background: var(--mist); border: 2px solid transparent; display: grid; place-items: center; overflow: hidden; }
  .chipsrow button i img { width: 80%; height: 80%; object-fit: contain; }
  .chipsrow button[aria-pressed="true"] i { border-color: var(--acc); background: #fff; }
  .chipsrow button[aria-pressed="true"] { color: var(--acc); }
  .main { padding-top: 10px; }
  .crumb { display: none; }
  .shop { display: block; }
  .side { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; z-index: 60; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .22s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
  .side.open { transform: none; }
  .side__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
  .side__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .shade { position: fixed; inset: 0; background: rgba(15,25,35,.45); z-index: 55; }
  .bar { position: sticky; top: 112px; z-index: 20; padding: 8px 10px; gap: 8px; border-radius: 10px; }
  .bar__n { font-size: 13px; }
  .bar__filter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
  .bar__sort span, .bar__view, .bar__side { display: none; }
  .grid--small { grid-template-columns: 1fr 1fr; }
  .grid--small .stk { display: inline; }
  .bar__sort select { font-size: 13px; padding: 6px 8px; max-width: 140px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .grid--list { grid-template-columns: 1fr 1fr; }
  .grid--list .pc { flex-direction: column; } .grid--list .pc__img { width: auto; flex: none; } .grid--list .pc__body { border-left: 0; border-top: 1px solid var(--line); }
  .pc__img { padding: 8px; }
  .pc__body { padding: 9px 10px 10px; }
  .pc__t { font-size: 13.5px; }
  .now { font-size: 15.5px; }
  .pc__btn { min-height: 34px; font-size: 13px; }
  .item { grid-template-columns: 1fr; padding: 0; border: 0; background: none; gap: 14px; }
  .gal__main { border-radius: 14px; background: #fff; }
  .gal__th { display: none; }
  .info { background: #fff; border-radius: 14px; padding: 16px; }
  .info h1 { font-size: 20px; }
  .info .now { font-size: 24px; }
  .buyrow { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); margin: 0; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); z-index: 40; flex-wrap: nowrap; }
  .buyrow .btn { flex: 1; padding: 0 10px; }
  .buyrow .qty { display: none; }
  body.on-item { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  .ft__in { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > * { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; border: 0; background: none; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--soft); cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="true"] { color: var(--acc); }
  .tabbar i { position: absolute; top: 3px; left: 54%; background: var(--sale); color: #fff; font-style: normal; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
  .cart { width: 100%; height: 100%; }
  .wa { display: grid; place-items: center; position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; background: #1fa855; color: #fff; z-index: 45; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
  .wa svg { width: 26px; height: 26px; }
  body.on-item .wa { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* without customer accounts the phone bar has four buttons */
@media (max-width: 860px) { .tabbar:has(> [data-tab="account"][hidden]) { grid-template-columns: repeat(4, 1fr); } }
