/* =============================================================
   Mega Menu – Component Styles
   Targeting the existing markup in header.php that uses `.mega-menu`
   ============================================================= */

.mega-menu {
  border-top: 4px solid var(--relaxo-orange);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* Open state via hover on the parent “group” */
.group:hover > .mega-menu,
.group:focus-within > .mega-menu,
.mega-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Container paddings inside the panel */
.mega-menu > * {
  padding: 1rem 1.25rem;
}

/* Grid helpers within mega-menu */
.mega-menu .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 1024px) {
  .mega-menu .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .mega-menu .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Column blocks */
.mega-menu .menu-col h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.mega-menu .menu-col p.desc {
  color: var(--text-gray);
  font-size: .9rem;
  margin-bottom: .75rem;
}

/* Links */
.mega-menu a {
  display: block;
  padding: .375rem .75rem;
  border-radius: 8px;
  color: #374151; /* gray-700 */
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.mega-menu a:hover {
  color: var(--relaxo-orange);
  background-color: var(--gray-50);
  transform: translateX(2px);
}

/* Featured card area (optional) */
.mega-menu .featured-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mega-menu .featured-card img { width: 100%; height: 140px; object-fit: cover; }
.mega-menu .featured-card .body { padding: .75rem; }
.mega-menu .featured-card .title { font-weight: 600; color: var(--text-dark); margin-bottom: .25rem; }
.mega-menu .featured-card .cta { color: var(--relaxo-orange); font-weight: 600; text-decoration: none; }

/* Loading skeleton within mega menu */
.mega-menu .category-loading .h-3,
.mega-menu .category-loading .h-4 {
  border-radius: 6px;
}

/* Small caret adjustment for buttons inside the nav */
.mega-menu-caret { margin-left: .5rem; font-size: .875rem; opacity: .7; }

