.customer-page { min-height:100vh; font-family:var(--body); }
.customer-page :where(h1,h2,h3,p,ul) { margin:0; }
.customer-page .cu-icon { display:block; flex:none; width:18px; height:18px; fill:none; pointer-events:none; }
.customer-width { width:min(calc(100% - clamp(40px,8vw,144px)),1380px); margin-inline:auto; }
.cu-skip { position:absolute; top:-100px; left:10px; z-index:5; padding:8px; background:white; }
.cu-skip:focus { top:4px; }
.customer-header { border-bottom:1px solid var(--line); background:white; }
.header-inner,.header-actions,.restaurant-brand,.header-bag,.receipt-link,.service-label,.catalog-tools,.section-row,.panel-heading,.menu-buy,.stepper,.cart-line,.money-row,.dialog-top { display:flex; align-items:center; }
.header-inner { justify-content:space-between; gap:12px; min-height:70px; }
.header-actions { gap:8px; }
.restaurant-brand { gap:7px; color:var(--ink); font:430 clamp(1.45rem,2.1vw,1.83rem)/1 var(--display); letter-spacing:-.066em; white-space:nowrap; }
.restaurant-brand strong { font-weight:780; }
.restaurant-mark { display:block; width:1.1em; height:1.1em; }
.header-bag,.receipt-link,.close-dialog { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:6px 12px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:600 .875rem/1.3 var(--body); }
.header-bag:disabled { color:var(--muted); }
.header-actions .cu-icon { width:16px; height:16px; }

.customer-main { padding-block:26px 64px; }
.menu-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.63fr); align-items:stretch; min-height:172px; margin-bottom:25px; padding:7px; border:1px solid var(--line); border-radius:18px; background:white; }
.menu-intro { min-width:0; align-self:center; padding:clamp(14px,2vw,28px); overflow-wrap:anywhere; }
.menu-banner-photo { border-radius:12px; background:#2e261b url("/pos-assets/grill.webp") 72% 54%/cover no-repeat; }
.service-label { width:fit-content; gap:7px; color:var(--muted); font:600 .875rem/1.4 var(--body); }
.service-label .cu-icon { width:16px; height:16px; color:#82662d; }
.menu-heading h1 { margin:10px 0 7px; font:690 clamp(2.5rem,3.9vw,3.6rem)/1.03 var(--display); letter-spacing:-.055em; }
.menu-heading h1 span,.order-dialog h2>span { color:var(--gold); }
.menu-heading p { font-size:.9375rem; line-height:1.5; color:var(--muted); }
.branch-picker { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; font-size:.875rem; font-weight:620; }
.branch-picker select { width:auto; max-width:100%; }
.menu-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.35fr); gap:clamp(16px,1.8vw,30px); align-items:start; }
.menu-catalog { min-width:0; }
.catalog-tools { flex-wrap:wrap; justify-content:space-between; gap:12px; }
.menu-categories { display:flex; align-items:center; flex-wrap:wrap; gap:2px; max-width:100%; padding:3px; border:1px solid var(--line); border-radius:10px; background:white; }
.menu-categories button { display:inline-flex; justify-content:center; align-items:center; gap:6px; padding:8px 10px; min-height:36px; border:0; border-radius:6px; color:var(--muted); background:transparent; font:600 .875rem/1.25 var(--body); }
.menu-categories .cu-icon { width:16px; height:16px; }
.menu-categories button[aria-pressed=true] { color:white; background:var(--dark); }
.menu-search { display:flex; flex:1 1 150px; align-items:center; gap:7px; min-width:0; max-width:210px; min-height:44px; padding-inline:11px; border:1px solid var(--line); border-radius:9px; background:white; }
.menu-search .cu-icon { width:17px; height:17px; color:var(--muted); }
.menu-search:focus-within { outline:2px solid #8b6a24; outline-offset:2px; }
.menu-search input { flex:1; min-width:0; min-height:40px; border:0; padding:0; background:transparent; color:var(--ink); font-size:.9rem; }
.customer-page .menu-search input:focus-visible { outline:0; }
.section-row { justify-content:space-between; gap:10px; margin-block:22px 13px; }
.section-row h2,.panel-heading h2 { font:690 1.45rem/1.17 var(--display); letter-spacing:-.035em; }
.section-row>span { color:var(--muted); font-size:.8125rem; }
.menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)); gap:14px; }
.menu-card { min-width:0; overflow:hidden; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 2px 4px #201b1306; }
.menu-card-photo { position:relative; margin:6px 6px 0; }
.menu-photo { display:block; width:100%; aspect-ratio:1.72; object-fit:cover; border-radius:7px; background:var(--soft); }
.portion-stock { position:absolute; bottom:7px; left:7px; max-width:calc(100% - 14px); padding:2px 8px; border-radius:5px; background:#fffffff5; color:var(--ink); font-size:.75rem; line-height:1.55; font-weight:650; }
.portion-stock[data-low=true] { color:#634913; background:#fff3ce; }
.menu-card-body { display:flex; flex:1; flex-direction:column; padding:13px 14px 12px; }
.menu-card h3 { font:690 1.16rem/1.2 var(--display); letter-spacing:-.03em; overflow-wrap:anywhere; }
.menu-card p { margin:6px 0 13px; color:var(--muted); font-size:.875rem; line-height:1.45; overflow-wrap:anywhere; }
.menu-buy { justify-content:space-between; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:9px; border-top:1px solid var(--line); }
.menu-price { font-size:.96rem; font-weight:690; font-variant-numeric:tabular-nums; }
.stepper { flex:none; gap:4px; }
.stepper button { display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); }
.stepper button[data-change="1"] { color:white; background:var(--dark); border-color:var(--dark); }
.stepper button:disabled { opacity:.5; }
.stepper .cu-icon { width:16px; height:16px; }
.stepper>span { min-width:14px; text-align:center; font-weight:650; font-size:.875rem; font-variant-numeric:tabular-nums; }

.cart-preview { position:sticky; top:16px; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:white; box-shadow:0 2px 5px #19151108; }
.panel-heading { gap:10px; min-height:63px; padding:13px 17px; border-bottom:1px solid var(--line); }
.panel-heading h2 { flex:1; font-size:1.25rem; }
.basket-mark,.member-mark,.success-mark { display:grid; place-items:center; }
.basket-mark,.member-mark { width:33px; height:33px; border:1px solid #e2d7bd; border-radius:9px; background:#f7f1e3; color:#705728; }
.panel-heading #cart-count,.mobile-count { display:grid; place-items:center; min-width:25px; min-height:24px; padding-inline:6px; border-radius:6px; font-size:.8125rem; font-weight:650; font-variant-numeric:tabular-nums; }
.panel-heading #cart-count { border:1px solid var(--line); color:var(--muted); }
#cart-preview-lines { max-height:min(47vh,440px); overflow-y:auto; padding-inline:17px; }
.cart-empty { display:grid; justify-items:center; gap:6px; padding:29px 8px; text-align:center; }
.cart-empty .cu-icon { width:28px; height:28px; color:#82786a; margin-bottom:5px; }
.cart-empty strong { font:660 1.06rem/1.25 var(--display); }
.cart-empty p { color:var(--muted); font-size:.875rem; }
.cart-line { justify-content:space-between; gap:10px; padding-block:12px; border-bottom:1px solid var(--line); }
.cart-line>div:first-child { min-width:0; overflow-wrap:anywhere; }
.cart-line:last-child { border-bottom:0; }
.cart-line strong,.cart-line small { display:block; }
.cart-line strong { font-size:.95rem; line-height:1.35; }
.cart-line small { margin-top:3px; color:var(--muted); font-size:.8125rem; }
.cart-line small.cu-stock-issue { color:#8a3c15; font-weight:600; }
.cu-options { display:inline-flex; align-items:center; justify-content:start; gap:5px; min-height:30px; margin-top:3px; padding:0; border:0; background:transparent; color:#6d562a; text-align:left; text-underline-offset:3px; font:600 .8125rem/1.35 var(--body); }
.cu-options .cu-icon { width:15px; height:15px; }
.cart-preview-foot { padding:14px 17px 17px; border-top:1px solid var(--line); }
.money-row { justify-content:space-between; gap:12px; font-size:.9375rem; }
.money-row strong { font:700 1.2rem var(--display); letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.customer-page .primary-action { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:45px; margin-top:13px; padding:9px 13px; border-radius:8px; color:white; background:var(--dark); font:620 .9rem/1.35 var(--body); }
.customer-page .primary-action:disabled { opacity:.48; }
.catalog-state,.empty-results { padding:24px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:white; }
.catalog-state button { margin-top:14px; }
.mobile-cart { display:none; }

.order-dialog { width:min(calc(100% - 28px),480px); max-height:min(90dvh,850px); padding:23px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:white; box-shadow:0 20px 70px #1d19122b; }
.order-dialog::backdrop { background:rgb(28 25 20 / .46); }
body:has(.order-dialog[open]) { overflow:hidden; }
.dialog-top { justify-content:space-between; gap:10px; }
.close-dialog { flex:none; width:40px; padding:0; }
.order-dialog h2 { margin:9px 0 18px; font:690 clamp(1.9rem,5vw,2.38rem)/1.06 var(--display); letter-spacing:-.05em; overflow-wrap:anywhere; }
.checkout-lines { max-height:205px; overflow:auto; margin-bottom:17px; border-block:1px solid var(--line); }
.order-dialog .tkui-field { margin-bottom:14px; }
.order-dialog .tkui-label span { font-size:.8125rem; font-weight:450; color:var(--muted); }
.order-dialog .tkui-textarea { min-block-size:62px; }
.checkout-footer { margin-top:15px; padding-top:14px; border-top:1px solid var(--line); }
.checkout-footer p,#receipt-info,#receipt-mode { color:var(--muted); font-size:.875rem; }
.checkout-footer p { margin-top:6px; }
.order-error,#portion-error:not(:empty) { margin-top:12px; padding:10px 12px; border-radius:7px; color:#893527; background:#fcf1ed; font-size:.875rem; }
#portion-error:empty { display:none; }
.success-mark { width:36px; height:36px; border-radius:10px; background:#eaf1e7; color:#43674a; }
.receipt-paper { margin-top:17px; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.receipt-number { display:flex; align-items:center; justify-content:space-between; gap:9px; font-size:.9rem; }
.receipt-number strong { font:700 1.2rem var(--display); }
#receipt-mode { margin-top:4px; }
#receipt-lines { padding-block:12px; margin-block:12px; border-block:1px dashed var(--line); }
.receipt-item { display:flex; justify-content:space-between; gap:10px; font-size:.875rem; margin-block:4px; }
.receipt-item small { display:block; color:var(--muted); }
#guest-bill { width:100%; margin-top:12px; }
#guest-bill-result { margin-top:8px; color:var(--muted); font-size:.875rem; }
#guest-portion-form { display:grid; gap:13px; }
#guest-portion-form .tkui-field { margin:0; font-size:.875rem; font-weight:600; }
#guest-portion-form .primary-action { margin:0; }
.portion-extras { border:1px solid var(--line); border-radius:8px; padding:9px 11px; }
.portion-extras summary { display:flex; gap:7px; align-items:center; min-height:25px; list-style:none; cursor:pointer; font-size:.875rem; font-weight:600; }
.portion-extras summary::-webkit-details-marker { display:none; }
.portion-extras summary span { flex:1; }
.portion-extras[open] summary .cu-icon:last-child { transform:rotate(180deg); }
#guest-extras { max-height:28dvh; overflow:auto; }
#guest-extras label { display:flex; align-items:center; gap:8px; min-height:40px; margin-top:4px; border-top:1px solid var(--line); font-size:.875rem; cursor:pointer; }
#guest-extras small { margin-left:auto; font-size:.8125rem; white-space:nowrap; }
#member-card-body [data-member-entry] { display:grid; gap:9px; }

@media (hover:hover) {
  .stepper button:hover:enabled,.customer-page .primary-action:hover:enabled { filter:brightness(.91); }
  .header-actions button:hover:enabled,.close-dialog:hover,.menu-categories button:hover:not([aria-pressed=true]) { background:var(--soft); }
  .cu-options:hover:enabled { text-decoration:underline; }
}
@media (max-width:1050px) {
  .menu-layout { grid-template-columns:minmax(0,1fr) 265px; }
  .menu-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:790px) {
  .menu-layout { display:block; }
  .cart-preview { display:none; }
  .customer-main { padding-bottom:105px; }
  .mobile-cart { position:fixed; z-index:2; inset:auto 0 0; display:flex; justify-content:center; padding:10px 16px max(10px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:white; }
  .mobile-cart .primary-action { justify-content:start; width:min(560px,100%); min-height:48px; margin:0; }
  .mobile-cart .primary-action strong { margin-left:auto; font-variant-numeric:tabular-nums; }
  .mobile-count { border:1px solid #817c72; }
}
@media (max-width:580px) {
  .customer-width { width:calc(100% - 32px); }
  .header-inner { min-height:62px; }
  .header-actions { gap:5px; }
  .receipt-link { width:40px; padding:0; }
  .receipt-link>span,.receipt-link .member-prefix { display:none; }
  #member-access { width:auto; padding-inline:9px; }
  #member-access>span { display:inline; text-transform:capitalize; }
  .header-bag { padding-inline:9px; }
  .customer-main { padding-top:16px; }
  .menu-heading { grid-template-columns:minmax(0,1fr) minmax(80px,.37fr); min-height:134px; margin-bottom:18px; padding:5px; border-radius:13px; }
  .menu-intro { padding:10px 10px 10px 8px; }
  .menu-banner-photo { border-radius:8px; background-position:75% center; }
  .menu-heading h1 { margin:7px 0 5px; font-size:clamp(1.85rem,6.5vw,2.45rem); }
  .menu-heading p,.service-label { font-size:.8125rem; }
  .catalog-tools { display:grid; gap:9px; }
  .menu-search { grid-row:1; max-width:none; width:100%; }
  .menu-categories { width:fit-content; flex-wrap:nowrap; overflow-x:auto; }
  .menu-categories button { flex:none; min-height:38px; gap:5px; padding-inline:7px; font-size:.8125rem; }
  .section-row { margin-block:16px 12px; }
  .section-row h2 { font-size:1.3rem; }
  .menu-grid { gap:10px; }
  .menu-photo { aspect-ratio:1.42; }
  .menu-card-photo { margin:4px 4px 0; }
  .menu-card-body { padding:10px; }
  .menu-card h3 { font-size:1.08rem; }
  .menu-card p { margin-bottom:10px; font-size:.8125rem; }
  .menu-buy .stepper { margin-left:auto; }
  .menu-price { font-size:.9rem; }
  .order-dialog { padding:17px; }
  .order-dialog input,.order-dialog textarea,.menu-search input { font-size:1rem; }
}
@media (max-width:425px) {
  .menu-categories:not(:has(> :nth-child(5))) { width:100%; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
  .menu-categories:not(:has(> :nth-child(5))) button { flex-direction:column; gap:3px; padding:5px 1px; min-width:0; min-height:45px; overflow-wrap:anywhere; }
}
@media (max-width:380px) {
  .restaurant-brand { font-size:1.23rem; gap:5px; }
  .header-inner { gap:6px; }
  .header-actions { gap:4px; }
  .menu-categories button { gap:4px; padding-inline:6px; }
  .header-actions:has(#last-order:not([hidden])) #member-access { width:40px; padding:0; }
  .header-actions:has(#last-order:not([hidden])) #member-access>span { display:none; }
}
@media (max-width:345px) {
  #member-access { width:40px; padding:0; }
  #member-access>span { display:none; }
  .menu-grid { grid-template-columns:1fr; }
  .menu-heading { grid-template-columns:1fr; }
  .menu-banner-photo { display:none; }
  .menu-intro { padding:12px; }
}
@media (max-width:460px) {
  .header-inner:has(#last-order:not([hidden])) { gap:6px; flex-wrap:wrap; padding-block:8px; }
  .header-inner:has(#last-order:not([hidden])) .restaurant-brand { font-size:clamp(1.15rem,5.2vw,1.45rem); gap:5px; }
  .header-actions:has(#last-order:not([hidden])) #member-access { width:40px; padding:0; }
  .header-actions:has(#last-order:not([hidden])) #member-access > span { display:none; }
}
