@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #11100f;
  --surface: #1c1a18;
  --surface-2: #24211f;
  --border: #37322e;
  --text: #f7f3ed;
  --muted: #a29a92;
  --soft: #cbc2b8;
  --orange: #f28a24;
  --orange-soft: #f6bc7d;
  --red: #f1694f;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #0d0c0b; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: #0d0c0b; color: var(--text); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
button:active { transform: scale(.98); }
.app-shell { position: relative; min-height: 100vh; width: min(100%, 1140px); margin: 0 auto; overflow: clip; padding: 0 24px calc(124px + var(--safe-bottom)); background: var(--bg); }
.topbar { height: 72px; display: flex; align-items: center; gap: 14px; }
.demo-ribbon { width: fit-content; margin: 9px 0 0; padding: 6px 9px; border: 1px solid #5a4230; border-radius: 8px; background: #2a2018; color: #e8ae74; font-size: 9px; font-weight: 700; }
.icon-button, .language-button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.menu-button { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; }
.menu-lines, .menu-lines::before, .menu-lines::after { width: 17px; height: 1.5px; border-radius: 2px; background: #f1ebe5; display: block; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; }
.menu-lines::before { top: -6px; width: 12px; }
.menu-lines::after { top: 6px; width: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #28190d; background: var(--orange); border-radius: 10px; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 800; }
.brand-name { letter-spacing: -.4px; font-size: 14px; color: #f6f0e8; }
.brand-name b { color: var(--orange-soft); }
.install-button { height: 36px; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0 10px; border: 1px solid #5a4532; border-radius: 13px; background: #2b2119; color: #f5bd83; white-space: nowrap; font-size: 10px; font-weight: 700; }
.install-button span:first-child { font-size: 15px; }
.language-button { margin-left: auto; min-width: 53px; height: 37px; border-radius: 14px; font-size: 12px; font-weight: 700; }
.intro { padding: 11px 2px 2px; }
.greeting { margin: 0 0 20px; color: #d3cbc3; font-size: 14px; }
.delivery-caption { margin: 0 0 3px; color: #837c75; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; }
.location-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: #f7f3ed; font-size: 14px; font-weight: 700; }
.pin-icon { color: var(--orange); font-size: 21px; line-height: 1; }
.chevron { color: #9b9289; font-size: 17px; margin-left: 2px; }
.availability { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #9c948d; font-size: 10px; }
.availability-dot { width: 6px; height: 6px; border-radius: 50%; background: #88b584; box-shadow: 0 0 9px #88b58477; }
h1 { margin: 20px 0 19px; font-size: clamp(34px, 8vw, 44px); line-height: 1.02; letter-spacing: -1.7px; font-weight: 800; }
h1 em { color: var(--orange); font-style: normal; }
.search-box { height: 53px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: var(--surface-2); border: 1px solid #3b3530; border-radius: 17px; }
.search-box input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #8d857d; }
.search-icon { width: 15px; height: 15px; border: 1.8px solid #c9c1b8; border-radius: 50%; position: relative; flex: none; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; border-radius: 2px; background: #c9c1b8; transform: rotate(48deg); }
.filter-icon { color: #ded7cf; font-size: 20px; line-height: 1; }
.clear-search { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; background: #393430; color: #fff; font-size: 20px; line-height: 1; }
.categories-wrap { margin: 0 -24px; overflow-x: auto; scrollbar-width: none; }
.categories-wrap::-webkit-scrollbar { display: none; }
.categories { display: flex; width: max-content; gap: 9px; padding: 16px 24px 17px; }
.category-chip { height: 38px; padding: 0 15px; border: 1px solid #39332e; border-radius: 99px; background: #201e1c; color: #bdb5ad; white-space: nowrap; font-size: 11px; font-weight: 600; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.category-chip.is-active { border-color: var(--orange); background: var(--orange); color: #28190d; font-weight: 800; }
.offer-card { position: relative; min-height: 170px; overflow: hidden; border: 1px solid #544230; border-radius: 23px; background: linear-gradient(105deg, #2a211a 0%, #33251b 52%, #241b16 100%); }
.offer-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; background-image: linear-gradient(90deg, #302219 0%, #3022192e 48%, #16110c12 100%), url('https://images.unsplash.com/photo-1606755962773-d324e0a13086?auto=format&fit=crop&w=850&q=85'); background-size: cover; background-position: center 48%; opacity: .84; }
.offer-content { position: relative; z-index: 1; padding: 17px 18px; }
.eyebrow { margin: 0; color: #e5a75d; font-size: 9px; letter-spacing: 1px; font-weight: 800; }
.eyebrow span { font-size: 12px; }
.offer-card h2 { margin: 8px 0 2px; font-size: 21px; line-height: 1.15; font-weight: 800; }
.offer-description { margin: 5px 0 0; color: #c7b9aa; font-size: 10px; }
.offer-action { display: flex; align-items: center; gap: 14px; min-height: 35px; margin-top: 13px; padding: 0 13px; border: 0; border-radius: 12px; background: var(--orange); color: #28190d; font-size: 10px; font-weight: 800; }
.discount-pill { position: absolute; top: 15px; right: 14px; padding: 5px 8px; border: 1px solid #604833; border-radius: 9px; background: #251c16e8; color: #ffdaad; font-size: 10px; font-weight: 800; }
.section-block { margin-top: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-heading h2 { margin: 0; color: #f7f3ed; font-size: 17px; letter-spacing: -.3px; font-weight: 800; }
.section-subtitle { margin: 4px 0 0; color: #89827b; font-size: 10px; }
.text-button { display: inline-flex; gap: 7px; align-items: center; padding: 8px 0 8px 8px; border: 0; background: transparent; color: #e2a366; font-size: 11px; font-weight: 700; }
.products { display: grid; grid-auto-columns: minmax(180px, 208px); grid-auto-flow: column; gap: 12px; overflow-x: auto; margin: 0 -24px; padding: 0 24px 5px; scrollbar-width: none; }
.products::-webkit-scrollbar { display: none; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #39332f; border-radius: 18px; background: #211f1d; }
.product-image-wrap { position: relative; height: 138px; overflow: hidden; background: #332b25; }
.image-detail { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image { transform: scale(1.035); }
.product-badge { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 7px; background: #a94b32; color: #fff5ec; font-size: 7px; letter-spacing: .5px; font-weight: 900; }
.favorite-toggle { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #161311b8; color: #f3ece5; font-size: 21px; line-height: 1; }
.favorite-toggle.is-favorite { color: var(--red); }
.product-meta { display: flex; align-items: center; gap: 8px; min-height: 65px; padding: 10px 11px; }
.product-meta-copy { min-width: 0; flex: 1; }
.product-name { display: block; overflow: hidden; color: #f7f3ed; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-price { display: block; margin-top: 5px; color: var(--orange); font-size: 11px; font-weight: 800; }
.add-button { width: 31px; height: 31px; flex: none; border: 0; border-radius: 10px; background: var(--orange); color: #28190d; font-size: 22px; line-height: 1; }
.empty-state { padding: 14px 0; color: var(--muted); font-size: 13px; }
.menu-section { margin-top: 27px; }
.menu-heading { margin-bottom: 6px; }
.menu-count { color: #827b75; font-size: 10px; }
.menu-list { display: grid; }
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 91px; border-bottom: 1px solid #302b27; }
.menu-row-image { width: 68px; height: 68px; flex: none; border-radius: 15px; object-fit: cover; background: #302a25; }
.menu-row-copy { min-width: 0; flex: 1; }
.menu-row-description { display: -webkit-box; overflow: hidden; margin-top: 4px; color: #a09992; font-size: 10px; line-height: 1.4; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.demo-note { margin: 24px 0 0; padding: 12px 13px; border: 1px solid #39332e; border-radius: 12px; color: #90877e; font-size: 10px; line-height: 1.5; text-align: center; }
.tabbar { position: fixed; z-index: 10; bottom: 0; left: 50%; width: min(100%, 1140px); min-height: calc(73px + var(--safe-bottom)); display: flex; justify-content: space-around; padding: 8px 17px calc(8px + var(--safe-bottom)); border-top: 1px solid #302b27; background: #1a1817f5; transform: translateX(-50%); backdrop-filter: blur(16px); }
.tab-button { position: relative; min-width: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #827a73; font-size: 9px; }
.tab-button.is-active { color: var(--orange); font-weight: 700; }
.tab-icon { height: 23px; font-size: 20px; line-height: 1; }
.home-icon { font-size: 23px; }
.basket-icon { font-size: 17px; padding-top: 2px; }
.tab-count { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--orange); color: #25170d; font-size: 9px; font-weight: 900; }
.cart-pill { position: fixed; z-index: 9; bottom: calc(82px + var(--safe-bottom)); left: 50%; width: min(calc(100% - 38px), 430px); height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--orange); color: #29190d; box-shadow: 0 10px 30px #0008; transform: translateX(-50%); font-size: 12px; font-weight: 800; }
.cart-pill-icon { position: relative; font-size: 18px; }
.cart-pill-icon b { position: absolute; top: -7px; right: -8px; width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; background: #fff4e9; font-size: 8px; }
.cart-pill strong { margin-left: auto; }
.pill-arrow { font-size: 16px; }
.product-dialog, .cart-dialog { position: fixed; inset: auto 0 0; width: min(100%, 600px); max-height: min(92dvh, 820px); overflow: auto; margin: 0 auto; padding: 0; border: 1px solid #413a34; border-bottom: 0; border-radius: 27px 27px 0 0; background: #171513; color: var(--text); box-shadow: 0 -18px 70px #0009; }
.product-dialog::backdrop, .cart-dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 3; top: 13px; right: 15px; width: 38px; height: 38px; border: 1px solid #fff3; border-radius: 50%; background: #171513d9; color: #fff; font-size: 25px; line-height: 1; }
.dialog-hero { height: 250px; background-position: center; background-size: cover; }
.dialog-body { padding: 20px 21px calc(24px + var(--safe-bottom)); }
.dialog-eyebrow { margin: 0; color: var(--orange-soft); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.dialog-title-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 8px; }
.dialog-title { margin: 0; font-size: 22px; font-weight: 800; }
.dialog-price { color: var(--orange); font-size: 17px; font-weight: 800; white-space: nowrap; }
.dialog-description { margin: 9px 0 0; color: #b7aea5; font-size: 12px; line-height: 1.55; }
.rating-line { margin: 12px 0 22px; color: #e5a666; font-size: 10px; }
.customize-heading { margin: 0 0 5px; font-size: 14px; font-weight: 800; }
.option-row { display: flex; align-items: center; min-height: 49px; gap: 10px; border-bottom: 1px solid #302b27; color: #e9e3dc; font-size: 12px; }
.option-row span:first-child { flex: 1; }
.option-price { color: #9c938a; font-size: 10px; }
.toggle { width: 40px; height: 23px; padding: 3px; border: 0; border-radius: 20px; background: #4b433d; text-align: left; }
.toggle::before { content: ''; display: block; width: 17px; height: 17px; border-radius: 50%; background: #d8d0c8; transition: transform .18s ease; }
.toggle[aria-checked="true"] { background: var(--orange); }
.toggle[aria-checked="true"]::before { background: white; transform: translateX(17px); }
.dialog-bottom { display: flex; align-items: center; gap: 12px; margin-top: 21px; }
.qty-control { height: 50px; display: flex; align-items: center; gap: 13px; padding: 0 11px; border: 1px solid #403a35; border-radius: 15px; background: #211e1b; }
.qty-control button { width: 28px; height: 32px; border: 0; background: transparent; color: var(--orange); font-size: 20px; }
.qty-control span { min-width: 12px; text-align: center; font-size: 12px; font-weight: 700; }
.primary-button { min-height: 51px; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 15px; border: 0; border-radius: 15px; background: var(--orange); color: #28190d; font-size: 12px; font-weight: 900; }
.cart-dialog { padding: 23px 21px calc(25px + var(--safe-bottom)); }
.cart-title { margin: 0 42px 19px 0; font-size: 25px; }
.cart-empty { padding: 49px 10px 24px; text-align: center; }
.cart-empty-icon { margin-bottom: 12px; color: #d49a61; font-size: 39px; }
.cart-empty h3 { margin: 0; font-size: 17px; }
.cart-empty p { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
.cart-empty button { min-height: 42px; padding: 0 16px; border: 1px solid #6a5037; border-radius: 13px; background: transparent; color: var(--orange-soft); font-size: 11px; font-weight: 700; }
.cart-line { display: flex; align-items: center; gap: 11px; min-height: 79px; border-bottom: 1px solid #302b27; }
.cart-line img { width: 53px; height: 53px; border-radius: 13px; object-fit: cover; }
.cart-line-copy { min-width: 0; flex: 1; }
.cart-line .qty-control { height: 38px; gap: 7px; padding: 0 6px; border-radius: 12px; }
.cart-line .qty-control button { width: 24px; height: 28px; font-size: 16px; }
.cart-total { display: flex; justify-content: space-between; margin-top: 22px; font-size: 14px; font-weight: 700; }
.cart-total strong { color: var(--orange); font-size: 17px; }
.fee-note { margin: 5px 0 18px; color: #948b82; font-size: 10px; }
.checkout-button { width: 100%; }
.toast { position: fixed; z-index: 20; bottom: calc(90px + var(--safe-bottom)); left: 50%; max-width: calc(100% - 38px); padding: 12px 17px; border-radius: 12px; background: #f4eee8; color: #2a2119; font-size: 11px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .topbar { flex-direction: row-reverse; }
[dir="rtl"] .install-button { margin-right: auto; margin-left: 0; }
[dir="rtl"] .language-button { margin-right: 0; margin-left: 0; }
[dir="rtl"] .greeting, [dir="rtl"] .delivery-caption { text-align: right; }
[dir="rtl"] .location-button { flex-direction: row-reverse; }
[dir="rtl"] .chevron { margin-right: 2px; margin-left: 0; }
[dir="rtl"] h1 { text-align: right; }
[dir="rtl"] .search-box { flex-direction: row-reverse; }
[dir="rtl"] .search-box input { text-align: right; }
[dir="rtl"] .clear-search { order: 1; }
[dir="rtl"] .offer-photo { right: auto; left: 0; transform: scaleX(-1); }
[dir="rtl"] .discount-pill { right: auto; left: 14px; }
[dir="rtl"] .offer-content, [dir="rtl"] .section-heading, [dir="rtl"] .menu-heading { text-align: right; }
[dir="rtl"] .section-heading, [dir="rtl"] .menu-heading { flex-direction: row-reverse; }
[dir="rtl"] .text-button { flex-direction: row-reverse; }
[dir="rtl"] .product-badge { left: auto; right: 9px; }
[dir="rtl"] .favorite-toggle { right: auto; left: 8px; }
[dir="rtl"] .product-meta { flex-direction: row-reverse; }
[dir="rtl"] .menu-row { flex-direction: row-reverse; }
[dir="rtl"] .menu-row-copy { text-align: right; }
[dir="rtl"] .cart-pill { flex-direction: row-reverse; }
[dir="rtl"] .cart-pill strong { margin-right: auto; margin-left: 0; }
[dir="rtl"] .cart-line { flex-direction: row-reverse; }
[dir="rtl"] .cart-line-copy { text-align: right; }
[dir="rtl"] .dialog-close { right: auto; left: 15px; }
[dir="rtl"] .dialog-title-row, [dir="rtl"] .option-row { flex-direction: row-reverse; }
[dir="rtl"] .option-row span:first-child { text-align: right; }
[dir="rtl"] .toggle { direction: ltr; }
[dir="rtl"] .dialog-bottom { flex-direction: row-reverse; }
[dir="rtl"] .primary-button { flex-direction: row-reverse; }
[dir="rtl"] .cart-title { margin-right: 0; margin-left: 42px; text-align: right; }
[dir="rtl"] .cart-total { flex-direction: row-reverse; }

@media (min-width: 720px) {
  body { padding: 25px 0; }
  .app-shell { min-height: calc(100vh - 50px); border: 1px solid #282320; border-radius: 29px; padding: 0 42px 130px; box-shadow: 0 25px 100px #0005; }
  .topbar { height: 80px; }
  .intro { padding-top: 24px; }
  .categories-wrap { margin-right: -42px; margin-left: -42px; }
  .categories { padding-right: 42px; padding-left: 42px; }
  .products { grid-auto-columns: minmax(200px, 1fr); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; margin: 0; padding: 0; }
  .product-image-wrap { height: 180px; }
  .tabbar { bottom: 25px; width: min(calc(100% - 84px), 1056px); border: 1px solid #302b27; border-radius: 20px; }
  .cart-pill { bottom: 116px; }
  .product-dialog, .cart-dialog { bottom: 25px; border-bottom: 1px solid #413a34; border-radius: 27px; }
}

@media (max-width: 380px) {
  .app-shell { padding-right: 18px; padding-left: 18px; }
  .categories-wrap { margin-right: -18px; margin-left: -18px; }
  .categories { padding-right: 18px; padding-left: 18px; }
  .install-button { padding: 0 8px; }
  .brand-name { font-size: 13px; }
}

@media (min-width: 1000px) {
  .app-shell { padding-right: 64px; padding-left: 64px; }
  .categories-wrap { margin-right: -64px; margin-left: -64px; }
  .categories { padding-right: 64px; padding-left: 64px; }
  .offer-card { min-height: 190px; }
  .offer-content { padding: 22px; }
  .offer-photo { width: 45%; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-image-wrap { height: 195px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
