*{box-sizing:border-box}
html,body{margin:0;background:#E9E9E9}
body{font-family:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;color:#141414;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit}
img{max-width:100%}
.app{max-width:480px;margin:0 auto;min-height:100vh;background:#F4F4F4;position:relative}

/* Header & tabs */
.top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid #E6E6E6}
.top-row{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}
.brand{display:flex;flex-direction:column;gap:3px}
.brand img{height:24px;width:auto;display:block}
.brand span{font-size:11px;color:#6B6B6B;letter-spacing:.04em}
.icon-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#141414;border:0;background:transparent;cursor:pointer;text-decoration:none}
.tabs{display:flex;padding:0 8px}
.tab{flex:1;height:44px;border:0;background:transparent;font-size:13px;font-weight:600;color:#6B6B6B;cursor:pointer;border-bottom:2px solid transparent;padding:0 4px}
.tab.on{color:#141414;border-bottom-color:#141414}

/* Promo strip */
.strip{margin:10px 12px 0;padding:10px 12px;border:1px dashed #D41F2B;border-radius:10px;background:#FFF4F5;display:flex;align-items:center;justify-content:space-between;gap:8px;width:calc(100% - 24px);cursor:pointer;text-align:left}
.strip b{color:#D41F2B}
.strip .act{font-size:12px;font-weight:700;color:#D41F2B;white-space:nowrap}
.strip .act.saved{color:#1C2B4A}

/* Product grid */
.list-head{padding:12px 12px 8px;display:flex;align-items:center;justify-content:space-between}
.list-head b{font-size:15px}.list-head span{font-size:12px;color:#6B6B6B}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 24px}
.card{border:0;padding:0;background:#fff;border-radius:10px;overflow:hidden;text-align:left;cursor:pointer;display:flex;flex-direction:column}
.card .ph{position:relative;aspect-ratio:3/4;background:#fff}
.card .ph img{width:100%;height:100%;display:block}
.badge{position:absolute;top:8px;left:8px;background:#D41F2B;color:#fff;font-size:11px;font-weight:700;padding:3px 6px;border-radius:4px}
.gender{position:absolute;bottom:8px;left:8px;background:rgba(20,20,20,.78);color:#fff;font-size:10px;font-weight:600;padding:3px 6px;border-radius:4px}
.soldout{position:absolute;inset:0;background:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center}
.soldout span{background:#141414;color:#fff;font-size:13px;font-weight:700;padding:6px 12px;border-radius:6px}
.card .info{padding:8px 10px 12px;display:flex;flex-direction:column;gap:6px}
.card .name{font-size:13px;line-height:1.35;height:35px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.price .sale{font-size:16px;font-weight:700;color:#D41F2B}
.price .orig{font-size:12px;color:#767676;text-decoration:line-through}
.express{font-size:11px;color:#1C2B4A;font-weight:600}

/* Policy */
.policy{padding:16px 16px 32px;display:flex;flex-direction:column;gap:12px}
.policy h2{margin:0;font-size:20px}
.hero15{background:#1C2B4A;color:#fff;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:4px}
.hero15 b{font-size:26px}
.pcard{background:#fff;border-radius:12px;padding:16px;display:flex;gap:12px}
.pcard svg{flex:none}
.pcard b{display:block;font-size:15px;margin-bottom:4px}
.pcard span{font-size:14px;color:#4A4A4A;line-height:1.5}

/* Detail */
.detail{padding-bottom:90px}
.gallery{position:relative;background:#fff}
.slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.slider::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:start;aspect-ratio:3/4;background:#fff}
.slide img{width:100%;height:100%;display:block}
.dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:5px;pointer-events:none}
.dot{width:6px;height:6px;border-radius:3px;background:rgba(0,0,0,.25)}
.dot.on{width:16px;background:#141414}
.counter{position:absolute;bottom:10px;right:12px;background:rgba(20,20,20,.7);color:#fff;font-size:12px;padding:3px 8px;border-radius:10px}
.back{position:absolute;top:12px;left:12px;width:44px;height:44px;border-radius:22px;border:0;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;cursor:pointer}
.box{background:#fff;margin-top:8px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.box:first-of-type{margin-top:0}
.big-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.big-price .sale{font-size:24px;font-weight:800;color:#D41F2B}
.big-price .orig{font-size:14px;color:#767676;text-decoration:line-through}
.big-price .pct{font-size:12px;font-weight:700;color:#D41F2B;background:#FDECEE;padding:2px 6px;border-radius:4px}
.pname{margin:0;font-size:17px;font-weight:600;line-height:1.4}
.muted{font-size:13px;color:#4A4A4A}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12px;color:#1C2B4A;background:#E8ECF4;padding:4px 8px;border-radius:4px}
.tag.dark{color:#fff;background:#1C2B4A;font-weight:600}
.row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.lbl{font-size:14px;font-weight:700}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid #D6D6D6;background:#fff;font-size:13px;cursor:pointer}
.chip.on{border-color:#141414;background:#141414;color:#fff}
.chip.out{color:#9A9A9A;border-style:dashed;background:#F7F7F7}
.chip.out.on{background:#6B6B6B;color:#fff;border-style:solid}
.chip.size{min-width:52px}
.chip.size.out{text-decoration:line-through;cursor:not-allowed}
.link-btn{min-height:44px;padding:0 4px;border:0;background:transparent;font-size:13px;color:#1C2B4A;text-decoration:underline;cursor:pointer}
.warn{font-size:13px;color:#B3121D}
.warn.b{font-weight:600}
.qty{display:flex;align-items:center;border:1px solid #D6D6D6;border-radius:8px}
.qty button{width:44px;height:40px;border:0;background:transparent;font-size:20px;cursor:pointer}
.qty span{width:36px;text-align:center;font-weight:600}
.desc-line{display:flex;gap:8px;font-size:14px;line-height:1.55;color:#2E2E2E}
.desc-line i{font-style:normal;color:#1C2B4A;font-weight:700}
.desc-imgs{display:flex;flex-direction:column;gap:8px;margin:4px -16px 0}
.desc-imgs img{width:100%;height:auto;display:block}
.review{border-top:1px solid #EFEFEF;padding-top:12px;display:flex;flex-direction:column;gap:4px}
.review .head{display:flex;justify-content:space-between;font-size:13px}
.review .head span{color:#767676}
.stars{color:#E8A100;font-size:13px;letter-spacing:1px}
.small{font-size:12px;color:#767676}
.review p{margin:0;font-size:14px;line-height:1.5;color:#2E2E2E}
.tblwrap{overflow-x:auto}
.sizetbl{width:100%;border-collapse:collapse;font-size:13px}
.sizetbl th,.sizetbl td{border:1px solid #E3E3E3;padding:8px;text-align:center;white-space:nowrap}
.sizetbl th{background:#F5F5F5;font-weight:600}
.sizetbl td:first-child{font-weight:600}
.buybar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;background:#fff;border-top:1px solid #E6E6E6;padding:10px 12px calc(14px + env(safe-area-inset-bottom));display:flex;gap:10px;align-items:center;z-index:6}
.buybar .t{display:flex;flex-direction:column;flex:1}
.buybar .t span{font-size:12px;color:#6B6B6B}
.buybar .t b{font-size:18px;font-weight:800;color:#D41F2B}
.btn{height:50px;border:0;border-radius:10px;background:#141414;color:#fff;font-size:16px;font-weight:700;cursor:pointer;padding:0 20px}
.btn.red{background:#D41F2B}
.btn.wide{flex:1.4}
.btn.full{width:100%;height:52px}
.btn:disabled{opacity:.6;cursor:wait}

/* Order */
.bar{height:56px;background:#fff;display:flex;align-items:center;gap:4px;padding:0 6px;border-bottom:1px solid #E6E6E6;position:sticky;top:0;z-index:5}
.bar b{font-size:17px}
.sum{background:#fff;margin:8px 0;padding:12px 16px;display:flex;gap:12px}
.sum .th{width:72px;height:96px;flex:none;border-radius:8px;overflow:hidden;background:#fff}
.sum .th img{width:100%;height:100%;display:block}
.form{background:#fff;padding:16px;display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600}
.field input,.field textarea{font:inherit;font-size:16px;border:1px solid #CFCFCF;border-radius:8px;padding:11px 12px;background:#fff;color:#141414}
.field input:focus,.field textarea:focus{outline:2px solid #1C2B4A;outline-offset:0;border-color:#1C2B4A}
.lines{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#4A4A4A;border-top:1px solid #EEE;padding-top:12px}
.lines div{display:flex;justify-content:space-between;gap:8px}
.lines b{color:#141414;font-weight:600}
.lines .red{color:#D41F2B}
.lines .total{font-size:15px;color:#141414}
.lines .total b{color:#D41F2B;font-weight:800}
.done{min-height:100vh;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;text-align:center}
.done b{font-size:20px}
.done span{font-size:14px;color:#4A4A4A;line-height:1.55}
.btn.ghost{background:#fff;color:#141414;border:1px solid #141414;height:48px}

/* Modals */
.overlay{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:24px}
.promo{width:100%;max-width:330px;background:#fff;border-radius:16px;overflow:hidden;position:relative}
.promo .x{position:absolute;top:6px;right:6px;color:#fff}
.promo .hd{background:#D41F2B;color:#fff;padding:22px 20px 18px;display:flex;flex-direction:column;gap:4px}
.promo .hd small{font-size:12px;letter-spacing:.12em;font-weight:600}
.promo .hd h2{margin:0;font-size:28px;font-weight:800;line-height:1.15}
.promo .bd{padding:18px 20px 20px;display:flex;flex-direction:column;gap:12px}
.promo .it{display:flex;align-items:center;gap:10px;font-size:15px}
.sheet-wrap{position:fixed;inset:0;z-index:25;background:rgba(0,0,0,.5);display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.sheet-wrap .fill{flex:1;width:100%;border:0;background:transparent;cursor:pointer}
.sheet{width:100%;max-width:480px;background:#fff;border-radius:16px 16px 0 0;padding:8px 16px 24px;display:flex;flex-direction:column;gap:12px;max-height:75vh;overflow-y:auto}
