/**
 * Wellness - Custom Menu Frontend Styles (v2.5.1)
 * Ultra-Responsive Luxury Restaurant Menu
 * 
 * Features:
 * - Fluid & Controllable Grid Layout (Desktop, Tablet & Mobile)
 * - Rich Aesthetic Design System with Dynamic Theme Variables
 * - SVG Outline & Fill Preservation for Active Category Icons
 * - First-Class Mobile Category Modes: Native Horizontal Scroll Pills or 2-Column Box Grid
 * - Mobile Single-Column & 2-Column Responsive Optimizations
 * - Fullscreen Luxury Dish Image & Details Modal with Safe-Area Thumb Close Button
 * - Tactile Touch Physics & Smooth Transitions
 */

:root {
  --wcm-green: #082a19;
  --wcm-green-hover: #0d4228;
  --wcm-green-soft: rgba(8, 42, 25, 0.08);
  --wcm-gold: #d99a19;
  --wcm-gold-hover: #bf8410;
  --wcm-gold-soft: rgba(217, 154, 25, 0.12);
  --wcm-red: #e02424;
  --wcm-red-soft: #fde8e8;
  --wcm-dark: #121814;
  --wcm-muted: #5f6c64;
  --wcm-border: #e6dfd1;
  --wcm-border-hover: #c8bba4;
  --wcm-card-bg: #ffffff;
  --wcm-radius-card: 18px;
  --wcm-radius-pill: 9999px;
  --wcm-radius-box: 12px;
  --wcm-cols: 2;
  --wcm-cols-tablet: 2;
  --wcm-cols-mobile: 2;
  --wcm-shadow-sm: 0 2px 8px rgba(8, 42, 25, 0.04), 0 1px 2px rgba(8, 42, 25, 0.02);
  --wcm-shadow-md: 0 10px 28px rgba(8, 42, 25, 0.07), 0 2px 6px rgba(8, 42, 25, 0.04);
  --wcm-shadow-hover: 0 20px 42px rgba(8, 42, 25, 0.14), 0 4px 12px rgba(8, 42, 25, 0.05);
  --wcm-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wellness-menu-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wcm-dark);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Dynamically blend hover and soft tints based on current theme's primary color */
  --wcm-green-hover: color-mix(in srgb, var(--wcm-green, #082a19) 82%, black);
  --wcm-green-soft: color-mix(in srgb, var(--wcm-green, #082a19) 9%, transparent);
  --wcm-gold-hover: color-mix(in srgb, var(--wcm-gold, #d99a19) 84%, black);
  --wcm-gold-soft: color-mix(in srgb, var(--wcm-gold, #d99a19) 12%, transparent);
  --wcm-border-hover: color-mix(in srgb, var(--wcm-border, #e6dfd1) 60%, var(--wcm-green, #082a19) 40%);
}

.wellness-menu-wrap *,
.wellness-menu-wrap *::before,
.wellness-menu-wrap *::after {
  box-sizing: border-box;
}

/* ============================================================
   1. MENU HEADER (Title, Subtitle, Luxury Ornamental Rule)
   ============================================================ */
.wellness-menu-header {
  text-align: center;
  margin-bottom: 34px;
}

.wellness-menu-header-rule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.wellness-menu-header-rule span.rule-line {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wcm-gold));
  border-radius: 2px;
}

.wellness-menu-header-rule span.rule-line:last-child {
  background: linear-gradient(90deg, var(--wcm-gold), transparent);
}

.wellness-menu-header-rule span.rule-icon {
  color: var(--wcm-gold);
  font-size: 22px;
  line-height: 1;
}

.wellness-menu-title {
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  color: var(--wcm-green);
  margin: 0 0 10px;
  letter-spacing: -0.6px;
  line-height: 1.25;
}

.wellness-menu-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--wcm-muted);
  margin: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Branch Tag / Badge */
.wellness-menu-branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wcm-green-soft, #eaf5ee);
  color: var(--wcm-green, #082a19);
  padding: 5px 16px;
  border-radius: var(--wcm-radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  border: 1px solid rgba(8, 42, 25, 0.14);
}

/* ============================================================
   2. CATEGORY NAVIGATION BAR (Desktop Centered Flex-Wrap)
   ============================================================ */
.wellness-menu-wrap .wellness-category-bar-wrapper,
.wellness-category-bar-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 36px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.wellness-menu-wrap .wellness-category-bar,
.wellness-category-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  overflow: visible !important;
  padding: 6px 4px 10px !important;
  cursor: default !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  clear: none !important;
}

/* Arrows hidden by default */
.wellness-cat-arrow {
  display: none !important;
}

/* Desktop Category Button (Luxury Pill) */
.wellness-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 22px;
  background: var(--wcm-card-bg, #ffffff);
  color: var(--wcm-dark, #121814);
  border: 1.5px solid var(--wcm-border, #e6dfd1);
  border-radius: var(--wcm-radius-pill, 9999px);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--wcm-shadow-sm);
  transition: var(--wcm-transition);
  outline: none;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop Unactive Category Button Hover */
@media (hover: hover) {
  .wellness-cat-btn:hover {
    background: var(--wcm-green-soft, #eaf5ee);
    border-color: var(--wcm-green, #082a19);
    color: var(--wcm-green, #082a19);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }
  .wellness-cat-btn:hover .wellness-cat-icon {
    color: var(--wcm-green, #082a19);
  }
}

/* Active Category Button */
.wellness-cat-btn.is-active {
  background: var(--wcm-green, #082a19) !important;
  color: #ffffff !important;
  border-color: var(--wcm-green, #082a19) !important;
  box-shadow: 0 6px 20px rgba(8, 42, 25, 0.25), 0 0 0 1px var(--wcm-green, #082a19);
}

.wellness-cat-btn.is-active .wellness-cat-icon {
  color: #ffffff !important;
}

/* CRITICAL FIX: Preserve Stroke and Fill for Outline vs Solid SVGs */
.wellness-cat-btn.is-active .wellness-cat-icon svg[stroke] {
  stroke: currentColor !important;
}

.wellness-cat-btn.is-active .wellness-cat-icon svg[fill="none"] {
  fill: none !important;
  stroke: currentColor !important;
}

.wellness-cat-btn.is-active .wellness-cat-icon svg:not([fill="none"]) {
  fill: currentColor !important;
}

/* Active Button Desktop Hover */
@media (hover: hover) {
  .wellness-cat-btn.is-active:hover {
    background: var(--wcm-green-hover, #0d4228) !important;
    border-color: var(--wcm-green-hover, #0d4228) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 42, 25, 0.32);
  }
}

/* Tactile Active Press */
.wellness-cat-btn:active {
  transform: translateY(0) scale(0.97);
}

.wellness-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--wcm-gold);
  flex-shrink: 0;
  transition: var(--wcm-transition);
}

.wellness-cat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wellness-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wellness-cat-label {
  display: inline-block;
  line-height: 1.2;
}

/* ============================================================
   3. MENU ITEMS GRID
   ============================================================ */
.wellness-items-grid {
  display: grid;
  grid-template-columns: repeat(var(--wcm-cols, 2), minmax(0, 1fr));
  gap: 24px;
}

/* Food Dish Card */
.wellness-card {
  background: var(--wcm-card-bg, #ffffff);
  border: 1px solid var(--wcm-border, #e6dfd1);
  border-radius: var(--wcm-radius-card, 18px);
  overflow: hidden;
  box-shadow: var(--wcm-shadow-md);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  animation: wcmCardFadeIn 0.35s ease backwards;
}

.wellness-menu-wrap .wellness-card {
  display: flex !important;
}

.wellness-menu-wrap .wellness-card.is-filtered-out,
.wellness-menu-wrap .wellness-card[hidden] {
  display: none !important;
}

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

@media (hover: hover) {
  .wellness-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wcm-shadow-hover);
    border-color: var(--wcm-border-hover, #c8bba4);
  }
  .wellness-card:hover .wellness-card-img {
    transform: scale(1.06);
  }
  .wellness-card:hover .wellness-card-quickview-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick View Hover Hint on Card Media (Desktop only) */
.wellness-card-quickview-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(8, 42, 25, 0.88);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.22s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 3;
}

.wellness-card-quickview-hint .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

/* Aspect-Ratio Food Media Container */
.wellness-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #f4efe6;
}

.wellness-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback Image Placeholder */
.wellness-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7f1e6 0%, #ece2d0 100%);
  color: var(--wcm-gold);
}

.wellness-card-placeholder .dashicons {
  font-size: 46px;
  width: 46px;
  height: 46px;
  opacity: 0.65;
}

/* Badges on Top-Left of Image */
.wellness-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: var(--wcm-radius-pill);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  z-index: 2;
  line-height: 1.2;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wellness-badge-bestseller {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.wellness-badge-discount {
  background: linear-gradient(135deg, var(--wcm-red, #e02424) 0%, #991b1b 100%);
}

.wellness-badge-custom {
  background: linear-gradient(135deg, var(--wcm-green, #082a19) 0%, #155734 100%);
}

/* Food Info Content */
.wellness-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wellness-card-header-group {
  display: flex;
  flex-direction: column;
}

.wellness-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--wcm-dark);
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.wellness-card-desc {
  font-size: 13.5px;
  color: var(--wcm-muted);
  margin: 0 0 12px;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Bottom Row: Price on Left, Rating on Right */
.wellness-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  flex-wrap: wrap;
}

/* Price Display */
.wellness-price-group {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.wellness-price-current {
  font-size: 19px;
  font-weight: 800;
  color: var(--wcm-gold);
  line-height: 1;
  letter-spacing: -0.3px;
}

.wellness-price-regular {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1;
}

/* Rating Display */
.wellness-rating-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.wellness-star-icon {
  color: var(--wcm-gold);
  font-size: 16px;
  line-height: 1;
}

.wellness-reviews-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Empty State */
.wellness-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: #fdfdfc;
  border: 2px dashed var(--wcm-border);
  border-radius: var(--wcm-radius-card);
  color: var(--wcm-muted);
  box-shadow: var(--wcm-shadow-sm);
}

.wellness-empty-state svg {
  width: 50px;
  height: 50px;
  color: var(--wcm-gold);
  margin-bottom: 14px;
  opacity: 0.75;
}

.wellness-empty-state h3 {
  font-size: 20px;
  color: var(--wcm-green);
  margin: 0 0 8px;
  font-weight: 800;
}

.wellness-empty-state p {
  margin: 0;
  font-size: 14.5px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================================
   4. RESPONSIVE BREAKPOINTS (Tablet, Mobile, Ultra-Small)
   ============================================================ */

/* ------------------------------------------------------------
   A. TABLET SCREENS (768px to 1024px)
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1024px) {
  .wellness-menu-wrap {
    padding: 26px 18px 48px;
  }

  .wellness-items-grid {
    grid-template-columns: repeat(var(--wcm-cols-tablet, 2), minmax(0, 1fr)) !important;
    gap: 18px;
  }

  .wellness-category-bar {
    gap: 10px;
    margin-bottom: 0;
  }

  .wellness-cat-btn {
    padding: 9px 18px;
    font-size: 14px;
    min-height: 46px;
  }

  .wellness-card-body {
    padding: 14px 15px 16px;
  }
}

/* ------------------------------------------------------------
   B. MOBILE SCREENS (<= 767px)
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .wellness-menu-wrap {
    padding: 18px 12px 38px;
  }

  .wellness-menu-header {
    margin-bottom: 22px;
  }

  .wellness-menu-header-rule {
    gap: 10px;
    margin-bottom: 8px;
  }

  .wellness-menu-header-rule span.rule-line {
    width: 36px;
  }

  .wellness-menu-title {
    font-size: clamp(20px, 5.5vw, 26px);
    margin-bottom: 6px;
  }

  .wellness-menu-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }

  .wellness-menu-branch-tag {
    font-size: 12px;
    padding: 4px 12px;
    margin-top: 8px;
  }

  /* Completely hide desktop arrows on mobile */
  .wellness-cat-arrow {
    display: none !important;
  }

  .wellness-category-bar-wrapper {
    display: block !important;
    margin-bottom: 22px !important;
    width: 100% !important;
  }

  /* ------------------------------------------------------------
     MOBILE CATEGORIES: MODE 1 (Horizontal Scrollable Pills)
     Triggered when mobile_cat_layout="scroll"
     ------------------------------------------------------------ */
  .wellness-category-bar-wrapper[data-mobile-layout="scroll"] .wellness-category-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px !important;
    padding: 4px 4px 10px !important;
    margin: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .wellness-category-bar-wrapper[data-mobile-layout="scroll"] .wellness-category-bar::-webkit-scrollbar {
    display: none !important;
  }

  .wellness-category-bar-wrapper[data-mobile-layout="scroll"] .wellness-cat-btn {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    border-radius: var(--wcm-radius-pill, 9999px) !important;
    min-height: 42px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    scroll-snap-align: center;
    gap: 7px;
  }

  /* ------------------------------------------------------------
     MOBILE CATEGORIES: MODE 2 (2-Column Box Grid)
     Default format when mobile_cat_layout="grid_2col"
     ------------------------------------------------------------ */
  .wellness-category-bar-wrapper:not([data-mobile-layout="scroll"]) .wellness-category-bar,
  .wellness-category-bar-wrapper[data-mobile-layout="grid_2col"] .wellness-category-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
  }

  .wellness-category-bar-wrapper:not([data-mobile-layout="scroll"]) .wellness-cat-btn,
  .wellness-category-bar-wrapper[data-mobile-layout="grid_2col"] .wellness-cat-btn {
    width: 100% !important;
    min-height: 46px;
    padding: 9px 10px;
    border-radius: var(--wcm-radius-box, 12px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  /* If odd category count, span the last one */
  .wellness-category-bar-wrapper:not([data-mobile-layout="scroll"]) .wellness-cat-btn:last-child:nth-child(odd),
  .wellness-category-bar-wrapper[data-mobile-layout="grid_2col"] .wellness-cat-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .wellness-cat-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }

  /* ------------------------------------------------------------
     FOOD CARDS GRID ON MOBILE
     ------------------------------------------------------------ */
  .wellness-items-grid {
    grid-template-columns: repeat(var(--wcm-cols-mobile, 2), minmax(0, 1fr)) !important;
    gap: 12px;
  }

  /* Compact Food Card */
  .wellness-card {
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(8, 42, 25, 0.06);
    border: 1px solid var(--wcm-border, #e6dfd1);
  }

  .wellness-card:active {
    transform: scale(0.98);
    transition: transform 0.12s ease;
  }

  .wellness-card-media {
    aspect-ratio: 16 / 11;
  }

  /* Disable quickview hover button on touch */
  .wellness-card-quickview-hint {
    display: none !important;
  }

  /* Mobile Badges */
  .wellness-badge {
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 9.5px;
    letter-spacing: 0.3px;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wellness-card-body {
    padding: 10px 10px 12px;
  }

  .wellness-card-header-group {
    margin-bottom: 4px;
  }

  .wellness-card-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.32;
    -webkit-line-clamp: 2;
  }

  .wellness-card-desc {
    font-size: 11.5px;
    line-height: 1.36;
    margin: 3px 0 0;
    -webkit-line-clamp: 2;
  }

  /* Mobile Card Footer */
  .wellness-card-footer {
    padding-top: 6px;
    gap: 4px;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: auto;
  }

  .wellness-price-group {
    gap: 4px;
    align-items: baseline;
  }

  .wellness-price-current {
    font-size: 15.5px;
    font-weight: 800;
  }

  .wellness-price-regular {
    font-size: 11px;
  }

  .wellness-rating-group {
    font-size: 11px;
    gap: 2.5px;
  }

  .wellness-star-icon {
    font-size: 12px;
  }

  .wellness-reviews-count {
    font-size: 9.5px;
  }

  /* Single-column mobile layout enhancement */
  .wellness-menu-wrap[style*="--wcm-cols-mobile: 1"] .wellness-items-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .wellness-menu-wrap[style*="--wcm-cols-mobile: 1"] .wellness-card-media {
    aspect-ratio: 16 / 10;
  }

  .wellness-menu-wrap[style*="--wcm-cols-mobile: 1"] .wellness-card-body {
    padding: 14px 16px 16px;
  }

  .wellness-menu-wrap[style*="--wcm-cols-mobile: 1"] .wellness-card-title {
    font-size: 16px;
  }

  .wellness-menu-wrap[style*="--wcm-cols-mobile: 1"] .wellness-price-current {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------
   C. EXTRA SMALL MOBILE SCREENS (<= 380px)
   ------------------------------------------------------------ */
@media (max-width: 380px) {
  .wellness-menu-wrap {
    padding: 12px 8px 28px;
  }

  .wellness-category-bar-wrapper:not([data-mobile-layout="scroll"]) .wellness-category-bar,
  .wellness-category-bar-wrapper[data-mobile-layout="grid_2col"] .wellness-category-bar {
    gap: 6px !important;
  }

  .wellness-cat-btn {
    padding: 7px 8px;
    font-size: 12px;
    min-height: 42px;
    gap: 5px;
  }

  .wellness-cat-icon {
    width: 17px;
    height: 17px;
  }

  .wellness-items-grid {
    grid-template-columns: repeat(var(--wcm-cols-mobile, 2), minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .wellness-card-body {
    padding: 8px 8px 10px;
  }

  .wellness-card-title {
    font-size: 13px;
  }

  .wellness-card-desc {
    font-size: 11px;
  }

  .wellness-price-current {
    font-size: 14px;
  }

  .wellness-price-regular {
    font-size: 10px;
  }

  .wellness-rating-group {
    font-size: 10px;
    gap: 2px;
  }

  .wellness-star-icon {
    font-size: 11px;
  }

  .wellness-reviews-count {
    display: none; /* Hide count to guarantee price visibility */
  }

  .wellness-badge {
    padding: 2.5px 6px;
    font-size: 8.5px;
  }
}

/* ============================================================
   5. DISH IMAGE & DETAIL FULLSCREEN LIGHTBOX MODAL
   ============================================================ */
.wellness-dish-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
  box-sizing: border-box !important;
}

.wellness-dish-modal-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Light white frosted glass blur backdrop */
.wellness-dish-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  transition: opacity 0.25s ease !important;
}

/* Modal Dialog Card */
.wellness-dish-modal-dialog.wellness-lightbox-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: min(92vw, 560px) !important;
  max-height: min(90vh, 760px) !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(8, 42, 25, 0.08) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: scale(0.94) translateY(12px) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

.wellness-dish-modal-overlay.is-open .wellness-dish-modal-dialog.wellness-lightbox-dialog {
  transform: scale(1) translateY(0) !important;
}

/* Close Button (Safe-Area in top right corner of media) */
.wellness-dish-modal-close.wellness-lightbox-close {
  all: unset !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #082a19 !important;
  border: 1px solid rgba(8, 42, 25, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  line-height: 1 !important;
  -webkit-tap-highlight-color: transparent !important;
}

.wellness-dish-modal-close.wellness-lightbox-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  display: block !important;
  pointer-events: none !important;
}

.wellness-dish-modal-close.wellness-lightbox-close:hover {
  background: var(--wcm-gold, #d99a19) !important;
  color: #ffffff !important;
  border-color: var(--wcm-gold, #d99a19) !important;
  transform: rotate(90deg) scale(1.08) !important;
}

/* Media Container: Image at the top */
.wellness-lightbox-media-container {
  position: relative !important;
  width: 100% !important;
  height: 280px !important;
  min-height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f6f4 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.wellness-dish-modal-img.wellness-lightbox-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.wellness-dish-modal-placeholder.wellness-lightbox-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f0f4f1 !important;
  color: #6d7b73 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.wellness-dish-modal-placeholder.wellness-lightbox-placeholder .dashicons {
  font-size: 48px !important;
  width: 48px !important;
  height: 48px !important;
  color: var(--wcm-gold, #d99a19) !important;
  margin-bottom: 8px !important;
}

.wellness-dish-modal-placeholder.wellness-lightbox-placeholder p {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.wellness-dish-modal-img[style*="display: none"],
.wellness-dish-modal-img[style*="display:none"],
.wellness-dish-modal-img[hidden],
.wellness-dish-modal-placeholder[style*="display: none"],
.wellness-dish-modal-placeholder[style*="display:none"],
.wellness-dish-modal-placeholder[hidden] {
  display: none !important;
}

.wellness-badge.wellness-lightbox-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 5 !important;
}

/* Lightbox Content Section */
.wellness-lightbox-caption-strip {
  width: 100% !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: #ffffff !important;
  padding: 22px 24px 26px !important;
  color: #121814 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  max-height: calc(90vh - 280px) !important;
}

/* Sleek custom scrollbar for details container */
.wellness-lightbox-caption-strip::-webkit-scrollbar {
  width: 6px;
}
.wellness-lightbox-caption-strip::-webkit-scrollbar-track {
  background: #f7f6f3;
  border-radius: 4px;
}
.wellness-lightbox-caption-strip::-webkit-scrollbar-thumb {
  background: #cfd8d2;
  border-radius: 4px;
}
.wellness-lightbox-caption-strip::-webkit-scrollbar-thumb:hover {
  background: #aab5ad;
}

/* Meta Row: Category Tag + Rating */
.wellness-lightbox-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.wellness-dish-modal-category {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--wcm-green, #082a19) !important;
  background: rgba(8, 42, 25, 0.08) !important;
  border: 1px solid rgba(8, 42, 25, 0.12) !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: fit-content !important;
}

.wellness-lightbox-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #b88210 !important;
  background: #fef9ed !important;
  border: 1px solid rgba(217, 154, 25, 0.3) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}

.wellness-lightbox-rating .wellness-star-icon {
  color: #d99a19 !important;
  font-size: 13px !important;
}

.wellness-lightbox-rating .wellness-reviews-count {
  color: #8c734b !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
}

/* Main Row: Dish Title + Price */
.wellness-lightbox-caption-main {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.wellness-dish-modal-title.wellness-lightbox-title {
  color: #082a19 !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  flex: 1 1 auto !important;
  word-break: break-word !important;
}

.wellness-lightbox-caption-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.wellness-lightbox-caption-price .wellness-dish-modal-price-current {
  color: var(--wcm-gold, #d99a19) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

.wellness-lightbox-caption-price .wellness-dish-modal-price-regular {
  color: #8b9991 !important;
  font-size: 14px !important;
  text-decoration: line-through !important;
}

/* Full Description Section (Never truncated) */
.wellness-lightbox-caption-extra {
  display: block !important;
  width: 100% !important;
  padding-top: 12px !important;
  border-top: 1px solid #ebe8e1 !important;
}

.wellness-dish-modal-desc.wellness-lightbox-desc {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #4a564e !important;
  white-space: pre-line !important;
  word-break: break-word !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Lightbox Mobile Responsiveness */
@media (max-width: 767px) {
  .wellness-dish-modal-overlay {
    padding: 14px !important;
  }

  .wellness-dish-modal-dialog.wellness-lightbox-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 88vh !important;
    border-radius: 16px !important;
  }

  .wellness-dish-modal-close.wellness-lightbox-close {
    top: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .wellness-dish-modal-close.wellness-lightbox-close svg {
    width: 16px !important;
    height: 16px !important;
  }

  .wellness-lightbox-media-container {
    height: 200px !important;
    min-height: 180px !important;
  }

  .wellness-dish-modal-img.wellness-lightbox-img {
    height: 200px !important;
  }

  .wellness-lightbox-caption-strip {
    padding: 16px 18px 20px !important;
    gap: 10px !important;
    max-height: calc(88vh - 200px) !important;
  }

  .wellness-dish-modal-title.wellness-lightbox-title {
    font-size: 17px !important;
  }

  .wellness-lightbox-caption-price .wellness-dish-modal-price-current {
    font-size: 19px !important;
  }

  .wellness-lightbox-caption-price .wellness-dish-modal-price-regular {
    font-size: 13px !important;
  }

  .wellness-dish-modal-desc.wellness-lightbox-desc {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
}
