/* Colours are sampled from the logo: flame red, flame yellow and black on white. */
:root { --red: #d80c0c; --red-deep: #ad0909; --flame: #fcc054; --flame-soft: #fff4dc; --ink: #000; --muted: #5d5a57; --line: #e8e5e1; --soft: #f7f6f4; --radius: 12px; --edge: clamp(14px, 3vw, 28px); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; box-shadow: 0 0 0 5px #000; }

/* Header */
.top { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); padding: 6px var(--edge); background: #fff; }
.logo { flex: none; line-height: 0; }
.logo img { width: 58px; height: 58px; object-fit: contain; }
.links { display: flex; gap: clamp(12px, 2.5vw, 26px); margin-inline-end: auto; font-weight: 600; font-size: 15px; }
.links a { padding: 8px 0; text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--red); }
.lang { flex: none; padding: 6px 12px; border: 2px solid #000; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; }
.lang:hover { background: #000; color: #fff; }
@media (max-width: 460px) { .links { font-size: 13px; gap: 10px; } .logo img { width: 48px; height: 48px; } .lang { padding: 4px 10px; font-size: 13px; } }

/* Layout: menu plus an always-visible order on large screens */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; max-width: 1360px; margin: auto; padding: 0 var(--edge) 40px; }
@media (min-width: 1024px) { .shop { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }

/* Greeting: kept short so the menu is what you see first */
.hello { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius); background: var(--red); color: #fff; }
.hello-text { align-self: center; padding: clamp(14px, 3vw, 28px); }
.hello-dear { color: var(--flame); font-weight: 800; font-size: clamp(14px, 2vw, 17px); }
.hello h1 { font-size: clamp(18px, 3vw, 30px); font-weight: 800; line-height: 1.25; }
.hello-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hello img { width: 100%; height: 100%; min-height: 130px; max-height: 210px; object-fit: cover; }
.btn-flame { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 999px; background: var(--flame); color: #000; font-weight: 800; font-size: 14px; text-decoration: none; }
.btn-flame:hover { background: #fff; }
.btn-line { min-height: 38px; padding: 0 14px; border: 2px solid #fff; border-radius: 999px; background: none; color: #fff; font-weight: 700; font-size: 13px; }
.btn-line:hover { background: #fff; color: var(--red); }

/* Dine in, takeaway or delivery */
.svc { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.svc-opt { display: block; cursor: pointer; }
.svc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc-opt span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 4px 6px; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700; font-size: 14px; text-align: center; }
.svc-opt:hover span { border-color: #000; }
.svc-opt input:checked + span { background: #000; border-color: #000; color: var(--flame); }
.svc-opt input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }
@media (max-width: 400px) { .svc-opt span { flex-direction: column; gap: 0; font-size: 13px; min-height: 58px; } }

/* Search and category bar stay on screen */
.toolbar { position: sticky; top: 0; z-index: 10; margin: 10px calc(-1 * var(--edge)) 0; padding: 8px var(--edge) 0; background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .toolbar { margin-inline: 0; padding-inline: 0; } }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--radius); background: var(--soft); color: var(--muted); }
.search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: none; color: #000; outline: 0; font-size: 16px; }
.search:focus-within { box-shadow: 0 0 0 2px #000; }
.chips { display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 13px; border-bottom: 3px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; color: var(--muted); }
.chip:hover { color: #000; }
.chip.on { border-color: var(--red); color: var(--red); }

/* Menu */
.cat { padding-top: 20px; scroll-margin-top: 104px; }
.cat h2 { margin-bottom: 4px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.cat-offers h2 { color: var(--red); }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 24px; }
.dish { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.photo { position: relative; align-self: start; display: block; width: 104px; height: 104px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ribbon { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; padding: 0 7px; border-radius: 999px; background: var(--flame); color: #000; font-size: 11px; font-weight: 800; line-height: 20px; }
.dish h3 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.opts { margin-top: 6px; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-height: 42px; padding: 2px 0; }
.opt-name { grid-column: 1; font-size: 13px; font-weight: 700; line-height: 1.25; }
.opt-price { grid-column: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.opt > .ctl, .opt > .gone { grid-column: 2; grid-row: 1 / span 2; }
.opt-name:empty { display: none; }
.opt-price b { color: var(--red); font-weight: 800; }
.opt-price del { color: var(--muted); font-size: 12px; }
.gone { color: var(--muted); font-size: 13px; font-weight: 700; }
.none { padding: 28px 0; color: var(--muted); text-align: center; }

/* The add button grows into a counter once a dish is in the order */
.ctl { display: inline-flex; align-items: center; flex: none; }
.ctl button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; font-size: 21px; font-weight: 700; line-height: 1; }
.plus { background: var(--red); color: #fff; }
.plus:hover { background: var(--red-deep); }
.minus { background: var(--flame-soft); color: #000; }
.minus:hover { background: var(--flame); }
.ctl .n { min-width: 28px; font-weight: 800; text-align: center; }

/* Order: side column on large screens, sheet on phones */
.cart { display: flex; flex-direction: column; background: #fff; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 20px; font-weight: 800; }
.cart-x { width: 38px; height: 38px; padding: 0; border: 0; background: none; font-size: 28px; line-height: 1; }
.cart-scroll { flex: 1; min-height: 0; padding: 12px 16px 16px; overflow-y: auto; }
.cart-empty { padding: 24px 0; color: var(--muted); text-align: center; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line-name { grid-column: 1 / -1; font-weight: 700; font-size: 14px; }
.line-price { font-weight: 800; font-size: 14px; }
.cart-lines .ctl button { width: 32px; height: 32px; font-size: 18px; }
.sum { margin: 10px 0; }
.sum p { display: flex; justify-content: space-between; font-size: 14px; }
.sum .sum-total { margin-top: 4px; font-size: 17px; font-weight: 800; }
.sum strong { color: var(--red); font-weight: 800; }
.btn-red { width: 100%; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 800; font-size: 17px; }
.btn-red:hover { background: var(--red-deep); }
.btn-red[disabled] { opacity: .65; cursor: default; }
.btn-text { width: 100%; min-height: 42px; margin-top: 4px; border: 0; background: none; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.order-error { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fde8e6; color: #8c1209; font-weight: 700; font-size: 14px; }

.checkout label { display: block; margin-top: 10px; font-weight: 700; font-size: 13px; }
.checkout input:not([type="radio"]), .checkout select { display: block; width: 100%; min-height: 44px; margin-top: 3px; padding: 0 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 16px; }
.checkout input:focus, .checkout select:focus { border-color: #000; outline: 0; }
.checkout .svc-opt { margin: 0; }
.checkout legend { padding: 0; font-weight: 800; font-size: 14px; }
.svc-small { display: grid; margin: 12px 0 0; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-small legend { grid-column: 1 / -1; margin-bottom: 6px; }
.svc-small .svc-opt span { flex-direction: column; gap: 0; min-height: 56px; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.pays { margin: 14px 0 4px; padding: 0; border: 0; }
.checkout .pay-opt { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: #000; background: var(--flame-soft); }
.pay-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

@media (min-width: 1024px) {
  .cart { position: sticky; top: 10px; max-height: calc(100vh - 20px); margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .cart-x#cart-close { display: none; }
  .cart-bar, .scrim { display: none !important; }
}
@media (max-width: 1023px) {
  .cart { position: fixed; inset: auto 0 0; z-index: 40; max-height: 92dvh; border-radius: 18px 18px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .22s ease-out, visibility .22s; }
  .cart.open { transform: none; visibility: visible; }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / .5); }
  body.has-cart { padding-bottom: 76px; }
}
.cart-bar { position: fixed; z-index: 20; inset: auto 10px 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: #000; color: #fff; }
.bar-count { font-size: 13px; }
.bar-go { margin-inline-start: auto; color: var(--flame); font-weight: 800; }
.cart-bar strong { font-weight: 800; }

/* Photo popup */
.detail { position: fixed; width: min(100% - 24px, 520px); max-height: calc(100dvh - 24px); padding: 0 0 16px; border: 0; border-radius: 16px; background: #fff; color: #000; overflow-y: auto; }
.detail::backdrop { background: rgb(0 0 0 / .6); }
.detail img { width: 100%; }
.detail h3 { padding: 12px 16px 0; font-size: 20px; font-weight: 800; }
.detail p { padding: 4px 16px 0; color: var(--muted); }
.detail .cart-x { position: absolute; top: 8px; inset-inline-end: 8px; border-radius: 50%; background: #fff; }

/* Other pages */
.page { max-width: 980px; margin: auto; padding: 24px var(--edge) 48px; }
.page h1 { margin-bottom: 12px; font-size: clamp(28px, 5vw, 42px); font-weight: 800; line-height: 1.2; }
.page h2 { margin-bottom: 8px; font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.rich p { margin-bottom: 12px; max-width: 70ch; }
.rich h1 { font-size: clamp(26px, 4vw, 36px); }
.wide { width: 100%; margin: 20px 0; border-radius: var(--radius); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 16px 28px; margin: 20px 0; }
.center { text-align: center; }
.btn-red-link { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.btn-red-link:hover { background: var(--red-deep); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 20px; align-items: center; }
.contact > img { width: min(100%, 340px); margin: auto; }
.contacts { margin: 18px 0 0; }
.contacts dt { padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.contacts dd { margin: 0 0 10px; font-size: 17px; font-weight: 600; }

/* Order status */
.track { max-width: 620px; }
.track-title { margin-bottom: 14px; }
.track-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.track-steps li { padding-top: 7px; border-top: 4px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.track-steps li.on { border-color: var(--red); color: #000; }
.track-note { margin-bottom: 12px; }
.track-note.good { color: #137a3f; font-weight: 800; }
.track-note.bad { color: var(--red); font-weight: 800; }
.track-pay { display: inline-flex; align-items: center; min-height: 52px; margin-bottom: 16px; padding: 0 30px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; }
.track-items { margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.track-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.track-fee, .track-total { display: flex; justify-content: space-between; margin-bottom: 4px; }
.track-total { font-size: 18px; font-weight: 800; }
.track-total strong { color: var(--red); }
.track-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-weight: 700; }

/* Footer */
.foot { background: #000; color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; max-width: 1360px; margin: auto; padding: 22px var(--edge) 12px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { color: var(--flame); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.foot-nav a { padding: 4px 0; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-phone { color: var(--flame); font-weight: 800; text-decoration: none; }
.foot-copy { padding: 0 var(--edge) 18px; color: #bdbdbd; font-size: 13px; text-align: center; }
body.has-cart .foot { padding-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart { transition: none; }
}
