/* Nav hover drop-up menu (appears above Products on hover) */
.header .navbar .dropdown { position: relative; }

.nav-dropup {
  position: absolute;
  left: -20px; /* slight left shift so items visually center under Products */
  bottom: calc(100% - 12px); /* places card above item */
  width: 300px;
  background: #ff3b30; /* red card */
  color: #fff;
  border-radius: 28px;
  padding: 26px 24px 22px;
  min-height: 270px;
  box-shadow: 0 18px 50px rgba(255, 59, 48, 0.40), 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .22s ease, visibility .18s;
  z-index: 1500; /* above sticky nav and content */
}

.dropdown:hover .nav-dropup,
.dropdown:focus-within .nav-dropup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #ffffff;
}
.nav-dropup .dropup-header:not(:first-child){ margin-top:12px; }

.dropup-header i { font-size: 1rem; }

.dropup-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dropup-list li { margin: 14px 0; }
.dropup-list a {
  display: block;
  color: #1a1a1a; /* dark text like screenshot */
  text-decoration: none;
  padding: 6px 4px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
  transition: background .15s ease, transform .15s ease;
}
.dropup-list a:hover { background: rgba(255,255,255,0.18); transform: translateX(2px); }

/* Force vertical stacking inside the card (override header nav flex) */
.header .nav-links .nav-dropup .dropup-list { display: block !important; flex-direction: column !important; gap: 0 !important; }
.header .nav-links .nav-dropup .dropup-list li { display: block !important; }
.header .nav-links .nav-dropup .dropup-list a { display: block !important; width: 100%; }

@media (max-width: 768px) {
  .nav-dropup { width: 280px; min-height: 260px; }
}

/* Hidden text for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}
