@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, 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; }

.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; }
.header-count, .mobile-count { min-width: 22px; padding: 2px 5px; border-radius: 100px; background: #f5a067; color: var(--ink); font-size: .75rem; font-weight: 900; text-align: center; }

.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; }

.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-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: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); }

.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; }

.mobile-order { display: none; }
.toast { position: fixed; z-index: 2; inset-inline-start: max(18px, calc((100vw - 1160px) / 2)); inset-block-end: 22px; max-width: calc(100vw - 36px); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.toast.is-visible { display: flex; align-items: center; gap: 8px; opacity: 1; transform: none; padding: 8px 13px; border-radius: 11px; background: var(--ink); box-shadow: 0 5px 21px #23130540; color: #fff8ee; font-size: .84rem; font-weight: 760; }

.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; justify-content: space-between; align-items: center; padding: 18px 21px; border-block-end: 1px solid var(--line); }
.cart-heading { display: flex; align-items: center; gap: 10px; }
.cart-heading h2 { font-size: 1.4rem; font-weight: 900; }
.cart-heading-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; 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; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.cart-empty { padding: 34px 12px; text-align: center; font-weight: 750; color: var(--muted); }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-block-end: 1px solid var(--line); }
.cart-line-image { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.cart-line-info { flex: 1; min-width: 0; line-height: 1.6; }
.cart-line-name { display: block; font-size: .88rem; font-weight: 850; overflow-wrap: break-word; }
.cart-line-price { display: block; font-size: .82rem; font-weight: 800; color: var(--orange-dark); white-space: nowrap; }
.cart-line-actions, .cart-quantity { display: flex; align-items: center; gap: 2px; }
.cart-quantity { border: 1px solid var(--line); border-radius: 9px; }
.cart-quantity-button, .cart-remove { min-width: 34px; height: 40px; border: 0; border-radius: 8px; background: none; font-size: 1.2rem; 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: .87rem; font-weight: 850; }
.cart-remove { color: var(--orange-dark); }
.cart-notes { margin-block-start: 19px; }
.cart-notes label { display: block; margin-block-end: 6px; font-size: .9rem; font-weight: 830; }
.cart-notes small { color: var(--muted); font-weight: 600; }
.cart-notes textarea { display: block; width: 100%; padding: 9px 11px; resize: vertical; border: 1px solid #dfcfc0; border-radius: 10px; background: #fff; font-size: .92rem; }
.cart-footer { padding: 14px 20px max(14px, 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: 10px; font-weight: 850; }
.cart-totals strong { color: var(--orange-dark); font-size: 1.24rem; }
.button-whatsapp { width: 100%; background: var(--green); color: #fff; }
.button-whatsapp:hover { background: #0d593a; }
.button-whatsapp[aria-disabled='true'] { background: #ebe7e0; color: #685f57; cursor: default; }
.cart-help { margin-block-start: 7px; color: var(--muted); text-align: center; font-size: .78rem; font-weight: 650; }

@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 { min-height: 69px; }
  .brand { gap: 7px; }
  .brand img { width: 43px; height: 43px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .67rem; }
  .header-actions { gap: 7px; }
  .header-actions .button { min-width: 44px; padding-inline: 9px; gap: 5px; font-size: .76rem; }
  .header-actions .icon { width: 17px; height: 17px; }
  .header-cart-label { display: none; }
  .header-count { min-width: 17px; padding: 1px 4px; font-size: .68rem; }
  .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; }
  .mobile-order { display: block; position: fixed; z-index: 1; inset-inline: 0; inset-block-end: 0; padding: 8px 14px max(8px, env(safe-area-inset-bottom)); background: var(--paper); border-block-start: 1px solid var(--line); box-shadow: 0 -4px 20px #23130512; }
  .mobile-order .button { display: flex; width: 100%; justify-content: space-between; }
  .mobile-order .button > span { display: flex; align-items: center; gap: 6px; }
  .mobile-order .button .icon { width: 17px; height: 17px; }
  body:has(.mobile-order:not([hidden])) .site-footer { padding-block-end: calc(65px + env(safe-area-inset-bottom)); }
  .toast { inset-block-end: calc(74px + env(safe-area-inset-bottom)); }
  .cart-dialog { width: 100%; height: min(92%, 700px); inset: auto 0 0; border-radius: 20px 20px 0 0; }
  .cart-header { padding: 13px 14px; }
  .cart-body { padding-inline: 13px; }
  .cart-footer { padding-inline: 13px; }
}

@media (max-width: 350px) {
  .header-actions .contact-link span { display: none; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .cart-line { gap: 5px; }
  .cart-line-image { width: 39px; height: 39px; }
}

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