
:root{
  --orange:#f46f22;--orange2:#ff914d;--navy:#182431;--navy2:#243546;--text:#202934;--muted:#7a8792;
  --bg:#f4f6f8;--card:#fff;--line:#e7ebef;--green:#26a66b;--yellow:#e8a323;--red:#e55454;--blue:#4b86d7;
  --shadow:0 10px 28px rgba(24,36,49,.06);--r:22px
}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}.app{min-height:100vh;display:grid;grid-template-columns:238px 1fr}
.sidebar{background:var(--navy);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:10}
.brand{display:flex;align-items:center;gap:11px;padding:4px 7px 25px}.brandmark{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,var(--orange),#ff8b46);display:grid;place-items:center;font-weight:950;box-shadow:0 8px 20px rgba(244,111,34,.28)}
.brandname{font-size:16px;font-weight:950;letter-spacing:.03em}.brandname small{display:block;color:#91a2b2;font-size:9px;letter-spacing:.12em;margin-top:3px}
.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:11px;color:#c9d2da;padding:10px 12px;border-radius:13px;font-size:13px;font-weight:850}.nav a.active{background:#fff;color:var(--navy)}
.nav-ico{width:30px;height:30px;border-radius:10px;background:#293a4a;display:grid;place-items:center}.nav a.active .nav-ico{background:var(--orange);color:#fff}.nav-ico svg{width:16px;height:16px}
.side-bottom{margin-top:auto}.watch{border-radius:16px;background:#213142;padding:14px;border:1px solid #304254;display:flex;align-items:center;gap:11px}.watch-dot{width:12px;height:12px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(36,165,106,.12)}.watch b{font-size:12px}.watch small{display:block;font-size:9px;color:#94a6b6;margin-top:2px}
.main{min-width:0}.topbar{height:70px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:8}
.title{font-size:18px;font-weight:950}.title small{display:block;font-size:10px;color:var(--muted);font-weight:750;margin-top:3px}.top-actions{display:flex;gap:9px;align-items:center}.pill{height:38px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:11px;font-weight:850;display:flex;align-items:center;gap:7px}.avatar{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:950}
.content{max-width:1500px;margin:auto;padding:22px 28px 38px}.page-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,.6fr);gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:18px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.card-title{font-size:14px;font-weight:950}.card-sub{font-size:9px;color:var(--muted);font-weight:750;margin-top:3px}.mini-link{font-size:10px;color:var(--orange);font-weight:900}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.search{flex:1;min-width:220px;height:42px;border:1px solid var(--line);border-radius:13px;padding:0 14px;background:#fff}.select{height:42px;border:1px solid var(--line);border-radius:13px;padding:0 12px;background:#fff;color:var(--text)}.btn{height:42px;border:0;border-radius:13px;padding:0 15px;font-weight:900;cursor:pointer}.btn.orange{background:var(--orange);color:#fff}.btn.navy{background:var(--navy);color:#fff}.btn.light{background:#fff;border:1px solid var(--line);color:var(--text)}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:16px}.kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow);display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.kpi-ico{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#f3f5f7;font-size:23px}.kpi b{font-size:23px;font-weight:950}.kpi small{display:block;color:var(--muted);font-size:9px;font-weight:750;margin-top:2px}
.status{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:900;border-radius:999px;padding:6px 9px}.status:before{content:"";width:7px;height:7px;border-radius:50%}.status.red{background:#fff1f1;color:#b63d3d}.status.red:before{background:var(--red)}.status.yellow{background:#fff7e8;color:#a86e0c}.status.yellow:before{background:var(--yellow)}.status.green{background:#ecf8f2;color:#197849}.status.green:before{background:var(--green)}.status.blue{background:#edf5ff;color:#356aa8}.status.blue:before{background:var(--blue)}
.stock-list{display:grid;gap:9px}.stock-row{display:grid;grid-template-columns:58px minmax(160px,1.5fr) 110px 110px 130px 120px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:11px;background:#fff}.thumb{width:50px;height:50px;border-radius:14px;background:#f2f4f6;display:grid;place-items:center;font-size:25px}.stock-name{font-size:12px;font-weight:950}.stock-meta{font-size:9px;color:var(--muted);margin-top:3px}.metric{text-align:center}.metric b{font-size:17px;font-weight:950}.metric small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.bar{height:7px;background:#edf0f3;border-radius:999px;overflow:hidden;margin-top:5px}.bar span{display:block;height:100%;border-radius:inherit}.bar .red{background:var(--red)}.bar .yellow{background:var(--yellow)}.bar .green{background:var(--green)}
.side-stack{display:grid;gap:16px}.visual-card{border-radius:20px;padding:18px;color:#fff;min-height:190px;position:relative;overflow:hidden}.visual-card.orange{background:linear-gradient(145deg,var(--orange),#ff9350)}.visual-card.navy{background:linear-gradient(145deg,var(--navy),#31485d)}.big-number{font-size:44px;font-weight:950;line-height:1}.visual-caption{font-size:11px;font-weight:850;margin-top:8px;opacity:.9}.ring{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;margin:4px auto 0;background:conic-gradient(#fff 0 72%,rgba(255,255,255,.25) 72% 100%);position:relative}.ring:before{content:"";width:88px;height:88px;border-radius:50%;background:var(--orange);position:absolute}.ring b{position:relative;z-index:1;font-size:27px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;min-height:100px}.quick .ico{font-size:25px}.quick b{display:block;font-size:11px;margin-top:12px}.quick small{display:block;font-size:9px;color:var(--muted);margin-top:2px}
.hero-detail{display:grid;grid-template-columns:180px 1fr 240px;gap:18px;align-items:center}.product-visual{height:165px;border-radius:22px;background:linear-gradient(145deg,#f8fafb,#eef1f4);display:grid;place-items:center;font-size:78px;border:1px solid var(--line)}.hero-detail h1{margin:0;font-size:24px}.hero-detail .muted{color:var(--muted);font-size:11px;margin-top:8px}.count-box{border-radius:20px;background:var(--navy);color:#fff;padding:18px;text-align:center}.count-box b{font-size:45px}.count-box span{font-size:12px;color:#c8d2da}.action-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.action-btn{border:1px solid var(--line);border-radius:16px;padding:14px;text-align:center;background:#fff;font-size:11px;font-weight:900}.action-btn strong{display:block;font-size:23px;margin-bottom:6px}
.timeline{display:grid;gap:10px}.time-row{display:grid;grid-template-columns:80px 44px 1fr 90px;gap:10px;align-items:center;font-size:10px}.time-ico{width:38px;height:38px;border-radius:12px;background:#f3f5f7;display:grid;place-items:center;font-size:18px}.time-row b{font-size:11px}.time-row span{color:var(--muted)}.time-qty{text-align:right;font-weight:950;font-size:12px}
.scan-shell{max-width:520px;margin:0 auto;background:var(--navy);border-radius:32px;padding:18px;box-shadow:0 20px 60px rgba(24,36,49,.18)}.phone{background:#fff;border-radius:26px;overflow:hidden;min-height:680px}.scan-head{padding:18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.scan-head b{font-size:14px}.camera{margin:18px;height:300px;border-radius:22px;background:linear-gradient(145deg,#212d39,#0f171f);display:grid;place-items:center;position:relative;overflow:hidden}.camera:before,.camera:after{content:"";position:absolute;border:3px solid var(--orange);width:72%;height:56%;border-radius:18px}.camera:after{width:1px;height:70%;border:0;background:linear-gradient(transparent,var(--orange),transparent);animation:scan 2.2s linear infinite}@keyframes scan{0%{transform:translateY(-95px)}50%{transform:translateY(95px)}100%{transform:translateY(-95px)}}.camera .qr{font-size:80px;color:#fff;opacity:.85}.scan-result{padding:0 18px 18px}.scan-result h2{font-size:16px;margin:0 0 10px}.scan-stock{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;background:#f5f7f8;border-radius:18px;padding:14px}.scan-stock b{font-size:14px}.counter{display:flex;align-items:center;gap:10px}.counter button{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:950}.counter strong{font-size:20px;min-width:28px;text-align:center}.scan-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.shop-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:16px}.recommend{background:linear-gradient(145deg,var(--navy),#30485f);color:#fff;border-radius:26px;padding:22px;display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:center;overflow:hidden;position:relative}.recommend h1{font-size:25px;margin:0}.recommend p{font-size:11px;color:#cbd5de}.recommend-visual{font-size:110px;text-align:center}.cart-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:20px;box-shadow:var(--shadow)}.cart-card .cart-num{font-size:34px;font-weight:950}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.product{background:#fff;border:1px solid var(--line);border-radius:19px;padding:14px}.product-img{height:125px;border-radius:16px;background:#f3f5f7;display:grid;place-items:center;font-size:55px}.product h3{font-size:12px;margin:11px 0 5px}.product .price{font-size:17px;font-weight:950}.product small{font-size:9px;color:var(--muted)}.product .buy{margin-top:10px;width:100%;height:38px;border:0;border-radius:12px;background:var(--orange);color:#fff;font-weight:900}
.bcp-score{display:grid;grid-template-columns:240px 1fr;gap:18px}.shield{height:230px;border-radius:26px;background:linear-gradient(145deg,var(--navy),#30465b);color:#fff;display:grid;place-items:center;text-align:center}.shield .shape{width:125px;height:145px;background:linear-gradient(180deg,var(--orange),#ff9551);clip-path:polygon(50% 0,92% 15%,86% 65%,50% 100%,14% 65%,8% 15%);display:grid;place-items:center}.shield b{font-size:34px}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.check-card{border:1px solid var(--line);border-radius:17px;padding:14px;background:#fff}.check-card .icon{font-size:26px}.check-card b{display:block;margin-top:10px;font-size:11px}.check-card small{font-size:9px;color:var(--muted)}.ai-note{border-radius:22px;background:#fff7f2;border:1px solid #ffd5bd;padding:18px;display:grid;grid-template-columns:55px 1fr auto;gap:14px;align-items:center}.ai-bubble{width:55px;height:55px;border-radius:18px;background:var(--orange);color:#fff;display:grid;place-items:center;font-weight:950}.ai-note b{font-size:13px}.ai-note p{font-size:10px;color:var(--muted);margin:4px 0 0}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.admin-tile{border-radius:20px;padding:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);min-height:145px}.admin-tile .big{font-size:32px;font-weight:950}.admin-tile small{display:block;color:var(--muted);font-size:9px}.company-list{display:grid;gap:9px}.company{display:grid;grid-template-columns:1.2fr 110px 100px 110px 90px;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:15px}.company b{font-size:11px}.company small{font-size:9px;color:var(--muted)}
.mobile-nav{display:none}
@media(max-width:1050px){.app{grid-template-columns:84px 1fr}.brandname,.nav .label,.watch div{display:none}.sidebar{padding:18px 12px}.brand{justify-content:center}.nav a{justify-content:center;padding:10px}.nav-ico{width:40px;height:40px}.page-grid,.shop-hero{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}.stock-row{grid-template-columns:52px 1fr 90px 100px}.stock-row>:nth-child(5),.stock-row>:nth-child(6){display:none}.products{grid-template-columns:repeat(2,1fr)}.hero-detail{grid-template-columns:150px 1fr}.count-box{grid-column:1/-1}.bcp-score{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){body{padding-bottom:72px}.app{display:block}.sidebar{display:none}.topbar{height:62px;padding:0 15px}.title{font-size:15px}.top-actions .pill{display:none}.content{padding:14px 12px 28px}.kpis{grid-template-columns:1fr 1fr;gap:8px}.kpi{padding:12px}.kpi-ico{width:40px;height:40px}.kpi b{font-size:19px}.page-grid{gap:12px}.card{padding:14px;border-radius:18px}.toolbar{gap:7px}.search{width:100%;flex-basis:100%}.stock-row{grid-template-columns:48px 1fr 80px;padding:10px}.stock-row>:nth-child(4),.stock-row>:nth-child(5),.stock-row>:nth-child(6){display:none}.hero-detail{grid-template-columns:95px 1fr;gap:12px}.product-visual{height:110px;font-size:52px}.hero-detail h1{font-size:18px}.count-box{grid-column:1/-1}.action-row{grid-template-columns:1fr 1fr}.shop-hero{display:block}.cart-card{margin-top:12px}.recommend{grid-template-columns:1fr 90px;padding:18px}.recommend h1{font-size:19px}.recommend-visual{font-size:66px}.products{grid-template-columns:1fr 1fr;gap:8px}.product{padding:10px}.product-img{height:90px;font-size:42px}.scan-shell{padding:0;border-radius:0;box-shadow:none;max-width:none}.phone{border-radius:0;min-height:auto}.camera{height:270px}.check-grid{grid-template-columns:1fr 1fr}.ai-note{grid-template-columns:48px 1fr}.ai-note .btn{grid-column:1/-1}.admin-grid{grid-template-columns:1fr 1fr}.company{grid-template-columns:1fr 80px 80px}.company>:nth-child(4),.company>:nth-child(5){display:none}.mobile-nav{position:fixed;left:0;right:0;bottom:0;height:68px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:30}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:#71808d;gap:3px}.mobile-nav a.active{color:var(--orange)}.mobile-nav span{font-size:20px}}

/* v4 additions */
.section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.section-tabs a{padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px;font-weight:900;color:var(--muted)}.section-tabs a.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.person-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:15px;display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center}.person-avatar{width:46px;height:46px;border-radius:15px;background:#f1f4f6;display:grid;place-items:center;font-size:20px;font-weight:950}.person-card b{font-size:12px}.person-card small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.role-badge{font-size:9px;font-weight:900;padding:6px 8px;border-radius:999px;background:#edf3f8;color:#466174}
.setting-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.setting-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;box-shadow:var(--shadow)}.setting-icon{width:48px;height:48px;border-radius:15px;background:#f3f5f7;display:grid;place-items:center;font-size:24px;margin-bottom:13px}.setting-value{font-size:31px;font-weight:950;line-height:1.1}.setting-label{font-size:10px;color:var(--muted);font-weight:800;margin-top:4px}.stepper{display:flex;align-items:center;gap:8px;margin-top:14px}.stepper button{width:36px;height:36px;border:1px solid var(--line);border-radius:11px;background:#fff;font-weight:950}.stepper strong{min-width:48px;text-align:center;font-size:19px}
.notify-list{display:grid;gap:9px}.notify-row{display:grid;grid-template-columns:45px 1fr auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:16px;background:#fff}.notify-icon{width:42px;height:42px;border-radius:13px;background:#f3f5f7;display:grid;place-items:center;font-size:21px}.notify-row b{font-size:11px}.notify-row small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.toggle{width:48px;height:27px;border-radius:999px;background:#dbe1e6;position:relative}.toggle:after{content:"";width:21px;height:21px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;box-shadow:0 2px 5px rgba(0,0,0,.15)}.toggle.on{background:var(--green)}.toggle.on:after{left:24px}
.order-list{display:grid;gap:10px}.order-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:15px;display:grid;grid-template-columns:110px 1fr auto;gap:14px;align-items:center}.order-no{font-size:10px;color:var(--muted);font-weight:800}.order-date{font-size:14px;font-weight:950;margin-top:4px}.order-items{display:flex;gap:8px;align-items:center}.order-item-icon{width:43px;height:43px;border-radius:12px;background:#f3f5f7;display:grid;place-items:center;font-size:22px}.order-items b{font-size:11px}.order-items small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.order-total{text-align:right}.order-total b{font-size:17px}.order-total small{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.report-hero{display:grid;grid-template-columns:260px 1fr;gap:16px}.score-panel{background:linear-gradient(145deg,var(--navy),#31485d);color:#fff;border-radius:26px;padding:20px;text-align:center}.score-orbit{width:160px;height:160px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--orange) 0 78%,rgba(255,255,255,.15) 78% 100%);position:relative}.score-orbit:after{content:"";width:126px;height:126px;border-radius:50%;background:#25384a;position:absolute}.score-orbit strong{position:relative;z-index:1;font-size:44px}.score-orbit small{position:absolute;z-index:2;margin-top:62px;font-size:9px;color:#c7d0d8}.mini-chart{height:150px;display:flex;align-items:flex-end;gap:10px;padding:18px 8px 4px}.mini-chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.mini-chart .barv{width:100%;max-width:34px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,var(--orange),#ffad79);min-height:12px}.mini-chart span{font-size:8px;color:var(--muted);font-weight:800}.report-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.report-action{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;text-align:center}.report-action .ico{font-size:24px}.report-action b{display:block;font-size:10px;margin-top:7px}.matrix{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.matrix-cell{border:1px solid var(--line);border-radius:15px;padding:13px;background:#fff;text-align:center}.matrix-cell .micon{font-size:25px}.matrix-cell b{display:block;font-size:16px;margin-top:5px}.matrix-cell small{display:block;font-size:8px;color:var(--muted);margin-top:2px}
@media(max-width:1050px){.people-grid{grid-template-columns:1fr 1fr}.report-hero{grid-template-columns:1fr}.matrix{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.people-grid,.setting-grid{grid-template-columns:1fr}.order-card{grid-template-columns:1fr auto}.order-items{grid-column:1/-1;order:3}.report-actions{grid-template-columns:1fr 1fr}.matrix{grid-template-columns:1fr 1fr}}

/* v5 EC additions */
.ec-crumb{display:flex;gap:7px;align-items:center;font-size:9px;color:var(--muted);font-weight:800;margin-bottom:14px}.ec-crumb a{color:var(--muted)}
.category-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:16px}.category-chip{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px 8px;text-align:center;box-shadow:var(--shadow)}.category-chip .ci{font-size:26px}.category-chip b{display:block;font-size:9px;margin-top:6px}.category-chip.alert{border-color:#f6c0b3;background:#fff7f4}.category-chip.alert b{color:#bd542e}
.product-link{display:block}.product .buy-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:10px}.product .buy-row .buy{margin:0}.ghost-buy{height:36px;border:1px solid var(--line);background:#fff;border-radius:11px;padding:0 10px;font-weight:900;font-size:10px}
.product-page{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);gap:18px}.product-gallery{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:var(--shadow)}.product-main-img{height:390px;border-radius:20px;background:linear-gradient(145deg,#f8fafb,#edf1f4);display:grid;place-items:center;font-size:150px}.product-thumbs{display:flex;gap:8px;margin-top:10px}.product-thumb{width:62px;height:62px;border-radius:13px;border:1px solid var(--line);background:#f5f7f8;display:grid;place-items:center;font-size:28px}.product-info-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}.product-info-panel h1{font-size:24px;margin:8px 0 6px}.product-code{font-size:9px;color:var(--muted);font-weight:800}.product-price{font-size:31px;font-weight:950;margin-top:14px}.product-price small{font-size:10px;color:var(--muted)}.spec-pills{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.spec-pills span{font-size:9px;font-weight:900;border-radius:999px;background:#f3f5f7;padding:7px 9px}.stock-ok{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#eef8f3;border-radius:13px;color:#20784d;font-size:10px;font-weight:900;margin:12px 0}.qty-line{display:grid;grid-template-columns:95px 1fr;gap:10px;align-items:center;margin:14px 0}.qty-control{display:flex;align-items:center;gap:8px}.qty-control button{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:11px;font-weight:950}.qty-control strong{min-width:38px;text-align:center;font-size:18px}.buy-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.buy-actions .btn{width:100%}.ai-fit{margin-top:14px;background:linear-gradient(145deg,#fff5ef,#fff);border:1px solid #f7d3c2;border-radius:18px;padding:15px;display:grid;grid-template-columns:45px 1fr;gap:11px}.ai-fit .ai-bubble{width:42px;height:42px}.ai-fit b{font-size:11px}.ai-fit p{font-size:9px;color:var(--muted);margin:4px 0 0}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}.cart-items{display:grid;gap:10px}.cart-item{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;grid-template-columns:72px 1fr 120px 120px;gap:12px;align-items:center}.cart-thumb{width:68px;height:68px;border-radius:16px;background:#f3f5f7;display:grid;place-items:center;font-size:33px}.cart-item h3{font-size:12px;margin:0}.cart-item small{font-size:9px;color:var(--muted)}.cart-qty{display:flex;align-items:center;justify-content:center;gap:7px}.cart-qty button{width:30px;height:30px;border:1px solid var(--line);background:#fff;border-radius:9px}.cart-price{text-align:right;font-weight:950}.summary-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow);position:sticky;top:90px;height:max-content}.sum-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;padding:8px 0;color:var(--muted)}.sum-row.total{border-top:1px solid var(--line);margin-top:6px;padding-top:14px;color:var(--text);font-weight:950;font-size:14px}.sum-row.total b{font-size:23px}.summary-card .btn{width:100%;margin-top:10px}.quote-note{border-radius:16px;background:#f5f7f8;padding:12px;font-size:9px;color:var(--muted);line-height:1.6;margin-top:12px}
.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}.flow-step{border:1px solid var(--line);border-radius:14px;background:#fff;padding:10px;text-align:center;font-size:9px;font-weight:900;color:var(--muted)}.flow-step.active{background:var(--navy);color:#fff;border-color:var(--navy)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px}.form-card h3{font-size:12px;margin:0 0 12px}.option-list{display:grid;gap:8px}.option-row{border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px}.option-row.selected{border-color:var(--orange);background:#fff8f4}.option-radio{width:18px;height:18px;border:2px solid #c7d0d7;border-radius:50%;display:grid;place-items:center}.selected .option-radio{border-color:var(--orange)}.selected .option-radio:after{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange)}.option-row b{font-size:10px}.option-row small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.field{display:grid;gap:5px;margin-bottom:10px}.field label{font-size:9px;font-weight:900;color:var(--muted)}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}.field textarea{min-height:90px;resize:vertical}
.quote-sheet{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow)}.quote-top{display:flex;justify-content:space-between;gap:20px;align-items:start;border-bottom:2px solid var(--navy);padding-bottom:16px}.quote-title{font-size:28px;font-weight:950;letter-spacing:.12em}.quote-meta{text-align:right;font-size:9px;color:var(--muted);line-height:1.8}.quote-customer{padding:18px 0;font-size:12px;font-weight:900}.quote-table{width:100%;border-collapse:collapse}.quote-table th,.quote-table td{border-bottom:1px solid var(--line);padding:11px 8px;font-size:10px;text-align:left}.quote-table th{background:#f6f8f9;color:var(--muted)}.quote-table td.num{text-align:right}.quote-total{margin-left:auto;width:min(360px,100%);padding-top:12px}.quote-total .sum-row{font-size:10px}.quote-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.complete-hero{background:linear-gradient(145deg,var(--navy),#31485d);color:#fff;border-radius:28px;padding:34px;text-align:center}.complete-icon{width:82px;height:82px;margin:auto;border-radius:50%;background:var(--green);display:grid;place-items:center;font-size:38px}.complete-hero h1{font-size:25px;margin:15px 0 5px}.complete-hero p{font-size:10px;color:#cbd5dd}.complete-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.complete-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;text-align:center}.complete-card .ico{font-size:27px}.complete-card b{display:block;font-size:11px;margin-top:7px}.complete-card small{display:block;font-size:8px;color:var(--muted);margin-top:3px}
.order-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.delivery-track{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:18px 0}.track-step{text-align:center;position:relative}.track-step:before{content:"";height:4px;background:#dfe4e8;position:absolute;left:-50%;right:50%;top:18px}.track-step:first-child:before{display:none}.track-dot{width:38px;height:38px;border-radius:50%;background:#dfe4e8;color:#fff;display:grid;place-items:center;margin:auto;position:relative;z-index:1;font-weight:950}.track-step.done:before,.track-step.done .track-dot{background:var(--green)}.track-step.current:before{background:var(--green)}.track-step.current .track-dot{background:var(--orange)}.track-step b{display:block;font-size:9px;margin-top:7px}.track-step small{display:block;font-size:8px;color:var(--muted);margin-top:2px}
@media(max-width:1100px){.category-strip{grid-template-columns:repeat(3,1fr)}.product-page,.cart-layout,.order-detail-grid{grid-template-columns:1fr}.summary-card{position:static}.product-main-img{height:300px}.form-grid{grid-template-columns:1fr}}
@media(max-width:720px){.category-strip{grid-template-columns:repeat(3,1fr)}.product-main-img{height:240px;font-size:100px}.buy-actions{grid-template-columns:1fr}.cart-item{grid-template-columns:58px 1fr auto}.cart-thumb{width:56px;height:56px}.cart-qty{grid-column:2}.cart-price{grid-column:3;grid-row:1/3}.flow-steps{grid-template-columns:repeat(2,1fr)}.quote-sheet{padding:16px}.quote-top{display:block}.quote-meta{text-align:left;margin-top:10px}.complete-grid{grid-template-columns:1fr}.delivery-track{grid-template-columns:repeat(4,1fr)}.track-step b{font-size:8px}.track-step small{display:none}}
