.cs-breadcrumbs {
  display: none !important;
}

.cs-main-content,
.cs-sidebar-disabled .cs-main-content,
.cs-sidebar-left .cs-main-content .cs-entry__container,
.cs-sidebar-right .cs-main-content {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* ══════════════════════════════════════════
   Variables & Wrapper
   ══════════════════════════════════════════ */
.menu-grid-wrap {
  --primary: #750ef7;
  --primary-light: #f3eaff;
  --heading: #181d27;
  --subtitle: #535862;
  --muted: #717680;
  --border: #e0e0e0;

  font-family: "Inter", sans-serif;
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */
.menu-grid-wrap .mg-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 20px;
}

.menu-grid-wrap .mg-subtitle {
  font-size: 15px;
  color: var(--subtitle);
  margin: 0 0 16px;
}

/* ══════════════════════════════════════════
   Filter Tabs
   ══════════════════════════════════════════ */
.menu-grid-wrap .mg-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  /* justify-content: center; */
  -webkit-overflow-scrolling: touch;
}

.menu-grid-wrap .mg-filters::-webkit-scrollbar {
  height: 4px;
}

.menu-grid-wrap .mg-filter-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-grid-wrap .mg-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-grid-wrap .mg-filter-btn.active {
  background: var(--primary-light);
  border-color: transparent;
  color: var(--primary);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   GRID — CSS columns (instant, no JS needed for layout)
   ══════════════════════════════════════════ */
.menu-grid-wrap .mg-grid {
  column-count: 4;
  column-gap: 20px;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   Card
   ══════════════════════════════════════════ */
.menu-grid-wrap .mg-card {
  text-decoration: none;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  opacity: 1;
}

.menu-grid-wrap .mg-card:hover {
  transform: translateY(-4px);
}

/* Hidden by filter */
.menu-grid-wrap .mg-card[data-visible="false"] {
  display: none;
}

/* ══════════════════════════════════════════
   Image Area with Skeleton
   ══════════════════════════════════════════ */
.menu-grid-wrap .mg-card-img-wrap {
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
  border-radius: 16px;
  /* Fixed estimated height before image loads — prevents layout shift */
  min-height: 200px;
}

/* ── Skeleton shimmer animation ── */
.menu-grid-wrap .mg-card-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: mg-shimmer 1.5s ease-in-out infinite;
  border-radius: 16px;
  transition: opacity 0.3s ease;
}

/* Hide skeleton once image loaded */
.menu-grid-wrap .mg-card-img-wrap.mg-loaded::before {
  opacity: 0;
  pointer-events: none;
}

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

/* ── Image — hidden until loaded ── */
.menu-grid-wrap .mg-card-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.menu-grid-wrap .mg-card-img-wrap.mg-loaded img {
  opacity: 1;
}

.menu-grid-wrap .mg-card:hover img {
  transform: scale(1.05);
}

/* ── Placeholder (no image) ── */
.menu-grid-wrap .mg-placeholder {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.menu-grid-wrap .mg-placeholder-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ── Card Info ── */
.menu-grid-wrap .mg-card-info {
  padding: 10px 4px 14px;
}

.menu-grid-wrap .mg-card-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.3;
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 768px): 2 columns
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .menu-grid-wrap {
    padding: 24px 12px;
  }

  .menu-grid-wrap .mg-title {
    font-size: 22px;
  }

  .menu-grid-wrap .mg-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .menu-grid-wrap .mg-filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .menu-grid-wrap .mg-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .menu-grid-wrap .mg-card {
    margin-bottom: 16px;
  }

  .menu-grid-wrap .mg-card-item-name {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px): 1 column
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .menu-grid-wrap {
    padding: 20px 12px;
  }

  .menu-grid-wrap .mg-title {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .menu-grid-wrap p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .menu-grid-wrap .mg-filters {
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 6px;
  }

  .menu-grid-wrap .mg-filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* Change column-count from 1 to 2 */
  .menu-grid-wrap .mg-grid {
    column-count: 2;
    column-gap: 12px;
  }

  /* Remove the max-width centering — it only made sense for 1 column */
  .menu-grid-wrap .mg-card {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
  }

  /* Slightly reduce min-height since cards are narrower now */
  .menu-grid-wrap .mg-card-img-wrap {
    min-height: 120px;
  }

  .menu-grid-wrap .mg-placeholder-name {
    font-size: 16px;
  }

  .menu-grid-wrap .mg-card-item-name {
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Extra small (≤ 380px)
   ══════════════════════════════════════════ */
@media (max-width: 380px) {
  .menu-grid-wrap {
    padding: 16px 10px;
  }

  .menu-grid-wrap .mg-filter-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .menu-grid-wrap .mg-card-item-name {
    font-size: 12px;
  }
}
