/* ═══════════════════════════════════════════════════════════════════════
   مطبخ أحلى أكله — Warm Arabic Menu Theme
   ─────────────────────────────────────────────────────────────────────
   Mobile-first, RTL stylesheet inspired by traditional Arabic restaurant
   printed menus, blended with a modern responsive web layout.

   THEME COLORS can be changed in the :root block below.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Theme) ─────────────────────────────────
   Change these variables to adjust the overall colour palette.
   ─────────────────────────────────────────────────────────────────── */
:root {
  --primary:       #C4922A;
  --primary-dark:  #A67724;
  --primary-light: #DAA520;

  --accent:        #D4A017;
  --gold:          #B8860B;

  --bg:            #FBF6EE;
  --bg-dark:       #2D1800;

  --surface:       #FFFFFF;
  --surface-2:     #F5ECD8;

  --text-primary:  #3D2B1F;
  --text-secondary:#7B6B5D;
  --text-light:    #FFFFFF;

  --border:        #E2D0B3;
  --border-light:  #F0E6D4;

  --shadow-sm:     0 2px 10px rgba(61,43,31,0.08);
  --shadow-md:     0 6px 24px rgba(61,43,31,0.12);
  --shadow-lg:     0 14px 40px rgba(0,0,0,0.12);

  --radius-xs:     8px;
  --radius-sm:     12px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-full:   999px;

  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);

  --font-main:     'Cairo', 'Tajawal', sans-serif;
}


/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  font-family: var(--font-main);
  direction: rtl;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
ul     { list-style: none; }

.hidden { display: none !important; }


/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }


/* ─── Container ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px)  { .container { max-width: 900px;  padding: 0 24px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; padding: 0 32px; } }


/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(251,246,238,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
}

.nav-logo-text span { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(196,146,42,0.35);
}

.cart-btn:active { transform: scale(0.95); }

.cart-count {
  background: #fff;
  color: var(--primary-dark);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.3s ease;
}

@keyframes pop {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════════════
   BRANDING HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.branding-header {
  position: relative;
  padding-top: 60px;
  overflow: hidden;
  text-align: center;
}

.branding-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1A0A00 0%, #3D1800 40%, #5A3000 75%, #2D1800 100%);
  z-index: 0;
}

.branding-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,146,42,0.15) 0%, transparent 70%);
  z-index: 1;
}

.branding-content {
  position: relative;
  z-index: 2;
  padding: 40px 0 36px;
}

.branding-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 10px;
}

.branding-title {
  font-size: 2rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.branding-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.branding-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.branding-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .branding-title { font-size: 2.8rem; }
  .branding-subtitle { font-size: 1.15rem; }
  .branding-logo { width: 240px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   MENU SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.menu-section {
  padding: 40px 0 60px;
}


/* ─── Loading State ─────────────────────────────────────────────── */
.menu-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 16px);
  min-height: clamp(200px, 42vh, 320px);
  padding: 12px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}


/* ─── Error State ───────────────────────────────────────────────── */
.menu-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  text-align: center;
}

.error-icon { font-size: 3rem; }
.error-text { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.error-message { font-size: 0.85rem; color: var(--text-secondary); }

.retry-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 8px;
}

.retry-btn:hover { background: var(--primary-dark); }


/* ─── Menu Grid (multi-column masonry) ──────────────────────────── */
.menu-grid {
  columns: 1;
  column-gap: 24px;
}

@media (min-width: 700px)  { .menu-grid { columns: 2; } }
@media (min-width: 1100px) { .menu-grid { columns: 3; } }


/* ═══ Drinks — separate look, collapsible (below food menu) ═══ */
.drinks-reveal {
  width: 100%;
  margin: 28px 0 8px;
  break-inside: avoid;
}

.drinks-reveal-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 14px);
  padding: clamp(12px, 3vw, 16px) clamp(14px, 3.5vw, 20px);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: right;
  font-family: var(--font-main);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3d52 45%, #1a2533 100%);
  color: #f0f4f8;
  box-shadow: 0 8px 32px rgba(30, 42, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.drinks-reveal-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(30, 42, 58, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drinks-reveal-trigger:focus-visible {
  outline: 3px solid rgba(126, 184, 218, 0.65);
  outline-offset: 3px;
}

.drinks-reveal-glyph {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.drinks-reveal-labels {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.drinks-reveal-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.drinks-reveal-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(200, 220, 235, 0.85);
  line-height: 1.35;
}

.drinks-reveal-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  opacity: 0.9;
}

.drinks-reveal-chevron::after {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 2.5px solid rgba(200, 220, 235, 0.95);
  border-bottom: 2.5px solid rgba(200, 220, 235, 0.95);
  width: 9px;
  height: 9px;
  margin: auto;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.drinks-reveal.is-open .drinks-reveal-chevron::after {
  transform: rotate(225deg);
}

.drinks-reveal-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.drinks-reveal-panel.is-open {
  max-height: 12000px;
}

.drinks-reveal-inner {
  margin-top: 14px;
  padding: clamp(10px, 3vw, 16px) clamp(8px, 2.5vw, 14px) clamp(14px, 3vw, 20px);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #2a3038 0%, #1e2228 50%, #252a32 100%);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 92, 0.08), transparent 55%),
    linear-gradient(165deg, #2a3038 0%, #1e2228 50%, #252a32 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.drinks-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .drinks-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .drinks-card--span2 {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

.drinks-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 92, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  background: rgba(22, 24, 28, 0.92);
}

.drinks-card-head {
  padding: 12px 16px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 92, 0.2);
  background: linear-gradient(180deg, rgba(201, 162, 92, 0.12) 0%, transparent 100%);
}

.drinks-card-head-ar {
  display: block;
  font-size: clamp(0.92rem, 3.4vw, 1.05rem);
  font-weight: 900;
  color: #d4b87a;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.drinks-card-head-en {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(220, 205, 170, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drinks-card-body {
  padding: 4px 0 6px;
}

.drinks-card-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  padding: clamp(10px, 2.5vw, 12px) clamp(10px, 2.8vw, 14px);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.drinks-card-row:last-child {
  border-bottom: none;
}

.drinks-card-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.drinks-card-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-inline-end: 4px;
}

.drinks-card-name-ar {
  font-weight: 700;
  font-size: clamp(0.82rem, 3.2vw, 0.92rem);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.drinks-card-name-en {
  font-size: clamp(0.62rem, 2.4vw, 0.72rem);
  font-weight: 600;
  color: rgba(200, 205, 215, 0.85);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* السعر بجانب زر + على طرف الصف (مثل قائمة الطعام) */
.drinks-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 2vw, 10px);
  flex-shrink: 0;
  margin-inline-start: auto;
}

.drinks-card-price {
  font-weight: 800;
  font-size: clamp(0.88rem, 3vw, 1rem);
  color: #f2efe8;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.drinks-card-add {
  width: clamp(40px, 10vw, 44px);
  height: clamp(40px, 10vw, 44px);
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 92, 0.45);
  flex-shrink: 0;
  cursor: pointer;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  line-height: 1;
  font-weight: 700;
  color: #1a1c20;
  background: linear-gradient(145deg, #e8d4a8, #c9a25c);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.drinks-card-row:hover .drinks-card-add {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(201, 162, 92, 0.35);
}

.drinks-card--ice {
  border-color: rgba(120, 180, 210, 0.35);
}

.drinks-card--ice .drinks-card-head {
  border-bottom-color: rgba(120, 180, 210, 0.25);
  background: linear-gradient(180deg, rgba(100, 160, 200, 0.15) 0%, transparent 100%);
}

.drinks-card--ice .drinks-card-head-ar {
  color: #a8d4ec;
}

.drinks-card--warm {
  border-color: rgba(200, 130, 100, 0.35);
}

.drinks-card--warm .drinks-card-head {
  border-bottom-color: rgba(200, 130, 100, 0.25);
  background: linear-gradient(180deg, rgba(200, 120, 90, 0.15) 0%, transparent 100%);
}

.drinks-card--warm .drinks-card-head-ar {
  color: #e8b8a0;
}

.drinks-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(200, 205, 215, 0.75);
}


/* ─── Category Block ────────────────────────────────────────────── */
.category-block {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.category-block:hover { box-shadow: var(--shadow-md); }

.category-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  padding: 14px 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.category-header-text {
  flex: 1;
  min-width: 0;
}

.category-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.category-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.category-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.category-subtitle-inline {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.95;
}

.category-subtitle {
  margin: 6px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.95;
}


/* ─── Menu Item Row ─────────────────────────────────────────────── */
.category-items {
  padding: 4px 0;
}

.menu-item-row {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  gap: 8px;
}

.menu-item-row:last-child { border-bottom: none; }

.menu-item-row:hover { background: #FDF8F0; }

.item-number {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  min-width: 28px;
  flex-shrink: 0;
}

.item-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.item-title-main {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.item-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
}

.item-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.item-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(196,146,42,0.3);
}

.menu-item-row:hover .item-add-btn { opacity: 1; transform: scale(1); }
.item-add-btn:active { transform: scale(0.85) !important; }

/* Always show on touch devices */
@media (hover: none) {
  .item-add-btn { opacity: 1; transform: scale(1); }
}

.item-add-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}


/* ─── Item Thumbnail (lazy-loaded from WordPress featured image) ── */
.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
}

.item-thumb.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.item-thumb.lazy-loaded {
  opacity: 1;
}

.menu-item-row.has-image {
  padding: 8px 18px;
}


/* ─── Featured & Unavailable Badges ─────────────────────────────── */
.badge-featured {
  font-size: 0.72rem;
  vertical-align: middle;
}

.badge-unavailable {
  background: rgba(61,43,31,0.08);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.menu-item-row.unavailable {
  opacity: 0.5;
}

.menu-item-row.featured .item-title-main {
  color: var(--primary-dark);
  font-weight: 700;
}


/* ─── Price Disclaimer ──────────────────────────────────────────── */
.price-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  text-align: center;
}

.footer-brand { margin-bottom: 28px; }

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand-subtitle {
  font-size: 0.92rem;
  color: var(--primary-light);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-row a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.footer-contact-row a:hover { color: var(--primary-light); }

.contact-icon { font-size: 1.1rem; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  color: #fff;
}

.social-btn:hover {
  transform: translateY(-3px);
}
.social-whatsapp:hover  { background: #25D366; }
.social-instagram:hover { background: #E4405F; }
.social-tiktok:hover    { background: #010101; }
.social-snapchat:hover  { background: #FFFC00; color: #000; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}


/* ═══════════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 20px;
  z-index: 999;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: floatBtn 3s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.05); }

@keyframes floatBtn {
  0%,100% { transform: translateY(0);    box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50%     { transform: translateY(-4px);  box-shadow: 0 14px 35px rgba(37,211,102,0.5); }
}

.whatsapp-pulse {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: #FF4B4B;
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,75,75,0.5); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}


/* ═══════════════════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header-title { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); }

.close-btn {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.close-btn:hover { background: var(--border); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 12px;
}

.cart-empty-icon { font-size: 3.5rem; }
.cart-empty-text { font-weight: 700; font-size: 1rem; }
.cart-empty-sub  { font-size: 0.85rem; text-align: center; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.qty-btn {
  width: 26px; height: 26px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.qty-btn:active { transform: scale(0.85); }
.qty-number { font-size: 0.9rem; font-weight: 800; min-width: 20px; text-align: center; }

.cart-footer { padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

.cart-summary { margin-bottom: 14px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.cart-row.total { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; }
.cart-row.total .amount { color: var(--primary); }

.cart-free-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: 15px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(196,146,42,0.35);
  transition: var(--transition);
}

.checkout-btn:active { transform: scale(0.97); }


/* ═══════════════════════════════════════════════════════════════════════
   ORDER MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-sheet {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 92vh;
  max-height: 92svh;
  overflow-y: auto;
  padding: 28px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 0 auto 24px;
}

.modal-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 24px; color: var(--text-primary); }

.form-group { margin-bottom: 18px; }
.form-label { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 7px; display: block; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: var(--transition);
  direction: rtl;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.form-textarea { min-height: 90px; resize: vertical; }

.time-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.time-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.time-option.selected {
  border-color: var(--primary);
  background: rgba(196,146,42,0.08);
}

.time-option-icon  { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.time-option-label { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.time-option-sub   { font-size: 0.72rem; color: var(--text-secondary); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option.selected { border-color: var(--primary); background: rgba(196,146,42,0.06); }

.payment-radio {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-option.selected .payment-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.payment-option.selected .payment-radio::after {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}

.payment-label { font-size: 0.9rem; font-weight: 700; }
.payment-sub   { font-size: 0.78rem; color: var(--text-secondary); }

.form-notice {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.submit-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: 17px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(196,146,42,0.35);
  transition: var(--transition);
}

.submit-order-btn:active { transform: scale(0.97); }

.btn-modal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 10px;
  transition: var(--transition);
}

.btn-modal-back:hover { border-color: var(--primary); color: var(--primary); }


/* ═══════════════════════════════════════════════════════════════════════
   SUCCESS MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-modal.open { opacity: 1; pointer-events: all; }

.success-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.success-modal.open .success-card { transform: scale(1); }

.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.success-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; color: var(--text-primary); }
.success-sub   { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(196,146,42,0.35);
}

.btn-primary:active { transform: scale(0.97); }


/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   PWA INSTALL GUIDE
   ═══════════════════════════════════════════════════════════════════════ */
.pwa-guide {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.pwa-guide-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.pwa-guide-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pwa-guide-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pwa-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.pwa-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-align: right;
}

.pwa-step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  cursor: default;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-overlay.open .lightbox-img {
  transform: scale(1);
}

.item-thumb {
  cursor: pointer;
}
