/* Hover styling is limited to flyout rows; native catalogue cards keep their original styles. */
.istore-catalog-flyout { display: none; }
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .mega-menu .istore-catalog-flyout {
    --istore-flyout-ready: 1;
    text-align: left;
    display: block;
    position: fixed;
    box-sizing: border-box;
    width: 300px;
    padding: 8px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24,28,36,.12);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms cubic-bezier(.2,.7,.2,1), visibility 180ms;
  }
  .mega-menu .istore-catalog-flyout.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .istore-catalog-flyout::before {
    content: '';
    position: absolute;
    left: 0;
    top: -14px;
    width: 100%;
    height: 14px;
  }
  .mega-menu .istore-catalog-flyout__scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: inherit;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-radius: 12px;
  }
  .mega-menu .istore-catalog-flyout .istore-catalog-flyout__row > a.istore-catalog-flyout__link {
    display: block !important;
    box-sizing: border-box;
    float: none;
    position: relative;
    height: auto;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px !important;
    margin: 0 !important;
    color: #333 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: normal;
    text-decoration: none;
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  }
  .mega-menu .istore-catalog-flyout .istore-catalog-flyout__row > a.istore-catalog-flyout__link::before,
  .mega-menu .istore-catalog-flyout .istore-catalog-flyout__row > a.istore-catalog-flyout__link::after { display: none !important; }
  .mega-menu .istore-catalog-flyout__row { position: relative; border-radius: 12px; }
  .mega-menu .istore-catalog-flyout .has-catalog-children > a.istore-catalog-flyout__link { padding-right: 48px !important; }
  .mega-menu .istore-catalog-flyout .istore-catalog-flyout__row:hover > a.istore-catalog-flyout__link {
    color: #fff !important;
    background: #222 !important;
    border-color: #222 !important;
  }
  .mega-menu .istore-catalog-flyout__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    color: #555;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f7f7f8;
    box-shadow: none;
    cursor: pointer;
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
  }
  .mega-menu .istore-catalog-flyout__toggle > span {
    display: block;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    pointer-events: none;
  }
  .mega-menu .istore-catalog-flyout__toggle[aria-expanded="true"] > span { transform: translateY(3px) rotate(225deg); }
  .mega-menu .istore-catalog-flyout__row:hover > .istore-catalog-flyout__toggle {
    color: #fff;
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
  }
  .mega-menu .istore-catalog-flyout__toggle:hover { background: rgba(255,255,255,.22) !important; }
  .mega-menu .istore-catalog-flyout__toggle:focus-visible,
  .mega-menu .istore-catalog-flyout__link:focus-visible { outline: 2px solid #777; outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .mega-menu .istore-catalog-flyout { transform: none; transition: opacity 80ms linear, visibility 80ms; }
  .mega-menu .istore-catalog-flyout__toggle > span { transition: none; }
}
