/* -------- 0) Resets to stop "weird" mobile shifts -------- */
* { box-sizing: border-box; }

/* Desktop: prevent horizontal scroll */
@media (min-width: 1025px) {
  html, body { width: 100%; overflow-x: hidden; }
}

/* Mobile: allow horizontal scroll for category navigation */
@media (max-width: 1024px) {
  html, body { 
    width: 100%; 
    overflow-x: visible !important; 
    position: relative;
  }
}

@font-face {
  font-family: Parslay;
  src: url(/fonts/Parslay.ttf) format('truetype');
  font-display: swap;
}

@font-face {
  font-family: Billmake;
  src: url(/fonts/Billmake-Regular.otf) format('opentype');
  font-display: swap;
}

/* ===== Brand palette (from your PDF) ===== */
:root{
  --cream:#f0eee7;
  --taupe:#cabeac;       /* Main Course + cycle color 3 */
  --soft-yellow:#efa25f; /* cycle color 4 */
  --amber:#efc785;
  --coral:#e46f60;       /* Appetizers + cycle color 2 */
  --olive:#3b4b30;       /* Breakfast + cycle color 1 */
  --ink:#26332D;
  --comfort:#ECE6DB; /* card bg like mockup */

  --bg: var(--cream);
  --card: #EFEAE0;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
}

html,body{background:var(--cream);color:var(--ink);font-family: Billmake, system-ui, sans-serif;line-height: 1.6;}
img{max-width:100%;height:auto}

h1, h2, h3 {
  font-family: Parslay, serif;
  color: var(--olive);
  letter-spacing: .2px;
}

/* ===== Global responsive container ===== */
.container{max-width:1100px;margin-inline:auto;padding-inline:16px}

/* -------- 1) Header: NOT sticky -------- */
.site-header{
  position: static !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 5;
}
/* remove any offsets added for a fixed header */
body, main, .page { padding-top: 0 !important; margin-top: 0 !important; }

.hdr{display:flex; align-items:center; justify-content:space-between; padding:10px 22px;}
.brand img{height: 96px; display:block;}          /* bigger logo on desktop */

.hdr-actions{display:flex; align-items:center; gap:12px;}
.pill{
  appearance:none; background:transparent; color:var(--olive);
  border:2px solid var(--olive); border-radius:999px; padding:8px 14px; font-weight:700; cursor:pointer;
}
.pill:focus{outline:none; box-shadow:0 0 0 3px rgba(59,75,48,.18);}

.halal-chip{
  display:inline-flex; align-items:center; gap:8px;
  background:transparent; color:var(--olive);
  border:2px solid var(--olive); border-radius:999px; padding:8px 14px; font-weight:700;
}
.halal-chip img{width:18px; height:18px; display:block;}

@media (max-width: 992px){
  .brand img{height: 76px;}
}
@media (max-width: 640px){
  .site-header{height: 74px;}
  .brand img{height: 64px;}
  .pill, .halal-chip{padding:6px 12px;}
}

/* make sure NOTHING paints under header */
.site-header::before, .site-header::after{content:none!important; background:none!important;}

/* Hero Styles */
.hero {
  height: 520px;
  background: url('/images/hero.jpg') center right/cover no-repeat;
  position: relative;
}

.hero-inner {
  position: relative;
  height: 100%;
}

.hero-lockup {
  position: absolute;
  left: 20px;
  bottom: 24px;
  color: var(--olive);
  display: grid;
  gap: 8px;
}

/* HERO title — exact fonts */
.hero-title .line-1{
  font-family:'Parslay', serif !important;
  font-size:38px; letter-spacing:.04em; line-height:1.05;
}
.hero-title .line-2{
  font-family:'Billmake', sans-serif !important;
  font-size:38px; letter-spacing:.10em; text-transform:uppercase;
}

.sprout {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  clip-path: ellipse(70% 50% at 50% 50%);
  margin-bottom: 6px;
}

@media(max-width: 768px) {
  .hero {
    height: 400px;
  }
  .hero-title .line-1, .hero-title .line-2{ 
    font-size:30px; 
  }
}

/* Allergens Legend */
.allergens-legend {
  background: #f0eee7;
  padding: 22px 0;
  text-align: center;
}

.allergens-legend h3 {
  font-size: 24px; /* 50% larger than default h3 */
  margin-bottom: 8px;
}

.allergens-legend p {
  font-size: 18px; /* 50% larger than default p */
  margin-bottom: 12px;
}

.legend-row {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.legend-row li {
  display: grid;
  justify-items: center;
  font-size: 18px; /* 50% larger: was 12px, now 18px */
  color: #8b8f8d;
}

.legend-row .chip {
  width: 63px; /* 50% larger: was 42px, now 63px */
  height: 63px; /* 50% larger: was 42px, now 63px */
  border-radius: 999px;
  background: var(--olive);
  display: grid;
  place-items: center;
}

.legend-row img {
  width: 33px; /* 50% larger: was 22px, now 33px */
  height: 33px; /* 50% larger: was 22px, now 33px */
  filter: invert(1);
}

.legend-row span {
  margin-top: 6px;
}

/* -------- 2) Category pills -------- */
/* Mobile-first: horizontal scroll with side-by-side layout */
.menu-tabs{
  width:100%;
  margin:14px auto 8px;
  padding:0 16px;
  display:flex;
  justify-content:flex-start; /* Start alignment for mobile so first item is reachable */
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  max-width:1100px;
}
.menu-tab{ 
  flex:0 0 auto;
  text-align:center;
  padding:10px 18px;
  border-radius:999px;
  border:none;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.05);
  scroll-snap-align:start;
  transition: all 0.3s ease;
  transform: scale(1);
}

.menu-tab:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.menu-tab.variant-olive{  background:var(--olive);  color:#fff; }
.menu-tab.variant-coral{  background:var(--coral);  color:#fff; }
.menu-tab.variant-taupe{  background:var(--taupe);  color:var(--olive); }
.menu-tab.variant-yellow{ background:var(--soft-yellow); color:#fff; }

/* Active state with enhanced styling - unique color */
.menu-tab.is-active{ 
  background: #2c5530 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transform: scale(1);
}

.menu-tab.is-active:hover {
  transform: scale(1.05);
  background: #234a26 !important;
}

/* Desktop/tablet: smooth horizontal scroller with centering */
@media (min-width:769px){
  .menu-tabs{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    justify-content:center; /* Center on desktop where space allows */
    padding:8px 24px;
    /* soft edge fade so pills feel native */
    -webkit-mask: linear-gradient(90deg, rgba(0,0,0,0), #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0));
            mask: linear-gradient(90deg, rgba(0,0,0,0), #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0));
  }
  .menu-tab{ scroll-snap-align:start; width:auto; }
  .menu-tabs::-webkit-scrollbar{ height:6px; }
  .menu-tabs::-webkit-scrollbar-thumb{ background:#ddd; border-radius:999px; }
}

/* Desktop fix for clipped first chip */
@media (min-width: 1024px) {
  .menu-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
    /* Remove the mask that clips the first chip */
    -webkit-mask: none;
    mask: none;
    /* Ensure no fade elements overlap */
    position: relative;
    z-index: 1;
  }
  
  .menu-tabs .categories-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  /* Active chip underline styling */
  .menu-tab {
    position: relative;
  }
  
  .menu-tab.is-active::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -6px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
  }
  
  /* Disable any fade elements that might overlap */
  .fade-left,
  .fade-right {
    pointer-events: none;
    z-index: 0;
  }
}

/* Expandable description styles - desktop */
.expandable-description {
  margin: 0;
  position: relative; /* Required for hidden measurement element */
}

.view-more-toggle {
  font-family: 'Billmake', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive, #3b4b30);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  margin: 6px 0 0;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.view-more-toggle:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.view-more-toggle:focus {
  outline: 2px solid var(--olive, #3b4b30);
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------- 3) Item cards: responsive and stable -------- */
.menu-list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-auto-flow:row; gap:24px;
  max-width:1100px; margin-inline:auto; padding-inline:16px;
}
.menu-card{
  display:grid;
  grid-template-columns:176px 1fr auto;
  align-items:stretch;
  gap:24px; padding:22px;
  background:var(--comfort, #ECE6DB);
  border-radius:14px; box-shadow:0 2px 0 rgba(0,0,0,.03);
  min-height:152px;
}
.thumb-wrap{ position:relative; align-self:stretch; width:176px; height:152px; border-radius:14px; overflow:hidden; }
.thumb-inner{ position:absolute; inset:0; width:100%; height:100%; }
.menu-thumb{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.menu-meta{ align-self:center; min-width:0; }
.menu-title{ font-family:'Billmake',sans-serif; font-weight:700; font-size:32px; line-height:1.15; margin:0 0 10px; color:var(--olive,#3b4b30); overflow-wrap:anywhere; }
.menu-desc{  font-family:'Billmake',sans-serif; font-size:13px; line-height:1.5; color:#6d756f; margin:0; }
.menu-price{ grid-column:3; grid-row:1; justify-self:end; align-self:start; font-family:'Billmake',sans-serif; font-weight:700; font-size:28px; color:var(--olive,#3b4b30); }


/* nuke all old circle styles */
.legend-row .chip,
.legend-row li::before,
.legend-row li::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  content: none !important;
}

/* layout + image only */
.legend-row { display:flex; gap:26px; justify-content:center; flex-wrap:wrap; }
.legend-row li { display:grid; justify-items:center; gap:6px; }
.legend-row span { font-size:12px; color:#8b8f8d; }

/* your PNGs as-is (no filters) */
.allergen-img,
.legend-row img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  display: block;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.menu-alls{ grid-column:3; grid-row:1; justify-self:end; align-self:end; display:flex; gap:12px; margin-top:auto; }
.menu-alls img{ width:32px; height:32px; object-fit:contain; }

.admin-allergens img { 
  width:22px; 
  height:22px; 
  object-fit:contain; 
  filter:none !important; 
}

/* ====== ADMIN ALLERGEN PICKER ====== */
.admin-allergens{ display:flex; flex-wrap:wrap; gap:10px; }
.allergen-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; border:2px solid var(--olive);
  background:#fff; color:var(--olive); cursor:pointer;
}
.allergen-chip img{
  width: 20px; height: 20px; object-fit: contain; filter:none !important;
}
.allergen-chip input{ display:none; }
.allergen-chip.is-on{ background:var(--cream); }

/* Compact horizontal rows on mobile */
@media (max-width: 480px) {
  .menu-list{ 
    max-width: 100% !important;
    padding: 0 !important;
    gap: 8px !important;
  }
  
  .menu-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    width: calc(100% - 24px) !important;
    margin: 8px auto !important;        /* centers the card */
    max-width: 95% !important;           /* optional: prevents touching edges */
    box-sizing: border-box !important;
    background: var(--comfort, #ECE6DB) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 0 rgba(0,0,0,.03) !important;
    min-height: auto !important;
  }

  /* Image - left side, fixed small size */
  .menu-card .thumb-wrap {
    position: relative !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  
  .menu-card .thumb-inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  .menu-card .menu-thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Middle column - title + description stacked */
  .menu-card .menu-meta {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  .menu-card .menu-title {
    font-family: 'Billmake', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
    color: var(--olive, #3b4b30) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  
  .menu-card .menu-desc {
    font-family: 'Billmake', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #6d756f !important;
    margin: 0 !important;
  }
  
  .menu-card .menu-desc.line-clamped {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }
  
  .menu-card .menu-desc.expanded {
    display: block !important;
  }

  /* Right column - price center aligned */
  .menu-card .menu-price {
    font-family: 'Billmake', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--olive, #3b4b30) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .allergen-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin-top: 4px !important;
  }
  
  .allergen-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    background: rgba(255,255,255,0.7) !important;
  }
  
  /* Expandable description styles */
  .expandable-description {
    margin: 0 !important;
    position: relative !important; /* Required for hidden measurement element */
  }
  
  .view-more-toggle {
    font-family: 'Billmake', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--olive, #3b4b30) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 2px 0 !important;
    margin: 4px 0 0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
  }
  
  .view-more-toggle:hover {
    text-decoration: underline !important;
    opacity: 0.8 !important;
  }
  
  .view-more-toggle:focus {
    outline: 2px solid var(--olive, #3b4b30) !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
  }
  
  .allergen-badge img {
    width: 10px !important;
    height: 10px !important;
  }

  /* RTL support for Arabic */
  [dir="rtl"] .menu-card .menu-title {
    text-align: right !important;
  }
  
  [dir="rtl"] .menu-card .menu-desc {
    text-align: right !important;
  }

  /* Ensure Arabic text flows properly */
  [dir="rtl"] .menu-card .menu-meta {
    direction: rtl !important;
  }
  
  /* Allergen badges alignment for RTL */
  [dir="rtl"] .allergen-badges {
    justify-content: flex-end !important;
  }
}

/* Optional: prevent accidental horizontal scroll anywhere - desktop only */
@media (min-width: 1025px) {
  section, header, footer, .hero { overflow-x: clip; }
}

/* Mobile: allow category section to overflow */
@media (max-width: 1024px) {
  section, div, main, .container { 
    overflow-x: visible !important;
  }
  
  /* Specifically ensure category area allows full scroll */
  section:has(.category-strip-wrap),
  div:has(.category-strip-wrap) {
    overflow-x: visible !important;
    max-width: 100vw !important;
  }
}

/* === Allergens: slightly larger text + icons, keep current layout === */
.allergens-legend h3{ font-size:18px; font-family: 'Billmake', sans-serif; }          /* was ~16px */
.allergens-legend p{  font-size:13px; }
.legend-row img{ width:52px !important; height:52px !important; }  /* was ~44px */
.legend-row span{ font-size:13px; }

/* Mobile */
@media (max-width:768px){
  .allergens-legend h3{ font-size:16px; }
  .allergens-legend p{  font-size:12px; }
  .legend-row img{ width:40px !important; height:40px !important; } /* was ~36px */
  .legend-row span{ font-size:12px; }
}

/* --- Header overlay stays transparent & clickable --- */
.site-header{ position:absolute; top:16px; left:0; right:0; z-index:30; background:transparent !important; }
.header-inner{ max-width:1100px; margin:0 auto; padding:0 16px; display:flex; align-items:center; justify-content:space-between; }
.header-actions{ display:flex; align-items:center; gap:12px; }

/* --- Pill buttons: hit area + icon alignment --- */
.pill{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 20px;                      /* << more breathing room */
  border-radius:999px; border:2px solid var(--olive,#3b4b30);
  background:transparent; color:var(--olive,#3b4b30);
  font-weight:700; line-height:1; transition:.18s ease;
}
.pill .icon{ width:18px; height:18px; display:inline-block; }

/* Specific tweaks (optional if you want a tiny difference) */
.lang-trigger{ padding:10px 16px; }       /* EN */
.halal-btn{ padding:10px 20px; }          /* Halal button */

/* Mobile-first: icon only for halal button */
@media (max-width:768px){
  .halal-btn{ padding:10px 12px; }        /* Smaller padding on mobile */
  .halal-btn .halal-text{ display:none; } /* Hide text on mobile */
  .halal-btn .icon{ width:16px; height:16px; } /* Smaller icon on mobile */
}

/* Desktop: show both icon and text */
@media (min-width:769px){
  .halal-btn .halal-text{ display:inline; }
  .halal-btn .icon{ width:18px; height:18px; }
}

/* Hover / active (mobile tap) */
@media (hover:hover){
  .pill:hover{ background:var(--olive,#3b4b30); color:#fff; border-color:var(--olive,#3b4b30); }
}
@media (max-width:768px){
  .pill:hover,.pill:active{ background:var(--olive,#3b4b30); color:#fff; border-color:var(--olive,#3b4b30); }
}

/* --- Language dropdown: themed + positioned under EN --- */
.lang{ position:relative; }               /* wrapper around EN + menu */
.lang-menu{
  position:absolute; top:calc(100% + 8px); right:0;
  display:none;                           /* toggled by .is-open */
  min-width:180px; padding:8px;
  background:var(--cream,#f0eee7);
  border:1px solid rgba(59,75,48,.25);
  border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.10);
  z-index:40;
}
.lang-menu.is-open{ display:block; }

.lang-menu [role="menuitem"], .lang-menu button{
  width:100%; display:flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:999px;
  background:transparent; border:0; color:var(--olive,#3b4b30);
  font-weight:700; transition:.18s;
}
.lang-menu [role="menuitem"]:hover, .lang-menu button:hover{
  background:var(--olive,#3b4b30); color:#fff;
}
.lang-menu [aria-current="true"], .lang-menu .is-active{
  background:var(--taupe,#cabeac); color:var(--olive,#3b4b30);
}

/* Ensure nothing in the hero blocks clicks */
.hero{ position:relative; z-index:1; }

.page{ padding:48px 0; background:var(--comfort,#ECE6DB); }
.container{ max-width:1100px; margin:0 auto; padding:0 16px; }
.page-title{
  font-family:'Billmake',sans-serif; font-weight:700; font-size:36px;
  color:var(--olive,#3b4b30); margin:0 0 12px; text-align:left;
}
.page-note{ font-family:'Billmake',sans-serif; font-size:15px; color:#6d756f; margin:0 0 18px; }
.page-list{ margin:0 0 18px 18px; color:var(--olive,#3b4b30); font-family:'Billmake',sans-serif; }
@media (max-width:768px){ .page{ padding:28px 0; } .page-title{ font-size:28px; } .page-note{ font-size:14px; } }

/* ==== Transparent header (no fill, no blur, no shadow) ==== */
.site-header,
.site-header::before,
.site-header::after,
header[role="banner"]{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
}

/* keep header clickable over the hero */
.site-header{ z-index: 30; }

/* ====== ALLERGEN BADGES (under description) ====== */
.allergen-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(59, 75, 48, 0.08);
  border: 1px solid rgba(59, 75, 48, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--olive, #3b4b30);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.allergen-badge:hover {
  background: rgba(59, 75, 48, 0.12);
  border-color: rgba(59, 75, 48, 0.3);
}

.allergen-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.allergen-label {
  font-family: 'Billmake', sans-serif;
  line-height: 1;
}

/* ====== OUT OF STOCK OVERLAY & DIMMING ====== */
.menu-card-out-of-stock {
  opacity: 0.75;
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  z-index: 10;
}

.out-of-stock-badge {
  background-color: #e46f60;
  color: white;
  font-family: 'Billmake', sans-serif;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(228, 111, 96, 0.3);
  white-space: nowrap;
  display: block;
}

.menu-thumb-dimmed {
  filter: brightness(0.7) contrast(0.9);
}

/* ====== RESPONSIVE MOBILE LAYOUT ====== */
.desktop-menu-list {
  display: grid;
}

.mobile-menu-container {
  display: none;
}

/* Responsive adjustments for mobile allergen badges */
@media (max-width: 768px) {
  .allergen-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .allergen-badge img {
    width: 14px;
    height: 14px;
  }
}

/* ====== CATEGORY STRIP SCROLLING NAVIGATION ====== */
.category-strip-wrap{position:relative; max-width:100%}
.category-strip{
  display:flex; flex-wrap:nowrap; gap:.75rem;
  overflow-x:auto !important; overflow-y:hidden;
  -webkit-overflow-scrolling:touch; scroll-behavior:smooth;
  white-space:nowrap; max-width:100%; padding:0 12px;
  scroll-snap-type:x proximity; scroll-padding-inline:12px;
}
.category-strip *{flex:0 0 auto}
.category-strip::-webkit-scrollbar{height:8px}
.cat-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border:none; border-radius:999px;
  background:rgba(255,255,255,.9); box-shadow:0 2px 8px rgba(0,0,0,.15);
  z-index:9999; cursor:pointer; line-height:34px; text-align:center;
}
.cat-arrow.left{left:4px}
.cat-arrow.right{right:4px}
.cat-arrow[disabled]{opacity:.35; pointer-events:none}
.category-btn{scroll-snap-align:center}

/* ===== Tablet-only: make cards horizontal & compact ===== */
@media (min-width:768px) and (max-width:1024px){
  /* one column list on tablet */
  .menu-list { display:block; }

  .menu-card {
    display:flex; align-items:center; gap:12px;
    padding:12px 16px; min-height:88px;
  }

  /* small left thumbnail */
  .menu-card .thumb-wrap {
    flex:0 0 88px; width:88px; height:88px;
    border-radius:12px; position:relative; overflow:hidden;
  }
  .menu-card .thumb-inner {
    position:absolute; inset:0; width:100%; height:100%;
  }
  .menu-card .menu-thumb {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; border-radius:0;
  }

  .menu-card .menu-meta { flex:1 1 auto; }

  /* keep text compact without changing type scale drastically */
  .menu-card .menu-title { 
    font-size: clamp(14px, 1.9vw, 18px);
    line-height:1.2;
  }
  .menu-card .menu-desc {
    font-size: clamp(12px, 1.6vw, 15px);
    line-height:1.35; max-height:3.2em; overflow:hidden;
  }
  .menu-card .menu-price {
    font-size: clamp(14px, 1.8vw, 17px);
  }
}

/* ===== Mobile & Tablet: make category strip reliably scroll ===== */
#categoryStrip, .category-strip {
  display:flex; flex-wrap:nowrap; gap:.75rem;
  overflow-x:auto !important; overflow-y:hidden;
  white-space:nowrap; -webkit-overflow-scrolling:touch; scroll-behavior:smooth;
  padding-inline:12px; max-width:100%;
}
#categoryStrip * , .category-strip * { flex:0 0 auto; }

/* keep scrollbar minimal without changing design */
#categoryStrip::-webkit-scrollbar, .category-strip::-webkit-scrollbar { height:8px; }

/* prevent accidental clipping by wrappers */
@media (max-width:1024px){
  .no-clip-h { overflow-x:visible !important; }
}

/* collapsed: exactly 2 lines, consistent height */
.desc--clamp-2{
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:2; overflow:hidden;
  line-height:1.35; /* keep current rhythm */
}
/* optional subtle link style; no color change */
.desc-toggle{
  background:none;border:0;padding:0;margin-top:6px;
  font:inherit;text-decoration:underline;cursor:pointer;
}
.desc-toggle:focus{outline:2px solid currentColor; outline-offset:2px}

/* keep card heights uniform when collapsed (no visual redesign) */
.menu-item-card, .item-card{ /* already styled elsewhere */
  /* nothing forced; uniformity comes from clamp */
}
.menu-item-card.expanded, .item-card.expanded{
  /* allow natural expansion without affecting others */
}

/* iPad / tablet-only vertical spacing for cards */
@media (min-width: 820px) and (max-width: 1024px) {
  /* Apply gap at the list level so card internals remain untouched */
  #menuList.menu-list {
    display: flex;              /* keep single column */
    flex-direction: column;
    row-gap: 16px;              /* <-- adjust to 12/20 if needed */
  }

  /* Normalize any existing margins so spacing is controlled by row-gap */
  #menuList.menu-list > li,
  #menuList.menu-list > li .menu-item-card,
  .menu-item-card,
  .item-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Optional: when iPad is in landscape but narrower (old iPads 768px) */
@media (min-width: 768px) and (max-width: 819.98px) {
  #menuList.menu-list { row-gap: 16px; }
  #menuList.menu-list > li,
  #menuList.menu-list > li .menu-item-card,
  .menu-item-card,
  .item-card { margin-top: 0 !important; margin-bottom: 0 !important; }
}

@media (max-width:1024px){
  /* Allow parent wrapper to support full width scrolling */
  .category-strip-wrap {
    overflow-x: visible !important;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Ensure strip can actually overflow and be scrolled */
  #categoryStrip, .menu-category-strip, .menu-category-tabs, nav .categories, .categories-strip{
    display:flex !important; 
    flex-wrap:nowrap !important;
    gap:.75rem;
    overflow-x:auto !important; 
    overflow-y:hidden !important;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 20px !important;
    touch-action: pan-x !important;
    scroll-snap-type: none !important;
    scrollbar-width: none;
    justify-content: flex-start !important; /* Align to start so first item is reachable */
  }
  
  #categoryStrip::-webkit-scrollbar {
    display: none;
  }
  
  /* children shouldn't shrink or wrap */
  #categoryStrip > *, .menu-category-strip > *, .menu-category-tabs > *, 
  nav .categories > *, .categories-strip > *{
    flex:0 0 auto !important; 
    min-width:max-content !important;
  }
}

/* Collapsed: exactly 2 lines -> uniform card height */
.desc--clamp-2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.35;           /* keep current rhythm */
}

/* Minimal toggle link (inherits current typography/color) */
.desc-toggle{
  background:none;border:0;padding:0;margin-top:6px;
  font:inherit;text-decoration:underline;cursor:pointer;
}
.desc-toggle:focus{outline:2px solid currentColor; outline-offset:2px}

/* Keep all cards equal height in collapsed state without redesign */
.menu-item-card, .item-card{
  /* no fixed heights; equality comes from line-clamp */
}
.menu-item-card.expanded, .item-card.expanded{
  /* allow only the expanded card to grow naturally */
}

/* Android horizontal scroll fix for categories nav */
[data-category-scroll] {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
[data-category-scroll]::-webkit-scrollbar { display: none; }
[data-category-scroll] > * { flex: 0 0 auto; } /* chips remain inline */