:root {
  --blue: #1794ca;
  --blue-dark: #0e6f9a;
  --blue-deep: #0a4d6c;
  --blue-soft: #e7f5fb;
  --blue-mid: #bfe6f6;
  --ink: #123445;
  --muted: #5b7380;
  --paper: #f7fbfe;
  --white: #ffffff;
  --line: #d5ebf5;
  --shadow: 0 10px 30px rgba(23, 148, 202, 0.12);
  --radius: 18px;
  --header: 68px;
  --bottom: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

html[lang="en"] .t-ar { display: none !important; }
html[lang="ar"] .t-en { display: none !important; }
html[lang="en"] { font-family: Outfit, system-ui, sans-serif; }
html[lang="ar"] { font-family: Cairo, system-ui, sans-serif; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  padding-bottom: calc(var(--bottom) + var(--safe-b));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  inset-inline-start: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.wrap {
  width: min(1120px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
}

.brand img {
  width: 118px;
  height: auto;
  border-radius: 10px;
}

.desk-nav { display: none; gap: 6px; margin-inline-start: auto; }
.desk-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
}
.desk-nav a.is-active,
.desk-nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.desk-nav + .header-actions { margin-inline-start: 0; }

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
  border-radius: 999px;
  min-height: 40px;
  min-width: 52px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost-dark { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-whatsapp, .btn-wa { background: #1ea952; color: #fff; }
.btn-whatsapp:hover, .btn-wa:hover { background: #178a43; }
.header-wa { display: none; }

.hero {
  background: var(--blue);
  color: #fff;
  padding: 28px 0 40px;
  text-align: center;
}
.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto 10px;
}
.hero-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.9;
  margin: 0 0 8px;
  font-weight: 600;
}
html[lang="ar"] .hero-kicker { letter-spacing: 0.08em; }
.hero h1 {
  font-size: clamp(1.45rem, 4.5vw, 2.35rem);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 auto 22px;
  max-width: 18ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.page-hero {
  background: linear-gradient(180deg, var(--blue) 0%, #1aa0d6 100%);
  color: #fff;
  padding: 28px 0 32px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page-hero p { margin: 0 auto 18px; max-width: 36rem; opacity: 0.95; }

.search-wrap { display: block; }
.search-wrap input {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  display: block;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
}

.section { padding: 36px 0; }
.section-alt { background: #fff; }
.section-flush { padding: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2, .menu-group h2 { margin: 0 0 16px; font-size: 1.35rem; }
.menu-group h2 { display: flex; align-items: center; gap: 8px; }
.group-emoji, .chip-emoji { font-size: 1rem; line-height: 1; }
.text-link { font-weight: 700; color: var(--blue); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.cat-emoji { display: block; font-size: 1.05rem; line-height: 1; margin-bottom: 4px; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-visual {
  position: relative;
  height: 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue-mid), var(--blue));
}
.card-visual img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}
.card-emoji { font-size: 1.35rem; line-height: 1; }
.cat-cold { background: linear-gradient(145deg, #9fe7ff, #1794ca); }
.cat-breakfast { background: linear-gradient(145deg, #ffe7b8, #f0a040); }
.cat-bakery { background: linear-gradient(145deg, #ffd9b0, #e0894a); }
.cat-desserts { background: linear-gradient(145deg, #f8c0d8, #d96aa0); }
.cat-cakes { background: linear-gradient(145deg, #e0c8ff, #8b6ad4); }
.badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-off { background: #2c3a42; color: #fff; inset-inline-start: auto; inset-inline-end: 10px; }
.card-body { padding: 14px 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card-desc { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { margin: 0; font-weight: 800; color: var(--blue-dark); display: flex; align-items: baseline; gap: 5px; }
.price .num { font-size: 1.2rem; }
.price .cur { font-size: 0.78rem; color: var(--muted); }
.is-unavailable { opacity: 0.72; }
.muted-pill { color: var(--muted); font-size: 0.85rem; font-weight: 700; }

.chips-bar {
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: rgba(247, 251, 254, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding: 10px 16px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

.about-block { max-width: 640px; }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: 0.04em; margin: 0 0 4px; }
.script-title {
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--blue);
  margin: 0 0 8px;
  line-height: 1;
}
.lead { color: var(--muted); font-size: 1.05rem; }

.contact-grid {
  display: grid;
  gap: 14px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.info-card h2 { margin: 0 0 10px; }
.info-card p { color: var(--muted); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.stack-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.map-frame iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.site-footer {
  background: var(--blue-deep);
  color: #fff;
  text-align: center;
  padding: 28px 0 24px;
  margin-top: 12px;
}
.footer-logo { width: 130px; margin: 0 auto 10px; border-radius: 10px; }
.footer-tag { margin: 0 0 12px; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.footer-links a { color: #fff; font-weight: 700; }
.copy { opacity: 0.65; font-size: 0.85rem; margin: 16px 0 0; }

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  padding: 10px 4px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.mobile-nav svg { width: 22px; height: 22px; }
.mobile-nav a.is-active { color: var(--blue); }

.fab-wa {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(var(--bottom) + var(--safe-b) + 12px);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1ea952;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(30, 169, 82, 0.35);
  z-index: 45;
}
.fab-wa svg { width: 28px; height: 28px; }

/* Admin */
.admin-body {
  background: #f3f7fa;
  padding-bottom: 0;
  font-family: Cairo, Outfit, sans-serif;
}
.admin-shell { display: grid; min-height: 100dvh; }
.admin-side {
  display: none;
  background: var(--blue-deep);
  color: #fff;
  padding: 22px 16px;
}
.admin-side a, .admin-side .side-brand { color: #fff; }
.admin-side nav { display: grid; gap: 6px; margin-top: 24px; }
.admin-side nav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.admin-side nav a.is-active,
.admin-side nav a:hover { background: rgba(255,255,255,.12); }
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin-main { padding: 18px 16px 40px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--blue-soft); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--blue-dark); }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.form-grid textarea { min-height: 90px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 0.8rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-danger { background: #c44545; color: #fff; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; }
.alert-ok { background: #e5f8ec; color: #146c36; }
.alert-err { background: #fde8e8; color: #9b1c1c; }
.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--blue);
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.login-card img { width: 160px; margin: 0 auto 16px; border-radius: 12px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--blue-soft); }
.admin-mobile-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-mobile-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.is-compact .card-visual { height: 72px; }
.admin-body { padding-bottom: 0; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .mobile-nav { display: none; }
  .desk-nav { display: flex; }
  .header-wa { display: inline-flex; }
  .header-actions { margin-inline-start: 0; }
  .fab-wa { bottom: 24px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .map-frame iframe { height: 380px; }
  .admin-shell { grid-template-columns: 230px 1fr; }
  .admin-side { display: block; }
  .admin-top .side-only { display: none; }
  .admin-mobile-nav { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}
