:root{--ink:#0b1215;--muted:#6b7280;--line:#e5e7eb;--soft:#f8f9fa;--navy:#101828;--red:#b22222;--red2:#d12b2b;--green:#16a34a}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:#1d4ed8}
h1,h2,h3{margin:0;line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
h1{font-size:clamp(34px,7vw,60px);font-weight:900}h2{font-size:28px;font-weight:800}h3{font-size:18px;font-weight:700}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.notice{background:var(--navy);color:#fff;text-align:center;padding:7px 16px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
header{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);box-shadow:0 1px 3px rgba(16,24,40,.1)}
.bar{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font-weight:900;font-size:22px;letter-spacing:.04em;color:var(--ink);text-decoration:none;display:flex;align-items:center}
.brand span{color:var(--red);margin-left:6px}
.brand img{height:42px;width:auto;display:block}
nav{display:flex;gap:10px}
button,.btn{font:inherit;font-size:14px;font-weight:500;cursor:pointer;min-height:44px;padding:0 16px;border-radius:8px;border:1px solid #d1d5db;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:background .15s,border-color .15s}
button:hover,.btn:hover{background:#f3f4f6}
.primary{background:var(--red);border-color:var(--red);color:#fff;font-weight:600}
.primary:hover{background:var(--red2);border-color:var(--red2)}
.dark{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:600}
.dark:hover{background:#1d2939}
.wide{width:100%}
button:disabled{opacity:.5;cursor:default}
.icon{width:44px;padding:0;position:relative}
.icon svg,.primary svg{width:18px;height:18px;flex:none}
.count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
#menu{border-top:1px solid var(--line);background:#fff}
#menu a,#menu button{display:flex;justify-content:flex-start;width:100%;max-width:1180px;margin:0 auto;border:none;border-radius:0;min-height:50px;padding:0 20px;font-size:16px;color:var(--ink);text-decoration:none;align-items:center;background:#fff}
#menu a:hover,#menu button:hover{background:var(--soft)}
input,select,textarea{font:inherit;color:var(--ink);background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 12px;min-height:44px;width:100%}
textarea{padding:10px 12px;min-height:90px}
input[type=checkbox]{width:22px;height:22px;min-height:0;accent-color:var(--red);flex:none;margin-top:2px}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--ink)}
label.check{flex-direction:row;align-items:flex-start;gap:12px;font-size:15px;font-weight:400}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.muted{color:var(--muted);font-size:14px}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.between{justify-content:space-between}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.hero{background:var(--soft);padding:52px 20px;text-align:center}
.hero p{font-size:18px;color:var(--muted);margin:12px 0 0}
.section{padding:28px 0 8px}
.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:8px}
.tools select{width:auto;min-width:150px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:0;padding:3px 10px;border-radius:8px;font-size:12px;font-weight:600;border:1px solid #d1d5db;background:#fff;color:var(--ink)}
button.chip{min-height:30px;cursor:pointer}
.chip[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.product{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(16,24,40,.08)}
.product .img{aspect-ratio:1/1;background:#eef0f2;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer}
.product img,.detail img{width:100%;height:100%;object-fit:cover}
.ph{font-weight:900;font-size:26px;letter-spacing:-.01em;color:#9aa1a9;text-align:center;padding:16px;line-height:1.1}
.ph small{display:block;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;margin-top:8px}
.badge{position:absolute;top:10px;right:10px;background:var(--green);color:#fff;font-size:12px;font-weight:600;padding:2px 8px;border-radius:8px}
.badge.out{background:#6b7280}
.product .body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}
.tag{font-size:12px;font-weight:600;color:var(--green);text-align:right}
.pname{font-weight:700;font-size:18px;line-height:1.25}
.price{font-size:24px;font-weight:700;line-height:1.2}
.tier{color:var(--muted);font-size:13px}
.actions{display:flex;gap:8px;margin-top:auto;padding-top:6px}
.actions .primary{flex:1}
.detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px;align-items:start}
.detail .img{aspect-ratio:1/1;background:#eef0f2;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}
.qty{display:flex;gap:8px}
.qty input{width:84px;text-align:center}
.qty button{flex:1}
.pill{display:inline-block;padding:2px 10px;border-radius:8px;border:1px solid #d1d5db;font-size:12px;font-weight:600;text-transform:capitalize}
.pill.approved,.pill.paid,.pill.shipped{background:var(--green);border-color:var(--green);color:#fff}
.pill.rejected,.pill.cancelled{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.line{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}
.total{display:flex;justify-content:space-between;align-items:baseline;font-size:24px;font-weight:800}
.err{color:#b42318;font-size:14px}
.auth{background:var(--soft);padding:40px 20px;min-height:70vh}
.auth .card{max-width:460px;margin:0 auto}
.auth .logo{text-align:center;font-weight:900;font-size:26px;letter-spacing:.04em;margin-bottom:22px}
.auth .logo span{color:var(--red)}
.auth .logo img{height:64px}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f1f3f5;border-radius:10px;padding:4px;gap:4px}
.tabs a{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:8px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}
.tabs a[aria-current=page]{background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.12)}
.page{max-width:780px;margin:0 auto;padding:28px 20px}
.pagew{max-width:1180px;margin:0 auto;padding:28px 20px}
#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 20px;border-radius:10px;font-weight:600;font-size:14px;max-width:90vw;z-index:9;box-shadow:0 8px 24px rgba(16,24,40,.25)}
#toast:empty{display:none}
footer{border-top:1px solid var(--line);margin-top:48px;padding:24px 0;text-align:center}
