/**
 * Menu Sections by Category - CSS
 * Uses Core Framework CSS variables with safe fallbacks
 */

/* Scroll Progress Bar */
.ms-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary, #000000) 60%, white 40%),
    color-mix(in srgb, var(--primary, #000000) 70%, white 30%)
  );
  z-index: 9999;
  transition: width 0.1s ease-out;
  will-change: width;
  filter: brightness(1.3) saturate(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Main wrapper */
.ms-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-body, #ffffff);
  min-height: 100vh;
}

/* Empty state */
.ms-empty {
  text-align: center;
  padding: var(--space-xl, 48px);
  color: var(--text-body, #666);
  font-size: var(--text-base, 16px);
}

/* Sticky category navigation */
.ms-cats-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-2xs, 4px);
  padding: var(--space-2xs, 6px) var(--space-xs, 8px);
  background: var(--bg-surface, #f5f5f5);
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Menu toggle button */
.ms-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-s, 8px);
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  margin-right: 2px;
}

.ms-menu-toggle.is-visible {
  display: flex;
}

.ms-menu-toggle:hover {
  background: var(--bg-muted, rgba(0, 0, 0, 0.04));
}

.ms-menu-icon {
  width: 20px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ms-menu-icon-line {
  width: 100%;
  height: 2px;
  background: var(--text-body, #333333);
  border-radius: 1px;
}

.ms-menu-icon-line:last-child {
  margin-bottom: 0;
}

/* Horizontal category scroll */
.ms-cats-scroll {
  flex: 1;
  display: flex;
  gap: var(--space-xs, 6px);
  overflow-x: auto;
  overflow-y: hidden;
  /* Keep smooth for desktop; JS will handle mobile instant jumps */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 0;
  /* Snap for compositor-level positioning */
  scroll-snap-type: x proximity;
}

/* Hide scrollbar for Webkit browsers */
.ms-cats-scroll::-webkit-scrollbar {
  display: none;
}

/* Category tabs */
.ms-cat-tab {
  flex: 0 0 auto;
  padding: var(--space-2xs, 4px) var(--space-s, 12px);
  /* Each tab is a snap target */
  scroll-snap-align: start;
  border-radius: var(--radius-xs, 4px);
  background: transparent;
  border: none;
  color: var(--text-muted, #666666);
  font-size: var(--text-sm, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 28px;
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  will-change: color, font-weight, background-color;
  text-transform: uppercase;
}

.ms-cat-tab:hover {
  background: transparent;
  color: var(--text-body, #333333);
}

.ms-cat-tab:focus {
  outline: none;
}

.ms-cat-tab.is-active {
  background: var(--primary-l-4, rgba(0, 0, 0, 0.1));
  color: var(--primary, #000000);
  font-weight: 600;
}

/* Vertical menu dropdown */
.ms-vertical-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg-surface, #ffffff);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  padding-top: var(--space-xl, 60px);
  padding-bottom: var(--space-xl, 60px);
  -webkit-overflow-scrolling: touch;
}

.ms-vertical-menu.is-open {
  display: block;
}

.ms-vertical-menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-xs, 20px);
  background: var(--bg-surface, #ffffff);
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-vertical-menu-title {
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  color: var(--text-title, #000000);
  margin: 0;
}

.ms-vertical-menu-subtitle {
  font-size: var(--text-sm, 14px);
  color: var(--text-muted, #666666);
  margin: var(--space-2xs, 4px) 0 0;
}

.ms-close-button {
  background: none;
  border: none;
  font-size: var(--text-xl, 24px);
  color: var(--text-body, #333333);
  cursor: pointer;
  padding: var(--space-xs, 8px);
  border-radius: var(--radius-s, 8px);
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-close-button:hover {
  background: var(--bg-muted, rgba(0, 0, 0, 0.04));
}

.ms-vertical-menu-content {
  padding: var(--space-m, 60px) 0 0;
}

.ms-vertical-menu-item {
  display: flex;
  align-items: center;
  padding: var(--space-s, 12px) var(--space-m, 20px);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: var(--text-sm, 14px);
  color: var(--text-body, #333333);
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.05));
}

.ms-vertical-menu-item:last-child {
  border-bottom: none;
}

.ms-vertical-menu-item:hover {
  background: var(--bg-muted, rgba(0, 0, 0, 0.04));
}

.ms-vertical-menu-item.is-active {
  background: var(--bg-muted, rgba(0, 0, 0, 0.06));
  font-weight: 600;
}

.ms-dismiss-button {
  position: fixed;
  bottom: var(--space-l, 32px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-body, #333333);
  color: var(--text-on-dark, #ffffff);
  border: none;
  padding: var(--space-s, 12px) var(--space-l, 32px);
  border-radius: var(--radius-full, 999px);
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-l, 0 8px 32px rgba(0, 0, 0, 0.2));
  z-index: 1001;
  transition: all 0.2s ease;
}

.ms-dismiss-button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-xl, 0 12px 40px rgba(0, 0, 0, 0.25));
}

/* Sections container */
.ms-sections {
  display: flex;
  flex-direction: column;
}

/* Individual section */
.ms-section {
  padding: var(--space-m, 24px) var(--space-m, 16px);
  scroll-margin-top: var(--menu-sticky-offset, 120px);
  background: var(--bg-surface, #ffffff);
  margin-bottom: var(--space-s, 8px);
}

/* Section title */
.ms-section-title {
  margin: 0 0 var(--space-s, 16px) 0;
  font-size: var(--text-lg, 20px);
  font-weight: 600;
  color: var(--text-title, #000000);
  line-height: 1.3;
}

/* Items container */
.ms-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual item */
.ms-item {
  display: flex;
  gap: var(--space-s, 12px);
  padding: var(--space-m, 16px);
  background: var(--bg-surface, #ffffff);
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  transition: background-color 0.15s ease;
  cursor: pointer;
  align-items: flex-start;
  will-change: background-color;
}

.ms-item:last-child {
  border-bottom: none;
}

/* Removed padding inconsistency - all items now have same padding */

.ms-item:hover {
  background: var(--bg-muted, rgba(0, 0, 0, 0.02));
}

/* Items with images - fullscreen layout */
.ms-item.has-image {
  padding: 0;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  background: var(--bg-surface, #ffffff);
  border-radius: 12px;
  overflow: hidden;
}

.ms-item.has-image:has(.ms-item-ingredients-accordion) {
  margin-bottom: var(--space-m, 16px);
}

.ms-item.has-image:hover {
  background: var(--bg-surface, #ffffff);
}

.ms-item-image-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Fullscreen image */
.ms-item-img-fullscreen {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Tag icons */
.ms-item-tags {
  display: flex;
  gap: 5px !important;
  padding: 0 0 4px 0;
  flex-wrap: wrap;
}

.ms-item-content-wrapper .ms-item-tags {
  padding: 0 0 4px 0;
}

.ms-item-tag-icon {
  width: 33px !important;
  height: 33px !important;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  position: relative;
  transform: scale(1);
}

.ms-item-tag-icon:active {
  transform: scale(0.95);
}

/* Tag tooltip (click/touch based for mobile) */
.ms-tag-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ms-tag-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ms-tag-tooltip.is-hiding {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.6, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.6, 1), visibility 0.25s;
}

.ms-tag-tooltip-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  background: transparent;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.ms-tag-tooltip-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
}

.ms-tag-tooltip-backdrop.is-hiding {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.6, 1), visibility 0.25s;
}

/* Content wrapper for tags and title-price */
.ms-item-content-wrapper {
  background-color: #fbfbfb;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Title and price row */
.ms-item-title-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s, 12px) var(--space-m, 16px);
  gap: var(--space-s, 12px);
}

.ms-item-content-wrapper .ms-item-title-price-row {
  padding: 0;
}

.ms-item-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ms-item.has-image .ms-item-title {
  margin: 0;
}

.ms-item.has-image .ms-item-price {
  margin: 0;
  flex-shrink: 0;
}

/* Ingredients accordion */
.ms-item-ingredients-accordion {
  border-top: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  margin-top: 0;
  overflow: hidden;
}

.ms-item-ingredients-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s, 12px) var(--space-m, 16px);
  background: var(--bg-muted, #f5f5f5);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  font-size: var(--text-sm, 14px);
  color: var(--text-body, #333333);
}

.ms-item-ingredients-toggle:hover {
  background: var(--bg-muted-hover, #e8e8e8);
}

.ms-item-ingredients-label {
  font-weight: 500;
}

.ms-item-ingredients-arrow {
  font-size: var(--text-lg, 18px);
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.ms-item-ingredients-accordion.is-open .ms-item-ingredients-arrow {
  transform: rotate(90deg);
}

.ms-item-ingredients-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.08s,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

.ms-item-ingredients-accordion.is-open .ms-item-ingredients-content {
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.08s,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

.ms-item-ingredients-text {
  padding: var(--space-s, 12px) var(--space-m, 16px);
  color: var(--text-muted, #666666);
  font-size: var(--text-sm, 14px);
  line-height: 1.5;
  background: var(--bg-muted, #f5f5f5);
}

.ms-item.has-image .ms-item-ingredients-accordion {
  border-radius: 0 0 12px 12px;
}

.ms-item.no-image .ms-item-ingredients-accordion {
  border-radius: 0 0 8px 8px;
}

/* Item image */
.ms-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xs, 4px);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-muted, #f5f5f5);
  order: 2;
}

/* Item info container */
.ms-item-info {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  order: 1;
  margin: 0;
  padding: 0;
}

/* Content wrapper for items without images - extends beyond parent padding like ingredients accordion */
.ms-item-info .ms-item-content-wrapper {
  width: calc(100% + 32px);
  max-width: calc(100% + 32px);
  box-sizing: border-box;
  background-color: #fbfbfb;
  padding: 8px 16px;
  border-radius: 6px;
  margin-left: calc(-1 * var(--space-m, 16px));
  margin-right: calc(-1 * var(--space-m, 16px));
  flex-shrink: 0;
}

/* Title and price row for items without images */
.ms-item-info .ms-item-title-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s, 12px) 0;
  gap: var(--space-s, 12px);
}

.ms-item-info .ms-item-content-wrapper .ms-item-title-price-row {
  padding: 0;
}

.ms-item-info .ms-item-content-wrapper .ms-item-tags {
  padding: 0 0 4px 0;
}

.ms-item-info .ms-item-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ms-item-info .ms-item-title {
  margin: 0;
}

.ms-item-info .ms-item-price {
  margin: 0;
  flex-shrink: 0;
}

/* Tag circles for items without images */
.ms-item-info .ms-item-tags {
  padding: var(--space-xs, 8px) 0 0;
}

/* Ingredients accordion for items without images - needs to break out of parent padding */
.ms-item-info .ms-item-ingredients-accordion {
  width: calc(100% + 32px);
  margin-left: calc(-1 * var(--space-m, 16px));
  margin-right: calc(-1 * var(--space-m, 16px));
  margin-bottom: var(--space-m, 16px);
}

/* Item title */
.ms-item-title {
  margin: 0 0 var(--space-2xs, 4px) 0;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  color: var(--text-title, #000000);
  line-height: 1.4;
}

.ms-item-title-wrapper .ms-item-title {
  margin: 0;
}

/* Acompanhamento subtitle */
.ms-item-acompanhamento {
  font-size: 13px;
  color: var(--text-title, #000000);
  opacity: 0.5;
  line-height: 1.4;
  margin-top: 2px;
}

/* Item price */
.ms-item-price {
  font-weight: 600;
  color: var(--text-title, #000000);
  font-size: var(--text-base, 16px);
  margin-bottom: var(--space-xs, 8px);
}

/* Item ingredients/description */
.ms-item-sub {
  color: var(--text-muted, #666);
  font-size: var(--text-sm, 14px);
  line-height: 1.4;
  margin-top: var(--space-2xs, 4px);
}

/* Lightbox styling */
.ms-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-m, 20px);
}

.ms-lightbox.is-open {
  display: flex;
}

.ms-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.ms-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-m, 12px);
  touch-action: pinch-zoom;
}

.ms-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg, 18px);
  color: var(--text-body, #333333);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ms-lightbox-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Mobile-first responsive breakpoints matching Bricks Builder */

/* Mobile landscape and up (767px+) */
@media (min-width: 767px) {
  .ms-wrapper {
    padding: 0 var(--space-m, 20px);
  }

  .ms-cats-nav {
    padding: var(--space-s, 12px) var(--space-l, 24px);
  }

  .ms-section {
    padding: var(--space-l, 32px) var(--space-l, 24px);
  }

  .ms-item {
    padding: var(--space-m, 20px);
    gap: var(--space-s, 16px);
  }

  .ms-item-img {
    width: 90px;
    height: 90px;
  }

  .ms-section-title {
    font-size: var(--text-xl, 24px);
    margin-bottom: var(--space-m, 20px);
  }
}

/* Tablet portrait and up (991px+) */
@media (min-width: 991px) {
  .ms-wrapper {
    padding: 0 var(--space-l, 32px);
  }

  .ms-cats-nav {
    padding: var(--space-m, 16px) var(--space-xl, 32px);
  }

  .ms-section {
    padding: var(--space-xl, 40px) var(--space-xl, 32px);
  }

  .ms-item {
    padding: var(--space-l, 24px);
    gap: var(--space-m, 20px);
  }

  .ms-item-img {
    width: 100px;
    height: 100px;
  }

  .ms-section-title {
    font-size: var(--text-2xl, 28px);
    margin-bottom: var(--space-l, 24px);
  }

  .ms-item-title {
    font-size: var(--text-lg, 18px);
  }

  .ms-item-price {
    font-size: var(--text-lg, 18px);
  }
}

/* Desktop and up (1279px+) */
@media (min-width: 1279px) {
  .ms-wrapper {
    padding: 0 var(--space-xl, 40px);
  }

  .ms-cats-nav {
    padding: var(--space-l, 20px) var(--space-2xl, 40px);
  }

  .ms-section {
    padding: var(--space-2xl, 48px) var(--space-2xl, 40px);
  }

  .ms-item {
    padding: var(--space-xl, 28px);
    gap: var(--space-l, 24px);
  }

  .ms-item-img {
    width: 110px;
    height: 110px;
  }

  .ms-section-title {
    font-size: var(--text-3xl, 32px);
    margin-bottom: var(--space-xl, 28px);
  }

  .ms-item-title {
    font-size: var(--text-xl, 20px);
  }

  .ms-item-price {
    font-size: var(--text-xl, 20px);
  }

  .ms-item-sub {
    font-size: var(--text-base, 16px);
  }
}

/* Mobile portrait specific adjustments (below 767px) */
@media (max-width: 766px) {
  .ms-section {
    padding: var(--space-s, 16px);
  }

  .ms-item {
    padding: var(--space-s, 16px);
    gap: var(--space-xs, 8px);
  }

  .ms-item-img {
    width: 72px;
    height: 72px;
  }

  .ms-section-title {
    font-size: var(--text-lg, 20px);
    margin-bottom: var(--space-s, 16px);
  }

  .ms-items {
    gap: var(--space-xs, 12px);
  }

  .ms-cats-nav {
    padding: var(--space-xs, 8px) var(--space-s, 12px);
  }

  /* Mobile performance optimizations */
  .ms-cat-tab {
    transition: color 0.1s ease, font-weight 0.1s ease;
  }

  .ms-item {
    transition: background-color 0.1s ease;
  }

  .ms-item-img {
    transition: transform 0.1s ease;
  }

  /* Reduce scroll behavior for better mobile performance */
  .ms-cats-scroll {
    scroll-behavior: auto;
  }

  /* Optimize rendering for mobile */
  .ms-wrapper {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

/* ========================================
   NEW SHORTCODES STYLES
   ======================================== */

/* Parent Categories Grid (nc_menu_parents) - Banner Style */
.ms-parents-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-m, 16px);
}

.ms-parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-l, 24px);
  margin-bottom: var(--space-l, 24px);
}

.ms-parent-banner {
  position: relative;
  display: block;
  height: 250px;
  border-radius: var(--radius-l, 16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-s, 0 4px 12px rgba(0, 0, 0, 0.15));
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.1));
}

.ms-parent-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl, 0 8px 25px rgba(0, 0, 0, 0.2));
  text-decoration: none;
  color: inherit;
}

.ms-parent-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.ms-parent-bg-default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ms-parent-banner:hover .ms-parent-bg {
  transform: scale(1.05);
}

.ms-parent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.ms-parent-banner:hover .ms-parent-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.ms-parent-content {
  text-align: center;
  color: white;
  padding: var(--space-m, 16px);
}

.ms-parent-title {
  margin: 0 0 var(--space-xs, 8px) 0;
  font-size: var(--text-2xl, 28px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.ms-parent-count {
  font-size: var(--text-base, 16px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Term Navigation & Items (nc_menu_term) - Uses original menu_grouped styles */
/* The nc_menu_term shortcode now uses the same CSS classes as the original shortcode:
   - .ms-wrapper, .ms-cats-nav, .ms-cats-scroll, .ms-cat-tab
   - .ms-sections, .ms-section, .ms-section-title
   - .ms-items, .ms-item, .ms-item-info, .ms-item-title, .ms-item-price, .ms-item-sub, .ms-item-img
   - All existing styles from the original shortcode apply automatically
*/

/* Search functionality for nc_menu_term */
.ms-search-wrapper {
  margin-bottom: var(--space-l, 24px);
  display: flex;
  justify-content: center;
  padding: 0 var(--space-m, 16px);
}

.ms-search-input {
  width: 100%;
  max-width: 400px;
  padding: var(--space-s, 12px) var(--space-m, 16px);
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-m, 12px);
  font-size: var(--text-base, 16px);
  background: var(--bg-surface, #ffffff);
  transition: border-color 0.2s ease;
}

.ms-search-input:focus {
  outline: none;
  border-color: var(--primary, #000000);
}

/* Responsive styles for new shortcodes */
@media (max-width: 768px) {
  .ms-parents-wrapper {
    padding: var(--space-s, 12px);
  }

  .ms-parents-grid {
    grid-template-columns: 1fr;
    gap: var(--space-s, 12px);
  }

  .ms-parent-banner {
    height: 200px;
  }

  .ms-parent-title {
    font-size: var(--text-xl, 24px);
  }

  .ms-parent-count {
    font-size: var(--text-sm, 14px);
  }

  .ms-search-wrapper {
    margin-bottom: var(--space-m, 16px);
    padding: 0 var(--space-s, 12px);
  }

  .ms-search-input {
    padding: var(--space-xs, 8px) var(--space-s, 12px);
    font-size: 14px;
  }
}
