/* ===== MEGA NAVIGATION ===== */
.mega-nav {
  background: #1f2a3c;
  position: relative;
  z-index: 500;
  border-bottom: 3px solid #e31b23;
}

.mega-nav-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

.mega-tab {
  position: relative;
  flex-shrink: 0;
}

.mega-tab-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
}

.mega-tab-link:hover,
.mega-tab:hover > .mega-tab-link {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-bottom-color: #e31b23;
  text-decoration: none;
}

.mega-tab-link svg {
  transition: transform 0.2s;
  opacity: 0.6;
}
.mega-tab:hover > .mega-tab-link svg {
  transform: rotate(180deg);
}

.mega-sale {
  color: #ff6b6b !important;
  font-weight: 800;
}

/* DROPDOWN */
.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 720px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #e31b23;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 600;
  padding: 20px;
}

/* Keep dropdown open on hover */
.mega-tab:hover > .mega-dropdown {
  display: block;
}

/* For tabs near the right edge, align dropdown to right */
.mega-tab:nth-last-child(-n+3) .mega-dropdown {
  left: auto;
  right: 0;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s;
  line-height: 1.3;
}

.mega-item:hover {
  background: #f5f5f5;
  color: #e31b23;
  text-decoration: none;
}

.mega-item img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.mega-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 18px;
  flex-shrink: 0;
}

.mega-footer {
  border-top: 1px solid #ebebeb;
  padding-top: 12px;
  text-align: right;
}

.mega-footer a {
  color: #e31b23;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mega-footer a:hover {
  text-decoration: underline;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 6px;
}

@media (max-width: 768px) {
  .mega-nav-inner { overflow-x: auto; }
  .mega-tab-link { padding: 12px 10px; font-size: 12px; }
  .mega-dropdown { min-width: 90vw; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-btn { display: flex; }
}
