@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --yellow: #ffce45;
  --red: #ca2038;
  --black: #141414;
  --dark: #1d1d1d;
  --gray-bg: #f4f4f4;
  --gray-text: #7a7a7a;
  --white: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--black);
  direction: rtl;
  text-align: right;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.08);
}

@media (min-width: 700px) {
  .container { max-width: 520px; }
}

/* -------- Top bar -------- */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar span b { color: var(--yellow); }
.topbar .cart-link { position: relative; display: flex; align-items: center; gap: 6px; }
.topbar .cart-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* -------- Header / logo -------- */
.site-header {
  background: var(--black);
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.site-header .logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.site-header .logo-text {
  color: var(--red);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
}
.header-actions {
  position: absolute;
  top: 40px;
  left: 16px;
  display: flex;
  gap: 12px;
}
.header-actions a {
  color: var(--white);
  font-size: 20px;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 230px;
  background: linear-gradient(180deg, rgba(20,20,20,.35), rgba(20,20,20,.85)), var(--black);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  color: var(--white);
}
.hero .eyebrow {
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--yellow);
  line-height: 1.15;
}
.hero p { margin: 0 0 18px; color: #ddd; font-size: 14px; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* -------- Catering strip -------- */
.catering {
  background: var(--yellow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.catering .txt strong { display: block; font-size: 15px; font-weight: 800; }
.catering .txt span { font-size: 12px; color: #333; }
.catering .btn { background: var(--black); color: var(--yellow); font-size: 12px; padding: 9px 16px; white-space: nowrap; }

/* -------- Category pills -------- */
.pills {
  display: flex;
  gap: 10px;
  padding: 16px;
  overflow-x: auto;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 68px;
}
.pill .ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
  border: 2px solid transparent;
}
.pill.active .ico { border-color: var(--red); }
.pill span { font-size: 11px; font-weight: 700; }

/* -------- Section titles -------- */
.section { padding: 6px 16px 22px; }
.section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 5px; height: 18px;
  background: var(--red);
  border-radius: 3px;
}

/* -------- Offer banner -------- */
.offer-banner {
  background: linear-gradient(120deg, var(--red), #8f1526);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 22px;
  position: relative;
  overflow: hidden;
}
.offer-banner h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; color: var(--yellow); }
.offer-banner p { margin: 0; font-size: 13px; opacity: .9; }
.offer-banner .price { font-size: 22px; font-weight: 900; color: #fff; }

/* -------- Product cards -------- */
.product-list { display: flex; flex-direction: column; gap: 14px; }
.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 10px;
  position: relative;
}
.product-card .thumb {
  width: 78px; height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--gray-bg);
  flex-shrink: 0;
}
.product-card .info { flex: 1; min-width: 0; }
.product-card .info h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.product-card .info p {
  margin: 0 0 8px; font-size: 12px; color: var(--gray-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; }
.product-card .price { font-weight: 800; font-size: 14px; }
.product-card .price .old { text-decoration: line-through; color: #bbb; font-weight: 400; font-size: 12px; margin-inline-start: 6px; }
.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge {
  position: absolute; top: -6px; right: 8px;
  background: var(--yellow); color: var(--black);
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
}
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-text); }
.empty-state .ico { font-size: 40px; margin-bottom: 10px; }

.view-menu-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; font-weight: 700; color: var(--red); font-size: 14px;
}

/* -------- App promo -------- */
.app-promo {
  background: var(--black);
  color: #fff;
  padding: 34px 20px;
  text-align: center;
}
.app-promo .eyebrow { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.app-promo h2 { font-size: 22px; font-weight: 900; margin: 6px 0 8px; }
.app-promo p { font-size: 13px; color: #bbb; margin: 0 0 20px; }
.app-promo .phone-mock {
  width: 160px; margin: 0 auto 20px;
  border: 6px solid #333; border-radius: 24px;
  overflow: hidden; background: #222;
}
.app-promo .phone-mock img { width: 100%; }
.store-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.store-badges img { height: 42px; }

/* -------- Footer -------- */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 26px 20px 90px;
  font-size: 13px;
}
footer .f-logo { text-align: center; margin-bottom: 18px; }
footer .f-logo img { height: 40px; margin: 0 auto 8px; }
footer .f-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  margin-bottom: 20px;
}
footer .f-links a { color: #ccc; padding: 4px 0; display: block; }
footer .f-links a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: #2b2b2b; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.footer-phone {
  text-align: center; color: var(--yellow); font-weight: 800; font-size: 15px;
  margin-bottom: 10px;
}
.copyright { text-align: center; color: #777; font-size: 11px; border-top: 1px solid #2b2b2b; padding-top: 14px; }

/* -------- Bottom nav (mobile app-like) -------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid #eee;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0; z-index: 50;
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #999; font-weight: 700; }
.bottom-nav a.active { color: var(--red); }
.bottom-nav .icon { font-size: 18px; }

/* -------- Generic form / auth pages -------- */
.page-wrap { padding: 20px 16px 100px; }
.page-title { font-size: 20px; font-weight: 900; margin: 6px 0 18px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #ddd; font-family: inherit; font-size: 14px; background: #fafafa;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fdeaea; color: var(--red); border: 1px solid #f6c3c9; }
.alert-success { background: #eafaf0; color: #1c8a4c; border: 1px solid #b9ecc9; }
.muted-link { text-align: center; font-size: 13px; color: var(--gray-text); margin-top: 14px; }
.muted-link a { color: var(--red); font-weight: 700; }

/* -------- Cart page -------- */
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.cart-item .thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--gray-bg); }
.cart-item .info { flex: 1; }
.cart-item .info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 14px;
}
.cart-summary { background: var(--gray-bg); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.cart-summary .row.total { font-weight: 900; font-size: 16px; border-top: 1px dashed #ccc; padding-top: 10px; }

/* -------- Utility -------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.d-flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
