:root{--green:#244b3b;--bg:#f8f5ef;--ink:#223028;--line:#e1dbce}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:10px;background:var(--green);color:white;padding:13px 20px}button:disabled{opacity:.45;cursor:default}a{color:var(--green);text-decoration:none}.preview{text-align:center;background:var(--green);color:white;padding:9px;font-size:12px}header{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:15px 20px}header img{width:125px;height:90px;object-fit:contain}nav{display:flex;gap:35px}header a{line-height:1.8}.hero{height:auto;width:100%;overflow:hidden;background:#f8f5ef}.hero img{display:block;width:100%;height:auto;object-fit:contain}main{max-width:1200px;padding:48px 20px 70px;margin:auto}h1{font-size:38px;color:var(--green);margin:0 0 12px}.subtitle{font-size:18px;color:#4c5b53}.service{display:flex;gap:30px;margin:24px 0;color:var(--green)}.tabs,.subs{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.tabs button,.subs button{background:#f1ede4;color:var(--green);border:1px solid var(--line)}.tabs button[aria-pressed=true],.subs button[aria-pressed=true]{background:var(--green);color:white}.tabs button{font-size:18px;flex:1}.subs button{padding:10px 15px}.search{display:block;max-width:400px;font-size:13px;color:#4c5b53}.search input{margin-top:8px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.media{padding:0;background:#f1ede4;border-radius:0;width:100%;height:240px}.media img{width:100%;height:100%;object-fit:cover}.body{padding:20px;display:flex;flex-direction:column;flex:1}.body h2{font-size:20px;margin:0 0 12px}.body p{color:#4c5b53;font-size:14px;line-height:1.5}.body .price{color:var(--green);font-size:22px;margin-top:auto;padding-top:12px}.details{background:none;color:var(--green);padding:0;text-align:left;text-decoration:underline;align-self:flex-start}.card .buy{width:100%;margin-top:12px}footer{padding:55px 25px;background:#ede7da;text-align:center}footer h2{font-size:32px;color:var(--green)}dialog{border:1px solid var(--line);border-radius:20px;max-width:640px;width:calc(100% - 24px);padding:32px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#13281ecc}.close{float:right;font-size:25px;padding:4px 12px;background:#f1ede4;color:var(--green)}#detailBody img{width:100%;max-height:350px;object-fit:contain;border-radius:12px;margin-top:20px}#detailBody p{line-height:1.6}label{display:block;margin:15px 0}input:not([type=radio]),textarea,select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}fieldset{border:1px solid var(--line);border-radius:10px;margin-top:20px}.muted{color:#6c766d;font-size:13px;line-height:1.6}.line{border-bottom:1px solid var(--line);padding:18px 0;display:flex;gap:15px;align-items:center}.line img{width:60px;height:60px;object-fit:cover;border-radius:8px}.line .info{flex:1}.line button{padding:6px 10px}#total{font-size:21px;margin-top:25px}#notice{line-height:1.6}#checkout>button{width:100%}@media(max-width:700px){header{gap:12px;flex-wrap:wrap}header img{width:90px;height:60px}header nav{display:none}header>div{font-size:13px}.hero{height:auto}main{padding-top:30px}h1{font-size:28px}.tabs button{flex:1 1 40%;font-size:16px}.grid{grid-template-columns:repeat(2,1fr);gap:12px}.media{height:155px}.body{padding:12px}.body h2{font-size:17px}.body .price{font-size:18px}.service{gap:12px;font-size:13px}dialog{padding:20px}}

/* Keep every grid/flex child within the viewport, including long product names. */
html { scroll-padding-top: 90px; }
body { width: 100%; min-width: 0; }
.page-shell { min-width: 0; width: 100%; }
main, header, .location { width: 100%; }
main { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2, p, .line .info { overflow-wrap: anywhere; }
h1 { line-height: 1.2; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .body, .line .info, .location-heading > div { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
header .halal { display: block; width: 72px; height: 72px; object-fit: contain; }
header { padding-right: 210px; }
.phones { white-space: nowrap; }
.preview { padding-left: 20px; padding-right: 200px; }
#cartButton { position: fixed; top: 16px; right: max(20px, env(safe-area-inset-right)); z-index: 20; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: calc(100vw - 40px); border: 2px solid #FFFFFF; box-shadow: 0 4px 20px #244b3b30; }
.cart-icon { width: 23px; height: 23px; flex-shrink: 0; }
#count { min-width: 25px; padding: 4px 6px; border-radius: 20px; background: #FFFFFF; color: #244B3B; font-size: 13px; font-weight: bold; }
.dialog-open { overflow: hidden; }
.dialog-open #cartButton { visibility: hidden; pointer-events: none; }
.quick-add { width: 100%; }
.quick-add label { font-size: 13px; line-height: 1.4; margin: 10px 0; }
.quick-add label input, .quick-add label select { margin-top: 6px; padding: 9px; }
.quick-add .muted { font-size: 12px; }
.quick-add .estimate { font-size: 13px; color: #244B3B; }
.quick-add .buy { min-height: 44px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 14px 18px; background: #FFFFFF; color: #223028; border: 1px solid #d8e3da; border-radius: 14px; box-shadow: 0 6px 30px #244b3b24; z-index: 25; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-check { color: #244B3B; background: #e7f1ea; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; font-weight: bold; }
#toastText { overflow-wrap: anywhere; line-height: 1.4; }
.location { max-width: 1200px; margin: auto; padding: 20px 20px 55px; }
.location-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.location h2 { color: #244B3B; font-size: 32px; margin: 0 0 10px; }
.location p { margin: 8px 0; }
.route { display: inline-block; padding: 13px 18px; border: 1px solid #244B3B; border-radius: 10px; flex-shrink: 0; }
.location iframe { display: block; width: 100%; max-width: 100%; height: 420px; border: 0; border-radius: 16px; background: #f1ede4; }
fieldset { min-width: 0; }
@media (min-width: 701px) and (max-width: 1100px) { header nav { display: none; } }
@media (max-width: 700px) {
  /* Reserve a bottom area for the floating button so it never covers a card,
     filter or the map. The page above it remains normally scrollable. */
  body { overflow: hidden; }
  body::after { content: ''; position: fixed; inset: auto 0 0; height: calc(80px + env(safe-area-inset-bottom)); background: #F8F5EF; border-top: 1px solid #e1dbce; z-index: 19; }
  .page-shell { height: calc(100dvh - 80px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-top: 20px; }
  .dialog-open .page-shell { overflow: hidden; }
  html { scroll-padding-top: 20px; }
  .preview { padding: 10px 16px; }
  header { padding: 16px; gap: 16px; }
  .brand { gap: 10px; }
  header #logo { width: 86px; height: 72px; }
  header .halal { width: 54px; height: 54px; }
  header .phones { font-size: 12px; }
  main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  h1 { font-size: clamp(25px, 7vw, 28px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { flex-wrap: wrap; }
  .tabs button { min-width: 0; }
  .subs button { max-width: 100%; }
  .body { padding: 12px; }
  .body h2 { font-size: 16px; }
  .body .buy { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  #cartButton { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); border-radius: 28px; padding: 11px 14px; gap: 8px; }
  #cartButton .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); padding: 12px 14px; font-size: 14px; }
  .location { padding: 10px 16px 35px; }
  .location-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .location h2 { font-size: 28px; }
  .location iframe { height: 340px; }
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .line { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Quantity controls share the existing green/cream palette. */
.quantity-control { margin: 12px 0; width: 100%; max-width: 190px; }
.quantity-control > label { display: block; font-size: 13px; line-height: 1.4; margin: 0 0 6px; }
.quantity-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 4px; }
.quantity-stepper button { min-height: 40px; padding: 0; font-size: 22px; border: 1px solid #E1DBCE; background: #F8F5EF; color: #244B3B; border-radius: 8px; }
.quantity-stepper input { text-align: center; padding: 8px 2px; height: 40px; border: 1px solid #E1DBCE; appearance: textfield; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-stepper button:focus-visible, .quantity-stepper input:focus-visible { outline: 2px solid #244B3B; outline-offset: 2px; }
.quick-add .quantity-control { max-width: none; }
.quick-add .quantity-control > label { margin: 0 0 6px; }
.line { align-items: flex-start; }
.line > img { margin-top: 4px; }
.line .line-unit { color: #4C5B53; font-size: 13px; margin: 8px 0; }
.line-total { display: block; margin-top: 8px; color: #244B3B; }
.line .remove-line { min-width: 32px; min-height: 36px; }
@media (max-width: 700px) {
  .quantity-stepper { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 3px; }
  .quantity-stepper button { min-height: 40px; }
  .line > img { width: 48px; height: 48px; }
  .line .quantity-control { max-width: 165px; }
}

[hidden] { display: none !important; }
#checkout h3 { margin-top: 30px; color: #244B3B; }
.phone-field { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 8px 12px; margin: 20px 0; }
.phone-field label[for=phoneCountry] { grid-column: 1; grid-row: 1; margin: 0; }
.phone-field label[for=phoneNumber] { grid-column: 2; grid-row: 1; margin: 0; }
.phone-field select { grid-column: 1; grid-row: 2; }
.phone-field input { grid-column: 2; grid-row: 2; }
.phone-field > p { grid-column: 1 / -1; margin: 2px 0; }
.pickup-info { display: flex; gap: 14px; padding: 18px; margin: 20px 0; border: 1px solid #d6dfd6; border-radius: 12px; background: #F8F5EF; color: #244B3B; }
.pickup-info h3 { font-size: 18px; margin: 0 0 10px !important; }
.pickup-info p { line-height: 1.5; margin: 0 0 12px; }
.pickup-info strong { font-size: 14px; display: block; }
.pickup-icon { flex-shrink: 0; width: 26px; height: 30px; }
.pickup-icon svg { width: 100%; height: 100%; }
.pickup-route { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
#total, .order-totals { font-size: 16px; margin: 25px 0; }
.order-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 12px 0; }
.order-totals strong { white-space: nowrap; color: #244B3B; }
.order-totals .grand-total { border-top: 1px solid #E1DBCE; padding-top: 16px; font-size: 21px; }
.honeypot { display: none; }
#result { color: #8c2f2f; line-height: 1.5; }
#orderSuccess h2 { color: #244B3B; font-size: 28px; line-height: 1.2; }
.success-check { width: 48px; height: 48px; display: grid; place-items: center; background: #e7f1ea; color: #244B3B; border-radius: 50%; font-size: 28px; }
.order-number { color: #244B3B; font-size: 20px; font-weight: bold; }
.preview-receipt { border: 1px solid #E1DBCE; background: #F8F5EF; border-radius: 10px; padding: 14px; line-height: 1.5; font-size: 14px; }
.receipt-items { padding: 0; margin: 25px 0; list-style: none; }
.receipt-items li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #E1DBCE; }
.receipt-items img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.receipt-items li > div { min-width: 0; flex: 1; }
.receipt-items li > strong { font-size: 14px; max-width: 35%; overflow-wrap: anywhere; color: #244B3B; }
.receipt-items p { margin: 7px 0 0; font-size: 14px; color: #4C5B53; }
.receipt-details dt { font-size: 13px; color: #4C5B53; margin-top: 16px; }
.receipt-details dd { margin: 5px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
#backToMenu { margin-top: 24px; width: 100%; }
@media (max-width: 450px) {
  .phone-field { display: block; }
  .phone-field label[for] { margin: 14px 0 8px; }
  .phone-field > p { margin-top: 8px; }
  .pickup-info { gap: 10px; padding: 14px; }
  .order-totals .grand-total { font-size: 19px; }
  #orderSuccess h2 { font-size: 25px; }
}
