/* Keep these refinements inside the existing desktop product menu. */
#productWrapper #megaMenu {
  padding: 24px 32px 28px;
  border: 1px solid #e9ecf0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 36px -16px #17243438, 0 4px 12px #17243408;
  max-height: calc(100vh - 180px);
  overflow: auto;
  letter-spacing: 0;
}
#megaMenu .category-panel { flex: 0 0 232px; padding-right: 24px; }
#megaMenu .cat-grid { gap: 8px; }
#megaMenu .cat-item {
  min-height: 44px;
  gap: 12px;
  border-radius: 10px;
  line-height: 1.45;
  white-space: normal;
  transition: background-color .15s, border-color .15s, color .15s;
}
#megaMenu .cat-item > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#megaMenu .cat-link-arrow { flex: 0 0 14px; font-size: 12px; color: #98a2af; }
#megaMenu .cat-item:hover { border-color: #e3e7ed; background: #f7f8fa; }
#megaMenu .cat-item.active-cat { color: #c9232a; background: #fff3f3; border-color: #f3d2d4; font-weight: 600; }
#megaMenu .cat-item.active-cat .cat-link-arrow { color: #c9232a; }
#megaMenu .active-line { width: 3px; background: #e5252c; filter: none; }
#megaMenu .product-panel { min-height: 0; min-width: 0; padding-left: 26px; }
#megaMenu .productGroup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#megaMenu .product-card {
  position: relative;
  min-width: 0;
  min-height: 54px;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 18px;
  text-align: center;
  border-radius: 8px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
#megaMenu .product-card > img {
  width: 190px;
  max-width: 100%;
  height: 180px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}
#megaMenu .product-card > span { width: 100%; font-size: 14px; font-weight: 600; line-height: 1.5; }
#megaMenu .product-card > div { margin-top: 0; line-height: 1.5; }
#megaMenu .product-card > div:not(:has(p:not(:empty))) { display: none; }
#megaMenu .product-card > span, #megaMenu .product-card > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#megaMenu .category-link-arrow {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 14px;
  color: #a1a9b4;
  pointer-events: none;
}
#megaMenu .product-card:hover { transform: none; border-color: #eabcbf; background: #fffafa; box-shadow: 0 3px 10px #17243408; }
#megaMenu .product-card:hover .category-link-arrow { color: #c9232a; }
#megaMenu a:focus-visible { outline: 2px solid #d7252d; outline-offset: 2px; }
@media (max-width: 1439px) {
  #megaMenu .productGroup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #productWrapper #megaMenu, #megaMenu .cat-item, #megaMenu .product-card, #megaMenu .active-line { transition: none; }
}
