/* ════════════════════════════════════════════════════════
   HEADER — Block 1: Brand Bar
   ════════════════════════════════════════════════════════ */
.header-brand {
  position: relative;
  width: 100%;
  background: var(--brand-color, #1a3d2b);
  padding: max(16px, calc(16px + var(--safe-top))) 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-back { display: none !important; }

/* Back button — positioned absolute on RTL right side */
.header-back {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
.header-back:hover { background: rgba(255,255,255,0.2); }
.header-back:active { background: rgba(255,255,255,0.08); transform: translateY(-50%) scale(0.93); }

/* Food-court return: a tidy icon+label pill, shown only inside a food court */
.header-back.fc-back-visible {
  display: inline-flex !important;
  width: auto;
  height: 34px;
  gap: 5px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header-back.fc-back-visible:hover { background: rgba(255, 255, 255, 0.24); }
.header-back .header-back-label {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.header-back svg { flex-shrink: 0; }

/* Logo area — centred column */
.header-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Logo image */
.header-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
}

/* Fallback monogram circle */
.header-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

h1.header-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.25;
}

p.header-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════
   HEADER — Block 2: Info Bar
   ════════════════════════════════════════════════════════ */
.header-info {
  width: 100%;
  background: #ffffff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  min-height: 40px;
  box-sizing: border-box;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Cairo', sans-serif;
}
.header-status.open  { color: #16a34a; }
.header-status.closed { color: #dc2626; }

#header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.header-status.open #header-status-dot {
  animation: pulseOpen 2s infinite;
}

.header-sep {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.header-table {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  color: #fff;
  background: #374151;
  padding: 4px 10px;
  border-radius: 999px;
}

@keyframes pulseOpen {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ════════════════════════════════════════════════════════
   HOURS MODAL — Global
   ════════════════════════════════════════════════════════ */
.hours-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.hours-modal {
    background: var(--surface, #fff);
    color: var(--text, #1a1a1a);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.hours-modal h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    font-weight: 700;
}
.hours-details {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.btn-hours-close {
    background: var(--primary, #333);
    color: var(--accent, #fff);
    border: none;
    padding: 10px 32px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-hours-close:active { opacity: 0.8; }

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

/* ════════════════════════════════════════════════════════
   FOOTER ENHANCEMENTS — Global
   ════════════════════════════════════════════════════════ */
.payment-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pay-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.working-hours-footer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
}
