﻿/* ════════════════════════════════════════
   MEGA MENU
════════════════════════════════════════ */

/* Trigger button */
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mega-trigger > span:first-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 18.5px;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mega-parent:hover .mega-trigger > span:first-child,
.mega-parent:hover .dd-caret { color: var(--blue); }
.mega-parent:hover .dd-caret  { transform: rotate(180deg); }

/* ── Panel ── */
.mega-panel {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  z-index: 9000;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  flex-direction: row;
  align-items: stretch;
  min-height: 340px;
  max-height: 70vh;
  overflow: hidden;
}
.mega-parent:hover .mega-panel { display: flex; }
.mega-parent { position: relative !important; }

/* ── Left column — single, fixed width ── */
.mega-left-col {
  width: 250px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-right: 1px solid #e8e8e8;
  padding: 12px 0;
  overflow-y: auto;
}

/* Category row */
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 11px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  user-select: none;
  white-space: nowrap;
}
.mega-cat:hover,
.mega-cat.is-active {
  background: var(--white);
  color: var(--blue);
  border-left-color: var(--blue);
}
.mega-cat-arrow {
  font-size: 13px;
  color: #bbb;
  margin-left: 8px;
  flex-shrink: 0;
  transition: color .12s;
}
.mega-cat.is-active .mega-cat-arrow,
.mega-cat:hover .mega-cat-arrow { color: var(--blue); }

/* ── Right area — fills remaining space ── */
.mega-right-area {
  flex: 1;
  position: relative;
  overflow-y: auto;
  background: var(--white);
}

/* Each category's product panel */
.mega-right {
  display: none;
  padding: 20px 32px;
  columns: 3;
  column-gap: 24px;
}
.mega-right.is-visible { display: block; }

/* Product link */
.mega-product {
  display: block;
  padding: 8px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  break-inside: avoid;
  transition: color .12s, padding-left .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-product:hover {
  color: var(--blue);
  padding-left: 5px;
}
.mega-product:last-child { border-bottom: none; }

/* Mobile — hide mega panel */
@media (max-width: 980px) {
  .mega-panel { display: none !important; }
}
