:root{--navy:#0B1A33;--navy2:#13284D;--orange:#FF7A00;--peach:#FFE8D1;--bg:#F6F4EF;--ink:#0B1A33;--muted:#4A5260;--line:#D5D9E0;--ok:#1B6B34;--okbg:#E3F3E7;--bad:#A1271B;--badbg:#FDECEA;--safe-b:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Archivo,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
body{padding-bottom:calc(76px + var(--safe-b))}
a{color:var(--ink)}
button,input,select,textarea{font:inherit;color:inherit}
img{display:block;max-width:100%}
#app{max-width:560px;margin:0 auto;min-height:100vh}
.hdr{background:var(--navy);color:#fff;padding:calc(14px + env(safe-area-inset-top,0px)) 16px 16px;display:flex;flex-direction:column;gap:14px}
.hdr-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand b{display:block;font-size:16px;font-weight:800;letter-spacing:1.5px}
.brand small{display:block;font-size:11px;font-weight:600;letter-spacing:3px;color:#C9D3E6}
.hdr h1{margin:0;font-size:20px;font-weight:800}
.hdr p{margin:2px 0 0;font-size:13px;color:#C9D3E6}
.back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:#fff;border-radius:10px;flex-shrink:0}
.back svg,.tabs svg,.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hello{display:flex;align-items:center;gap:12px}
.avatar{width:52px;height:52px;border-radius:50%;background:var(--orange);object-fit:cover;object-position:center top;border:2px solid var(--orange);flex-shrink:0}
.pill{display:inline-block;background:var(--orange);color:var(--navy);font-size:11px;font-weight:800;letter-spacing:1px;padding:6px 10px;border-radius:999px;white-space:nowrap}
.search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:0 14px;height:46px}
.search input{border:0;outline:0;flex:1;font-size:16px;background:transparent;min-width:0}
.chips{display:flex;gap:8px;padding:14px 16px 4px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{height:38px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
.chip[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:700}
.wrap{padding:16px;display:flex;flex-direction:column;gap:14px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 16px 0}
.card{background:#fff;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.card .ph{aspect-ratio:1/1;background:#E9ECF1;object-fit:cover;width:100%}
.card .bd{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px}
.card .nm{font-size:14px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .tl{font-size:12px;color:var(--muted)}
.price{font-size:20px;font-weight:800}
.old{font-size:13px;color:var(--muted);text-decoration:line-through}
.tag{font-size:11px;font-weight:800;letter-spacing:.5px;background:var(--peach);border-radius:6px;padding:3px 6px;align-self:flex-start}
.tag.ok{color:var(--ok);background:var(--okbg)}.tag.bad{color:var(--bad);background:var(--badbg)}.tag.navy{background:var(--navy);color:#fff}
.hint{font-size:12px;color:var(--muted)}
.box{background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.box.hi{border:2px solid var(--orange)}
.box.dark{background:var(--navy);color:#fff}
.box h2,.sec{margin:0;font-size:16px;font-weight:800}
.btn{height:52px;border-radius:14px;border:0;background:var(--orange);color:var(--navy);font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;width:100%;padding:0 16px}
.btn.sec2{background:#fff;border:1px solid var(--line);font-weight:700}
.btn.navy{background:var(--navy);color:#fff}
.btn.sm{height:44px;font-size:15px;border-radius:10px}
.btn[disabled]{opacity:.55}
.row{display:flex;gap:10px;align-items:center}
.row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{font-size:13px;font-weight:700}
.field input,.field select,.field textarea{height:46px;border-radius:10px;border:1px solid #C9CED8;background:#fff;padding:0 12px;font-size:16px;min-width:0;width:100%}
.field textarea{height:auto;padding:10px 12px;resize:none}
.field .opt{font-weight:500;color:var(--muted)}
.sizes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.size{height:44px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:15px;font-weight:600;cursor:pointer}
.size[aria-pressed=true]{background:var(--orange);border-color:var(--orange);font-weight:800}
.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#E6E8ED;border-radius:12px;padding:4px}
.seg button{height:40px;border-radius:9px;border:0;background:transparent;font-size:15px;font-weight:600;cursor:pointer}
.seg button[aria-pressed=true]{background:var(--navy);color:#fff;font-weight:700}
.line{display:flex;gap:12px;align-items:center;background:#fff;border-radius:14px;padding:12px}
.line img,.line .ph{width:64px;height:64px;border-radius:10px;object-fit:cover;background:#E9ECF1;flex-shrink:0}
.line .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.line .info b{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.line input[type=checkbox]{width:24px;height:24px;accent-color:var(--navy);flex-shrink:0}
.iconbtn{width:44px;height:44px;border-radius:10px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.notice{display:flex;gap:10px;align-items:center;background:var(--peach);border-radius:12px;padding:10px 12px;font-size:13px;font-weight:600;line-height:1.4}
.gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:4px;background:#E9ECF1}
.gallery img{width:100%;flex:0 0 100%;aspect-ratio:3/4;object-fit:cover;scroll-snap-align:start}
.upload{min-height:150px;border-radius:14px;border:2px dashed #9AA3B2;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:12px;text-align:center;position:relative;overflow:hidden}
.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload img{max-height:220px;border-radius:10px}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.timeline li{display:flex;gap:12px;min-height:40px}
.timeline .dot{display:flex;flex-direction:column;align-items:center;width:18px}
.timeline .dot i{width:14px;height:14px;border-radius:50%;background:#C9CED8;display:block}
.timeline .dot s{flex:1;width:2px;background:#C9CED8}
.timeline li.on .dot i,.timeline li.on .dot s{background:var(--navy)}
.timeline li.now .dot i{background:var(--orange);box-shadow:0 0 0 3px var(--peach)}
.timeline span{font-size:14px;font-weight:600}
.timeline li:not(.on):not(.now) span{color:var(--muted);font-weight:500}
.tabs{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #E3E6EB;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 4px calc(8px + var(--safe-b));z-index:20}
.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:52px;text-decoration:none;color:#5B6475;font-size:12px;font-weight:600;position:relative}
.tabs a.on{color:var(--navy);font-weight:800}
.badge{position:absolute;top:2px;left:calc(50% + 6px);min-width:18px;height:18px;border-radius:9px;background:var(--orange);color:var(--navy);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px}
.toast{position:fixed;left:16px;right:16px;bottom:calc(92px + var(--safe-b));background:var(--navy);color:#fff;border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;z-index:50;max-width:528px;margin:0 auto}
.empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:32px 16px;color:var(--muted)}
.empty img{width:140px}
.status{font-size:11px;font-weight:800;letter-spacing:1px;padding:5px 8px;border-radius:999px;background:var(--peach);white-space:nowrap}
table.t{width:100%;border-collapse:collapse;font-size:13px;text-align:center}
table.t th{color:var(--muted);font-weight:700;padding:6px 4px}
table.t td{padding:6px 4px;border-top:1px solid #EEF0F4}
table.t tr.sel td{background:var(--peach);font-weight:800}
.hero{display:flex;align-items:flex-end;justify-content:space-between;overflow:hidden}
.hero>div{flex:1 1 auto;min-width:0}
.hero img{width:min(130px,32vw)!important;height:auto;flex-shrink:0;align-self:flex-end}
.modal{position:fixed;inset:0;background:rgba(11,26,51,.6);display:flex;align-items:flex-end;justify-content:center;z-index:60}
.modal .sheet{background:#fff;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + var(--safe-b));width:100%;max-width:560px;display:flex;flex-direction:column;gap:12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:20px;font-weight:700}
.qty b{min-width:24px;text-align:center}
.more{margin:16px;}
.spin{width:28px;height:28px;border:3px solid var(--peach);border-top-color:var(--orange);border-radius:50%;animation:s 1s linear infinite;margin:40px auto}
@keyframes s{to{transform:rotate(360deg)}}
