@font-face{font-family:Kanit;src:url("kanit_regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Kanit;src:url("kanit_bold.ttf") format("truetype");font-weight:700;font-display:swap}
:root{--ui-font:"Kanit",sans-serif;--ink:#152a37;--berry:#96244d;--gold:#856533;--soft:#6e7275;--line:#eae6df;--paper:#faf7f1}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.45 var(--ui-font);background:white}
button,input{font:inherit}button{color:inherit;cursor:pointer;border:0;background:transparent;touch-action:manipulation}
button:focus-visible,input:focus-visible+span{outline:2px solid var(--berry);outline-offset:2px}
h1,h2,p{margin:0}header{background:var(--paper);border-bottom:1px solid var(--line)}
.bar,main,.dock>div{width:min(100%,960px);margin:auto}.bar{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;gap:12px}
h1{font-size:23px;letter-spacing:-.02em}h1:after{content:'';display:block;width:25px;height:3px;background:var(--berry);margin:5px 0 12px}
.branch{font-size:15px}.branch span{color:var(--gold)}.branch i{display:inline-block;border-left:1px solid #c6beb1;height:12px;margin:0 6px}
.logo{width:68px;height:60px;object-fit:contain}
main{display:grid;grid-template-columns:128px minmax(0,1fr);padding-bottom:84px}
nav{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 68px);overflow:auto;margin-top:16px;border-right:1px solid var(--line);scrollbar-width:thin}
nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;position:relative;width:100%;padding:12px 3px;min-height:68px;font-size:14px;color:#59636a}
nav svg,.dock svg{width:25px;height:25px}nav button[aria-pressed=true]{background:#faf7f2;color:var(--ink);box-shadow:inset -2px 0 var(--ink)}
nav button[aria-pressed=true]:after{content:'';position:absolute;background:var(--berry);width:6px;height:6px;border-radius:50%;right:0;top:48%}
.menu{padding:24px clamp(12px,3vw,36px)}.section-title,.sheet-head,.item-summary,.cart-line{display:flex;align-items:center;gap:12px}
.section-title{justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px}.section-title h2{font-size:21px}.section-title span,#status{font-size:13px;color:var(--soft)}
.card{width:100%;display:grid;grid-template-columns:108px minmax(0,1fr) 40px;align-items:center;gap:16px;padding:16px 0;text-align:left;border-bottom:1px solid var(--line)}
.card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px}.item-info{display:grid;gap:4px}.item-info strong{font-size:19px;line-height:1.35}.item-info small{font:11px/1.4 var(--ui-font);letter-spacing:.09em;color:var(--soft)}.item-info span{margin-top:5px;color:var(--gold);font-size:18px}
.card em{display:grid;place-items:center;width:28px;height:28px;justify-self:end;align-self:end;font:24px/1 sans-serif;color:white;background:var(--ink)}
.dock{position:fixed;bottom:0;inset-inline:0;border-top:1px solid var(--line);background:white;z-index:3;padding-bottom:env(safe-area-inset-bottom)}.dock>div{display:flex;justify-content:center;align-items:center;gap:16px;padding:7px 12px}.dock button{min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 14px}.dock .primary,.primary,#basket{background:var(--ink);color:white;border-radius:7px}.primary{width:100%;padding:13px}#basket[hidden]{display:none}#count{font-size:13px;color:var(--gold)}
@media(max-width:620px){.bar{padding:16px}.logo{width:48px}.branch{font-size:12px}main{grid-template-columns:74px minmax(0,1fr)}nav button{font-size:12px;padding:9px 2px;min-height:64px}.menu{padding:18px 11px}.card{grid-template-columns:clamp(65px,18vw,96px) minmax(0,1fr) 22px;gap:8px;padding:14px 0}.card em{width:21px;height:21px;font-size:18px}.item-info strong{font-size:15px}.item-info small{font-size:10px}.item-info span{font-size:15px}.section-title h2{font-size:17px}.dock>div{gap:4px}.dock button{font-size:13px;padding:6px 9px}}dialog{color:inherit;border:0;padding:0;width:min(500px,94vw);max-height:90dvh;border-radius:24px;background:white;overflow:hidden}
dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#32122270}body:has(dialog[open]){overflow:hidden}
.sheet-head,dialog footer{flex:none;padding:12px 20px;background:white}.sheet-head{justify-content:space-between;border-bottom:1px solid var(--line);font-weight:700}.sheet-head h2{font-size:22px}.close{width:42px;height:42px;background:#fbf1f4;border-radius:50%;font-size:23px}
.sheet-body{overflow:auto;overscroll-behavior:contain;padding:16px 20px}
.item-summary img{width:90px;aspect-ratio:1;border-radius:14px;object-fit:cover}.item-summary h2{font-size:24px;margin:4px 0}.item-summary b,.choice-price{color:var(--berry)}
fieldset{border:0;padding:0;margin:22px 0 0}legend{font-weight:700;margin-bottom:10px}
#sweet,#extras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.choice{position:relative;cursor:pointer}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice>span{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px solid var(--line);border-radius:13px;padding:8px 4px;height:100%;font-size:14px}
.choice input:checked+span{border-color:var(--berry);box-shadow:inset 0 0 0 1px var(--berry);background:#fff2f6;color:#a40c40}
.choice input:checked+span::after{content:'✓';position:absolute;right:4px;top:4px;border-radius:50%;color:white;background:var(--berry);font:12px/17px sans-serif;width:17px}
#sweet b{color:#902447;font-size:19px}.choice img{width:100%;height:55px;object-fit:contain;mix-blend-mode:multiply}.choice-price{font-size:12px}
dialog footer{border-top:1px solid var(--line);padding-bottom:max(14px,env(safe-area-inset-bottom))}
.cart-line{border-bottom:1px solid var(--line);padding:14px 0;align-items:flex-start}.cart-line img{width:62px;height:62px;border-radius:12px}.cart-line section{flex:1}.cart-line small{display:block;color:var(--soft)}.stepper{display:flex;align-items:center;gap:9px;margin-top:6px}.stepper button{width:40px;height:40px;border-radius:50%;background:#faf0f3}.stepper b{margin-left:auto;color:var(--berry)}#total{display:block;margin:0 0 10px}#status{margin:12px 0}
@media(max-width:620px){dialog{margin:auto 0 0;width:100%;max-width:none;max-height:92dvh;border-radius:18px 18px 0 0}.sheet-body,.sheet-head,dialog footer{padding-inline:15px}}
body{line-height:1.55}dialog{font-family:var(--ui-font)}.item-info strong,h1,h2,legend{font-weight:600}
#options{position:fixed}.hero-close{position:absolute;top:12px;left:14px;z-index:1}.hero-close button{background:#ffffffec}
#options .sheet-body{padding:0 0 18px}.product-hero{display:grid;grid-template-columns:55% 45%;align-items:center;overflow:hidden;background:linear-gradient(115deg,#faf1e6,#edddd0 55%,#cab5a4);min-height:185px}
.product-hero img{display:block;width:100%;height:clamp(165px,24dvh,250px);object-fit:contain;mix-blend-mode:multiply}
.product-hero div{padding:12px 18px 12px 6px}.product-hero small{font-size:10px;letter-spacing:.18em;color:#674e43}.product-hero span{display:block;font:clamp(20px,5vw,32px)/1.2 var(--ui-font);color:#42362e;margin-top:8px}
#options .item-summary{display:block;padding:19px 20px 0}#itemPrice{color:var(--gold)}#options #modifiers{padding:0 20px}
#sweet .choice>span{border-radius:3px;background:#f6f5f2;flex-direction:row;gap:4px;min-height:44px;border:1px solid transparent}
#sweet b{font-size:12px;color:inherit}#sweet input:checked+span{color:var(--ink);background:#e9eef4;border-color:#8596a8;box-shadow:none}#sweet input:checked+span:after{display:none}
.quantity-bar,.detail-actions{display:flex;align-items:center;gap:10px}.quantity-bar{margin-bottom:10px}.quantity-bar strong{margin-right:auto;font-size:22px}.quantity-bar button,.stepper button{background:var(--ink);color:white;border-radius:3px;width:38px;height:38px;font-size:19px}.quantity-bar button:disabled,.stepper button:disabled{background:#eee;color:#aaa}
.detail-actions button{width:50%;border:1px solid var(--ink);border-radius:4px;min-height:44px;font-weight:600}.detail-actions button:disabled{opacity:.5}
#cart{margin:auto auto 0;width:min(100%,620px);max-width:none;border-radius:16px 16px 0 0}#cart .sheet-head{padding-block:10px}#cart footer{background:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:10px}#cart footer button{width:auto}#cart #total{margin:0}
@media(max-width:620px){#options{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0}#options .sheet-body{flex:1}#options footer{background:var(--paper)}}

/* Customer cart */
#cart {border-radius:24px 24px 0 0}
#cart .sheet-head {padding:14px clamp(18px,5vw,28px);background:#fffaf9}
#cart .sheet-body {padding:4px clamp(18px,5vw,28px) 20px}
#cart #status:empty {display:none}
#cart .cart-line {padding:20px 0;gap:14px}
#cart .cart-line section {min-width:0}
#cart .cart-line img {width:66px;height:66px;object-fit:cover;border-radius:14px}
#cart .cart-line small {margin:3px 0 8px;font-size:13px}
#cart .stepper {gap:4px}
#cart .stepper button {background:#f7f1f3;color:#713448;border-radius:50%;width:38px;height:38px}
#cart .stepper span {min-width:24px;text-align:center}
#cart .stepper b {font-size:17px;color:var(--ink)}
#cart .pickup-name {margin:20px 0 0;gap:8px;font-size:15px}
#cart .pickup-name input {background:#fffcfb;min-height:46px;border-radius:10px}
#cart footer {display:grid;grid-template-columns:auto minmax(0,1fr);padding:15px clamp(18px,5vw,28px) max(18px,env(safe-area-inset-bottom));gap:12px 16px;background:white}
#cart #total {grid-column:1/-1;font-size:19px}
#cart footer button {min-height:46px;border-radius:12px;line-height:1.25}
#cart #back,#cart #cancelPayment {grid-column:1;grid-row:2;padding:8px 4px;background:none;color:#654b55;font-size:15px}
#cart footer #testPay {grid-column:2;grid-row:2;width:100%;padding:10px;background:#782847;color:white}
#cart footer:has(#total[hidden]) button {grid-row:1}
#cart footer:has(#testPay[hidden]) #back {grid-column:1/-1}
@media (max-width:350px) {
  #cart footer {column-gap:8px}
  #cart .cart-line {gap:10px}
}
#cart footer button:not([hidden]) {display:flex;align-items:center;justify-content:center;gap:7px}
#cart footer button::before {content:"";width:18px;height:18px;flex:none;background:currentColor;mask:var(--action-icon) center/contain no-repeat}
#cart #back {--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10 6-6 6 6 6M4 12h16'/%3E%3C/svg%3E")}
#cart #cancelPayment {--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E")}
#cart #testPay {--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 13v4h4v4h4M21 13v3M13 21h2'/%3E%3C/svg%3E")}
#cart:has(#payPanel:not([hidden])) #testPay {--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10a8 8 0 1 0 0 5M20 4v6h-6'/%3E%3C/svg%3E")}
#cancelConfirm {margin:auto;width:min(380px,calc(100% - 32px));border-radius:20px;padding:24px;overflow:auto;box-shadow:0 16px 48px #32122230}
#cancelConfirm h2 {font-size:21px;margin:0 0 8px}
#cancelConfirm p {color:#66565c;font-size:15px;line-height:1.65}
.cancel-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.cancel-actions button {min-height:46px;border-radius:12px;font-weight:700}
#keepPaying {background:#782847;color:white}
#confirmCancel {border:1px solid #d5bfc7;color:#782847}
#cart .refund-policy {grid-column:1/-1;color:#63515a;font-size:13px;line-height:1.5}
.refund-policy p {margin:3px 0 0}
#cart footer:has(#total:not([hidden])) button {grid-row:3}
#cart:has(#payPanel:not([hidden])) .refund-policy {display:none}
@media(max-height:550px){#cart footer:has(#total:not([hidden])){max-height:48dvh;overflow:auto}}
