:root { --bean: #2a1a10; --bean2: #3b2416; --cream: #f6efe6; --paper: #fbf7f1; --gold: #c8963e; --gold2: #e0b468; --ink: #2a1a10; --muted: #7a6656; --line: #eadfd2; --green: #3f6b4f; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 'IBM Plex Sans Arabic', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif; line-height: 1.25; margin: 0 0 .4em; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.demo-bar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; background: #0b1026; color: #d9d6ff; font-size: 13px; text-align: center; }
.demo-bar b { color: #fff; } .demo-bar a { color: #0b1026; background: linear-gradient(135deg, #a78bfa, #ff8a3d); padding: 4px 12px; border-radius: 999px; font-weight: 700; }

.head { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 241, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Reem Kufi'; font-size: 26px; font-weight: 700; line-height: 1; }
.logo small { display: block; font-family: 'IBM Plex Sans Arabic'; font-size: 9px; letter-spacing: .28em; color: var(--muted); margin-top: 4px; direction: ltr; text-align: right; }
.nav { display: flex; gap: 6px; } .nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--muted); } .nav a:hover { background: var(--cream); color: var(--ink); }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bean); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn .count { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--bean); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.cart-btn.bump { animation: bump .45s; } @keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--bean); box-shadow: 0 10px 24px -10px rgba(200, 150, 62, .8); } .btn-gold:hover { background: var(--gold2); }
.btn-gold[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-line { border-color: rgba(246, 239, 230, .6); color: var(--cream); } .btn-line:hover { background: rgba(246, 239, 230, .12); }
.btn-block { width: 100%; }

.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: center; color: var(--cream); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(42, 26, 16, .92) 0%, rgba(42, 26, 16, .7) 45%, rgba(42, 26, 16, .15) 100%); }
.hero-in { position: relative; padding: 70px 0; max-width: 1160px; }
.hero-in > * { max-width: 560px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(246, 239, 230, .14); border: 1px solid rgba(246, 239, 230, .3); font-size: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--gold2); }
.hero p { font-size: 18px; color: #eadfd2; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges li { padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 14px; }

.perks { position: relative; z-index: 2; margin-top: -42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perk { padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -24px rgba(42, 26, 16, .35); border: 1px solid var(--line); }
.perk b { display: block; font-family: 'Reem Kufi'; font-size: 22px; color: var(--bean2); } .perk span { color: var(--muted); font-size: 14px; }

.sec { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 44px); } .sec-head p { color: var(--muted); }
.kicker { display: inline-block; color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .05em; margin-bottom: 6px; }

.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs button { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--muted); transition: .2s; }
.tabs button[aria-selected="true"] { background: var(--bean); color: var(--cream); border-color: var(--bean); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.item { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; animation: rise .45s both; }
.item:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(42, 26, 16, .4); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.item-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .item:hover .item-img img { transform: scale(1.05); }
.item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-body h3 { font-size: 21px; margin: 0; } .item-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.item-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; font-size: 19px; color: var(--bean2); }
.add { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--bean); font-size: 24px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.add:hover { background: var(--gold2); transform: rotate(90deg); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eef4ef; color: var(--green); }

.story { background: var(--bean); color: var(--cream); padding: 84px 0; }
.story-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-img img { border-radius: 26px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.story h2 { font-size: clamp(28px, 4vw, 40px); } .story p { color: #e0d2c2; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; } .checks li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--bean); display: grid; place-items: center; font-weight: 700; flex: none; }

.loyal { margin-top: 84px; }
.loyal-in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 36px; border-radius: 28px; background: linear-gradient(135deg, #fff, var(--cream)); border: 1px solid var(--line); }
.loyal h2 { font-size: clamp(24px, 3.4vw, 34px); } .loyal p { color: var(--muted); margin: 0; }
.stamps { display: grid; grid-template-columns: repeat(5, 52px); gap: 10px; }
.stamps i { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #d6c4ad; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--bean); }
.stamps i.on { border: 0; background: var(--bean) url('/demos/deifo/logo.svg') center / 34px no-repeat; }
.stamps i.free { border: 0; background: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 84px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.visit-card { padding: 36px; border-radius: 26px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.visit-card h2 { font-size: 34px; }
.info { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 14px; width: 100%; }
.info li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); } .info b { font-size: 14px; color: var(--gold); } .info span { color: var(--ink); }
.visit-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 26px; }

.foot { background: var(--bean); color: #d9cbbb; padding: 44px 0 30px; margin-top: 20px; }
.foot-in { display: grid; gap: 8px; justify-items: center; text-align: center; }
.foot .logo { color: var(--cream); } .foot .logo small { color: #a8927d; }
.foot p { margin: 0; } .made { font-size: 13px; color: #a8927d; } .made a { color: var(--gold2); }

.drawer-back { position: fixed; inset: 0; background: rgba(20, 12, 6, .5); backdrop-filter: blur(3px); z-index: 40; }
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(420px, 100%); background: var(--paper); z-index: 50; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 26px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 22px; }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.line b { display: block; font-size: 15px; } .line small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; } .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: #fff; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.opts label { cursor: pointer; } .opts input { position: absolute; opacity: 0; }
.opts span { display: block; text-align: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.opts input:checked + span { background: var(--bean); color: var(--cream); border-color: var(--bean); }
.opts input:focus-visible + span { outline: 2px solid var(--gold); }
#custName { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.total { display: flex; justify-content: space-between; align-items: baseline; } .total b { font-size: 24px; font-family: 'Reem Kufi'; }
.hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--bean); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 60; transition: .3s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .story-in, .visit, .loyal-in { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .hero { min-height: 78vh; } .hero-shade { background: linear-gradient(0deg, rgba(42, 26, 16, .95) 22%, rgba(42, 26, 16, .35) 62%, rgba(42, 26, 16, .05)); }
  .hero-in { align-self: flex-end; padding: 40px 0 70px; } .hero p { font-size: 16px; }
  .hero-btns .btn { flex: 1; }
  .perks { grid-template-columns: 1fr; margin-top: -30px; }
  .menu-grid { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .stamps { grid-template-columns: repeat(5, 1fr); } .stamps i { width: 100%; height: auto; aspect-ratio: 1; }
  .loyal-in, .visit-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
