/* ====================================================================
   Ergo Container Direct — facade styles
   Brand matched to ergomotion.com:
   deep blue #043673 · accent blues #1C7FB8 / #2E9BD6 / #4197B4
   type: Plus Jakarta Sans · text #1D2020 / #646464
   ==================================================================== */

/* ---- Ergomotion brand font (local copy → works offline) ---- */
@font-face{
  font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(assets/fonts/plus-jakarta-sans-latin.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  /* Ergomotion palette (sampled from ergomotion.com) */
  --ink:#0C2745;                /* deep blue-ink: headings & dark surfaces */
  --navy:#043673;               /* BRAND primary deep blue */
  --navy2:#0A5BA6;              /* gradient lighter blue */
  --teal:#1C7FB8; --teal-d:#0E5E8E; --teal-l:#E8F2F8;   /* primary interactive accent (brand blue) */
  --amber:#2E9BD6; --amber-d:#1A5578; --gold:#4197B4;   /* bright accent (AI / key CTA) */
  --red:#C24D45; --green:#2E9E6B;
  --bg:#EEF2F6; --card:#FFFFFF; --line:#DDE4EC; --line2:#EAF0F5;
  --ink-70:#3A4B61; --muted:#646464; --muted2:#93A1B2;  /* body gray matches ergomotion.com */
  --shadow:0 10px 30px rgba(4,54,115,.08), 0 2px 6px rgba(4,54,115,.06);
  --shadow-lg:0 24px 60px rgba(4,54,115,.18);
  --r:16px; --r-sm:10px;
  --font:'Plus Jakarta Sans',-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --panel-w:360px;              /* assistant panel width */
  --dock-space:calc(var(--panel-w) + 48px);  /* gutter reserved when open */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.45;
}
button{font-family:inherit; cursor:pointer}
h1,h2,h3,h4{margin:0; line-height:1.2}
.muted{color:var(--muted)} .tiny{font-size:12px}

/* ---------- Top bar ---------- */
.topbar{
  position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:24px;
  padding:0 26px; height:64px;
  background:linear-gradient(100deg,var(--ink),var(--navy) 70%,var(--navy2));
  color:#fff; box-shadow:0 2px 14px rgba(15,36,64,.25);
}
.brand{display:flex; align-items:center; gap:13px}
.brand-logo{height:26px; width:auto; display:block}
.brand-divider{width:1px; height:22px; background:rgba(255,255,255,.28)}
.brand-sub{font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#AFCCE4; font-weight:700; white-space:nowrap}
.top-nav{display:flex; gap:4px; margin-left:8px}
.top-nav a{
  color:#cdd9e6; text-decoration:none; font-size:13.5px; font-weight:600;
  padding:8px 14px; border-radius:8px;
}
.top-nav a.active{color:#fff; background:rgba(255,255,255,.12)}
.top-nav a:hover{color:#fff}
.top-switch{margin-left:auto; text-decoration:none; font-size:12.5px; font-weight:700; color:#cfe0f3;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); padding:7px 13px; border-radius:9px; transition:.15s; white-space:nowrap}
.top-switch:hover{background:rgba(255,255,255,.2); color:#fff}
.account{display:flex; align-items:center; gap:12px}
.account-info{display:flex; flex-direction:column; text-align:right; line-height:1.15}
.account-name{font-weight:700; font-size:13.5px}
.account-role{font-size:11px; color:#9fb2c6}
.avatar{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  font-weight:700; font-size:13px; background:var(--amber); color:#fff;
}

/* ---------- Stepper ---------- */
.stepper{
  display:flex; align-items:center; gap:0; justify-content:center;
  padding:16px 24px 4px; flex-wrap:wrap;
}
.step{display:flex; align-items:center; gap:10px; color:var(--muted2)}
.step .num{
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  font-weight:700; font-size:13px; background:#fff; border:2px solid var(--line);
  color:var(--muted2); transition:.25s;
}
.step .lbl{font-size:13px; font-weight:600}
.step.done .num{background:var(--teal); border-color:var(--teal); color:#fff}
.step.active .num{background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:0 0 0 4px rgba(15,36,64,.12)}
.step.active .lbl{color:var(--ink)}
.step.done .lbl{color:var(--teal-d)}
.step-sep{width:46px; height:2px; background:var(--line); margin:0 10px}
.step-sep.done{background:var(--teal)}

/* ---------- Stage / cards ---------- */
.stage{max-width:1180px; margin:10px auto 120px; padding:14px 24px; transition:margin .28s ease}
.view{animation:fade .35s ease}
@keyframes fade{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
.view-head{margin-bottom:18px}
.view-head .kicker{font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--teal-d); font-weight:800}
.view-head h1{font-size:28px; margin-top:4px}
.view-head p{color:var(--muted); margin:6px 0 0; max-width:720px}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow)}
.grid{display:grid; gap:18px}
.g2{grid-template-columns:1fr 1fr}
.g3{grid-template-columns:repeat(3,1fr)}
.pad{padding:22px}
.row{display:flex; gap:16px; align-items:center}
.spread{display:flex; justify-content:space-between; align-items:center}

/* ---------- Buttons ---------- */
.btn{
  border:none; border-radius:10px; padding:13px 22px; font-size:14.5px; font-weight:700;
  background:var(--teal); color:#fff; box-shadow:0 6px 16px rgba(28,127,184,.3); transition:.18s;
}
.btn:hover{transform:translateY(-1px); background:var(--teal-d)}
.btn.lg{padding:15px 30px; font-size:15.5px}
.btn.ghost{background:#fff; color:var(--ink); border:1.5px solid var(--line); box-shadow:none}
.btn.ghost:hover{border-color:var(--ink); background:#fff}
.btn.ink{background:var(--ink)} .btn.ink:hover{background:#06162b}
.btn.amber{background:var(--amber); box-shadow:0 6px 16px rgba(46,155,214,.3)} .btn.amber:hover{background:var(--teal-d)}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none}
.btnbar{display:flex; gap:12px; justify-content:space-between; margin-top:26px; align-items:center}

/* ---------- Start view ---------- */
.opt-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.opt{
  position:relative; padding:24px; border-radius:var(--r); cursor:pointer;
  background:var(--card); border:2px solid var(--line); transition:.2s;
}
.opt:hover{border-color:var(--teal); transform:translateY(-3px); box-shadow:var(--shadow)}
.opt.sel{border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-l)}
.opt .ic{font-size:26px} 
.opt h3{margin:12px 0 6px; font-size:17px}
.opt p{margin:0; color:var(--muted); font-size:13.5px}
.opt .tag{position:absolute; top:14px; right:14px; font-size:10.5px; font-weight:800; letter-spacing:.5px;
  background:var(--teal-l); color:var(--teal-d); padding:4px 9px; border-radius:20px}
.defaults{display:grid; grid-template-columns:repeat(4,1fr); gap:0}
.def{padding:16px 18px; border-right:1px solid var(--line2)}
.def:last-child{border-right:none}
.def .k{font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:700}
.def .v{font-size:15px; font-weight:700; margin-top:5px}
.def .v small{display:block; font-weight:500; color:var(--muted); font-size:12px}

/* IOR panel */
.ior{display:flex; gap:18px; align-items:flex-start; padding:22px;
  background:linear-gradient(120deg,#fff, var(--teal-l)); border:1.5px solid var(--teal);}
.ior .ic{font-size:30px}
.ior h3{font-size:18px}
.ior p{color:var(--ink-70); margin:6px 0 0; font-size:13.5px; max-width:640px}
.toggle{position:relative; width:54px; height:30px; border-radius:30px; background:var(--line);
  border:none; transition:.2s; flex:none}
.toggle.on{background:var(--teal)}
.toggle::after{content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%;
  background:#fff; transition:.2s; box-shadow:0 2px 5px rgba(0,0,0,.25)}
.toggle.on::after{left:27px}
.doclist{display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:16px}
.doc{display:flex; align-items:center; gap:10px; font-size:13px; padding:8px 12px;
  background:#fff; border:1px solid var(--line); border-radius:8px}
.doc .ck{color:var(--teal); font-weight:800}
.collapse{overflow:hidden; max-height:0; transition:max-height .35s ease, opacity .3s; opacity:0}
.collapse.open{max-height:260px; opacity:1}

/* ---------- Plan / 3D view ---------- */
.plan-grid{display:grid; grid-template-columns:340px 1fr; gap:18px}
.catalog{max-height:560px; overflow:auto}
.cat-item{display:flex; gap:12px; align-items:center; padding:13px 16px; border-bottom:1px solid var(--line2)}
.cat-item:last-child{border-bottom:none}
.cat-thumb{width:46px; height:46px; border-radius:9px; flex:none; display:grid; place-items:center;
  font-size:22px; background:var(--teal-l)}
.cat-meta{flex:1; min-width:0}
.cat-meta .nm{font-weight:700; font-size:13.5px}
.cat-meta .sk{font-size:11.5px; color:var(--muted2)}
.qty{display:flex; align-items:center; gap:8px}
.qty button{width:26px; height:26px; border-radius:7px; border:1px solid var(--line); background:#fff; font-weight:800; color:var(--ink)}
.qty input{width:44px; text-align:center; border:1px solid var(--line); border-radius:7px; padding:5px; font-weight:700}

.loadbox{position:relative; padding:0; overflow:hidden; display:flex; flex-direction:column}
.scene-head{display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line2)}
.scene-head .ttl{font-weight:800; font-size:15px}
.scene-head .ctl{display:flex; gap:8px}
.chip-btn{font-size:12px; font-weight:700; padding:7px 12px; border-radius:20px; border:1px solid var(--line);
  background:#fff; color:var(--ink-70)}
.chip-btn.on{background:var(--ink); color:#fff; border-color:var(--ink)}

.scene3d{position:relative; height:430px; background:
  radial-gradient(130% 100% at 50% 0%, #fbfdff, #eaf0f6 70%, #e2e9f1);
  cursor:grab; perspective:1500px; perspective-origin:50% 42%; overflow:hidden}
.scene3d.grab{cursor:grabbing}
.scene3d .floor-grid{position:absolute; inset:0; background-image:
  linear-gradient(rgba(27,58,94,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(27,58,94,.06) 1px, transparent 1px);
  background-size:34px 34px; transform:perspective(600px) rotateX(60deg) scale(2); transform-origin:center 80%; opacity:.6}
.world{position:absolute; left:50%; top:52%; width:0; height:0; transform-style:preserve-3d}
.box{position:absolute; left:0; top:0; transform-style:preserve-3d}
.face{position:absolute; left:50%; top:50%}
.eff-overlay{position:absolute; top:16px; left:20px; display:flex; gap:10px; flex-wrap:wrap; z-index:5}
.eff{background:rgba(255,255,255,.92); border:1px solid var(--line); border-radius:12px; padding:9px 14px; box-shadow:var(--shadow); backdrop-filter:blur(4px)}
.eff .k{font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.eff .v{font-size:19px; font-weight:800; line-height:1.1}
.eff.hl .v{color:var(--teal-d)}
.hintbar{position:absolute; bottom:12px; left:0; right:0; text-align:center; font-size:12px; color:var(--muted); z-index:5}
.fillbar{height:10px; border-radius:10px; background:var(--line2); overflow:hidden; margin-top:4px}
.fillbar > i{display:block; height:100%; background:linear-gradient(90deg,var(--teal),var(--teal-d)); transition:width .8s cubic-bezier(.2,.8,.2,1)}

/* ---------- Costing ---------- */
.fwd{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.fwd .f{padding:20px; border:2px solid var(--line); border-radius:var(--r); cursor:pointer; transition:.2s; position:relative; background:#fff}
.fwd .f:hover{border-color:var(--teal); transform:translateY(-2px)}
.fwd .f.sel{border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-l)}
.fwd .f .tag{position:absolute; top:-11px; left:18px; font-size:10.5px; font-weight:800; letter-spacing:.5px; background:var(--teal); color:#fff; padding:4px 10px; border-radius:20px}
.fwd .f h3{font-size:16px}
.fwd .f .price{font-size:26px; font-weight:800; margin:10px 0 2px}
.fwd .f .sub{font-size:12.5px; color:var(--muted)}
.fwd .f .days{display:inline-block; margin-top:10px; font-size:12px; font-weight:700; color:var(--navy); background:var(--line2); padding:5px 11px; border-radius:20px}
.ldtable{width:100%; border-collapse:collapse}
.ldtable td{padding:12px 6px; border-bottom:1px solid var(--line2); font-size:14px}
.ldtable tr:last-child td{border-bottom:none}
.ldtable td:last-child{text-align:right; font-weight:700}
.ldtable .total td{font-size:17px; font-weight:800; color:var(--ink); border-top:2px solid var(--ink)}
.ldtable .note td{color:var(--muted); font-size:12px; font-weight:500}
.illus{display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.5px; color:var(--teal-d); background:var(--teal-l); padding:3px 9px; border-radius:20px}

/* ---------- Review / summary ---------- */
.sumline{display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line2); font-size:14px}
.sumline:last-child{border-bottom:none}
.sumline .k{color:var(--muted)}
.sumline .v{font-weight:700}
.pill{font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:20px; background:var(--teal-l); color:var(--teal-d)}

/* ---------- Confirmation ---------- */
.confirm{text-align:center; padding:50px 24px}
.check{width:92px; height:92px; border-radius:50%; margin:0 auto 22px; background:var(--teal); display:grid; place-items:center;
  box-shadow:0 14px 40px rgba(28,127,184,.4); animation:pop .5s cubic-bezier(.2,1.4,.4,1)}
.check svg{width:46px; height:46px}
@keyframes pop{from{transform:scale(.2); opacity:0}to{transform:scale(1); opacity:1}}
.confirm h1{font-size:30px}
.confirm .ord{display:inline-block; margin-top:14px; font-size:15px; font-weight:800; letter-spacing:1px; color:var(--ink);
  background:var(--line2); padding:10px 20px; border-radius:10px}
.confirm .items{max-width:560px; margin:26px auto 0; text-align:left}

/* ---------- Tracking ---------- */
.track-top{display:grid; grid-template-columns:1fr 360px; gap:18px}
.track-grid{display:grid; grid-template-columns:1fr 360px; gap:18px; align-items:start; margin-top:18px}
.route{position:relative; height:220px; border-radius:var(--r); overflow:hidden;
  background:linear-gradient(180deg,#0f2440,#1b3a5e 60%,#27507d)}
.route .sea{position:absolute; inset:0; opacity:.3; background-image:
  radial-gradient(circle at 20% 40%, rgba(255,255,255,.1) 0 2px, transparent 3px),
  radial-gradient(circle at 70% 70%, rgba(255,255,255,.08) 0 2px, transparent 3px)}
.route svg{position:absolute; inset:0; width:100%; height:100%}
.port{position:absolute; bottom:24px; color:#fff; text-align:center; transform:translateX(-50%)}
.port .pin{font-size:22px}
.port .nm{font-size:12px; font-weight:800; margin-top:2px}
.port .sub{font-size:10.5px; color:#9fb2c6}
.ship{position:absolute; font-size:26px; transition:left 1.2s ease, top 1.2s ease; transform:translate(-50%,-50%); filter:drop-shadow(0 4px 6px rgba(0,0,0,.4))}
.eta-badge{position:absolute; top:16px; right:18px; background:rgba(255,255,255,.95); border-radius:12px; padding:10px 15px; box-shadow:var(--shadow)}
.eta-badge .k{font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.eta-badge .v{font-size:18px; font-weight:800}

.milestones{position:relative; padding:6px 0}
.ms{display:flex; gap:16px; padding:0 0 4px}
.ms .rail{display:flex; flex-direction:column; align-items:center}
.ms .dot{width:22px; height:22px; border-radius:50%; background:#fff; border:3px solid var(--line); z-index:2; transition:.3s; display:grid; place-items:center; font-size:11px}
.ms .line{width:3px; flex:1; background:var(--line); margin:2px 0}
.ms:last-child .line{display:none}
.ms.done .dot{background:var(--teal); border-color:var(--teal); color:#fff}
.ms.done .line{background:var(--teal)}
.ms.current .dot{background:var(--amber); border-color:var(--amber); color:#fff; box-shadow:0 0 0 5px rgba(46,155,214,.2); animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 5px rgba(46,155,214,.2)}50%{box-shadow:0 0 0 9px rgba(46,155,214,.08)}}
.ms .body{padding-bottom:22px; flex:1}
.ms .body .t{font-weight:700; font-size:14.5px}
.ms .body .d{font-size:12.5px; color:var(--muted); margin-top:2px}
.ms.current .body .t{color:var(--amber-d)}
.ms.pending{opacity:.55}

.detgrid{display:grid; grid-template-columns:1fr 1fr; gap:0}
.det{padding:12px 16px; border-bottom:1px solid var(--line2); border-right:1px solid var(--line2)}
.det:nth-child(2n){border-right:none}
.det .k{font-size:10.5px; letter-spacing:.8px; text-transform:uppercase; color:var(--muted2); font-weight:800}
.det .v{font-size:14px; font-weight:700; margin-top:3px; word-break:break-word}

.demohint{display:flex; align-items:center; gap:10px; justify-content:center; margin-top:18px; font-size:12.5px; color:var(--muted)}

/* ---------- AI dock ---------- */
.ai-dock{position:fixed; right:22px; bottom:22px; z-index:60}
.ai-fab{position:relative; width:60px; height:60px; border-radius:50%; border:none; color:#fff; font-size:24px;
  background:linear-gradient(135deg,var(--amber),var(--teal)); box-shadow:0 12px 30px rgba(46,155,214,.45)}
.ai-fab-glow{position:absolute; inset:-6px; border-radius:50%; background:var(--amber); opacity:.35; animation:pulse2 2s infinite; z-index:-1}
@keyframes pulse2{0%{transform:scale(1); opacity:.35}70%{transform:scale(1.5); opacity:0}100%{opacity:0}}
.ai-panel{position:absolute; right:0; bottom:74px; width:var(--panel-w); max-height:min(560px, calc(100vh - 120px)); display:flex; flex-direction:column;
  background:#fff; border-radius:18px; box-shadow:var(--shadow-lg); border:1px solid var(--line);
  transform-origin:bottom right; transition:.25s; overflow:hidden}
.ai-panel.hidden{opacity:0; transform:scale(.9) translateY(10px); pointer-events:none}
.ai-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  background:linear-gradient(100deg,var(--ink),var(--navy)); color:#fff}
.ai-id{display:flex; gap:11px; align-items:center}
.ai-orb{width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:18px;
  background:linear-gradient(135deg,var(--amber),var(--teal)); box-shadow:0 3px 10px rgba(46,155,214,.45)}
.ai-id-text{display:flex; flex-direction:column; line-height:1.2}
.ai-id-text strong{font-size:14.5px}
.ai-status{font-size:11.5px; color:#bcd; display:flex; align-items:center; gap:6px}
.ai-status .dot{width:7px; height:7px; border-radius:50%; background:#49d38a; display:inline-block; box-shadow:0 0 0 0 rgba(73,211,138,.6); animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.4}}
.ai-min{background:transparent; border:none; color:#bcd; font-size:20px; line-height:1}
.ai-body{flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; background:#f7fafc; min-height:160px}
.msg{max-width:88%; padding:11px 14px; border-radius:14px; font-size:13.5px; line-height:1.45; animation:fade .3s}
.msg.ai{align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px}
.msg.me{align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:4px}
.msg.ai b{color:var(--teal-d)}
.typing{align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px 16px; display:flex; gap:4px}
.typing i{width:7px; height:7px; border-radius:50%; background:var(--muted2); animation:tp 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes tp{0%,60%,100%{transform:translateY(0); opacity:.4}30%{transform:translateY(-5px); opacity:1}}
.ai-chips{display:flex; gap:7px; flex-wrap:wrap; padding:0 14px 10px; background:#f7fafc}
.ai-chip{font-size:12.5px; font-weight:700; padding:8px 13px; border-radius:20px; border:1.5px solid var(--teal);
  background:#fff; color:var(--teal-d); transition:.15s}
.ai-chip:hover{background:var(--teal); color:#fff}
.ai-input{display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--line); background:#fff}
.ai-input input{flex:1; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13.5px; outline:none}
.ai-input input:focus{border-color:var(--teal)}
.ai-input button{border:none; background:var(--teal); color:#fff; border-radius:10px; padding:0 16px; font-weight:700}

/* ---------- Shop (eShop grid) ---------- */
.persona{display:flex; gap:12px; align-items:center; padding:12px 16px; margin-bottom:16px; font-size:13px;
  background:linear-gradient(120deg,#fff,var(--teal-l)); border:1px solid var(--teal); border-radius:12px}
.persona .ic{font-size:22px}
.persona b{color:var(--teal-d)}
.shop-wrap{display:grid; grid-template-columns:1fr 330px; gap:18px; align-items:start}
.shop-tools{display:flex; gap:10px; align-items:center; margin-bottom:14px; flex-wrap:wrap}
.tabs{display:flex; gap:6px; flex-wrap:wrap}
.tab{font-size:12.5px; font-weight:700; padding:8px 13px; border-radius:20px; border:1.5px solid var(--line); background:#fff; color:var(--ink-70)}
.tab.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.tab:hover{border-color:var(--ink)}
.search{margin-left:auto; position:relative}
.search input{border:1.5px solid var(--line); border-radius:20px; padding:9px 14px 9px 34px; font-size:13.5px; width:210px; outline:none}
.search input:focus{border-color:var(--teal)}
.search .mg{position:absolute; left:13px; top:9px; color:var(--muted2)}
.shop-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.pcard{background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; transition:.18s}
.pcard:hover{box-shadow:var(--shadow); transform:translateY(-2px)}
.p-img{height:120px; display:grid; place-items:center; background:#f2f6f9; position:relative}
.p-img svg{width:94px; height:72px}
.p-badge{position:absolute; top:10px; left:10px; font-size:9.5px; font-weight:800; letter-spacing:.4px; padding:3px 8px; border-radius:20px; color:#fff}
.p-cat{position:absolute; top:12px; right:12px; width:10px; height:10px; border-radius:50%}
.p-body{padding:13px 14px; display:flex; flex-direction:column; gap:7px; flex:1}
.p-name{font-weight:800; font-size:14px; line-height:1.2}
.p-sku{font-size:11px; color:var(--muted2); font-weight:600}
.p-blurb{font-size:12px; color:var(--muted); line-height:1.35; flex:1}
.p-size{display:flex; gap:5px; flex-wrap:wrap}
.p-size button{font-size:10.5px; font-weight:700; padding:4px 8px; border-radius:7px; border:1px solid var(--line); background:#fff; color:var(--ink-70)}
.p-size button.on{background:var(--teal-l); border-color:var(--teal); color:var(--teal-d)}
.p-foot{display:flex; align-items:center; justify-content:space-between; margin-top:4px; min-height:40px}
.p-price{font-weight:800; font-size:16px}
.p-price small{font-weight:600; color:var(--muted2); font-size:10px; display:block}
.p-add{border:none; background:var(--teal); color:#fff; border-radius:9px; padding:9px 15px; font-weight:800; font-size:13px}
.p-add:hover{background:var(--teal-d)}
.p-qty{display:flex; align-items:center; gap:9px}
.p-qty button{width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:#fff; font-weight:800; color:var(--ink)}
.p-qty b{min-width:40px; text-align:center; font-size:14px}

.cartrail{position:sticky; top:16px; align-self:start; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); overflow:hidden}
.cartrail h3{font-size:14px; padding:16px 16px 6px}
.cart-lines{max-height:300px; overflow:auto; padding:4px 16px}
.cline{display:flex; gap:8px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line2)}
.cline:last-child{border-bottom:none}
.cline .nm{flex:1; font-size:12.5px; font-weight:700; line-height:1.25}
.cline .nm small{display:block; color:var(--muted2); font-weight:600; font-size:11px}
.cline .q{font-size:12px; color:var(--muted); font-weight:700; white-space:nowrap}
.cline .rm{border:none; background:none; color:var(--muted2); font-size:17px; line-height:1; cursor:pointer}
.cline .rm:hover{color:var(--red)}
.cart-empty{padding:34px 16px; text-align:center; color:var(--muted2); font-size:13px}
.cart-tot{padding:14px 16px; background:#f7fafc; border-top:1px solid var(--line)}
.cart-tot .r{display:flex; justify-content:space-between; font-size:13px; padding:3px 0}
.cart-tot .r .muted{color:var(--muted)}
.cart-tot .r.big{font-size:17px; font-weight:800; margin-top:6px; color:var(--ink)}
.cart-cta{padding:0 16px 16px; background:#f7fafc}
.cart-cta .btn{width:100%; justify-content:center}

/* ---------- Assistant-aware layout ----------
   When the assistant is open on a wide screen, shift the main content left so the
   docked panel never covers it. Minimizing the assistant returns full width. */
@media (min-width:1180px){
  body.ai-open .stage{ margin-left:auto; margin-right:var(--dock-space); }
}

/* ---------- Responsive-ish ---------- */
@media (max-width:980px){
  .plan-grid,.track-top,.track-grid,.shop-wrap{grid-template-columns:1fr}
  .opt-grid,.fwd,.g3{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:1fr 1fr}
  .defaults{grid-template-columns:1fr 1fr}
  .top-nav{display:none}
  .cartrail{position:relative; top:0}
}
@media (max-width:620px){ .shop-grid{grid-template-columns:1fr} }

/* On phones/tablets the panel becomes a full-width bottom sheet (no overlap of cards) */
@media (max-width:760px){
  .ai-panel{position:fixed; left:12px; right:12px; bottom:92px; width:auto; max-height:70vh}
}
