*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#e9edf2;color:#1c2733}
.bar{position:sticky;top:0;z-index:20;background:#16324f;color:#fff;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 12px}
.brand{font-weight:700}
.tools{display:flex;gap:6px;flex:1;justify-content:flex-end;min-width:260px}
.tools select,.tools input{padding:7px 8px;border:0;border-radius:6px;font-size:15px;min-width:0}
.tools input{flex:1;max-width:260px}
.cart-btn{background:#f2b632;color:#16324f;border:0;border-radius:6px;padding:7px 12px;font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap}
.cart-btn span{background:#16324f;color:#fff;border-radius:10px;padding:1px 7px;margin-left:4px}
.notice{background:#fff4d6;padding:8px 12px;font-size:14px;text-align:center}
.hint{margin:8px auto;max-width:1000px;padding:0 12px;font-size:14px;color:#4a5866}
.dot{display:inline-block;background:#1f8a4c;color:#fff;border-radius:10px;padding:0 6px;font-weight:700;font-size:12px}
.dot.so{background:#b4531a}
#book{max-width:1000px;margin:0 auto;padding:0 8px 40px}
.page{position:relative;margin:0 auto 14px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);aspect-ratio:1000/1512}
.page img{width:100%;height:100%;display:block}
.pno{position:absolute;top:6px;right:8px;background:rgba(22,50,79,.75);color:#fff;font-size:12px;padding:2px 7px;border-radius:8px}
.hot{position:absolute;border:0;background:transparent;cursor:pointer;padding:0;border-radius:3px}
.hot:hover,.hot:focus-visible{background:color-mix(in srgb,var(--c,#1f8a4c) 14%,transparent);outline:2px solid color-mix(in srgb,var(--c,#1f8a4c) 70%,transparent)}
.hot .plus{position:absolute;left:-2.6%;top:50%;transform:translate(-100%,-50%);background:#1f8a4c;color:#fff;font-weight:700;font-size:clamp(9px,1.4vw,13px);border-radius:9px;padding:0 5px;line-height:1.5;white-space:nowrap}
.hot.so .plus{background:#b4531a}
.hot.in .plus{background:#16324f}
.title-hot{position:absolute;border:0;padding:0;cursor:pointer;background:color-mix(in srgb,var(--c,#1f8a4c) 9%,transparent);border-radius:3px}
.title-hot:hover,.title-hot:focus-visible{background:color-mix(in srgb,var(--c,#1f8a4c) 22%,transparent)}
.title-hot:focus-visible{outline:2px solid var(--c,#1f8a4c)}
.ttl{background:rgba(22,50,79,.09);border-radius:3px;padding:0 3px}
.pk{display:flex;flex-direction:column;gap:8px}
.pk h3{margin:0;font-size:17px}
#pkList{max-height:55vh;overflow:auto}
.pk-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eee}
.pk-row .t{flex:1;font-size:14px;cursor:pointer}.pk-row .t small{display:block;color:#6b7785}
.pk-row select{width:72px;padding:7px;font-size:16px;border:1px solid #c8d1db;border-radius:6px;background:#fff}
.pk-row.on{background:#eef3f9;box-shadow:inset 3px 0 0 #16324f}
.pk .row{justify-content:flex-end}
.pk button{background:#1f8a4c;color:#fff;border:0;border-radius:6px;padding:10px 16px;cursor:pointer;font-weight:600}
.pk button.ghost{background:#e3e9f0;color:#1c2733}
.page-so{position:absolute;bottom:2.5%;left:50%;transform:translateX(-50%);background:#b4531a;color:#fff;border:0;border-radius:20px;padding:9px 16px;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.results{position:sticky;top:52px;z-index:15;max-width:1000px;margin:0 auto;background:#fff;max-height:50vh;overflow:auto;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.res{display:flex;gap:8px;align-items:center;padding:8px 12px;border-bottom:1px solid #eef}
.res .t{flex:1;font-size:14px}.res b{font-family:ui-monospace,monospace}
.res button{border:0;border-radius:6px;padding:6px 10px;cursor:pointer;font-weight:600}
.res .go{background:#e3e9f0}.res .add{background:#1f8a4c;color:#fff}.res .add.so{background:#b4531a}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(440px,100%);background:#fff;z-index:30;transform:translateX(100%);transition:transform .2s;overflow:auto;padding:12px 14px 40px;box-shadow:-4px 0 14px rgba(0,0,0,.2)}
.drawer.open{transform:none}
.drawer-head{display:flex;justify-content:space-between;align-items:center}
.drawer-head button{border:0;background:none;font-size:22px;cursor:pointer}
.line{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eee}
.line .t{flex:1;font-size:14px}.line .t small{color:#6b7785;display:block}
.line select{width:66px;padding:5px;border:1px solid #c8d1db;border-radius:6px;background:#fff;font-size:15px}
.line .rm{border:0;background:none;color:#a33;cursor:pointer;font-size:18px}
.tag{font-size:11px;background:#b4531a;color:#fff;border-radius:6px;padding:1px 5px;margin-left:4px}
.group{margin:12px 0 2px;font-weight:700;font-size:14px;color:#16324f}
.empty{color:#6b7785;font-size:14px}
.quick,.checkout{margin-top:14px;display:flex;flex-direction:column;gap:7px}
.quick label{font-size:13px;font-weight:600}
.row{display:flex;gap:6px}
.row input:first-child{flex:1}
input,textarea{font:inherit;padding:8px;border:1px solid #c8d1db;border-radius:6px}
.quick input[type=number]{width:70px}
button{font:inherit}
.quick button,.checkout button,#soForm button{background:#16324f;color:#fff;border:0;border-radius:6px;padding:9px 14px;cursor:pointer;font-weight:600}
.checkout button{background:#1f8a4c;font-size:16px}
.small{font-size:12px;color:#6b7785;margin:2px 0}
dialog{border:0;border-radius:10px;padding:16px;width:min(420px,92vw)}
#soForm{display:flex;flex-direction:column;gap:8px}
#soForm .row button[value=cancel]{background:#e3e9f0;color:#1c2733}
.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#16324f;color:#fff;padding:9px 16px;border-radius:20px;z-index:40;font-size:14px}
pre.summary{white-space:pre-wrap;font-size:13px;background:#f5f7fa;padding:10px;border-radius:6px}
.pk button:disabled{opacity:.45;cursor:not-allowed}
.eco{color:#3a9a43}.leaf{width:20px;height:10px;vertical-align:0;margin-right:4px}
/* every add to cart and special order window uses the same dark grey, with light text so item numbers stand out */
dialog{background:#2b2f33;color:#f1f3f5;color-scheme:dark;box-shadow:0 8px 30px rgba(0,0,0,.45)}
dialog::backdrop{background:rgba(0,0,0,.55)}
dialog h3{color:#fff}
dialog .small,.pk-row .t small{color:#b8c0c8}
.pk-row{border-bottom:1px solid #41474d}
.pk-row .t b{color:#fff;font-size:15px;letter-spacing:.2px}
.pk-row .t b.eco{color:#8fdc97}
.pk-row select,dialog input,dialog textarea{background:#1f2326;color:#fff;border:1px solid #586068}
dialog input::placeholder,dialog textarea::placeholder{color:#9aa3ab}
.pk-row.on{background:#3a4148;box-shadow:inset 3px 0 0 #f2b632}
.pk button.ghost,#soForm .row button[value=cancel]{background:#454c53;color:#fff}
/* bigger tap area around each product title for phones; the visible tint stays the same size */
.title-hot::before{content:'';position:absolute;left:-6px;right:-6px;top:50%;height:max(100%,26px);transform:translateY(-50%)}
/* search results list matches the same dark grey */
.results{background:#2b2f33;color:#f1f3f5;color-scheme:dark}
.res{border-bottom:1px solid #41474d}
.res b{color:#fff}
.res b.eco{color:#8fdc97}
.res small{color:#b8c0c8}
.res .go{background:#454c53;color:#fff}
/* quantity dropdowns draw their own number and arrow so the chosen amount always shows, on every phone */
.pk-row select,.line select{-webkit-appearance:none;appearance:none;height:40px;line-height:normal;padding:0 26px 0 10px;font-size:17px;font-weight:700;text-align:left;border-radius:6px;background-repeat:no-repeat;background-position:right 9px center;background-size:11px 7px;opacity:1}
.pk-row select{width:80px;color:#fff;-webkit-text-fill-color:#fff;background-color:#1f2326;border:1px solid #6b747c;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E")}
.pk-row.on select{border-color:#f2b632}
.pk-row select option{color:#fff;background:#1f2326}
.line select{width:74px;color:#1c2733;-webkit-text-fill-color:#1c2733;background-color:#fff;border:1px solid #9aa6b2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%231c2733' stroke-width='1.6'/%3E%3C/svg%3E")}
.line select option{color:#1c2733;background:#fff}
.pk-row .incart{display:block;font-style:normal;font-size:12px;font-weight:600;color:#f2b632;margin-top:2px}
dialog h3:focus{outline:none}
.line .pname{display:block;font-size:12px;font-weight:700;color:#16324f;text-transform:none;letter-spacing:.2px;margin-bottom:1px}
.print-btn{margin-top:10px;width:100%;padding:10px;border:1px solid #16324f;background:#fff;color:#16324f;border-radius:8px;font-weight:700;cursor:pointer}
@media print{
  body *{visibility:hidden}
  #cart,#done,#done *{visibility:visible}
  #cart{position:static;transform:none;box-shadow:none;width:auto;height:auto;overflow:visible;background:#fff}
  #cart > *:not(#done){display:none}
  #done .print-btn{display:none}
  #done pre.summary{background:#fff;font-size:12px}
  #book,header,.hint,.results{display:none}
}
.masthead{background:#fff;text-align:center;padding:16px 12px 12px;border-bottom:3px solid #b59a64}
.masthead img{width:min(340px,82%);height:auto;display:block;margin:0 auto}
.mh-sub{margin-top:6px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#16324f;font-weight:600}
.mh-phone{display:inline-block;margin-top:6px;font-size:14px;font-weight:700;color:#2f6b3a;text-decoration:none}
.mh-phone:hover{text-decoration:underline}
