@font-face {
  font-family: Cairo;
  src: url('./assets/cairo-arabic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: Cairo;
  src: url('./assets/cairo-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #faf6ef;
  --white: #fffdf9;
  --ink: #271912;
  --muted: #6d5a4e;
  --line: #e9ded1;
  --soft: #f4e9dc;
  --orange: #ea8640;
  --orange-dark: #8f3b15;
  --green: #106845;
  --shadow: 0 5px 20px #39200909;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-inline-size: 280px; }
body:has(.cart-dialog[open]) { overflow: hidden; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a84b1d; outline-offset: 3px; }
p, h1, h2, h3, h4 { margin: 0; }

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { inline-size: 20px; block-size: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }

.site-header { border-block-end: 1px solid var(--line); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; line-height: 1.45; }
.brand img, .footer-brand img { object-fit: contain; flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.125rem; font-weight: 900; }
.brand small { color: var(--muted); font-size: .75rem; font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.social-links { display: flex; align-items: center; gap: 6px; }
.social-links > span { margin-inline-end: 3px; color: var(--muted); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.social-link { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid #ddcfc0; border-radius: 12px; background: var(--white); }
.social-link:hover { background: var(--soft); }
.social-instagram { color: #a62d60; }
.social-facebook { color: #1766c3; }
.social-whatsapp { color: var(--green); }

.button {
  min-block-size: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.button-outline { background: transparent; border-color: #ddcfc0; }
.button-outline:hover { background: var(--soft); }
.button-dark { background: var(--ink); color: #fffaf2; }
.button-dark:hover { background: #4a2d20; }
.button-orange { background: var(--orange); color: #28160b; }
.button-orange:hover { background: #f7a15e; }

.hero-wrap { padding-block-start: 28px; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 380px;
  overflow: hidden;
  border-radius: 25px;
  background: #1e100a;
  color: #fffaf3;
}

.hero-photo { position: absolute; inset-block: 0; left: 0; z-index: -2; width: 88%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(270deg, #211108 0%, #1d0f08 15%, #1d0f08ed 29%, #1a0d0690 44%, #1a0d0600 62%); content: ''; }
.hero-copy { padding: 32px clamp(34px, 5.7vw, 83px); }
.hero-label { display: flex; align-items: center; gap: 8px; color: #ffe5ce; font-size: .82rem; font-weight: 750; margin-block-end: 9px; }
.hero-label span { width: 8px; height: 8px; border-radius: 50%; background: #f3a15f; }
.hero h1 { font-size: clamp(3.1rem, 6.1vw, 5.75rem); font-weight: 900; line-height: 1.02; }
.hero h1 em { color: #ffa25b; font-style: normal; }
.hero-intro { margin-block: 14px 22px; color: #f3dbcb; font-size: clamp(.9rem, 1.5vw, 1.12rem); font-weight: 650; }
.hero-button { min-height: 48px; padding-inline: 16px; }
.hero-button .icon { width: 18px; }

.menu { padding-block: 34px 66px; scroll-margin-block-start: 12px; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-toolbar h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 900; line-height: 1.35; }
.search { width: min(100%, 310px); min-width: 0; display: flex; align-items: center; gap: 9px; padding-inline: 13px 7px; min-height: 46px; border: 1px solid #e1d4c6; border-radius: 12px; background: var(--white); }
.search > .icon { color: #7e695a; }
.search:focus-within { outline: 2px solid #a84b1d; outline-offset: 1px; }
.search input { width: 100%; min-width: 0; padding: 6px 0; border: 0; background: none; outline: 0; font-size: .94rem; font-weight: 650; }
.search input::placeholder { color: #78665a; }
.category-nav { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 16px 20px; border-block-end: 1px solid var(--line); }
.category-chip { flex: none; min-height: 41px; padding: 4px 13px; border: 1px solid #e6d9cb; border-radius: 100px; background: var(--white); font-size: .86rem; font-weight: 780; line-height: 1.4; }
.category-chip:hover { border-color: #bc875f; }
.category-chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.order-status { margin-block-start: 14px; padding: 8px 12px; border: 1px solid #ecd4bf; border-radius: 10px; background: #fff3e5; color: #773016; font-size: .88rem; font-weight: 800; line-height: 1.6; }
.cart-order-status { margin-block: 0 10px; }

.menu-section { margin-block-start: 31px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-block-end: 14px; }
.section-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: #f4e4d1; color: #914621; }
.section-mark .icon { width: 18px; height: 18px; }
.section-heading h3 { font-size: clamp(1.28rem, 2.6vw, 1.65rem); font-weight: 900; line-height: 1.2; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 1.25; overflow: hidden; background: #efe3d5; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo.is-empty-photo { display: grid; place-items: center; color: #79543d; }
.is-empty-photo > .icon { width: 32px; height: 32px; }
.card-photo.is-cutout { background: radial-gradient(ellipse at 50% 46%, #fff5e7 2%, #efdfcd 76%); }
.card-photo.is-cutout img { object-fit: contain; padding: 10px; }
.card-body { display: flex; align-items: flex-end; justify-content: space-between; flex: 1; min-width: 0; gap: 8px; padding: 14px 13px 12px; }
.card-info { min-width: 0; }
.card h4 { font-size: 1rem; font-weight: 860; line-height: 1.55; overflow-wrap: break-word; }
.card-price { margin-block-start: 3px; color: var(--orange-dark); font-size: .93rem; font-weight: 850; line-height: 1.55; white-space: nowrap; }
.add-button { display: grid; place-items: center; position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #edceb3; border-radius: 11px; background: #f9e8d8; color: #773016; }
.add-button:hover { background: #ffdbb7; }
.add-button:disabled { background: var(--soft); color: var(--muted); cursor: default; opacity: .7; }
.add-button:active { transform: scale(.96); }
.add-button .icon { width: 20px; height: 20px; stroke-width: 2.15; }
.card-quantity { position: absolute; inset-block-start: -8px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding-inline: 3px; border-radius: 100px; background: var(--ink); color: var(--white); font-size: .66rem; font-weight: 900; line-height: 19px; }
.no-results { display: grid; justify-items: center; gap: 12px; padding: 34px 12px; margin-block-start: 24px; border: 1px dashed #dcc7b2; border-radius: 17px; background: #fffaf4; font-weight: 750; text-align: center; }
.no-results > .icon { width: 30px; height: 30px; color: var(--orange-dark); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-block-start: 1px solid var(--line); }
.owner-actions button { min-height: 36px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .76rem; font-weight: 800; }
.owner-actions button:hover { background: var(--soft); }
.owner-actions [data-owner-action='remove'] { color: #9a2924; }
.card.is-hidden-item .card-photo img { opacity: .55; }
.card.is-hidden-item .card-photo { position: relative; }
.hidden-item-label { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: .75rem; font-weight: 800; }

.site-footer { background: #291a13; color: #fff8ed; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; min-height: 117px; padding-block: 21px; }
.footer-brand img { padding: 3px; border-radius: 50%; background: #fff4e6; }
.footer-brand strong { font-weight: 850; }
.footer-brand p { display: flex; align-items: flex-start; gap: 5px; margin-block-start: 5px; color: #e6cbb7; font-size: .83rem; font-weight: 650; }
.footer-brand p .icon { width: 15px; height: 15px; margin-block-start: 1px; }
.footer-phone, .back-top { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid #735649; border-radius: 10px; padding-inline: 12px; font-size: .84rem; font-weight: 800; }
.footer-phone:hover, .back-top:hover { background: #513326; }
.footer-phone .icon, .back-top .icon { width: 17px; height: 17px; }

.floating-cart { position: fixed; z-index: 2; left: 50%; inset-block-end: max(17px, calc(10px + env(safe-area-inset-bottom))); transform: translateX(-50%); width: 56px; height: 56px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; box-shadow: 0 5px 18px #291a1350; }
.floating-cart .icon { width: 25px; height: 25px; }
.floating-count { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; min-width: 22px; min-height: 22px; padding: 1px 4px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 100px; background: #f5a067; color: var(--ink); font-size: .7rem; font-weight: 900; line-height: 1.1; }
body:has(.floating-cart:not([hidden])) .site-footer { padding-block-end: calc(67px + env(safe-area-inset-bottom)); }

.footer-credit { border-block-start: 1px solid #533a2e; color: #e6cbb7; }
.footer-credit-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 12px; min-height: 41px; padding-block: 2px; text-align: center; font-size: .78rem; }
.footer-credit strong { color: #fff8ed; font-weight: 800; }
.footer-credit-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 3px; color: #f5cbb2; font-weight: 800; }
.footer-credit-link .icon { width: 17px; height: 17px; }
.footer-credit-link:hover { color: #fff8ed; text-decoration: underline; }
.footer-credit-link:focus-visible { outline-color: #f5cbb2; outline-offset: 1px; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 455px); max-width: 100%; height: 100%; max-height: 100%; padding: 0; margin: 0; border: 0; background: var(--white); color: var(--ink); border-radius: 20px 0 0 20px; }
.cart-dialog::backdrop { background: #23170fb0; }
.cart-shell { display: flex; flex-direction: column; height: 100%; }
.cart-header { display: flex; flex: none; justify-content: space-between; align-items: center; padding: 9px 16px; border-block-end: 1px solid var(--line); }
.cart-heading { display: flex; align-items: center; gap: 8px; }
.cart-heading h2 { font-size: 1.18rem; font-weight: 900; line-height: 1.4; }
.cart-heading-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--orange-dark); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.icon-button:hover { background: var(--soft); }
.cart-body { flex: 1; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px 12px; }
.cart-empty { padding: 24px 12px; text-align: center; font-weight: 750; color: var(--muted); }
.cart-line { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-block-end: 1px solid var(--line); }
.cart-line-image { flex: none; width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--soft); }
.cart-line-info { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.cart-line-name { display: block; font-size: .84rem; font-weight: 850; }
.cart-line-price { display: block; color: var(--orange-dark); font-size: .78rem; font-weight: 800; }
.cart-line-actions, .cart-quantity { display: flex; flex: none; align-items: center; gap: 1px; }
.cart-quantity { border: 1px solid var(--line); border-radius: 9px; }
.cart-quantity-button, .cart-remove { min-width: 40px; height: 42px; padding: 0 4px; border: 0; border-radius: 8px; background: none; font-size: 1.1rem; font-weight: 750; line-height: 1; }
.cart-quantity-button:hover, .cart-remove:hover { background: var(--soft); }
.cart-quantity-value { min-width: 14px; text-align: center; font-size: .82rem; font-weight: 850; }
.cart-remove { color: var(--orange-dark); }
.cart-details { margin-block-start: 11px; }
.cart-details h3 { margin-block-end: 5px; font-size: .95rem; font-weight: 900; }
.cart-field + .cart-field { margin-block-start: 7px; }
.cart-field label { display: block; margin-block-end: 3px; font-size: .84rem; font-weight: 830; }
.cart-field small { color: var(--muted); font-weight: 600; }
.cart-field input, .cart-field select, .cart-field textarea { display: block; width: 100%; min-height: 43px; padding: 7px 11px; border: 1px solid #dfcfc0; border-radius: 10px; background: #fff; font-size: 1rem; }
.cart-field textarea { resize: vertical; }
.cart-field select:disabled { background: var(--soft); }
.cart-field-hint { margin-block-start: 5px; color: var(--muted); font-size: .82rem; }
#customer-phone { text-align: right; }
.cart-footer { flex: none; padding: 9px 16px max(9px, env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); }
.cart-totals { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-block-end: 6px; font-size: .88rem; font-weight: 850; line-height: 1.45; }
.cart-totals strong { color: var(--orange-dark); font-size: 1.06rem; }
.cart-delivery-charge { margin-block-end: 5px; font-size: .83rem; }
.cart-grand-total { padding-block-start: 5px; border-block-start: 1px solid var(--line); }
.button-whatsapp { width: 100%; background: var(--green); color: #fff; }
.button-whatsapp:hover { background: #0d593a; }
.button-whatsapp:disabled { background: #ebe7e0; color: #685f57; cursor: default; }
.cart-help { margin-block-start: 4px; color: var(--muted); text-align: center; font-size: .74rem; font-weight: 650; line-height: 1.5; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero { min-height: 350px; }
  .hero-copy { padding-inline: 44px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; min-height: 69px; gap: 7px 12px; padding-block: 9px; }
  .brand { gap: 7px; }
  .brand img { width: 43px; height: 43px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .67rem; }
  .header-actions { gap: 7px; flex-wrap: wrap; }
  .header-actions .button { min-width: 44px; min-height: 40px; padding-inline: 8px; gap: 5px; font-size: .76rem; }
  .social-links { gap: 4px; }
  .social-links > span { font-size: .74rem; }
  .social-link { width: 40px; height: 40px; border-radius: 10px; }
  .header-actions .icon { width: 17px; height: 17px; }
  .hero-wrap { padding-block-start: 14px; }
  .hero { min-height: 328px; align-items: flex-start; border-radius: 19px; }
  .hero-photo { width: 100%; height: 100%; object-position: 30% 55%; }
  .hero::before { background: linear-gradient(255deg, #1c0e07f7 0%, #1c0e07df 25%, #1c0e0775 60%, #1c0e0718 100%), linear-gradient(180deg, #2011078c, transparent 62%); }
  .hero-copy { padding: 23px 20px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .hero-label { font-size: .75rem; }
  .hero-intro { margin-block: 10px 15px; }
  .hero-button { min-height: 44px; font-size: .77rem; }
  .menu { padding-block: 25px 43px; }
  .menu-toolbar { gap: 9px; }
  .menu-toolbar h2 { white-space: nowrap; font-size: 1.38rem; }
  .search { width: min(55%, 250px); padding-inline: 8px 4px; gap: 5px; min-height: 43px; }
  .search > .icon { width: 17px; height: 17px; }
  .search input { font-size: 1rem; }
  .search input::placeholder { font-size: .81rem; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; padding: 12px 3px 13px; scrollbar-width: thin; scrollbar-color: #c6a990 transparent; }
  .category-chip { font-size: .79rem; padding-inline: 11px; min-height: 39px; }
  .menu-section { margin-block-start: 24px; }
  .section-heading { margin-block-end: 11px; gap: 8px; }
  .section-mark { width: 32px; height: 32px; }
  .section-mark .icon { width: 15px; height: 15px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card { border-radius: 13px; }
  .card-body { gap: 3px; padding: 7px 7px 8px; }
  .card h4 { font-size: .85rem; line-height: 1.49; }
  .card-price { font-size: .82rem; }
  .card-photo.is-cutout img { padding: 6px; }
  .add-button { width: 40px; height: 40px; border-radius: 9px; }
  .add-button .icon { width: 18px; height: 18px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 43px; height: 43px; }
  .footer-brand strong { font-size: .88rem; }
  .footer-brand p { font-size: .75rem; }
  .footer-phone { justify-self: start; }
  .cart-dialog { width: 100%; height: min(92%, 700px); inset: auto 0 0; border-radius: 20px 20px 0 0; }
  .cart-header { padding: 8px 13px; }
  .cart-body { padding-inline: 13px; }
  .cart-footer { padding-inline: 13px; }
}

@media (max-width: 520px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-inner > .menu-settings { grid-column: 2; grid-row: 1; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; }
}

@media (max-width: 350px) {
  .social-link { width: 36px; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .cart-line { gap: 5px; }
  .cart-line-image { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
