/* Expand/collapse mega-menu panels under the site header (Collections, Characteristics). */
.collections-panel,
.characteristics-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.collections-panel.is-open,
.characteristics-panel.is-open {
  max-height: var(--mega-menu-open-height, min(90vh, 1600px));
}

#collections-toggle[aria-expanded="true"] #collections-chevron,
#characteristics-toggle[aria-expanded="true"] #characteristics-chevron {
  transform: rotate(180deg);
}

/* Section title → cards: ~32–40px (reference comps). */
.characteristics-mega-header {
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .characteristics-mega-header {
    margin-bottom: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .characteristics-mega-header {
    margin-bottom: 2.5rem;
  }
}

/* Characteristics mega-menu: 2-up cards from sm breakpoint (see mocks2 panel). */
.characteristics-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .characteristics-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .characteristics-mega-grid {
    gap: 2rem;
  }
}
