:root{
  --ink:#041a1e; --teal:#063036; --teal2:#0a3a42; --gold:#b8995a; --gold2:#d6bd84; --goldInk:#7a6230;
  --bg:#f5f3ee; --card:#fff; --line:#e4e0d6; --text:#16201f; --muted:#5b6765; --bad:#a3271b;
  --r:14px; --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--text);font-size:15px;line-height:1.4;overflow-x:hidden;-webkit-tap-highlight-color:transparent}
body.noscroll{overflow:hidden}
img{max-width:100%;display:block}
a{color:var(--teal2)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px 12px;z-index:100}
.skip:focus{left:8px;top:8px}
[hidden]{display:none!important}
.native .web-only{display:none}

.top{position:sticky;top:0;z-index:20;background:linear-gradient(180deg,var(--ink),var(--teal));color:#fff;padding:calc(var(--safe-t) + 10px) 16px 12px;box-shadow:0 6px 20px rgba(4,26,30,.18)}
.top-row{display:flex;align-items:center;gap:8px;max-width:1100px;margin:0 auto}
.logo{height:34px;width:auto}
.top-btn{margin-left:auto;border:1px solid rgba(214,189,132,.55);background:transparent;color:var(--gold2);border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px;cursor:pointer;min-height:36px}
.search-wrap{position:relative;max-width:1100px;margin:10px auto 0}
.search-wrap input{width:100%;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#fff;font-size:16px;padding:0 14px 0 40px;-webkit-appearance:none;appearance:none}
.search-wrap input::placeholder{color:rgba(255,255,255,.65)}
.search-wrap input:focus{background:rgba(255,255,255,.16);outline:2px solid var(--gold2);outline-offset:0}
.search-ic{position:absolute;left:13px;top:13px;width:18px;height:18px;fill:none;stroke:rgba(255,255,255,.75);stroke-width:2;stroke-linecap:round}
.fresh{margin:0;padding:7px 16px;font-size:12px;color:var(--muted);background:#ece8de;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center;text-align:center}
.fresh .dot{width:7px;height:7px;border-radius:50%;background:#2f8f5b;flex:0 0 auto}
.fresh.old{background:#fbeee0;color:#7a3d0c}.fresh.old .dot{background:#d07a1f}
.linkbtn{background:none;border:0;padding:0;color:var(--teal2);text-decoration:underline;cursor:pointer;font-size:inherit;font-weight:600}
.mt8{margin-top:10px}

main{max-width:1100px;margin:0 auto;padding:12px 16px calc(96px + var(--safe-b))}
main:focus{outline:none}
.h1{font-size:26px;letter-spacing:-.01em;margin:8px 0 8px;font-weight:700}
.h2{font-size:17px;margin:0 0 6px}
.h3{font-size:15px;margin:18px 0 6px}
.mt{margin-top:24px}
.muted{color:var(--muted)} .small{font-size:13px}

.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 16px 6px;margin:0 -16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;color:var(--text);cursor:pointer;white-space:nowrap;min-height:38px}
.chip .n{color:var(--muted);font-weight:500;margin-left:2px}
.chip[aria-pressed="true"]{background:var(--teal);color:#fff;border-color:var(--teal)}
.chip[aria-pressed="true"] .n{color:var(--gold2)}
.count{font-size:13px;color:var(--muted);margin:6px 0 10px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:700px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pcard{background:var(--card);border-radius:var(--r);overflow:hidden;border:1px solid var(--line);text-align:left;padding:0;cursor:pointer;display:flex;flex-direction:column;position:relative}
.pcard:active{transform:scale(.985)}
.pimg{aspect-ratio:1/1;background:#f1efe9;overflow:hidden}
.pimg img{width:100%;height:100%;object-fit:cover}
.pinfo{padding:10px 11px 12px;display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.pkind{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--goldInk);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.ptitle{font-size:15px;font-weight:650;line-height:1.25}
.pprice{font-size:13px;color:var(--text);margin-top:auto;padding-top:4px;font-weight:600}
.msrp{font-size:11px;letter-spacing:.06em;color:var(--muted);font-weight:700}
.oos{font-size:12px;color:var(--bad);font-weight:600}
.favdot{position:absolute;top:8px;right:8px;background:#fff;color:#b3322a;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:14px;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.empty{grid-column:1/-1;color:var(--muted);text-align:center;padding:30px 0}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:0 0 14px}
.empty-card{text-align:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 16px;min-height:46px;font-weight:650;border:1px solid transparent;cursor:pointer;text-decoration:none;font-size:15px}
.btn.primary{background:var(--teal);color:#fff}
.btn.primary:active{background:var(--ink)}
.btn.ghost{background:#fff;border-color:var(--line);color:var(--text)}
.btn.block{display:flex;width:100%;margin-top:10px}
.btn.big{min-height:58px;font-size:17px;margin:14px 0}
.btn.big svg{width:26px;height:26px;fill:none;stroke:var(--gold2);stroke-width:1.8;stroke-linecap:round}
.btn.sm{min-height:36px;padding:6px 12px;font-size:14px}
.btn.grow{flex:1}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.btn-row .btn{flex:1 1 auto}
.facts{list-style:none;margin:0 0 6px;padding:0}
.facts li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.facts li span{color:var(--muted)}
.facts li b,.facts li a{text-align:right;font-weight:600}
.rowlink{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 0;font-size:15px;font-weight:600;cursor:pointer;text-align:left;min-height:46px}
.rowlink:last-child{border-bottom:0}
.rowlink span{color:var(--gold);font-size:20px}
.source-note{font-size:12px;color:var(--muted);text-align:center;margin:20px 8px}
.form label{display:block;font-weight:600;font-size:14px;margin-bottom:8px}
.inrow{display:flex;gap:8px}
.inrow input{flex:1;min-width:0;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font-size:16px}
.cam{position:relative;margin:0 0 14px;border-radius:var(--r);overflow:hidden;background:#000}
.cam video{width:100%;max-height:60vh;object-fit:cover}
.cam .btn{position:absolute;bottom:10px;left:50%;transform:translateX(-50%)}

.line{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:10px;margin-bottom:10px;position:relative}
.line img{width:64px;height:64px;border-radius:10px;object-fit:cover;background:#f1efe9;flex:0 0 auto}
.line.gone{opacity:.75}
.lmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lmain small{color:var(--muted);font-size:12.5px}
.ltitle{background:none;border:0;padding:0;text-align:left;font-weight:650;font-size:15px;cursor:pointer;padding-right:26px}
.lrow{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.lprice{font-weight:650;font-size:14px}
.x{position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;background:none;font-size:22px;color:var(--muted);cursor:pointer}
.line .btn{align-self:center}
.sum .row{display:flex;justify-content:space-between;font-size:16px;padding:4px 0 8px;border-bottom:1px solid var(--line)}
.note{font-size:13px;color:var(--muted);margin:10px 0 0}
.hrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#faf8f3;border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:8px;cursor:pointer;min-height:52px}
.hrow small{display:block;color:var(--muted);font-size:12px}
.hrow>span:nth-child(2){flex:1;min-width:0;font-weight:600;font-size:14px}
.hnum{width:26px;height:26px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;flex:0 0 auto}
.hgo{color:var(--teal2);font-weight:700;font-size:13px}
.hrow.ok{background:#eef6f0;border-color:#b9dcc5}.hrow.ok .hnum{background:#2f8f5b}

.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.qty button{width:44px;height:46px;border:0;background:#fff;font-size:20px;cursor:pointer}
.qty input{width:52px;height:46px;border:0;text-align:center;font-size:16px;font-weight:650}
.qty.sm button{width:34px;height:34px;font-size:17px}.qty.sm span{min-width:30px;text-align:center;font-weight:650}

.sheet-backdrop{position:fixed;inset:0;background:rgba(4,26,30,.45);z-index:40}
.sheet{position:fixed;left:0;right:0;bottom:0;max-height:92vh;overflow-y:auto;background:var(--bg);z-index:41;border-radius:20px 20px 0 0;padding:8px 16px calc(24px + var(--safe-b));-webkit-overflow-scrolling:touch;max-width:720px;margin:0 auto}
.sheet-grip{width:44px;height:5px;border-radius:3px;background:#cfc9bb;margin:2px auto 8px}
.sheet-close{position:sticky;top:0;float:right;width:36px;height:36px;border-radius:50%;border:0;background:#fff;font-size:22px;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12);z-index:2}
.gallery .hero{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--r);background:#f1efe9}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 0;scrollbar-width:none}
.thumb{flex:0 0 56px;height:56px;border-radius:10px;overflow:hidden;border:2px solid transparent;padding:0;background:#f1efe9;cursor:pointer}
.thumb.on{border-color:var(--teal)}
.thumb img{width:100%;height:100%;object-fit:cover}
.ptitle-lg{font-size:22px;margin:2px 0 2px;line-height:1.2}
.sku{font-size:13px;color:var(--muted);margin:0 0 8px}
.pricebar{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:6px}
.pricebar b{font-size:20px}
.pricebar .linkbtn{margin-left:auto;font-size:13px}
.opt{border:0;padding:0;margin:12px 0 0}
.opt legend{font-size:14px;color:var(--muted);margin-bottom:6px;padding:0}
.opt legend b{color:var(--text)}
.optvals{display:flex;flex-wrap:wrap;gap:8px}
.ov{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:14px;font-weight:600;cursor:pointer;min-height:40px;display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.ov small{font-size:11px;color:var(--bad);font-weight:600}
.ov.oos{color:#7b8483}
.ov.none{opacity:.4}
.ov[aria-pressed="true"]{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal);color:var(--text)}
.status{font-weight:700;margin:12px 0 0}
.status.bad{color:var(--bad)}
.buyrow{display:flex;gap:10px;margin-top:14px}
.specs{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.specs dt{color:var(--muted)}.specs dd{margin:0;font-weight:600}
.desc{font-size:14px;color:#2c3735}
.doc p{font-size:14px;margin:0 0 10px}
.doc .li{padding-left:6px}

.toast{position:fixed;left:50%;bottom:calc(84px + var(--safe-b));transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:88vw;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;background:rgba(4,26,30,.97);padding:6px 4px calc(6px + var(--safe-b));backdrop-filter:blur(10px)}
.tab{flex:1;background:none;border:0;color:rgba(255,255,255,.62);display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;padding:4px 0;cursor:pointer;position:relative;min-height:48px}
.tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab[aria-current="page"]{color:var(--gold2)}
.badge{position:absolute;top:0;left:calc(50% + 6px);background:var(--gold2);color:var(--ink);font-size:11px;border-radius:999px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px}

/* in-app checkout (2026-11-04) */
.checkout-btn{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;min-height:52px;margin-top:6px}
.checkout-btn svg{width:20px;height:20px;fill:none;stroke:var(--gold2);stroke-width:2;stroke-linecap:round}
.note.center{text-align:center;margin-top:8px}
.pendnote{background:#fbf6ea;border:1px solid var(--gold2);border-radius:10px;padding:10px 12px;font-size:14px;margin:10px 0}
.ckwait{position:fixed;inset:0;z-index:100;background:rgba(4,26,30,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.ckwait[hidden]{display:none}
.ckbox{background:#fff;border-radius:18px;padding:26px 22px;max-width:340px;width:100%;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.ckbox b{font-size:17px}.ckbox small{color:var(--muted);font-size:13px}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--teal);animation:spin .8s linear infinite;margin-bottom:6px}
@keyframes spin{to{transform:rotate(360deg)}}
.tick{width:56px;height:56px;border-radius:50%;background:var(--teal);color:var(--gold2);font-size:30px;line-height:56px;font-weight:700;margin-bottom:4px}
.ckwait.done .btn{margin-top:10px}
