:root{--p:#1266cb;--pd:#0b2b56;--bg:#f4f6f9;--card:#fff;--ink:#16202e;--muted:#6b7787;--line:#e4e9f0;--warn:#ffce32;--r:20px}*{box-sizing:border-box}html{background:var(--bg);overscroll-behavior-y:none}#app{overflow-x:hidden}body{margin:0;overscroll-behavior-y:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--bg);padding-bottom:82px}button,input,select,textarea{font:inherit}.hidden{display:none!important}.splash{height:100dvh;display:grid;place-content:center;text-align:center;color:#fff;background:linear-gradient(145deg,#0b2b56,#1266cb)}.splash img{width:190px;margin:0 auto 6px;display:block}.splash span{color:#ffffffcc;font-size:13px}header{padding:calc(8px + env(safe-area-inset-top)) 16px 12px;background:linear-gradient(145deg,#0b2b56,#1266cb);color:#fff;border-radius:0 0 18px 18px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.brand{height:30px;width:auto;display:block}.iconbtn{width:38px;height:38px;border:0;border-radius:14px;background:#ffffff22;color:inherit;font-size:20px}.search{display:flex;background:#fff;border-radius:16px;padding:4px;box-shadow:0 8px 25px #0b2b5640}.search input{min-width:0;flex:1;border:0;outline:0;padding:12px;background:transparent}.search button{border:0;color:#fff;background:var(--p);border-radius:12px;padding:0 15px}.wrap{max-width:760px;margin:auto}.section{padding:12px 16px 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-title h2{font-size:18px;margin:0}.link{border:0;background:none;color:var(--p);font-weight:700}.cats{display:flex;gap:10px;overflow:auto;scrollbar-width:none}.cat{min-width:78px;border:1px solid var(--line);background:#fff;border-radius:17px;padding:12px 8px;text-align:center}.cat.active{background:#e8f1fd;border-color:#a9ccff}.cat i{display:block;font-style:normal;font-size:24px}.cat-svg{display:block;width:26px;height:26px;margin:0 auto 4px}.cat small{font-weight:650}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{background:#fff;border-radius:0;overflow:hidden;border:1px solid var(--line);box-shadow:0 5px 18px #16202e0d;position:relative}.card img,.detail-img,img{border-radius:0}.card img{width:100%;aspect-ratio:1.16;object-fit:cover;background:#e9edf3}.card-body{padding:11px}.card h3{font-size:14px;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price{font-weight:850;color:var(--p)}.meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;margin-top:8px}.heart{position:absolute;right:8px;top:8px;width:34px;height:34px;border:0;border-radius:12px;background:#fffffff0;font-size:17px}.featured{position:absolute;left:8px;top:8px;background:var(--warn);padding:5px 8px;border-radius:8px;font-size:10px;font-weight:800}.nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:7px 6px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #16202e14}.nav button{border:0;background:none;color:var(--muted);font-size:11px;min-width:58px}.nav b{display:block;font-size:21px;margin-bottom:1px}.nav .active{color:var(--p)}.nav .post b{background:var(--p);color:#fff;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;margin:-25px auto 2px;box-shadow:0 8px 20px #1266cb55}.pagehead{padding:calc(5px + env(safe-area-inset-top)) 12px 5px;background:linear-gradient(145deg,#0b2b56,#1266cb);position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:8px}.pagehead h1{font-size:15px;margin:0;font-weight:700;color:#fff;flex:1;text-align:center;padding-right:30px}.back{border:0;background:#ffffff2e;color:#fff;border-radius:10px;width:30px;height:30px;font-size:13px;flex:none}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#fff;padding:14px;border-radius:18px;border:1px solid var(--line);margin-bottom:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700}.field input,.field select,.field textarea{width:100%;padding:13px;border:1px solid #d8e0ea;border-radius:13px;background:#fff;outline-color:var(--p)}.primary{width:100%;border:0;border-radius:14px;background:var(--p);color:#fff;padding:14px;font-weight:800}.primary.call{display:block;text-align:center;text-decoration:none}.secondary{width:100%;border:1px solid var(--p);border-radius:14px;background:#fff;color:var(--p);padding:13px;font-weight:800}.wrap{position:relative}.floatback{position:absolute;z-index:5;left:12px;top:calc(12px + env(safe-area-inset-top));width:36px;height:36px;border:0;border-radius:50%;background:#00000066;color:#fff;font-size:15px;backdrop-filter:blur(3px)}.gal{position:relative}.galstrip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.galstrip::-webkit-scrollbar{display:none}.detail-img{flex:0 0 100%;width:100%;aspect-ratio:1.15;object-fit:cover;scroll-snap-align:center}.galdots{position:absolute;left:0;right:0;bottom:10px;display:flex;gap:5px;justify-content:center}.galdots i{width:6px;height:6px;border-radius:50%;background:#ffffff8a}.galdots i.on{background:#fff;width:16px;border-radius:99px}.galcount{position:absolute;right:10px;top:10px;background:#0009;color:#fff;font-size:11px;padding:3px 8px;border-radius:99px}.lightbox{position:fixed;inset:0;z-index:200;background:#000}.lbstrip{height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.lbstrip::-webkit-scrollbar{display:none}.lbstrip img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:center}.lbclose{position:absolute;top:calc(10px + env(safe-area-inset-top));right:12px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:#ffffff26;color:#fff;font-size:24px;line-height:1}.detail{padding:17px}.detail h1{font-size:23px;margin:4px 0}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{padding:7px 10px;border-radius:99px;background:#e8f1fd;color:var(--pd);font-size:12px}.seller{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:17px;margin:16px 0}.avatar{width:48px;height:48px;border-radius:50%;background:#dce9fb;display:grid;place-items:center;font-weight:900;color:var(--p)}.loadmore{text-align:center;color:var(--muted);font-size:12px;padding:18px 0 6px}.empty{text-align:center;padding:55px 18px;color:var(--muted)}.auth{min-height:100dvh;padding:50px 20px;display:grid;align-content:center;background:linear-gradient(160deg,#e8f1fd,#fff)}.authbox{background:#fff;padding:22px;border-radius:25px;box-shadow:0 18px 50px #0b2b561a}.auth h1{color:var(--p);font-size:38px;letter-spacing:-3px;margin:0}.auth .field{margin-top:12px}.note{font-size:12px;color:var(--muted);background:#eef3f9;padding:10px;border-radius:10px;margin:12px 0}.row{display:flex;gap:10px}.profilehero{text-align:center;padding:30px 16px;background:#fff}.profilehero .avatar{width:78px;height:78px;margin:auto;font-size:28px}.menu{margin:14px;background:#fff;border-radius:18px;overflow:hidden;border:1px solid var(--line)}.menu button{width:100%;padding:16px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left}.rating button{border:0;background:none;font-size:25px;color:#ccd4de}.rating button.on{color:#ffac33}#toast{position:fixed;z-index:100;left:50%;bottom:94px;transform:translateX(-50%);background:#16202e;color:#fff;border-radius:12px;padding:10px 14px;opacity:0;pointer-events:none;transition:.25s;white-space:nowrap}#toast.show{opacity:1}@media(min-width:700px){.grid{grid-template-columns:repeat(3,1fr)}body{background:#e7ecf3}.wrap{background:var(--bg);min-height:100vh;box-shadow:0 0 50px #16202e17}.nav{max-width:760px;margin:auto}}

.sheetwrap{position:fixed;inset:0;z-index:150;background:#0007;display:flex;align-items:flex-end}.sheet{background:#fff;width:100%;max-height:88dvh;overflow:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}.sheethead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sheethead b{font-size:16px}.sheetx{border:0;background:#eef2f7;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1}.sheet .field{margin-bottom:12px}.sheet .field small{color:var(--muted);font-size:11px}.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}.enqmsg{font-size:13px;margin:10px 0 0}.enqmsg.ok{color:#1b7f4d}.enqmsg.bad{color:#b91c1c}

/* Way back to the desktop site. Quiet, at the end, out of the thumb's way. */
.desktop-switch {
  display: block;
  margin: 26px auto 90px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #6b7787;
  text-decoration: none;
}
.desktop-switch:hover { color: #0b2b56; text-decoration: underline; }


/* Share sheet -- only shown when the phone has no native share (http, or a
   desktop browser). Same bottom-sheet language as .sheetwrap so it does not
   look like a different app. */
.sharesheet{position:fixed;inset:0;z-index:160;background:#0007;display:flex;align-items:flex-end}
.sharebox{background:#fff;width:100%;border-radius:20px 20px 0 0;padding:18px 14px calc(14px + env(safe-area-inset-bottom));max-width:760px;margin:auto}
.sharegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.shareitem{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 6px;border:0;background:none;color:var(--ink);font-size:12px;font-weight:650;text-decoration:none;border-radius:14px}
.shareitem:active{background:#eef2f7}
.shareicon{width:46px;height:46px;border-radius:50%;background:#f1f5fa;display:grid;place-items:center;font-size:20px;color:var(--p)}
.sharecancel{width:100%;margin-top:12px;border:0;border-radius:14px;background:#eef2f7;color:var(--ink);padding:14px;font-weight:800}
/* Three buttons in the action row, not two: keep them readable on a 360px phone. */
.row .secondary{padding:13px 8px;font-size:13px}
