/* Product hover flyout — separate floating card (desktop only). Dropdown unchanged. */

.products-nav-parent {
  position: relative;
}

/* Gray highlight on hovered product row (matches reference UI) */
.products-nav-parent .mega-menu li ul li > a {
  display: block;
  margin: 0 -8px;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.products-nav-parent .mega-menu li ul li > a:hover,
.products-nav-parent .mega-menu li ul li > a.products-nav-item--active {
  background-color: #f0f0f0;
  color: var(--ltn__heading-color, #071c1f);
}

/* Floating preview card — rounded, soft shadow, beside dropdown */
.products-nav-flyout {
  position: fixed;
  width: 220px;
  padding: 14px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1002;
  pointer-events: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Bridge gap between dropdown and card */
.products-nav-flyout::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 100%;
}

.products-nav-flyout__content {
  animation: productsNavFlyoutIn 0.25s ease;
}

.products-nav-flyout__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 4px 0;
}

.products-nav-flyout__image {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.products-nav-flyout__title {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--ltn__heading-color, #071c1f);
}

.products-nav-flyout__description {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: #5c727d;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes productsNavFlyoutIn {
  from {
    opacity: 0;
    transform: translateX(8px) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 1199px) {
  .products-nav-flyout {
    display: none !important;
  }
}
