:root{--brand-25:#fcfaff;--brand-50:#f9f5ff;--brand-100:#f4ebff;--brand-200:#e9d7fe;--brand-300:#d6bbfb;--brand-500:#9e77ed;--brand-600:#7f56d9;--brand-700:#6941c6;--brand-800:#53389e;--gray-25:#fcfcfd;--gray-50:#f9fafb;--gray-100:#f2f4f7;--gray-200:#eaecf0;--gray-300:#d0d5dd;--gray-400:#98a2b3;--gray-500:#667085;--gray-600:#475467;--gray-700:#344054;--gray-800:#1d2939;--gray-900:#101828;--ok-bg:#ecfdf3;--ok-fg:#067647;--ok-solid:#17b26a;--warn-bg:#fffaeb;--warn-fg:#b54708;--warn-solid:#f79009;--err-bg:#fef3f2;--err-fg:#b42318;--err-solid:#f04438;--info-bg:#eff8ff;--info-fg:#175cd3;--orange-bg:#fef6ee;--orange-fg:#b93815;--radius:8px;--radius-lg:12px;--shadow-xs:0 1px 2px #1018280d;--shadow-lg:0 12px 16px -4px #10182814, 0 4px 6px -2px #10182808;--font-head:"IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;--font-body:"Google Sans", "Noto Sans Thai", sans-serif}*{box-sizing:border-box}html,body{margin:0}body{background:var(--gray-50);color:var(--gray-900);font:400 14px/1.5 var(--font-body);-webkit-font-smoothing:antialiased}h1,h2,h3,.h1,.h2,.h3{font-family:var(--font-head);color:var(--gray-900);margin:0}h1,.h1{font-size:24px;font-weight:700;line-height:1.3}h2,.h2{font-size:18px;font-weight:600}h3,.h3{font-size:16px;font-weight:600}a{color:var(--brand-700)}button,input,select,textarea{font:inherit;color:inherit}img{max-width:100%}.muted{color:var(--gray-600)}.small{font-size:12px}.num{font-variant-numeric:tabular-nums}.right{text-align:right}.stack{flex-direction:column;gap:16px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.between{justify-content:space-between}.grow{flex:1;min-width:0}.grid{grid-template-columns:repeat(auto-fit, minmax(var(--min,220px), 1fr));gap:16px;display:grid}.card{border:1px solid var(--gray-200);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);background:#fff;padding:16px}.card.pad-lg{padding:24px}.kpi .label{color:var(--gray-600);font-size:13px}.kpi .value{font-family:var(--font-head);margin-top:2px;font-size:26px;font-weight:700}.btn{border-radius:var(--radius);border:1px solid var(--gray-300);min-height:44px;color:var(--gray-700);cursor:pointer;box-shadow:var(--shadow-xs);white-space:nowrap;background:#fff;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:14px;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover{background:var(--gray-50)}.btn:focus-visible,.input:focus-visible{outline:3px solid var(--brand-200);outline-offset:1px}.btn.pri{background:var(--brand-600);border-color:var(--brand-600);color:#fff}.btn.pri:hover{background:var(--brand-700)}.btn.dark{background:var(--gray-900);border-color:var(--gray-900);color:#fff}.btn.danger{color:var(--err-fg);border-color:#fda29b}.btn.ghost{box-shadow:none;color:var(--brand-700);background:0 0;border-color:#0000}.btn.sm{min-height:36px;padding:0 12px;font-size:13px}.btn.block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{width:44px;height:44px;padding:0}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>span{color:var(--gray-700);font-size:14px;font-weight:500}.field .hint{color:var(--gray-500);font-size:12px}.input,select.input,textarea.input{border:1px solid var(--gray-300);border-radius:var(--radius);width:100%;min-height:44px;box-shadow:var(--shadow-xs);background:#fff;padding:0 12px}textarea.input{resize:vertical;min-height:96px;padding:10px 12px}.check{align-items:flex-start;gap:10px;min-height:44px;padding-top:10px;display:flex}.check input{width:20px;height:20px;accent-color:var(--brand-600);flex:none;margin:0}.pill{white-space:nowrap;background:var(--gray-100);color:var(--gray-700);border-radius:999px;align-items:center;padding:2px 10px;font-size:12px;font-weight:600;display:inline-flex}.pill.ok{background:var(--ok-bg);color:var(--ok-fg)}.pill.warn{background:var(--warn-bg);color:var(--warn-fg)}.pill.err{background:var(--err-bg);color:var(--err-fg)}.pill.info{background:var(--info-bg);color:var(--info-fg)}.pill.brand{background:var(--brand-50);color:var(--brand-700)}.pill.orange{background:var(--orange-bg);color:var(--orange-fg)}.chips{gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.chip{border:1px solid var(--gray-300);white-space:nowrap;cursor:pointer;min-height:40px;color:var(--gray-700);background:#fff;border-radius:999px;padding:0 14px}.chip.on{background:var(--brand-600);border-color:var(--brand-600);color:#fff;font-weight:600}.bar{background:var(--gray-200);border-radius:6px;height:8px;overflow:hidden}.bar>i{background:var(--brand-600);border-radius:6px;height:100%;display:block}.bar.full>i{background:var(--err-solid)}.table-wrap{border:1px solid var(--gray-200);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);background:#fff;overflow-x:auto}table.table{border-collapse:collapse;width:100%;min-width:640px}.table th{text-align:left;background:var(--gray-50);color:var(--gray-600);white-space:nowrap;padding:12px 16px;font-size:12px;font-weight:600}.table td{border-top:1px solid var(--gray-200);vertical-align:middle;padding:12px 16px}.table tr.click{cursor:pointer}.table tr.click:hover td{background:var(--gray-25)}.list-item{border-top:1px solid var(--gray-200);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.list-item:first-child{border-top:0}.overlay{z-index:50;background:#34405499;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{width:100%;max-width:560px;max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);background:#fff;border-radius:16px;flex-direction:column;gap:16px;padding:24px;display:flex;overflow-y:auto}@media (width<=640px){.overlay{align-items:flex-end;padding:0}.modal{border-radius:16px 16px 0 0;max-height:92vh}}.toast{background:var(--gray-900);color:#fff;z-index:60;box-shadow:var(--shadow-lg);border-radius:10px;max-width:calc(100vw - 32px);padding:12px 16px;position:fixed;bottom:88px;left:50%;transform:translate(-50%)}.notice{border-radius:var(--radius);padding:12px 14px}.notice.warn{background:var(--warn-bg);color:var(--warn-fg)}.notice.err{background:var(--err-bg);color:var(--err-fg)}.notice.ok{background:var(--ok-bg);color:var(--ok-fg)}.notice.info{background:var(--info-bg);color:var(--info-fg)}.empty{text-align:center;color:var(--gray-500);padding:32px 16px}.shell{min-height:100vh;display:flex}.side{border-right:1px solid var(--gray-200);background:#fff;flex-direction:column;flex:none;gap:4px;width:248px;height:100vh;padding:24px 16px;display:flex;position:sticky;top:0;overflow-y:auto}.side.dark{background:var(--gray-900);border-right-color:var(--gray-800)}.brand{font-family:var(--font-head);color:var(--brand-700);padding:0 12px;font-size:20px;font-weight:700}.side.dark .brand{color:#fff}.side .sub{color:var(--gray-600);padding:0 12px 16px;font-size:12px}.nav-link{border-radius:var(--radius);min-height:44px;color:var(--gray-700);justify-content:space-between;align-items:center;padding:0 12px;text-decoration:none;display:flex}.nav-link:hover{background:var(--gray-50)}.nav-link.active{background:var(--brand-50);color:var(--brand-700);font-weight:600}.side.dark .nav-link{color:var(--gray-300)}.side.dark .nav-link:hover{background:var(--gray-800)}.side.dark .nav-link.active{background:var(--gray-800);color:#fff}.side .foot{border-top:1px solid var(--gray-200);color:var(--gray-600);margin-top:auto;padding:16px 12px 0;font-size:12px}.side.dark .foot{border-top-color:var(--gray-700);color:var(--gray-400)}.main{flex-direction:column;flex:1;gap:20px;min-width:0;padding:24px 32px 48px;display:flex}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.topbar,.bottomnav{display:none}@media (width<=900px){.side{display:none}.main{padding:16px 16px 96px}.topbar{z-index:20;border-bottom:1px solid var(--gray-200);background:#fff;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:0 16px;display:flex;position:sticky;top:0}.topbar.dark{background:var(--gray-900);color:#fff;border-bottom-color:var(--gray-800)}.shell{flex-direction:column}.bottomnav{z-index:20;border-top:1px solid var(--gray-200);padding-bottom:env(safe-area-inset-bottom);background:#fff;display:flex;position:fixed;bottom:0;left:0;right:0}.bottomnav a,.bottomnav button{min-height:60px;color:var(--gray-600);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:12px;text-decoration:none;display:flex}.bottomnav .active{color:var(--brand-700);font-weight:600}.hide-sm{display:none!important}}@media (width>=901px){.show-sm{display:none!important}}.store-head{border-bottom:1px solid var(--gray-200);z-index:10;background:#fff;position:sticky;top:0}.store-head .in{justify-content:space-between;align-items:center;gap:12px;max-width:1120px;min-height:64px;margin:0 auto;padding:0 16px;display:flex}.store-head nav{gap:4px;display:flex}.store-head nav a{border-radius:var(--radius);min-height:44px;color:var(--gray-700);align-items:center;padding:0 12px;font-weight:600;text-decoration:none;display:flex}.store-head nav a.active{color:var(--brand-700);background:var(--brand-50)}.wrap{flex-direction:column;gap:20px;max-width:1120px;margin:0 auto;padding:24px 16px 120px;display:flex}.hero{background:linear-gradient(135deg, var(--brand-600), var(--brand-800));color:#fff;border-radius:16px;padding:28px 24px}.hero h1{color:#fff;font-size:28px}.products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;display:grid}@media (width<=520px){.products{grid-template-columns:1fr 1fr;gap:10px}}.product{border:1px solid var(--gray-200);border-radius:var(--radius-lg);background:#fff;flex-direction:column;display:flex;overflow:hidden}.product .img{aspect-ratio:1;background:var(--gray-100);color:var(--gray-400);justify-content:center;align-items:center;font-size:13px;display:flex}.product .img img{object-fit:cover;width:100%;height:100%}.product .body{flex-direction:column;flex:1;gap:6px;padding:12px;display:flex}.price{font-family:var(--font-head);color:var(--brand-700);font-size:18px;font-weight:700}.stepper{align-items:center;gap:8px;margin-top:auto;display:flex}.stepper button{border-radius:var(--radius);border:1px solid var(--gray-300);cursor:pointer;background:#fff;width:44px;height:44px;font-size:18px}.stepper button.plus{background:var(--brand-600);border-color:var(--brand-600);color:#fff}.stepper span{text-align:center;min-width:24px;font-weight:700}.cartbar{border-top:1px solid var(--gray-200);padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:15;background:#fff;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 12px #1018280f}.cartbar .in{justify-content:space-between;align-items:center;gap:12px;max-width:1120px;margin:0 auto;display:flex}.steps{flex-direction:column;gap:12px;display:flex}.step{align-items:center;gap:12px;display:flex}.step i{border:1px solid var(--gray-300);width:28px;height:28px;color:var(--gray-500);background:#fff;border-radius:999px;flex:none;justify-content:center;align-items:center;font-size:13px;font-style:normal;font-weight:600;display:flex}.step.done i{background:var(--brand-600);border-color:var(--brand-600);color:#fff}.step.cur i{background:var(--brand-50);border:2px solid var(--brand-600);color:var(--brand-700)}.step.cur span{font-weight:600}.drop{border:2px dashed var(--gray-300);border-radius:var(--radius);text-align:center;color:var(--gray-600);cursor:pointer;padding:20px;display:block}.drop input{display:none}.foot{text-align:center;color:var(--gray-500);padding:24px 16px 100px;font-size:12px}
