/* Two Nine (29) Restaurant - Premium Warm Design v2 */

:root {
  --cream: #f3ede4;
  --cream-soft: #faf5ec;
  --cream-light: #fffbf2;
  --cream-dark: #e8ddc7;
  --green: #507038;
  --green-dark: #3d5728;
  --green-darker: #2a3d19;
  --green-light: #6b8a4a;
  --green-bg: #eaeed8;
  --brown: #4a2418;
  --brown-light: #6b3a2a;
  --brown-soft: #8a5a3e;
  --red-accent: #b13434;
  --gold: #c89b3c;
  --gold-soft: #e6c97a;
  --text: #2a1f15;
  --text-muted: #7a6a55;
  --text-soft: #a89884;
  --shadow-sm: 0 2px 6px rgba(74, 36, 24, 0.06);
  --shadow: 0 6px 20px rgba(74, 36, 24, 0.08);
  --shadow-lg: 0 12px 36px rgba(74, 36, 24, 0.14);
  --shadow-xl: 0 20px 60px rgba(74, 36, 24, 0.22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
  background: var(--cream);
  background-image:
    radial-gradient(at 8% 4%, rgba(80, 112, 56, 0.07) 0px, transparent 50%),
    radial-gradient(at 92% 96%, rgba(177, 52, 52, 0.04) 0px, transparent 50%);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==================================================
   APP HEADER  (logo center • cart left • account right)
   ================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  padding-top: max(9px, env(safe-area-inset-top));
  background: linear-gradient(135deg, #2c241d, #191310);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.app-header .ah-side {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
}

.ah-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream-light);
  text-decoration: none;
  transition: background 0.2s var(--transition);
}
.ah-icon:hover { background: rgba(255, 255, 255, 0.22); }
.ah-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.ah-icon .points-chip {
  background: var(--gold);
  color: var(--brown);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ah-logo {
  justify-self: center;
  display: flex;
  align-items: center;
  line-height: 0;
}
.ah-logo img {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.ah-cart {
  justify-self: end;
  position: relative;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #b9842b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 155, 60, 0.45);
  transition: transform 0.15s var(--transition);
}
.ah-cart:active { transform: scale(0.94); }
.ah-cart svg { width: 22px; height: 22px; }
.ah-cart-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  background: #fff;
  color: var(--brown);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 380px) {
  .ah-logo img { height: 40px; }
  .ah-icon { min-width: 38px; height: 38px; }
}

/* ==================================================
   HERO
   ================================================== */
.hero {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(42, 31, 21, 0.25) 0%, rgba(42, 31, 21, 0.75) 100%),
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&h=900&fit=crop&q=80&auto=format') center/cover;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 20px 36px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top, rgba(80, 112, 56, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0,0,0,0.4) 0%, transparent 70%);
  pointer-events: none;
}

/* (removed cream curve at hero bottom — was showing as a white blob) */

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.8s var(--transition);
}

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

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--cream-light);
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  color: var(--cream-light);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  margin: 0;
}

.hero .tagline {
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-info {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cream-light);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.hero-chip svg { width: 15px; height: 15px; }

/* ==================================================
   CATEGORY NAV (sticky)
   ================================================== */
.cat-nav {
  position: sticky;
  /* stick right below the sticky header (logo 46 + 9 bottom pad + top pad) */
  top: calc(55px + max(9px, env(safe-area-inset-top)));
  z-index: 40;
  background: rgba(243, 237, 228, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(80, 112, 56, 0.15);
  padding: 12px 0;
  box-shadow: 0 2px 18px rgba(74, 36, 24, 0.07);
}

.cat-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.cat-nav-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--cream-light);
  border: 1.5px solid rgba(80, 112, 56, 0.2);
  color: var(--green-dark);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--transition);
  white-space: nowrap;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.cat-pill .pill-icon { font-size: 15px; }
.cat-pill .pill-count {
  background: rgba(80, 112, 56, 0.12);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s;
}
.cat-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--cream-light);
}

.cat-pill:hover {
  background: var(--green-bg);
  border-color: var(--green);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--green);
  color: var(--cream-light);
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(80, 112, 56, 0.4);
}

/* Loading skeleton (first visit, before the menu is available) */
@keyframes sk-shimmer { to { background-position: -200% 0; } }
.is-skeleton, .sk-line {
  background: linear-gradient(90deg, #ece4d8 25%, #f5efe6 37%, #ece4d8 63%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.3s ease-in-out infinite;
  border: none !important;
}
.cat-pill.is-skeleton { width: 92px; height: 38px; border-radius: 999px; }
.item-image.is-skeleton { display: block; }
.sk-line { height: 14px; border-radius: 6px; margin: 8px 0; }
.sk-line.sk-w70 { width: 70%; }
.sk-line.sk-w40 { width: 40%; }

/* ==================================================
   SEARCH BAR
   ================================================== */
.menu-search-wrap {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 0 16px;
}

.menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-light);
  border: 1.5px solid rgba(80, 112, 56, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.menu-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(80, 112, 56, 0.12), var(--shadow-sm);
}

.menu-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.menu-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  direction: rtl;
  min-width: 0;
}

.menu-search input::placeholder { color: var(--text-soft); font-weight: 500; }

/* Remove default search input "x" in Chrome/Safari */
.menu-search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  background: rgba(80, 112, 56, 0.1);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.15s;
}

.menu-search input:not(:placeholder-shown) ~ .search-clear { display: inline-flex; }
.search-clear:hover { background: var(--green); color: var(--cream-light); }

/* Hide nav + banners while searching to focus on results */
body.searching .cat-nav { display: none; }
body.searching .banners-slot { display: none; }

.search-head {
  margin-bottom: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-count {
  background: var(--green);
  color: var(--cream-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.search-empty .emoji { font-size: 56px; display: block; margin-bottom: 10px; opacity: 0.6; }
.search-empty p { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.search-empty small { font-size: 13px; opacity: 0.7; }

.item-cat-tag {
  font-size: 11px;
  background: rgba(80, 112, 56, 0.1);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 4px;
  align-self: flex-start;
}

/* ==================================================
   BANNERS / ADS
   ================================================== */
.banners-slot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
/* Snug big banner right under the header (full-bleed on phones) */
.app-header + .banners-slot { margin-top: 0; }

/* Carousel container */
.banner-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(74, 36, 24, 0.22);
  direction: ltr;  /* keep internal direction LTR for predictable translateX */
  border: 1px solid rgba(200, 155, 60, 0.25);
}

.banner-carousel .banner-content { direction: rtl; text-align: right; }

.banner-track {
  display: flex;
  transition: transform 0.55s var(--transition);
}

.banner-track > .banner {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  /* Big banner (design at ~1080 × 1080 px square, or taller) */
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: 620px;
}
.banner-carousel { cursor: grab; touch-action: pan-y; }
.banner-carousel:active { cursor: grabbing; }

/* Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
  color: var(--brown);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  z-index: 5;
  line-height: 1;
}
.banner-arrow:hover { background: var(--cream-light); transform: translateY(-50%) scale(1.1); }
.banner-arrow.prev { right: 12px; }
.banner-arrow.next { left: 12px; }

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.banner-dot {
  background: rgba(255,255,255,0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.banner-dot.active {
  background: var(--gold);
  width: 22px;
}

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark) center/cover;
  text-decoration: none;
  color: var(--cream-light);
  transition: all 0.3s var(--transition);
  isolation: isolate;
}

/* Light scrim only at the very bottom (keeps the image clear) */
.banner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* Hide the scrim + text overlay when the banner has no title/subtitle (fully-designed image) */
.banner.is-plain::before { display: none; }

.banner-track > .banner:hover { transform: none; }

/* "عرض خاص" ribbon */
.banner-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: linear-gradient(135deg, #d44a2e, #b13434);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(177, 52, 52, 0.5);
  letter-spacing: 0.3px;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.banner h3 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.banner p {
  font-size: 15px;
  opacity: 0.96;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  max-width: 80%;
}

.banner-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.banner-price {
  background: rgba(255,255,255,0.16);
  border: 1.5px solid var(--gold-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream-light);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}
.banner-price b { color: var(--gold-soft); font-size: 20px; font-weight: 900; margin: 0 2px; }

.banner-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, #b8862a 100%);
  color: var(--brown);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(200, 155, 60, 0.5);
  transition: transform 0.2s;
}

.banner:hover .banner-cta { transform: scale(1.05); }
.banner:hover .banner-ribbon { animation: dealPulse 0.8s ease; }

/* Deal badge on item cards */
.deal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #d44a2e, #b13434);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(177, 52, 52, 0.4);
  animation: dealPulse 2s ease-in-out infinite;
}

@keyframes dealPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.item-card.is-deal {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.25);
}

.item-card.is-deal .item-price {
  color: var(--red-accent);
}

.item-price .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

/* ==================================================
   MAIN
   ================================================== */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 16px 130px;
}

/* ==================================================
   CATEGORY SECTION
   ================================================== */
.cat-section {
  margin-bottom: 24px;
  scroll-margin-top: 80px;
  animation: catFadeIn 0.3s var(--transition);
}

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

.cat-header {
  background: transparent;
  color: var(--brown);
  padding: 6px 4px 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(80, 112, 56, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-header .badge-29 { display: none; }

.cat-header-text { flex: 1; display: flex; align-items: center; gap: 10px; }

.cat-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--brown);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-header .icon {
  font-size: 26px;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--green-bg);
  border-radius: 12px;
}

.cat-header .en { display: none; }

.cat-header.featured h2 { color: var(--brown); }

.cat-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: -10px 0 16px;
  font-style: italic;
  background: rgba(80, 112, 56, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 50%;
  transform: translateX(50%);
}

/* ==================================================
   ITEM CARDS
   ================================================== */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.item-card {
  background: var(--cream-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(80, 112, 56, 0.08);
  transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.item-card:hover .item-image img { transform: scale(1.05); }

@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

.item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-dark);
}

.item-image::before {
  /* Skeleton shimmer */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--cream-dark) 30%, var(--cream-soft) 50%, var(--cream-dark) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
  z-index: 0;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.item-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
  opacity: 0;
}

.item-image img.loaded { opacity: 1; }

.item-image .veg-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--green);
  color: var(--cream-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.item-content {
  padding: 10px 12px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.3;
}

.item-en { display: none; }

.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-action {
  padding: 4px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.item-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--green-dark);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.item-price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.add-btn {
  background: var(--green);
  color: var(--cream-light);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--transition);
}

.add-btn:hover {
  background: var(--green-dark);
  transform: scale(1.08);
}

.add-btn:active { transform: scale(0.92); }

.add-btn.added {
  background: var(--gold);
  color: var(--brown);
  animation: pop 0.4s var(--transition);
}

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Multi-price variant */
.prices-row {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.price-opt {
  flex: 1;
  background: var(--cream);
  border: 1.5px solid rgba(80, 112, 56, 0.2);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--transition);
  font-family: inherit;
}

.price-opt:hover {
  background: var(--green);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(80, 112, 56, 0.3);
}

.price-opt:hover .lbl { color: var(--cream-light); }
.price-opt:hover .val { color: var(--cream-light); }

.price-opt .lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  transition: color 0.2s;
}

.price-opt .val {
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
  transition: color 0.2s;
}

.price-opt .val small {
  font-size: 10px;
  font-weight: 600;
}

/* Add-ons cards (no image) - compact list style */
.items-list { display: flex; flex-direction: column; gap: 8px; }
.items-list .item-card { flex-direction: row; align-items: center; padding: 12px 16px; }
.items-list .item-image { display: none; }
.items-list .item-content { padding: 0; flex: 1; gap: 2px; }
.items-list .item-action { padding: 0; margin: 0; }
.items-list .add-btn { width: 36px; height: 36px; font-size: 20px; }
.items-list .item-price { font-size: 17px; }

/* ==================================================
   CART FAB
   ================================================== */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream-light);
  border: 3px solid var(--cream-light);
  border-radius: 999px;
  padding: 14px 22px 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(80, 112, 56, 0.45);
  z-index: 60;
  transition: all 0.3s var(--transition);
  animation: fabBounce 0.5s var(--transition);
}

@keyframes fabBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.cart-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 44px rgba(80, 112, 56, 0.6);
}

.cart-fab .badge {
  background: var(--gold);
  color: var(--brown);
  border-radius: 999px;
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  padding: 0 7px;
}

.cart-fab .total {
  color: var(--gold-soft);
  font-size: 15px;
  border-right: 1px solid rgba(255,255,255,0.25);
  padding-right: 12px;
}

.cart-fab.hidden { display: none; }

/* ==================================================
   CART MODAL
   ================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 21, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeBack 0.3s var(--transition);
}

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

.modal-backdrop.open { display: flex; }

.cart-modal {
  background: var(--cream);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 80px rgba(0,0,0,0.4);
  animation: slideUp 0.4s var(--transition);
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 600px) {
  .modal-backdrop { align-items: center; }
  .cart-modal { border-radius: 28px; max-height: 86vh; }
}

.cart-head {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream-light);
  padding: 18px 22px;
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  color: var(--cream-light);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all 0.2s;
}

.close-btn:hover { background: rgba(255,255,255,0.32); transform: rotate(90deg); }

/* Single scroll area: items + summary + form scroll together,
   so the items are always visible at the top when the cart opens */
.cart-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-body {
  flex: 0 0 auto;
  padding: 16px 22px 6px;
}

/* Section label above the items */
.cart-body::before {
  content: 'الأصناف المختارة';
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(80, 112, 56, 0.12);
}
.cart-body:has(.empty-cart)::before { display: none; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--cream-light);
  border: 1px solid rgba(80, 112, 56, 0.12);
  border-radius: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.cart-item:last-child { margin-bottom: 0; }

.cart-item-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: var(--cream-dark) center/cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--brown);
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 12px;
  font-weight: 800;
  color: var(--red-accent);
}

.cart-item-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cart-edit-btn {
  border: 1.5px solid var(--border, #e6ddd0);
  background: #fff;
  color: var(--green-dark, #3d5728);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cart-edit-btn:hover { border-color: var(--green, #507038); background: var(--green-bg, #f0f4ea); }

.cart-item-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}
.cart-addon-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-dark);
  background: rgba(80, 112, 56, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ==================================================
   ADD-ON SUGGESTION MODAL
   ================================================== */
.addon-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 21, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.addon-backdrop.open { opacity: 1; pointer-events: auto; }
.addon-modal {
  background: var(--cream-light, #fff);
  width: 100%;
  max-width: 460px;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
.addon-backdrop.open .addon-modal { transform: translateY(0); }
@media (min-width: 560px) {
  .addon-backdrop { align-items: center; }
  .addon-modal { border-radius: 22px; }
}
.addon-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dark, #ece3d6);
  color: var(--brown, #4a2418);
  font-size: 16px;
  cursor: pointer;
}
.addon-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-left: 40px;
}
.addon-thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--cream-dark, #ece3d6) center/cover no-repeat;
  flex-shrink: 0;
}
.addon-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--brown, #4a2418);
}
.addon-sub {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark, #3d5728);
}
.addon-hint {
  font-size: 14px;
  font-weight: 800;
  color: var(--brown, #4a2418);
  margin: 6px 0 10px;
}
.addon-list { display: flex; flex-direction: column; gap: 9px; }
.addon-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 10px 14px;
  border: 2px solid var(--border, #e6ddd0);
  border-radius: 14px;
  background: #fff;
  transition: all 0.15s ease;
  text-align: right;
}
.addon-opt.on { border-color: var(--green, #507038); background: var(--green-bg, #f0f4ea); }
.addon-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addon-opt-name { font-weight: 800; color: var(--brown, #4a2418); font-size: 14px; }
.addon-opt-price { font-weight: 800; color: var(--green-dark, #3d5728); font-size: 12px; }
.addon-step {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 2px solid var(--border, #e6ddd0);
  border-radius: 11px;
  padding: 2px;
  flex-shrink: 0;
  background: #fff;
}
.addon-step button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cream-dark, #ece3d6);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--brown, #4a2418);
  cursor: pointer;
  line-height: 1;
}
.addon-step button:active { transform: scale(0.92); }
.addon-step-val { min-width: 26px; text-align: center; font-weight: 900; font-size: 15px; color: var(--brown, #4a2418); }
.addon-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.addon-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--border, #e6ddd0);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}
.addon-qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream-dark, #ece3d6);
  border-radius: 9px;
  font-size: 20px;
  font-weight: 900;
  color: var(--brown, #4a2418);
  cursor: pointer;
}
.addon-qty-val { min-width: 30px; text-align: center; font-weight: 900; font-size: 16px; }
.addon-add {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--green, #507038), var(--green-dark, #3d5728));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(80, 112, 56, 0.35);
}
.addon-add:active { transform: scale(0.98); }

.cart-item-total {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--green-dark);
  text-align: left;
  white-space: nowrap;
}
.cart-item-total small { font-size: 11px; font-weight: 600; color: var(--text-muted); display: block; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--cream);
  border: 1.5px solid rgba(80, 112, 56, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.qty-ctrl button {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 19px;
  font-weight: 900;
  color: var(--green-dark);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.qty-ctrl button:hover { background: rgba(80, 112, 56, 0.15); }
.qty-ctrl .qty { min-width: 30px; text-align: center; font-weight: 900; color: var(--brown); font-size: 15px; }

.empty-cart {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}

.empty-cart svg {
  width: 90px;
  height: 90px;
  opacity: 0.35;
  margin-bottom: 12px;
}

.empty-cart p { font-size: 16px; font-weight: 600; }

/* Cart summary */
.cart-summary {
  background: var(--cream-light);
  border-top: 8px solid var(--cream);
  padding: 18px 22px;
  flex: 0 0 auto;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.sum-row.total {
  font-size: 22px;
  font-weight: 900;
  color: var(--green-dark);
  border-top: 2px dashed rgba(80, 112, 56, 0.25);
  padding-top: 10px;
  margin-top: 10px;
}

/* === Loyalty points redemption card === */
.points-card {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.14), rgba(200, 155, 60, 0.05));
  border: 1.5px solid rgba(200, 155, 60, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: all 0.25s var(--transition);
}
.points-card.active {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200, 155, 60, 0.3);
}

.points-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.points-balance {
  display: flex;
  align-items: center;
  gap: 12px;
}
.points-star { font-size: 30px; }
.points-balance-num { font-size: 17px; font-weight: 900; color: var(--brown); }
.points-balance-sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.points-balance-sub b { color: #8a6a2a; font-weight: 900; }

/* Toggle switch */
.points-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; cursor: pointer; }
.points-switch input { opacity: 0; width: 0; height: 0; }
.points-switch-slider {
  position: absolute; inset: 0;
  background: rgba(122, 106, 85, 0.35);
  border-radius: 999px;
  transition: 0.25s;
}
.points-switch-slider::before {
  content: '';
  position: absolute;
  height: 24px; width: 24px;
  right: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.points-switch input:checked + .points-switch-slider { background: var(--gold); }
.points-switch input:checked + .points-switch-slider::before { transform: translateX(-22px); }

.points-applied {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(200, 155, 60, 0.4);
  font-size: 13px;
  font-weight: 800;
  color: #8a6a2a;
}
.points-applied b { font-size: 15px; }

.points-discount-row { color: #8a6a2a; font-weight: 800; }
.points-discount-row .sum-points-discount { color: #8a6a2a; font-weight: 900; }

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brown);
}

.field input, .field textarea, .field select {
  background: var(--cream);
  border: 1.5px solid rgba(80, 112, 56, 0.25);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  direction: rtl;
  transition: all 0.2s var(--transition);
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(80, 112, 56, 0.15);
  background: var(--cream-light);
}

.field textarea { resize: vertical; min-height: 60px; }

.order-type {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.order-type label {
  flex: 1;
  padding: 12px;
  border: 1.5px solid rgba(80, 112, 56, 0.25);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: var(--cream);
  transition: all 0.2s var(--transition);
  font-weight: 800;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.order-type input { display: none; }
.order-type label:has(input:checked) {
  background: var(--green);
  color: var(--cream-light);
  border-color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(80, 112, 56, 0.3);
}

.checkout-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--transition);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.checkout-btn:disabled {
  background: linear-gradient(135deg, #b8b8b8 0%, #969696 100%);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.min-order-warn {
  text-align: center;
  font-size: 13px;
  color: var(--red-accent);
  font-weight: 800;
  margin: 4px 0;
  padding: 8px;
  background: rgba(177, 52, 52, 0.08);
  border-radius: 10px;
}

/* ==================================================
   TOAST
   ================================================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: var(--cream-light);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast::before {
  content: '✓';
  background: var(--green);
  color: var(--cream-light);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream-light);
  padding: 16px 20px 12px;
  margin-top: 28px;
  text-align: center;
}

.site-footer .foot-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: var(--cream-light);
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--gold);
  margin: 0 auto 6px;
}

.site-footer .foot-brand {
  font-size: 14px;
  font-weight: 900;
  color: var(--cream-light);
  margin-bottom: 2px;
}

.site-footer .foot-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  opacity: 0.9;
  margin-bottom: 10px;
}

.foot-info {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 10px;
}

.foot-info span,
.foot-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
  color: var(--cream-light);
  text-decoration: none;
}

.foot-phone-link { font-weight: 700; transition: opacity 0.2s; }
.foot-phone-link:hover { opacity: 1; text-decoration: underline; }

.foot-info svg { width: 14px; height: 14px; }

.foot-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
}
.foot-wa:hover { transform: translateY(-2px); }
.foot-wa svg { width: 15px; height: 15px; }

.foot-copy {
  font-size: 10.5px;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 10px;
  margin-top: 4px;
  line-height: 1.6;
}

.foot-credit {
  display: block;
  direction: ltr;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.foot-credit a {
  color: var(--gold-soft);
  text-decoration: none;
}
.foot-credit a:hover { text-decoration: underline; }

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 640px) {
  .hero { min-height: 240px; padding: 22px 16px 26px; }
  .hero-logo { width: 84px; height: 84px; }
  .hero h1 { font-size: 26px; }
  .hero .tagline { font-size: 11px; letter-spacing: 4px; }
  .hero-chip { font-size: 12px; padding: 6px 11px; }
  .cat-header { padding: 4px 2px 10px; margin-bottom: 12px; }
  .cat-header h2 { font-size: 19px; }
  .cat-header .icon { width: 36px; height: 36px; font-size: 22px; }
  .items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .item-name { font-size: 14px; }
  .item-price { font-size: 15px; }
  .add-btn { width: 34px; height: 34px; font-size: 20px; }
  .item-content { padding: 8px 10px 4px; }
  .item-action { padding: 2px 10px 10px; }
  .cat-note { font-size: 12px; }
  main { padding: 18px 12px 120px; }
  .cart-fab { padding: 12px 18px; font-size: 14px; bottom: 18px; left: 18px; }
  .menu-search-wrap { padding: 0 12px; }
  .menu-search { padding: 8px 12px; }
  .menu-search input { font-size: 14px; }
}

/* Stagger animation delay for cards */
.item-card:nth-child(1)  { animation-delay: 0.02s; }
.item-card:nth-child(2)  { animation-delay: 0.06s; }
.item-card:nth-child(3)  { animation-delay: 0.10s; }
.item-card:nth-child(4)  { animation-delay: 0.14s; }
.item-card:nth-child(5)  { animation-delay: 0.18s; }
.item-card:nth-child(6)  { animation-delay: 0.22s; }
.item-card:nth-child(7)  { animation-delay: 0.26s; }
.item-card:nth-child(8)  { animation-delay: 0.30s; }
.item-card:nth-child(9)  { animation-delay: 0.34s; }
.item-card:nth-child(10) { animation-delay: 0.38s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* "See all offers" link under the carousel */
.all-offers-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  padding: 8px;
  border-radius: 999px;
  transition: all 0.2s;
}
.all-offers-link:hover { background: rgba(80,112,56,0.08); color: var(--green); }

/* Sub-section heading inside a merged category */
.menu-subsection {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
  margin: 14px 2px 2px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--green-bg), transparent);
  border-right: 4px solid var(--green);
  border-radius: 8px;
}
.menu-subsection:first-child { margin-top: 0; }
.items-list .menu-subsection { grid-column: auto; }

/* ==================================================
   BOTTOM NAV (app-like) — mobile only
   ================================================== */
.bottom-nav {
  display: none;   /* hidden on desktop; shown on mobile via media query below */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: var(--cream-light);
  border-top: 1px solid rgba(80,112,56,0.15);
  box-shadow: 0 -4px 20px rgba(74,36,24,0.1);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bnav-item {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  border-radius: 12px;
  transition: all 0.2s var(--transition);
  position: relative;
}
.bnav-item svg { width: 24px; height: 24px; }
.bnav-item.active { color: var(--green-dark); }
.bnav-item.active svg { transform: translateY(-1px); }
.bnav-item:active { background: rgba(80,112,56,0.08); }

.bnav-cart-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: 4px;
  background: var(--red-accent);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--cream-light);
}

/* Show the bottom nav + make room for it on mobile/tablet only */
@media (max-width: 820px) {
  .bottom-nav { display: flex; }
  main { padding-bottom: 110px; }
  .site-footer { margin-bottom: 64px; }
  .cart-fab { bottom: 82px; }
}

/* ==================================================
   LOGO LOADER (pulsing 29 logo)
   ================================================== */
.logo-loader {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 40px 20px;
}
.ll-badge {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.ll-badge::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid rgba(80, 112, 56, 0.15);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
}
.ll-badge img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: var(--cream-light);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(80, 112, 56, 0.2);
  animation: logoPulse 1.3s ease-in-out infinite;
}
.logo-loader p { color: var(--text-muted); font-weight: 700; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.75; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* ==================================================
   HOME OFFERS (stacked cards like the offers page)
   ================================================== */
.home-offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card {
  display: block;
  background: var(--cream-light);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 34px rgba(74,36,24,0.13);
  border: 1px solid rgba(200,155,60,0.25);
  transition: transform 0.25s var(--transition), box-shadow 0.25s var(--transition);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(74,36,24,0.22); }

.offer-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 560;
  background: var(--cream-dark) center/cover;
}
.offer-ribbon {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #d44a2e, #b13434);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(177,52,52,0.5);
}
.offer-price-tag {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(42,31,21,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream-light);
  border: 1.5px solid var(--gold-soft);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}
.offer-price-tag b { color: var(--gold-soft); font-size: 19px; }
.offer-body { padding: 16px 20px 18px; }
.offer-body h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--brown);
  margin: 0 0 4px;
  line-height: 1.3;
}
.offer-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.offer-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream-light);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(80,112,56,0.4);
  transition: transform 0.2s;
}
.offer-card:hover .offer-cta { transform: scale(1.04); }
@media (max-width: 480px) { .offer-body h2 { font-size: 19px; } }

/* ==================================================
   PREVIOUS ORDERS (home page, logged-in)
   ================================================== */
.prev-orders {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.prev-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.prev-orders-head h2 { font-size: 18px; font-weight: 900; color: var(--brown); margin: 0; }
.prev-orders-all { font-size: 13px; font-weight: 800; color: var(--green-dark); text-decoration: none; }
.prev-orders-all:hover { text-decoration: underline; }

.prev-orders-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.prev-orders-scroll::-webkit-scrollbar { display: none; }

.prev-order-card {
  flex: 0 0 220px;
  background: var(--cream-light);
  border: 1px solid rgba(80,112,56,0.12);
  border-radius: 16px;
  padding: 14px;
  text-align: right;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prev-order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(80,112,56,0.3); }
.prev-order-top { display: flex; align-items: center; justify-content: space-between; }
.prev-order-id { font-family: 'SF Mono', monospace; font-size: 12px; font-weight: 800; color: var(--text-muted); }
.prev-order-items {
  font-size: 14px; font-weight: 700; color: var(--brown);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.prev-order-foot { display: flex; align-items: center; justify-content: space-between; }
.prev-order-date { font-size: 12px; color: var(--text-muted); }
.prev-order-reorder {
  font-size: 12px; font-weight: 900; color: var(--cream-light);
  background: var(--green); padding: 4px 10px; border-radius: 999px;
}

/* Order detail modal items */
.od-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.od-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed rgba(80,112,56,0.18);
}
.od-item:last-of-type { border-bottom: none; }
.od-item-name { font-size: 15px; font-weight: 800; color: var(--brown); }
.od-item-name small { color: var(--text-muted); font-weight: 600; }
.od-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.od-item-price { font-size: 15px; font-weight: 900; color: var(--green-dark); white-space: nowrap; }
.od-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 2px dashed rgba(80,112,56,0.25);
  font-size: 16px; font-weight: 700; color: var(--brown);
}
.od-total b { font-size: 20px; color: var(--green-dark); }
