:root {
  --brand-teal: #0fa3b8;
  --brand-teal-deep: #063b47;
  --brand-teal-mid: #0a6e7e;
  --brand-gold: #f7b500;
  --brand-gold-soft: #fff6db;
  --brand-pizza: #1b1714;
  --brand-rouge: #d92d20;
  --surface-bg: #f3f9fa;
  --surface-card: #ffffff;
  --text-main: #0c262e;
  --text-muted: #526b73;
  --border-soft: rgba(6, 59, 71, 0.1);
  --shadow-card: 0 8px 24px rgba(6, 59, 71, 0.08);
  --shadow-lg: 0 18px 40px rgba(6, 59, 71, 0.16);
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Tahoma", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-bg);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

/* ==================== FULLSCREEN LANDING ==================== */
.splash-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 18%, rgba(15, 163, 184, 0.42) 0%, transparent 48%),
    radial-gradient(circle at 82% 82%, rgba(247, 181, 0, 0.2) 0%, transparent 45%),
    linear-gradient(160deg, #042830 0%, #063b47 45%, #096879 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.splash-screen.is-hidden {
  display: none;
}

.splash-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo-wrap {
  width: min(260px, 72vw);
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 181, 0, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.splash-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.splash-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.05;
}

.splash-arabic {
  margin: -10px 0 0;
  font-family: var(--font-ar);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.02em;
}

.splash-divider {
  width: 52px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.splash-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f9c226 0%, #f5a800 100%);
  color: #062a33;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 32px rgba(247, 181, 0, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: min(100%, 290px);
}

.splash-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(247, 181, 0, 0.44);
}

.splash-cta:active {
  transform: scale(0.98);
}

.splash-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==================== MENU SHELL ==================== */
.menu-app {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}

.menu-app.is-active {
  display: flex;
  animation: fadeIn 0.3s ease both;
}

/* Sticky Top Header */
.menu-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 59, 71, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: env(safe-area-inset-top);
}

.menu-header-top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-spacer {
  width: 78px;
}

/* Category Navigation Strip */
.category-nav-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 12px 12px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cat-pill.is-active {
  background: var(--brand-gold);
  color: #062a33;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(247, 181, 0, 0.35);
}

/* ==================== MAIN CONTENT ==================== */
.menu-main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.category-title {
  margin: 0;
  font-size: clamp(1.375rem, 5vw, 1.85rem);
  font-weight: 800;
  color: var(--brand-teal-deep);
  letter-spacing: -0.02em;
}

.category-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-teal-mid);
  background: rgba(15, 163, 184, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* Pizza Sauce Filter Bar */
.sauce-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--brand-pizza);
  color: #ffffff;
}

.sauce-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  margin-right: 4px;
}

.sauce-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s ease;
}

.sauce-btn.is-active {
  background: var(--brand-gold);
  color: #1b1714;
}

.sauce-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sauce-dot.rouge {
  background: var(--brand-rouge);
}

.sauce-dot.blanche {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ==================== PRODUCT GRID & CARDS ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Breakfast full-width formula cards */
.formula-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .formula-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.product-card.is-featured {
  background: linear-gradient(165deg, #063b47 0%, #094f5e 100%);
  color: #ffffff;
  border-color: rgba(247, 181, 0, 0.45);
}

.product-card.is-pizza {
  border-color: rgba(27, 23, 20, 0.12);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e6f2f4;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: #062a33;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-number {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(27, 23, 20, 0.82);
  color: var(--brand-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 6px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
}

.card-subtitle {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-teal-mid);
}

.product-card.is-featured .card-subtitle {
  color: var(--brand-gold);
}

.card-desc {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.product-card.is-featured .card-desc {
  color: rgba(255, 255, 255, 0.86);
}

.card-includes {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.card-includes li {
  font-size: 0.82rem;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-main);
}

.product-card.is-featured .card-includes li {
  color: rgba(255, 255, 255, 0.94);
}

.card-includes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  margin-top: 6px;
  flex-shrink: 0;
}

.product-card.is-featured .card-includes li::before {
  background: var(--brand-gold);
}

.card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-teal-deep);
  color: var(--brand-gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-card.is-featured .price-pill {
  background: var(--brand-gold);
  color: #062a33;
}

.price-pill.is-text {
  font-size: 0.82rem;
}

/* Pizza Dual Variants */
.variants-stack {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 10px;
  background: #f5f7f8;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.variant-row.is-highlighted {
  background: var(--brand-pizza);
  color: #ffffff;
}

.variant-row.is-dimmed {
  opacity: 0.45;
}

.variant-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.variant-price {
  font-weight: 800;
  color: var(--brand-teal-deep);
  white-space: nowrap;
}

.variant-row.is-highlighted .variant-price {
  color: var(--brand-gold);
}

/* ==================== EXTRA INFO BLOCKS ==================== */
.info-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.info-panel.is-gold {
  background: linear-gradient(135deg, #fff8e1 0%, #ffefc0 100%);
  border-color: rgba(247, 181, 0, 0.45);
}

.info-panel.is-pizza-supp {
  background: var(--brand-rouge);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.info-panel-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-teal-deep);
}

.fruit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fruit-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #f0f9fb;
  border: 1px solid rgba(15, 163, 184, 0.22);
  color: var(--brand-teal-deep);
  font-size: 0.83rem;
  font-weight: 700;
}

.supplement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supplement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(6, 59, 71, 0.16);
  font-size: 0.88rem;
  font-weight: 600;
}

.supplement-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.supplement-price {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--brand-teal-deep);
  background: rgba(255, 255, 255, 0.72);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pdj-footer-banner {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #f9c226 0%, #f5a800 100%);
  color: #062a33;
  text-align: center;
}

.pdj-footer-banner strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.pdj-footer-banner span {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Site Footer */
.menu-footer {
  max-width: 1040px;
  width: 100%;
  margin: 12px auto 0;
  padding: 18px 16px 8px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.menu-footer-slogan {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-teal-deep);
}

.menu-footer-social {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f9c226 0%, #f5a800 100%);
  color: #062a33;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(247, 181, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(247, 181, 0, 0.36);
}

.footer-review-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--brand-teal-deep);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 59, 71, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand-teal);
  background: #f0f9fb;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social-link.is-ig svg {
  color: #e1306c;
}

.footer-social-link.is-fb svg {
  color: #1877f2;
}

/* ==================== PRODUCT DETAIL MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 24, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.2s ease both;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 59, 71, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e6f2f4;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand-teal-deep);
}

.modal-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
