/* ================================
   MEGA MENU - PRODUCTS
   ================================ */

.mega-menu {
  position: fixed;
  top: 84px; /* Height of header on desktop */
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mega-menu.is-visible {
  visibility: visible;
  opacity: 1;
}

/* Semi-transparent overlay */
.mega-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.4);
  z-index: -1;
}

/* White dropdown panel */
.mega-menu__panel {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mega-menu__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px;
}

/* 5-column grid */
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
}

/* Column */
.mega-menu__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Category header (gray text) */
.mega-menu__category-header {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* List */
.mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Links */
.mega-menu__link {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: 15px;
  color: var(--velvet-black);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.mega-menu__link:hover {
  color: var(--imperial-purple);
  padding-left: 4px;
}

/* ================================
   RESPONSIVE
   ================================ */

/* Hide on mobile and tablet */
@media (max-width: 767px) {
  .mega-menu {
    display: none;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1099px) {
  .mega-menu {
    top: 84px;
  }

  .mega-menu__container {
    padding: 32px 40px;
  }

  .mega-menu__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .mega-menu__column:nth-child(n + 4) {
    grid-column: span 1;
  }
}

/* Small desktop */
@media (min-width: 1100px) {
  .mega-menu__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
