@font-face{font-family:Vazirmatn;src:url(assets/vazir.woff2) format('woff2');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#0d0e0f;--panel:#191b1d;--edge:#393a3b;--muted:#c9c9ca;--gold:#ffc347;--ink:#211803;font:16px/1.55 Vazirmatn,Tahoma,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:#fff}
main{width:min(100%,850px);margin:auto;padding-bottom:calc(5rem + env(safe-area-inset-bottom))}
h1,h2,h3,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button,a{touch-action:manipulation}
button{background:none;border:0;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
svg{width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;display:block}
.top{min-height:62px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 13px;background:linear-gradient(120deg,#1b1d20,#101112 72%);gap:6px}
.brand{display:flex;align-items:center;gap:7px;font-size:clamp(.82rem,4.15vw,1.2rem);font-weight:850;text-align:center;line-height:1.3}
.brand small{display:block;font-size:.69em;font-weight:500;margin-top:3px}
.brand img{width:clamp(32px,9.7vw,51px);height:auto}
.top-left,.top-right{display:flex;align-items:center;gap:clamp(.3rem,3vw,1.1rem)}
.top-left{justify-content:end}
.top button,.bottom button{position:relative;padding:5px}
.top i,.bottom i{position:absolute;top:0;right:0;min-width:16px;padding:0 3px;border-radius:99px;background:var(--gold);color:var(--ink);font-size:.61rem;font-style:normal;font-weight:900}
.hero{min-height:clamp(150px,42vw,335px);position:relative;isolation:isolate;display:grid;align-items:center;background:#18110c;overflow:hidden}
.hero>img{position:absolute;inset:0 0 0 auto;width:66%;height:100%;object-fit:cover;z-index:-2}
.hero:after{position:absolute;inset:0;content:"";background:linear-gradient(90deg,#0d0a08 10%,#0e0b09ed 31%,#16100940 52%,transparent 76%);z-index:-1}
.hero-copy{justify-self:end;width:50%;padding:14px clamp(.45rem,4vw,2rem) 25px;text-align:left}
.hero-copy>span,.hero h1{font-size:clamp(1.03rem,5vw,2.2rem);font-weight:925;line-height:1.23}
.hero h1{color:var(--gold);margin:.18rem 0 .35rem;overflow-wrap:anywhere}
.hero-copy p{font-size:clamp(.59rem,2.45vw,.98rem);line-height:1.45;margin-bottom:.55rem}
.gold{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;background:linear-gradient(#ffda78,#f5ad25);color:var(--ink);padding:.43rem .68rem;border-radius:12px;font-size:.77rem;font-weight:900}
.hero .gold{border-radius:100px;box-shadow:0 4px 15px #ffa62262;white-space:nowrap;font-size:clamp(.62rem,2.7vw,.94rem)}
.hero .gold svg{width:1em;height:1em}
.slides{display:flex;direction:ltr;gap:5px;position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:4px 6px;background:#191817bb;border-radius:20px}
.slides button{background:#a19c94;border-radius:99px;width:6px;height:6px}
.slides button[aria-pressed=true]{width:13px;background:var(--gold)}
.categories{display:flex;gap:7px;overflow:auto;padding:7px 12px 10px;scrollbar-width:none}
.categories button{flex:0 0 calc((100% - 28px)/5);min-width:50px;min-height:61px;display:grid;place-items:center;align-content:center;gap:3px;background:linear-gradient(#1d1e20,#121314);border:1px solid #303133;border-radius:13px;font-size:.71rem;font-weight:800;line-height:1.2;padding:.25rem .1rem;overflow-wrap:anywhere}
.categories img{width:min(83%,38px);height:29px;object-fit:contain}
.categories button[aria-pressed=true]{background:linear-gradient(140deg,#ffe08c,#f0a509);border-color:#ffcf5b;color:var(--ink);box-shadow:0 4px 12px #f8aa233c}
.categories button[aria-pressed=true] img{mix-blend-mode:multiply;filter:brightness(1.25)}
.menu,.features,.subpage{margin-inline:11px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:5px 0 8px}
.section-title h2{font-size:clamp(.98rem,4vw,1.36rem);font-weight:900}
.section-title button{display:flex;align-items:center;gap:.25rem;color:var(--gold);font-weight:750;font-size:.71rem}
.section-title svg{width:.85rem;height:.85rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px}
.food-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#222426,#1a1c1e)}
.food-image{position:relative;aspect-ratio:2.29;display:grid;place-items:center;color:var(--gold);background:#171717;overflow:hidden}
.food-image img{position:absolute;width:100%;height:100%;object-fit:cover}
.heart{display:grid;place-items:center;position:absolute;top:5px;left:5px;width:25px;height:25px;border:1px solid #5b5a58;border-radius:50%;color:white;background:#131414df}
.heart svg{width:15px;height:15px}
.heart.liked{color:#ff3853}.heart.liked svg{fill:currentColor}
.discount{position:absolute;right:0;top:5px;background:#cf2439;padding:.09rem .38rem;border-radius:6px 0 0 6px;font-size:.62rem;color:#fff}
.food-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:3px 7px 6px}
.food-body h3{font-size:clamp(.74rem,3.15vw,1.1rem);font-weight:850;overflow-wrap:anywhere}
.food-body p{font-size:clamp(.59rem,2.45vw,.84rem);color:#c1c0bf;overflow-wrap:anywhere;margin-bottom:.32rem}
.price{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:wrap}
.price strong{font-size:clamp(.67rem,2.82vw,.95rem);white-space:nowrap}
.price del{font-size:.64rem;color:#a0a0a0}
.price:has(del) strong{color:var(--gold)}
.price small,.price>span{font-size:.6rem;white-space:nowrap}
.add{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:linear-gradient(#ffdb84,#f6a921);color:#201300}
.add svg{width:15px;height:15px;stroke-width:2.5}
.features{margin-top:11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 1px;border:1px solid #333537;border-radius:13px;background:#151618;text-align:center}
.features div{display:grid;justify-items:center;align-content:start;padding:2px;gap:1px}
.features div+div{border-inline-start:1px solid #47494b}
.features img{width:25px;height:24px;object-fit:contain;margin-bottom:3px}
.features strong,.features small{font-size:clamp(.53rem,2.15vw,.78rem);overflow-wrap:anywhere}
.bottom{position:fixed;z-index:2;inset:auto 0 calc(7px + env(safe-area-inset-bottom));margin:auto;width:min(calc(100% - 18px),832px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;padding:5px 2px;border:1px solid #48494a;border-radius:24px;background:linear-gradient(120deg,#232527,#101112);box-shadow:0 8px 25px #0009}
.bottom button{display:grid;justify-items:center;gap:3px;font-size:.62rem}
.bottom button[aria-current=page]{color:var(--gold);font-weight:850}
.bottom button[aria-current=page] svg{filter:drop-shadow(0 0 7px #ffbb2b84)}
.bottom i{right:calc(50% - 19px)}
.subpage{padding:18px 4px}
.subpage h1{margin-bottom:6px}.subpage h2{font-size:1.1rem;margin:14px 0 6px}
.demo-note,.empty,.line p{font-size:.85rem;color:var(--muted)}
.empty{padding:12px 0}
.line{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-top:8px;border:1px solid var(--edge);border-radius:10px;padding:9px}
.quantity{display:flex;align-items:center;gap:.6rem}
.quantity button,.dialog-links button,.dialog-links a,dialog form button{border:1px solid var(--edge);border-radius:8px;padding:4px 8px}
.total{margin:10px 0;color:var(--gold)}
dialog{width:min(calc(100% - 25px),420px);border:1px solid var(--edge);border-radius:14px;background:var(--panel);color:white}
dialog::backdrop{background:#000b}
.dialog-links{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}
.toast{position:fixed;z-index:3;bottom:calc(4.1rem + env(safe-area-inset-bottom));inset-inline:10px;width:max-content;max-width:calc(100% - 20px);margin:auto;background:#262422;border:1px solid var(--edge);padding:.45rem .7rem;border-radius:10px;font-size:.78rem}
input,textarea,select{min-width:0;width:100%;background:#17181a;border:1px solid #444;border-radius:8px;padding:.45rem}
input[type=checkbox]{width:auto}
label{display:grid;gap:.2rem;font-size:.82rem}
#profile{display:grid;gap:8px;justify-items:start;margin:12px 0}
.admin{padding:14px 14px 3rem}
.admin h1{font-size:1.35rem}
.admin-top,.admin-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.admin-top a{margin-inline-start:auto;color:var(--gold);font-size:.85rem}
.admin fieldset,.admin details{margin:8px 0;border:1px solid var(--edge);border-radius:12px;padding:9px}
.admin legend,.admin summary{font-weight:800;color:var(--gold)}
.admin-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(168px,100%),1fr));gap:8px;margin:7px 0}
.admin [data-new],.admin [data-remove],.admin [data-logout]{border:1px solid var(--edge);border-radius:8px;padding:4px 9px;font-size:.78rem}
.admin [data-remove]{color:#ff9b9b}
.admin-message{margin:8px 0;color:var(--gold);font-size:.85rem}
.admin-preview{width:65px;height:65px;object-fit:contain;border-radius:8px}.admin-preview[hidden]{display:none}.admin-login{display:grid;gap:10px;max-width:340px}
@media(min-width:650px){.top{min-height:74px}.categories button{min-height:80px}.features img{width:36px;height:33px}.food-body{padding:5px 11px 9px}.bottom{padding:8px}.food-image{aspect-ratio:2.15}}

.categories button{min-height:78px}
.categories button[aria-pressed=true] img{mix-blend-mode:normal;filter:none}
.categories svg{width:32px;height:32px;color:var(--gold)}
.categories [aria-pressed=true] svg{color:#211803}
.subpage{padding:22px 8px}
.subpage h1{font-size:1.45rem;letter-spacing:-.02em;margin-bottom:10px}
.empty-state{display:grid;justify-items:center;gap:12px;padding:32px 12px;margin-top:14px;border:1px solid var(--edge);border-radius:18px;background:var(--panel)}
.empty-state svg{width:38px;height:38px;color:var(--gold)}
.line,.order-box{padding:15px;border:1px solid var(--edge);border-radius:16px;background:linear-gradient(140deg,#222427,#161719);margin:12px 0}
.line strong{font-size:.92rem}.line p{margin-top:5px}
.quantity{border:1px solid #4a4438;border-radius:12px;padding:4px}
.quantity button{width:30px;height:30px;color:var(--gold)}
.total{padding:14px;border-radius:12px;background:#272218;font-size:1.1rem}
.order-box>p{color:var(--muted);font-size:.85rem;margin:8px 0}
.status-pill{border:1px solid #725b29;border-radius:99px;color:var(--gold);font-size:.7rem;padding:3px 7px}
.bank-box{display:grid;gap:6px;text-align:center;background:#29251c;border:1px solid #655332;border-radius:13px;margin:12px 0;padding:14px}
.bank-box b{font-size:1.2rem;letter-spacing:2px;color:var(--gold)}
.receipt-form,#checkout-form{display:grid;gap:11px;margin-top:12px}
.receipt-link{display:block;color:var(--gold);text-decoration:underline;margin:10px 0}
.outline{border:1px solid var(--edge);border-radius:9px;padding:6px 10px;margin:10px 0}
.admin{width:min(100%,1120px);padding:22px 18px}
.admin-top{border-bottom:1px solid var(--edge);padding-bottom:14px}
.admin-actions{position:sticky;top:0;z-index:2;background:#101112f5;padding:10px 0}
.admin fieldset{padding:16px;margin-bottom:18px;background:#17191b}
.admin details{background:#202225;padding:12px}
.admin summary{cursor:pointer;font-size:.92rem}
.admin-fields{gap:14px}
.admin input,.admin select,.admin textarea{padding:10px;background:#101214}
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
.admin-stats>div{display:grid;gap:5px;padding:16px;border:1px solid var(--edge);background:var(--panel);border-radius:14px;text-align:center}
.admin-stats strong{font-size:1.6rem;color:var(--gold)}.admin-stats span{font-size:.8rem}
.admin .order-box select{margin:12px 0}
@media(max-width:430px){.admin-stats{gap:5px}.admin-stats>div{padding:10px 4px}.bank-box b{font-size:1rem;letter-spacing:1px}}
.features svg{width:27px;height:27px;color:var(--gold);margin-bottom:5px}

/* Photo refresh: hero composition and food framing */
.hero{margin:10px 11px 8px;border:1px solid #3c3020;border-radius:22px;min-height:clamp(216px,48vw,350px);background:#100e0b}
.hero>img{inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero:after{background:linear-gradient(90deg,#100d09f5 0%,#100d09d9 26%,#100d0960 49%,transparent 68%)}
.hero-copy{justify-self:end;width:50%;padding:25px 14px 39px;text-align:left;position:relative}
.hero-copy>span{display:inline-flex;align-items:center;gap:6px;font-size:clamp(.63rem,2.5vw,.85rem);font-weight:500;line-height:1.7;color:#e4d3b5;letter-spacing:0}
.hero-copy>span:before{content:"";width:17px;height:2px;background:#f6bd51;border-radius:2px}
.hero h1{font-size:clamp(1.5rem,6.2vw,2.8rem);font-weight:900;line-height:1.4;margin:4px 0 7px;color:#ffd16a;text-shadow:0 2px 20px #0008}
.hero-copy p{font-size:clamp(.65rem,2.6vw,.97rem);line-height:1.8;color:#eee4d4;margin:0 auto 16px 0;max-width:24ch}
.hero .gold{font-size:clamp(.69rem,2.7vw,.9rem);gap:8px;padding:9px 14px;min-height:38px;border-radius:11px;background:linear-gradient(135deg,#ffdb84,#f2af35);border:1px solid #ffdc91;box-shadow:0 5px 18px #d68a1b24;white-space:normal}
.hero .gold svg{width:17px;height:17px;flex-shrink:0}
.slides{bottom:10px;padding:0;gap:0;background:transparent}
.slides button{width:28px;height:24px;position:relative;background:transparent;border-radius:0}
.slides button:after{content:"";position:absolute;left:10px;top:10px;width:6px;height:6px;border-radius:10px;background:#ffffff75}
.slides button[aria-pressed=true]{width:28px;background:transparent}
.slides button[aria-pressed=true]:after{width:20px;left:4px;background:#ffc75a}
.food-image{aspect-ratio:1.7}
.food-image img{object-fit:cover;object-position:center}
@media(min-width:600px){.hero-copy{width:37%;padding:35px 18px 48px 32px}.hero .gold{padding:11px 22px}}
@media(max-width:350px){.hero{margin-inline:8px;border-radius:17px}.hero-copy{width:53%;padding-inline:11px}.hero h1{font-size:1.38rem}.hero-copy p{font-size:.63rem}.hero .gold{padding:8px 11px}}
.hero>img{object-fit:contain;object-position:right center}
.hero>img{height:auto;top:50%;bottom:auto;transform:translateY(-50%);mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent)}

/* Keep the logo centered between the two groups of header controls. */
.top {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.top > .brand {
  position: relative;
  justify-self: center;
  justify-content: center;
}

.top > .brand small {
  display: none;
}

/* Preserve the home link's accessible name. */
.top > .brand:has(> img) > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.top > .brand > img {
  display: block;
  width: clamp(72px, 20vw, 96px);
  height: 44px;
  object-fit: contain;
  object-position: center;
}
