/* ==========================================================================
   Modern diner menu — theme1
   Warm editorial. Food is the hero, price whispers, RTL is first-class.
   Scoped under .qmenu so it never leaks into other frontend pages.
   Accent color comes from the tenant (--primaryColor / --dcolor); everything
   else is a warm, low-chroma neutral system in OKLCH.
   ========================================================================== */

.qmenu {
  /* Warm paper neutrals (light, default) — tinted toward warm, never pure white/black */
  --qm-paper:      oklch(0.984 0.006 74);   /* page background            */
  --qm-surface:    oklch(0.998 0.003 80);   /* card / raised surface      */
  --qm-surface-2:  oklch(0.965 0.008 74);   /* insets, image placeholders */
  --qm-ink:        oklch(0.255 0.012 58);   /* primary text (warm near-black) */
  --qm-ink-soft:   oklch(0.505 0.014 60);   /* secondary text             */
  --qm-ink-faint:  oklch(0.66 0.012 62);    /* tertiary / meta            */
  --qm-line:       oklch(0.905 0.008 72);   /* hairlines                  */
  --qm-line-soft:  oklch(0.94 0.006 74);

  /* Tenant accent — the one saturated color on the surface */
  --qm-accent:     var(--primaryColor, var(--dcolor, oklch(0.55 0.15 305)));
  --qm-on-accent:  oklch(0.99 0.004 80);

  /* Accent washes derived from whatever the tenant color is */
  --qm-accent-wash: color-mix(in oklch, var(--qm-accent) 8%, var(--qm-surface));
  --qm-accent-line: color-mix(in oklch, var(--qm-accent) 24%, var(--qm-line));

  /* Type — Cairo carries Arabic + Latin as one system */
  --qm-font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale (varied rhythm, not one padding everywhere) */
  --qm-s1: 0.375rem;
  --qm-s2: 0.625rem;
  --qm-s3: 1rem;
  --qm-s4: 1.5rem;
  --qm-s5: 2.25rem;
  --qm-s6: 3.5rem;

  --qm-radius:   14px;
  --qm-radius-lg: 20px;
  --qm-shadow:   0 1px 2px oklch(0.4 0.02 60 / 0.05), 0 8px 24px oklch(0.4 0.03 60 / 0.06);
  --qm-shadow-lift: 0 2px 4px oklch(0.4 0.02 60 / 0.06), 0 14px 34px oklch(0.4 0.04 60 / 0.10);

  --qm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);   /* ease-out-quart-ish */

  background: var(--qm-paper);
  color: var(--qm-ink);
  font-family: var(--qm-font);
  -webkit-font-smoothing: antialiased;
}

/* Dark — activated by the app's existing body.theme-dark toggle */
body.theme-dark .qmenu {
  --qm-paper:      oklch(0.185 0.012 300);
  --qm-surface:    oklch(0.235 0.016 300);
  --qm-surface-2:  oklch(0.285 0.018 300);
  --qm-ink:        oklch(0.965 0.008 300);
  --qm-ink-soft:   oklch(0.78 0.012 300);
  --qm-ink-faint:  oklch(0.62 0.012 300);
  --qm-line:       oklch(0.34 0.02 300);
  --qm-line-soft:  oklch(0.30 0.018 300);
  --qm-accent-wash: color-mix(in oklch, var(--qm-accent) 20%, var(--qm-surface));
  --qm-accent-line: color-mix(in oklch, var(--qm-accent) 40%, var(--qm-line));
  --qm-shadow:   0 1px 2px oklch(0 0 0 / 0.3), 0 10px 28px oklch(0 0 0 / 0.35);
  --qm-shadow-lift: 0 2px 6px oklch(0 0 0 / 0.35), 0 18px 40px oklch(0 0 0 / 0.45);
}

/* ---- Layout shell -------------------------------------------------------- */
.qmenu {
  padding-block: clamp(1rem, 3vw, 2rem) var(--qm-s6);
  padding-inline: clamp(0.9rem, 4vw, 2.5rem);
  max-width: 1240px;
  margin-inline: auto;
}

/* ---- Masthead ------------------------------------------------------------ */
.qmenu .qm-masthead {
  text-align: center;
  margin-block: var(--qm-s4) var(--qm-s5);
}
.qmenu .qm-masthead .qm-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qm-accent);
  margin-block-end: var(--qm-s2);
}
.qmenu .qm-masthead h1,
.qmenu .qm-masthead .qm-title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--qm-ink);
  margin: 0;
}
.qmenu .qm-masthead p {
  margin-block-start: var(--qm-s3);
  color: var(--qm-ink-soft);
  font-size: 1.02rem;
  font-weight: 400;
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.6;
}
.qmenu .qm-masthead .qm-rule {
  width: 44px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--qm-accent);
  margin: var(--qm-s4) auto 0;
  opacity: 0.85;
}

/* ---- Sticky category rail ------------------------------------------------ */
.qmenu .qm-catbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--qm-s3);
  max-width: 100%;
  padding-block: var(--qm-s2);
  margin-block-end: var(--qm-s4);
  background: color-mix(in oklch, var(--qm-paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--qm-line-soft);
}
.qmenu .gallery_sort,
.qmenu .qm-catbar-scroll {
  display: flex;
  align-items: center;
  gap: var(--qm-s2);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1 1 auto;
  min-width: 0;                 /* allow overflow-x to engage instead of blowing out the page */
  -webkit-overflow-scrolling: touch;
}
.qmenu .gallery_sort::-webkit-scrollbar { display: none; }
.qmenu .gallery_sort > li { flex: 0 0 auto; }

.qmenu .categoryItem {
  display: inline-flex;
  align-items: center;
  gap: var(--qm-s2);
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  border: 1px solid var(--qm-line);
  border-radius: 999px;
  background: var(--qm-surface);
  color: var(--qm-ink-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s var(--qm-ease), background-color 0.25s var(--qm-ease),
              border-color 0.25s var(--qm-ease), transform 0.2s var(--qm-ease);
}
.qmenu .categoryItem .catImg {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.qmenu .categoryItem:hover {
  color: var(--qm-ink);
  border-color: var(--qm-accent-line);
}
.qmenu .categoryItem.active {
  color: var(--qm-on-accent);
  background: var(--qm-accent);
  border-color: var(--qm-accent);
}
.qmenu .categoryItem:focus-visible {
  outline: 2px solid var(--qm-accent);
  outline-offset: 2px;
}

/* View switch (grid / list) */
.qmenu .view_toggle_btns,
.qmenu .qm-viewtoggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--qm-surface-2);
  border: 1px solid var(--qm-line-soft);
}
.qmenu .view-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--qm-ink-faint);
  cursor: pointer;
  transition: color 0.2s var(--qm-ease), background-color 0.2s var(--qm-ease);
}
.qmenu .view-btn.active {
  background: var(--qm-surface);
  color: var(--qm-accent);
  box-shadow: var(--qm-shadow);
}
.qmenu .view-btn:focus-visible { outline: 2px solid var(--qm-accent); outline-offset: 2px; }

/* ---- Category section ---------------------------------------------------- */
.qmenu .homeView { margin-block-start: var(--qm-s6); scroll-margin-top: 84px; }
.qmenu .homeView:first-of-type { margin-block-start: var(--qm-s3); }

.qmenu .singleCategoryHeader.cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--qm-s3);
  margin-block-end: var(--qm-s4);
  padding-block-end: var(--qm-s2);
  border-block-end: 1px solid var(--qm-line-soft);
}
.qmenu .cat_title_flex { display: flex; align-items: baseline; gap: var(--qm-s3); }
.qmenu .singleCategoryHeader h4,
.qmenu .qm-section-title {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--qm-ink);
  margin: 0;
}
.qmenu .subcategoryTag { color: var(--qm-ink-soft); font-weight: 600; }
.qmenu .seeMore_link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--qm-accent);
  text-decoration: none;
  white-space: nowrap;
}
.qmenu .seeMore_link i { transition: transform 0.25s var(--qm-ease); }
.qmenu .seeMore_link:hover i { transform: translateX(0.2em); }
[dir="rtl"] .qmenu .seeMore_link i { transform: scaleX(-1); }
[dir="rtl"] .qmenu .seeMore_link:hover i { transform: scaleX(-1) translateX(0.2em); }

/* ---- Item grid ----------------------------------------------------------- */
.qmenu .items_row,
.qmenu .qm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.4vw, 1.6rem);
  margin: 0;
}
@media (min-width: 640px)  { .qmenu .items_row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px)  { .qmenu .items_row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* neutralize the Bootstrap col wrappers we keep for JS hooks */
.qmenu .items_row > .col-custom,
.qmenu .items_row > [class*="col-"] {
  width: auto;
  max-width: none;
  min-width: 0;      /* let the track shrink below content min-content */
  flex: initial;
  padding: 0;
  margin: 0;
}

/* ---- Item card ----------------------------------------------------------- */
.qmenu .modern_item_card { height: 100%; min-width: 0; }
.qmenu img { max-width: 100%; }
.qmenu .item_thumb_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--qm-surface);
  border: 1px solid var(--qm-line-soft);
  border-radius: var(--qm-radius);
  overflow: hidden;
  transition: transform 0.3s var(--qm-ease), box-shadow 0.3s var(--qm-ease),
              border-color 0.3s var(--qm-ease);
}
@media (hover: hover) {
  .qmenu .item_thumb_inner:hover {
    transform: translateY(-3px);
    box-shadow: var(--qm-shadow-lift);
    border-color: var(--qm-accent-line);
  }
}

.qmenu .item_img_box {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}
.qmenu .item_img {
  width: 100%;
  height: auto;               /* let aspect-ratio drive height, beating legacy fixed heights */
  aspect-ratio: 4 / 3;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.5s var(--qm-ease);
}
@media (hover: hover) {
  .qmenu .item_img_box:hover .item_img { transform: scale(1.05); }
}
.qmenu .new_badge {
  position: absolute;
  inset-block-start: var(--qm-s2);
  inset-inline-start: var(--qm-s2);
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qm-on-accent);
  background: var(--qm-accent);
  border-radius: 999px;
}

.qmenu .item_details {
  display: flex;
  flex-direction: column;
  gap: var(--qm-s2);
  padding: var(--qm-s3);
  flex: 1 1 auto;
  min-width: 0;
}
.qmenu .item_title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--qm-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  overflow-wrap: anywhere;
}
.qmenu .item_title .veg_type { font-size: 0.6rem; }
.qmenu .veg_type.c_green { color: oklch(0.62 0.16 145); }
.qmenu .veg_type.c_red   { color: oklch(0.6 0.18 28); }
.qmenu .item_desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--qm-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qmenu .item_price_action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qm-s2);
  margin-block-start: auto;
  padding-block-start: var(--qm-s2);
}
/* Price whispers: quiet accent, not a filled badge */
.qmenu .item_price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qm-ink);
  letter-spacing: -0.01em;
}
.qmenu .item_price del,
.qmenu .item_price .old_price {
  color: var(--qm-ink-faint);
  font-weight: 500;
  font-size: 0.82em;
  margin-inline-end: 0.35em;
}
.qmenu .item_price ins,
.qmenu .item_price .new_price { text-decoration: none; color: var(--qm-accent); }

/* Add control — calm circular affordance, generous target */
.qmenu .item_action .add_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 40px;
  padding-inline: 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--qm-accent-line);
  background: var(--qm-accent-wash);
  color: var(--qm-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--qm-ease), color 0.22s var(--qm-ease),
              transform 0.14s var(--qm-ease), border-color 0.22s var(--qm-ease);
}
.qmenu .item_action .add_btn i { font-size: 0.9em; }
.qmenu .item_action .add_btn:hover {
  background: var(--qm-accent);
  border-color: var(--qm-accent);
  color: var(--qm-on-accent);
}
.qmenu .item_action .add_btn:active { transform: scale(0.94); }
.qmenu .item_action .add_btn:focus-visible { outline: 2px solid var(--qm-accent); outline-offset: 2px; }

/* ---- No-image card: text-forward, price leads ---------------------------- */
.qmenu .modern_item_card.no_img .item_thumb_inner {
  background:
    linear-gradient(135deg, var(--qm-accent-wash), var(--qm-surface));
}
.qmenu .modern_item_card.no_img .item_details { gap: var(--qm-s3); padding: var(--qm-s4); }
.qmenu .modern_item_card.no_img .item_title { font-size: 1.15rem; }

/* ==========================================================================
   List view
   ========================================================================== */
.qmenu .item_container.list_view .items_row { grid-template-columns: 1fr; gap: var(--qm-s2); }
.qmenu .item_container.list_view .item_thumb_inner {
  flex-direction: row;
  align-items: stretch;
}
.qmenu .item_container.list_view .item_img_box { flex: 0 0 clamp(96px, 26vw, 150px); }
.qmenu .item_container.list_view .item_img { aspect-ratio: 1 / 1; height: 100%; }
.qmenu .item_container.list_view .item_details { justify-content: center; }
.qmenu .item_container.list_view .item_price_action { padding-block-start: var(--qm-s1); }

/* ==========================================================================
   Highlights slider (slick) — larger, editorial treatment
   ========================================================================== */
.qmenu .highlightSlider { margin-block-end: var(--qm-s5); }
.qmenu .highlightSlider .modern_item_card .item_thumb_inner { border-radius: var(--qm-radius-lg); }
.qmenu .highlightSlider .item_img { aspect-ratio: 16 / 10; }
.qmenu .slick-slide { padding-inline: 0.5rem; height: auto; }
.qmenu .slick-track { display: flex; }
.qmenu .slick-track .slick-slide { display: flex; height: auto; }

/* ==========================================================================
   Empty states
   ========================================================================== */
.qmenu .qm-empty {
  text-align: center;
  padding-block: var(--qm-s6);
  color: var(--qm-ink-soft);
}
.qmenu .qm-empty .qm-empty-icon {
  font-size: 2.6rem;
  color: var(--qm-accent);
  opacity: 0.55;
  margin-block-end: var(--qm-s3);
}
.qmenu .qm-empty h3 { color: var(--qm-ink); font-weight: 700; margin: 0 0 var(--qm-s2); }
.qmenu .qm-empty p { margin: 0; }

/* ==========================================================================
   Reveal-on-scroll (progressive, opt-in via .qm-reveal)
   ========================================================================== */
.qmenu .qm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--qm-ease), transform 0.6s var(--qm-ease);
}
.qmenu .qm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .qmenu *,
  .qmenu *::before,
  .qmenu *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .qmenu .qm-reveal { opacity: 1; transform: none; }
  .qmenu .item_img_box:hover .item_img { transform: none; }
}

/* ==========================================================================
   Small phones
   ========================================================================== */
@media (max-width: 380px) {
  .qmenu .item_action .add_btn .add_text { display: none; }
  .qmenu .item_action .add_btn { padding-inline: 0; width: 40px; justify-content: center; }
}

/* ==========================================================================
   2027 conversion layer for restaurant home/menu pages
   Applied to /{slug}?lang=ar via .qmenu-home.
   Goal: faster scanning, stronger add-to-cart, persistent cart visibility.
   ========================================================================== */

.qmenu {
  --qm-paper: #F5F5F5;
  --qm-surface: color-mix(in srgb, #F5F5F5 96%, #005F55 4%);
  --qm-surface-2: color-mix(in srgb, #F5F5F5 90%, #005F55 10%);
  --qm-ink: #505050;
  --qm-ink-soft: color-mix(in srgb, #505050 78%, #005F55 22%);
  --qm-ink-faint: color-mix(in srgb, #505050 58%, #F5F5F5 42%);
  --qm-line: color-mix(in srgb, #005F55 16%, #F5F5F5 84%);
  --qm-line-soft: color-mix(in srgb, #005F55 10%, #F5F5F5 90%);
  --qm-accent: #005F55;
  --qm-action: #F2A052;
  --qm-on-accent: #F5F5F5;
  --qm-accent-wash: color-mix(in srgb, #005F55 9%, #F5F5F5 91%);
  --qm-action-wash: color-mix(in srgb, #F2A052 16%, #F5F5F5 84%);
  --qm-accent-line: color-mix(in srgb, #005F55 28%, #F5F5F5 72%);
  --qm-shadow: 0 1px 2px rgba(80, 80, 80, 0.06), 0 12px 30px rgba(0, 95, 85, 0.08);
  --qm-shadow-lift: 0 2px 4px rgba(80, 80, 80, 0.08), 0 18px 42px rgba(0, 95, 85, 0.14);
}

body.theme-dark .qmenu {
  --qm-paper: color-mix(in srgb, #005F55 88%, #505050 12%);
  --qm-surface: color-mix(in srgb, #005F55 76%, #505050 24%);
  --qm-surface-2: color-mix(in srgb, #005F55 66%, #505050 34%);
  --qm-ink: #F5F5F5;
  --qm-ink-soft: color-mix(in srgb, #F5F5F5 78%, #F2A052 22%);
  --qm-ink-faint: color-mix(in srgb, #F5F5F5 62%, #005F55 38%);
  --qm-line: rgba(245, 245, 245, 0.16);
  --qm-line-soft: rgba(245, 245, 245, 0.1);
  --qm-accent-wash: rgba(245, 245, 245, 0.08);
  --qm-action-wash: rgba(242, 160, 82, 0.14);
}

.qmenu-home {
  width: 100%;
  max-width: 100vw;
  padding: 0 0 clamp(5.5rem, 10vw, 7rem);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(242, 160, 82, 0.18), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, #F5F5F5 92%, #005F55 8%) 0, #F5F5F5 34rem);
}

html:has(.qmenu-home),
body:has(.qmenu-home) {
  max-width: 100vw;
  overflow-x: hidden;
}

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

.qmenu-home .restaurant-container,
.qmenu .restaurant-container {
  width: min(1180px, calc(100vw - 28px));
  max-width: 1180px;
  padding-inline: 0;
}

.qmenu-home .row,
.qmenu .items_row {
  margin-inline: 0;
}

.qmenu-home .homeTopBanner,
.qmenu-home .user_home_banner,
.qmenu-home .single_banner,
.qmenu-home .single_banner img {
  max-width: 100%;
  overflow: hidden;
}

.qmenu-home .Searcharea {
  position: sticky;
  top: 0;
  z-index: 38;
  padding: 12px 0;
  margin: 0;
  background: rgba(245, 245, 245, 0.92);
  border-block-end: 1px solid var(--qm-line-soft);
  backdrop-filter: blur(14px) saturate(1.2);
}

.qmenu-home .searchSection,
.qmenu-home .welcomeSearch {
  margin: 0;
}

.qmenu-home .itemSearch-2 {
  margin: 0;
}

.qmenu-home .searchBar-2,
.qmenu-home .search-box-2 {
  width: 100%;
}

.qmenu-home .search-box-2 {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--qm-line);
  border-radius: 18px;
  background: rgba(245, 245, 245, 0.96);
  box-shadow: 0 12px 34px rgba(0, 95, 85, 0.08);
}

.qmenu-home .search-txt-2 {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--qm-ink);
  font: 800 0.98rem/1.3 var(--qm-font);
}

.qmenu-home .search-txt-2::placeholder {
  color: var(--qm-ink-faint);
}

.qmenu-home .search-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 14px;
  background: #005F55;
  color: #F5F5F5;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 95, 85, 0.18);
}

.qmenu-home .categorySection {
  margin: 0;
  padding: 16px 0 0;
}

.qmenu-home .categorySection .defaultHeading {
  display: none;
}

.qmenu-home .topCategory .swiper-container,
.qmenu-home .item-wrapper {
  overflow: hidden;
}

.qmenu-home .topCategory {
  max-width: 100%;
  overflow: hidden;
}

.qmenu-home .topCategory .swiper-wrapper {
  justify-content: flex-start;
}

.qmenu-home .singleCatItem {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--qm-line);
  border-radius: 18px;
  background: var(--qm-surface);
  box-shadow: var(--qm-shadow);
  transition: transform 180ms var(--qm-ease), border-color 180ms var(--qm-ease), box-shadow 180ms var(--qm-ease);
}

.qmenu-home .singleCatItem:hover,
.qmenu-home .singleCatItem:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, #F2A052 58%, #005F55 42%);
  box-shadow: var(--qm-shadow-lift);
}

.qmenu-home .singleCatItem h4 {
  margin: 0;
  color: var(--qm-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.qmenu-home .singleHome_item {
  padding-block: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 100%;
  overflow: hidden;
}

.qmenu-home .defaultHeading {
  margin: 0 0 18px;
}

.qmenu-home .defaultHeading .cat_title_flex,
.qmenu .defaultHeading .cat_title_flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qmenu-home .defaultHeading h1,
.qmenu-home .defaultHeading h4 {
  margin: 0;
  color: var(--qm-ink);
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.14;
}

.qmenu-home .defaultHeading p {
  max-width: 64ch;
  color: var(--qm-ink-soft);
  line-height: 1.75;
  margin-top: 8px;
}

.qmenu-home .singleCategoryHeader {
  margin: 22px 0 14px;
}

.qmenu-home .singleCategoryHeader h4 {
  font-size: clamp(1.08rem, 2.6vw, 1.5rem);
  color: var(--qm-ink);
  font-weight: 900;
}

.qmenu-home .homeView {
  margin-block-start: 0;
  max-width: 100%;
  overflow: hidden;
}

.qmenu-home .homeStyle_2.items_row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 20px);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.qmenu-home .homeStyle_2.items_row::before,
.qmenu-home .homeStyle_2.items_row::after,
.qmenu .items_row::before,
.qmenu .items_row::after {
  display: none;
}

.qmenu-home .homeStyle_2.items_row > .col-custom {
  grid-column: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.qmenu-home .item_container,
.qmenu-home .subcatItem,
.qmenu-home .modern_item_card,
.qmenu-home .item_thumb_inner,
.qmenu-home .item_details,
.qmenu-home .item_title_wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qmenu-home .modern_item_card .item_title {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  text-align: start;
}

.qmenu-home .modern_item_card .item_title .veg_type {
  display: inline-block;
  margin-inline: 0 6px;
  vertical-align: middle;
}

.qmenu-home .modern_item_card .item_price_action {
  width: 100%;
  min-width: 0;
}

.qmenu-home .modern_item_card .item_price,
.qmenu-home .modern_item_card .item_action {
  max-width: 100%;
}

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

@media (min-width: 1120px) {
  .qmenu-home .homeStyle_2.items_row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.qmenu .modern_item_card {
  position: relative;
}

.qmenu .item_thumb_inner {
  border-radius: 18px;
  background: var(--qm-surface);
  border-color: var(--qm-line);
  box-shadow: var(--qm-shadow);
}

.qmenu .item_img {
  aspect-ratio: 1 / 0.78;
}

.qmenu .item_details {
  gap: 10px;
  padding: 13px;
}

.qmenu .item_title {
  min-height: 2.55em;
  font-size: clamp(0.95rem, 2.7vw, 1.05rem);
  font-weight: 900;
  line-height: 1.28;
}

.qmenu .item_desc {
  min-height: 2.8em;
  color: var(--qm-ink-soft);
  font-size: 0.82rem;
}

.qmenu .item_price_action {
  gap: 10px;
  align-items: stretch;
}

.qmenu .item_price {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  color: #005F55;
  font-size: 1.02rem;
  font-weight: 900;
}

.qmenu .item_action {
  flex: 0 0 auto;
}

.qmenu .item_action .add_btn {
  min-width: 92px;
  min-height: 46px;
  justify-content: center;
  padding-inline: 15px;
  border: 0;
  border-radius: 15px;
  background: #F2A052;
  color: #005F55;
  box-shadow: 0 12px 24px rgba(242, 160, 82, 0.24);
  font-size: 0.92rem;
  font-weight: 900;
}

.qmenu .item_action .add_btn:hover,
.qmenu .item_action .add_btn:focus {
  background: #005F55;
  color: #F5F5F5;
}

.qmenu .item_action .add_btn i {
  font-size: 0.95rem;
}

.qmenu .item_container.list_view .item_thumb_inner {
  border-radius: 18px;
}

.qmenu .item_container.list_view .item_details {
  padding: 14px;
}

.qmenu .item_container.list_view .item_title {
  min-height: 0;
}

.qmenu .item_container.list_view .item_desc {
  min-height: 0;
}

.qmenu .cart.CartIcon {
  position: fixed;
  inset-inline-end: max(14px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  z-index: 95;
}

.qmenu .cart.CartIcon a,
.qmenu .navCart.CartIcon a {
  width: auto;
  min-width: 58px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: #005F55 !important;
  color: #F5F5F5 !important;
  box-shadow: 0 18px 42px rgba(0, 95, 85, 0.28);
}

.qmenu .cart_count,
.qmenu span.total_count {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #F2A052;
  color: #005F55;
  font-size: 0.78rem;
  font-weight: 900;
}

.qmenu .shopping_cart.style_2 {
  border-radius: 24px 0 0 24px;
  box-shadow: -18px 0 60px rgba(0, 95, 85, 0.2);
}

[dir="rtl"] .qmenu .shopping_cart.style_2 {
  border-radius: 0 24px 24px 0;
}

.qmenu .cart_heading {
  background: #005F55;
  color: #F5F5F5;
}

.qmenu .bottom_cart_order {
  border-block-start: 1px solid var(--qm-line);
  background: #F5F5F5;
}

.qmenu .order-btn,
.qmenu a.btn.btn-info.btn-block.order-btn {
  min-height: 52px;
  border: 0 !important;
  border-radius: 16px !important;
  background: #F2A052 !important;
  color: #005F55 !important;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(242, 160, 82, 0.24);
}

.qmenu .cartNotify_wrapper.active {
  inset-inline: 14px;
  width: auto;
}

@media (max-width: 575px) {
  .qmenu-home .restaurant-container,
  .qmenu .restaurant-container {
    width: min(100vw - 20px, 1180px);
  }

  .qmenu-home {
    padding-inline: 0;
  }

  .qmenu-home .Searcharea {
    top: 0;
    padding: 8px 0;
  }

  .qmenu-home .search-box-2 {
    min-height: 52px;
    border-radius: 16px;
  }

  .qmenu-home .categorySection {
    padding-top: 12px;
  }

  .qmenu-home .homeStyle_2.items_row {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .qmenu-home .homeStyle_2.items_row > .col-custom {
    grid-column: 1 / -1;
  }

  .qmenu .item_img {
    aspect-ratio: 1 / 0.82;
  }

  .qmenu .item_details {
    padding: 10px;
  }

  .qmenu .item_title {
    font-size: 0.9rem;
  }

  .qmenu .item_desc {
    display: none;
  }

  .qmenu .item_price_action {
    flex-direction: column;
  }

  .qmenu-home .modern_item_card .item_title {
    min-height: 0;
    display: block !important;
    padding-inline: 18px;
    text-align: center !important;
    direction: inherit;
    line-height: 1.35;
  }

  .qmenu-home .modern_item_card .item_title .veg_type {
    margin-inline: 0 4px;
  }

  .qmenu .item_action .add_btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  .qmenu-home .homeStyle_2.items_row {
    grid-template-columns: 1fr;
  }
}
