@font-face{font-family:OrderThai;src:url('/admin/fonts/noto-sans-thai-thai-400-normal.woff2');font-weight:400;unicode-range:U+0E00-0E7F}@font-face{font-family:OrderThai;src:url('/admin/fonts/noto-sans-thai-latin-400-normal.woff2');font-weight:400;unicode-range:U+0000-00FF,U+2000-206F}@font-face{font-family:OrderThai;src:url('/admin/fonts/noto-sans-thai-thai-700-normal.woff2');font-weight:700;unicode-range:U+0E00-0E7F}@font-face{font-family:OrderThai;src:url('/admin/fonts/noto-sans-thai-latin-700-normal.woff2');font-weight:700;unicode-range:U+0000-00FF,U+2000-206F}
*{box-sizing:border-box}body{margin:0;background:#f5f1e9;color:#302820;font:15px OrderThai,system-ui,sans-serif;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,a{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{background:#211c19;color:#f5dfab;padding:20px max(20px,calc((100% - 1280px)/2));display:flex;justify-content:space-between;gap:15px;align-items:center}.brand{font-size:22px;font-weight:700;letter-spacing:.2px}.brand small{display:inline-block;margin-left:8px;font-size:10px;letter-spacing:3px;color:#ba9c5c}.contact{font-size:13px;color:#e6dcc5}main{max-width:1320px;margin:auto;padding:36px 20px}.intro{display:flex;justify-content:space-between;gap:30px;align-items:center;margin:10px 0 30px}.eyebrow{font-size:12px;color:#9a733b;letter-spacing:1px;margin:0 0 10px}h1{font-size:40px;line-height:1.35;margin:0 0 18px}h1 span{color:#862f40}.intro p:not(.eyebrow){color:#877766;margin:0}.category-label{display:flex;flex-direction:column;min-width:220px;background:#eee5d7;border:1px solid #dbccb3;border-radius:16px;padding:22px 28px}.category-label strong{font-size:23px}.category-label>span{font-size:13px;color:#77644a}.category-label small{font-size:11px;color:#96856e;margin-top:8px}.chooser{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:#fffdf8;border:1px solid #e2d7c5;border-radius:12px;padding:18px 22px;margin-bottom:26px}.chooser label{font-weight:700}.chooser select{background:#f4eee2;border:1px solid #d8c8aa;border-radius:8px;padding:10px 13px;min-width:290px}.chooser p{flex:1;font-size:12px;min-width:210px;color:#7a6955;margin:0}.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:25px;align-items:start}.search-toolbar{margin:0 0 18px}.search-toolbar>label{font-size:13px;font-weight:700;display:block;margin-bottom:8px}.search-input{display:flex;align-items:center;gap:12px;background:white;border:1px solid #d9cdb9;border-radius:10px;padding:4px 14px}.search-input>span{font-size:28px;color:#a18148}.search-input input{border:0;background:transparent;outline:none;min-width:0;width:100%;padding:12px 0;font-size:15px}.filter-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;font-size:12px;color:#8c7a64}.selected-filter{display:flex;align-items:center;gap:5px;white-space:nowrap}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.order-card{background:#fffdf9;border:1px solid #e0d5c3;border-radius:13px;overflow:hidden;display:flex;flex-direction:column}.order-card.is-selected{border:2px solid #8b3443;box-shadow:0 4px 20px #8b344311}.order-image{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#ebe0cb}.card-content{padding:14px;display:flex;flex-direction:column;flex:1}.card-content h3{font-size:15px;margin:0 0 7px;line-height:1.45;overflow-wrap:anywhere}.pack{font-size:12px;color:#8a7861;margin:0 0 10px}.unit-price{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;margin:auto 0 12px}.unit-price strong{font-size:20px;color:#852f3e}.unit-price del{font-size:12px;color:#9b8a77}.unit-price small{font-size:11px;color:#8c7a64}.quantity{display:flex;align-items:center;justify-content:space-between;gap:5px;border:1px solid #d8cbb6;border-radius:8px;background:#f8f3ea;padding:3px}.quantity button{border:0;background:transparent;width:35px;height:36px;font-size:23px;color:#793243}.quantity input{min-width:0;width:65px;text-align:center;border:0;background:transparent;color:#3f2d22;padding:5px;font-weight:700;-moz-appearance:textfield}.quantity input::-webkit-inner-spin-button{appearance:none}.order-panel{position:sticky;top:18px;background:#fffdfa;border:1px solid #dfd2bc;border-radius:15px;padding:22px;box-shadow:0 10px 30px #3e2f1608}.summary-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ede3d2;padding-bottom:15px;gap:10px}.summary-title h2{font-size:20px;margin:0}.summary-title>span{font-size:11px;background:#eee3d1;padding:4px 8px;border-radius:20px}.selected-line{padding:13px 0;border-bottom:1px solid #eee5d6;display:flex;gap:10px;align-items:flex-start}.selected-line>div{flex:1;min-width:0}.selected-line strong{font-size:13px;display:block}.selected-line small{display:block;font-size:11px;color:#8a775e}.selected-line p{margin:5px 0 0;font-size:13px;color:#873346}.remove{border:0;color:#a5947d;background:transparent;font-size:22px;line-height:1;padding:3px}.summary-empty{font-size:13px;color:#9b8d78;text-align:center;padding:23px 5px}.summary-totals{padding:8px 0}.summary-totals p{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:10px 0}.summary-totals .grand-total{border-top:1px solid #e5d8c2;padding-top:14px;align-items:center;font-size:15px}.grand-total strong{font-size:26px;color:#822e3c}.issues{font-size:12px;color:#9e3345;padding-left:18px;margin:10px 0}.primary,.line-button{display:block;text-align:center;width:100%;padding:13px 10px;border-radius:8px;border:0;font-weight:700;font-size:14px}.primary{background:#872f40;color:white}.primary:disabled{opacity:.45;cursor:not-allowed}.line-button{background:#eef1e7;color:#526a42;margin-top:9px;font-size:12px}.copy-result{font-size:12px;color:#657342;margin:12px 0}.order-note,.price-date{font-size:11px;color:#927f65;margin:14px 0 0}.price-date{margin-top:5px;font-size:10px}details summary{cursor:pointer;color:#856b45;font-size:12px}textarea{width:100%;resize:vertical;border:1px solid #d6c6ac;border-radius:8px;margin-top:10px;padding:12px;color:#443124;background:#fffdf6;font-size:12px;line-height:1.8}.empty{padding:35px 10px;text-align:center;color:#9a8566}.mobile-summary{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}footer{text-align:center;color:#a29178;font-size:11px;margin-top:40px;padding:25px 0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d2aa61;outline-offset:3px}@media(max-width:1150px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-layout{grid-template-columns:minmax(0,1fr) 325px;gap:18px}}@media(max-width:760px){.header{padding:15px 18px}.brand{font-size:18px}.brand small{display:block;margin:0;font-size:8px}.contact{font-size:11px}main{padding:24px 14px 80px}.intro{display:block;margin-top:0}h1{font-size:30px}.intro p:not(.eyebrow){font-size:13px}.category-label{margin-top:20px;gap:4px;min-width:0;padding:16px 18px}.category-label strong{font-size:18px}.category-label small{margin:0;line-height:1.7}.chooser{padding:16px;gap:8px}.chooser label{font-size:13px}.chooser select{width:100%;min-width:0;font-size:13px}.chooser p{font-size:11px}.order-layout{display:block}.product-grid{gap:11px}.card-content{padding:11px}.card-content h3{font-size:13px}.pack{font-size:10px}.unit-price strong{font-size:17px}.quantity button{width:30px}.quantity input{width:55px}.order-panel{position:static;margin-top:24px;padding:20px;scroll-margin-top:15px}.mobile-summary{display:flex;position:fixed;bottom:0;left:0;width:100%;border:0;background:#2b211b;color:#ebd8b3;padding:15px 18px;align-items:center;gap:12px;box-shadow:0 -4px 20px #0002;z-index:5;font-size:12px;padding-bottom:max(15px,env(safe-area-inset-bottom))}.mobile-summary strong{font-size:17px;color:#f5dd99;margin-right:auto}.mobile-summary>span:last-child{color:#f4e9d1}.search-input input{font-size:13px}footer{margin-top:15px}.selected-filter{font-size:11px}.filter-row{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#category-filter{width:100%;padding:12px;border:1px solid #cbd5c6;border-radius:10px;background:#fff;color:#203c32;font:inherit;margin:8px 0 16px}

[hidden]{display:none!important}
.access-logout{padding:10px 16px;border:1px solid #cbbfaf;background:#fff;color:#803348;border-radius:10px;font:inherit;cursor:pointer}
.access-status{flex-basis:100%;margin:0;font-size:.85rem;color:#746655}
.access-dialog{border:1px solid #ddd0bd;border-radius:22px;padding:28px;width:min(450px,calc(100vw - 32px));box-sizing:border-box;color:#29251f;background:#fffdf8;box-shadow:0 25px 90px #26181c55}
.access-dialog::backdrop{background:#261b23aa;backdrop-filter:blur(4px)}
.access-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.access-heading h2{margin:6px 0 10px;font-size:1.6rem}
.access-close{font:inherit;font-size:1.6rem;line-height:1;background:transparent;border:0;cursor:pointer;color:#6d5a50;padding:4px 8px}
.access-dialog label{display:block;font-weight:600;margin:18px 0 8px}.access-dialog input{box-sizing:border-box;width:100%;padding:14px;border-radius:10px;border:1px solid #cfc3b2;font:inherit;background:#fff}.access-dialog input:focus{outline:3px solid #d9ac60;outline-offset:2px}
.access-dialog .primary{width:100%}.access-error{min-height:1.5em;color:#a52a3b;font-size:.9rem}.access-help{font-size:.85rem;color:#786955;line-height:1.7}.access-help a{color:#803348}.chooser{flex-wrap:wrap}

/* Keep a long sticky summary fully reachable within the desktop viewport. */
@media (min-width:761px){
  .order-panel{
    max-height:calc(100vh - 36px);
    max-height:calc(100dvh - 36px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
  }
}
.order-panel:focus-visible{outline:3px solid #d2aa61;outline-offset:3px}

/* Touch controls and short viewports, including the on-screen keyboard. */
.access-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.access-close{min-width:44px;min-height:44px;flex-shrink:0}
.access-heading>div{min-width:0}
@media(max-width:760px){
  main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
  .chooser select,#category-filter,.search-input input,.quantity input,.access-dialog input,#order-message{font-size:16px}
  .chooser>*{max-width:100%}
  .quantity button{width:44px;height:44px;flex:0 0 44px}
  .quantity input{width:0;flex:1;padding:5px 0}
  .quantity{gap:2px}
  .selected-filter{min-height:44px}
  .remove{width:44px;height:44px;flex:0 0 44px}
  .contact{min-height:44px;display:flex;align-items:center}
  .order-panel{scroll-margin-bottom:100px}
  .selected-line strong{overflow-wrap:anywhere}
  .access-dialog{padding:20px}
  .mobile-summary{gap:8px;flex-wrap:wrap}
}
@media(max-width:359px){
  .product-grid{grid-template-columns:minmax(0,1fr)}
  .order-card{display:grid;grid-template-columns:100px minmax(0,1fr)}
  .order-image{height:100%;aspect-ratio:auto}
}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

@media(pointer:coarse){.chooser select,#category-filter,.search-input input,.quantity input,.access-dialog input,#order-message{font-size:16px}.quantity button{min-width:44px;min-height:44px}}

.catalog-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px;flex-wrap:wrap}.catalog-tools p{margin:0;font-size:12px;color:#79674f;flex:1;min-width:180px}.catalog-tools button{border:1px solid #cfbea1;background:#fffdf8;border-radius:8px;padding:10px 14px;min-height:44px;color:#6c4c31}.product-details{margin:0 0 14px;overflow-wrap:anywhere}.product-details summary{min-height:38px;padding:8px 0}.product-details p{white-space:pre-line;font-size:12px}.product-details small{font-size:11px;color:#8a7861}.order-gallery{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.order-gallery button{padding:0;border:1px solid #d8c8aa;border-radius:6px;overflow:hidden;width:48px;height:48px;background:#eee5d7}.order-gallery img{width:100%;height:100%;object-fit:contain}.inquiry-price{color:#852f3e;margin:auto 0 10px;font-size:17px}

.order-customer{margin:16px 0;padding:14px;border:1px solid #e2d7c5;border-radius:12px;background:#faf6ee;overflow-wrap:anywhere}.order-customer[hidden],#access-phone-field[hidden]{display:none}.order-customer p{margin:6px 0;font-size:13px;line-height:1.7;white-space:pre-line}.order-customer small{display:block;color:#867257;font-size:11px;line-height:1.6}
#volume-rules{margin:14px 0;font-size:12px;line-height:1.8;color:#786449}#volume-rules[hidden]{display:none}#volume-rules ul{padding-left:18px}
