/*
 * Aeroponic Theme v3.2.2
 * Safe compact mega-menu patch built directly on v3.2.0.
 * It preserves the original PHP renderer and only hides child links inside
 * the hover panel so all root categories can fit without replacing markup.
 */
.mega-system-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega-system-card {
  min-width: 0;
  padding: 0;
}

.mega-system-head {
  min-height: 104px;
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title arrow"
    "icon count arrow";
  column-gap: 11px;
  row-gap: 5px;
  align-items: center;
}

.mega-system-icon { grid-area: icon; }
.mega-system-title {
  grid-area: title;
  min-width: 0;
  font-size: clamp(.82rem, .85vw, .98rem);
  line-height: 1.15;
}
.mega-system-count {
  grid-area: count;
  justify-self: start;
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  font-size: .72rem;
}
.mega-system-count small {
  font-size: .55rem;
  letter-spacing: .08em;
}
.mega-system-arrow { grid-area: arrow; }
.mega-system-children { display: none !important; }

@media (max-width: 1380px) {
  .mega-system-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .mega-system-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .mega-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v3.2.4: Never display the legacy made-to-order badge, even if stale cached markup or another hook outputs it. */
.badge.badge-stock{display:none!important}
