/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.head-row { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand b { display: block; font-size: 17px; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.brand.light { color: #fff; }
.brand.light small { color: #bfa898; }
.deliver-chip { display: none; align-items: center; gap: 8px; margin-left: 18px; padding: 6px 14px 6px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--brand); }
.deliver-chip small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.deliver-chip b { display: block; font-size: 13px; color: var(--text); line-height: 1.3; }
@media (min-width: 820px) { .deliver-chip { display: flex; } }
@media (max-width: 560px) { .hide-sm { display: none; } .head-row .btn { padding: 9px; } }
#myOrdersBtn .badge { margin-left: -2px; }

/* hero */
.hero { display: grid; gap: 18px; margin-top: 16px; }
.hero-img { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #1b110c; }
.hero-img img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-info { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-info h1 { font-size: 24px; letter-spacing: -0.3px; }
.hero-info p { margin: 0; }
.open-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 13px; }
.open-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(24, 145, 90, 0.2); }
.open-pill.closed { background: var(--brand-soft); color: var(--brand-dark); }
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.usp > div { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.usp .i { color: var(--brand); width: 22px; height: 22px; }
.usp b { display: block; font-size: 14px; line-height: 1.2; }
.usp small { display: block; font-size: 11px; color: var(--muted); }
.hero-cta { align-self: flex-start; padding: 12px 22px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.35fr 1fr; gap: 32px; margin-top: 24px; }
  .hero-info h1 { font-size: 32px; }
}
@media (max-width: 899px) { .hero-cta { display: none; } }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 12px; scroll-margin-top: 60px; }
.menu-col { min-width: 0; }
.cart-col { display: none; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
  .cart-col { display: block; position: sticky; top: 84px; }
  .cartbar { display: none !important; }
}

/* menu */
.menu-bar { position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 30; background: var(--bg); margin: 0 -16px; padding: 12px 16px 0; }
.search { position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 44px; border-radius: 14px; background: var(--surface); }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line2); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.15s; }
.cats a .i { width: 17px; height: 17px; }
.cats a:hover { color: var(--text); }
.cats a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.cat { scroll-margin-top: 200px; padding-top: 22px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat-head .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.cat-head h2 { font-size: 20px; }
.cat-head small { color: var(--muted); font-weight: 500; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.card-item { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; transition: transform 0.15s, box-shadow 0.15s; }
.card-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-item:focus-visible { outline: 3px solid rgba(225, 52, 27, 0.4); }
.ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.card-item:hover .ph img { transform: scale(1.04); }
.tile { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.95); overflow: hidden; }
.tile::before, .tile::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.tile::before { width: 70%; aspect-ratio: 1; right: -18%; top: -25%; }
.tile::after { width: 45%; aspect-ratio: 1; left: -12%; bottom: -20%; }
.tile .i { width: 38%; height: auto; aspect-ratio: 1; stroke-width: 1.5; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18)); position: relative; z-index: 1; }
.tile .tname { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: 'Noto Nastaliq Urdu', serif; font-size: 13px; opacity: 0.9; z-index: 1; direction: rtl; }
.in-cart { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--brand); color: #fff; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.ci-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ci-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ci-ur { font-size: 13px; color: var(--muted); line-height: 1.7; text-align: left; }
.ci-desc { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; color: var(--text); font-size: 15px; }
.price small { font-weight: 500; color: var(--muted); font-size: 11px; display: block; line-height: 1; }
.plus { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px rgba(225, 52, 27, 0.3); }
@media (max-width: 400px) { .ci-body { padding: 10px; } .ci-name { font-size: 14px; } }

/* item dialog */
.item-dlg { max-width: 520px; }
.item-hero { position: relative; aspect-ratio: 16 / 10; background: var(--surface2); }
.item-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-hero .x { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.95); border: 0; box-shadow: var(--shadow-sm); z-index: 3; }
.item-main { padding: 18px 18px 8px; }
.item-main h2 { font-size: 22px; }
.item-main .ur { color: var(--muted); font-size: 16px; text-align: left; }
.opt-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; font-weight: 600; }
.opt-title small { font-size: 11px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line2); border-radius: 14px; cursor: pointer; margin-bottom: 8px; transition: 0.15s; }
.choice:hover { border-color: var(--muted); }
.choice input { display: none; }
.choice b { font-weight: 600; }
.choice .p { margin-left: auto; font-weight: 600; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; }
.radio.on, .choice:has(input:checked) .radio { border-color: var(--brand); }
.radio.on::after, .choice:has(input:checked) .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.item-foot { display: flex; gap: 10px; align-items: center; }
.item-foot .qty button { width: 42px; height: 46px; }
.item-foot .btn { flex: 1; padding: 13px; font-size: 15px; justify-content: space-between; }

/* cart */
.cart-panel h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cart-panel h3 .i { color: var(--brand); }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .th { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .th .tile .i { width: 55%; }
.line .th .tile::before, .line .th .tile::after { display: none; }
.line .nm { font-weight: 600; font-size: 14px; line-height: 1.3; }
.line .qty button { width: 30px; height: 30px; }
.line .qty span { min-width: 22px; font-size: 14px; }
.sum { display: grid; gap: 6px; padding: 14px 0 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font-size: 18px; font-weight: 700; padding-top: 10px; border-top: 1px dashed var(--line2); margin-top: 4px; }
.sum .tot span:last-child { color: var(--brand); }
.hint { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.hint .i { width: 16px; height: 16px; }
.cart-empty { text-align: center; padding: 26px 8px 10px; color: var(--muted); }
.cart-empty .i { width: 54px; height: 54px; stroke-width: 1.3; color: var(--line2); }
.cart-panel .btn.block { margin-top: 14px; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(246, 243, 239, 0), var(--bg) 30%); }
.cartbar .btn { max-width: 560px; margin: 0 auto; display: flex; border-radius: 16px; box-shadow: 0 10px 30px rgba(225, 52, 27, 0.35); }
.cc { background: rgba(255, 255, 255, 0.22); border-radius: 9px; min-width: 28px; padding: 2px 8px; font-size: 14px; }

/* checkout */
.step { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 22px 0 6px; }
.step span { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 13px; }
.two { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 400; color: #b0a194; }
.map-wrap { position: relative; }
.locate { position: absolute; z-index: 500; right: 10px; bottom: 10px; box-shadow: var(--shadow); }
.locate .i { color: var(--brand); }
.pin-info { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin-top: 8px; }
.pin-info .i { width: 16px; height: 16px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 14px; }
.pay > .i { color: var(--brand); width: 26px; height: 26px; }
.summary { margin-top: 18px; padding: 14px 16px; background: var(--surface2); box-shadow: none; }
.summary .sum { padding-top: 0; }

/* my orders */
.olist a { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.olist .oi { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }

/* footer */
.site-foot { background: var(--dark); color: #e8dbd0; margin-top: 48px; padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .site-foot { padding-bottom: 24px; } }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-foot p { margin: 10px 0; color: #c9b6a6; font-size: 14px; }
.site-foot .btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-foot a { color: #fff; }
.ico { display: flex; gap: 10px; align-items: flex-start; }
.ico .i { color: var(--accent); margin-top: 2px; }
#phones { display: grid; gap: 8px; }
#phones a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
#phones .i { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #a8958a; }
.foot-bottom a { color: #c9b6a6; }

/* about, delivery areas, FAQ */
.about { margin-top: 48px; }
.about-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; } }
.about h2 { font-size: 22px; margin-bottom: 10px; }
.about p { color: #4d4038; margin: 0 0 12px; }
.areas h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.areas h3 .i, .areas p .i { color: var(--brand); }
.areas ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.areas li { padding: 5px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; font-size: 13px; }
.areas p { margin: 8px 0 0; }
.faq-title { font-size: 20px; margin: 32px 0 12px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
