#header #main-menu .fast-v71-card img {object-fit:contain!important;}
/* V71: a single server-rendered 12-card grid; no readiness/image gates. */
@media(min-width:992px) {
  #header .header-main.fast-r60-fixed {
    position:fixed!important;top:0!important;left:0!important;right:0!important;
    width:100%!important;z-index:10020!important;margin:0!important;background:#fff!important;
    box-shadow:0 4px 16px rgba(0,0,0,.13)!important;
  }
  body.admin-bar #header .header-main.fast-r60-fixed {top:32px!important}
  .fast-r60-stick-space {display:none}
  #header #main-menu li.fast-products-mega > .popup {
    display:none!important;position:fixed!important;left:50%!important;right:auto!important;
    transform:translateX(-50%)!important;top:var(--fast-v71-popup-top,auto)!important;
    min-width:0!important;width:min(1186px,calc(100vw - 32px))!important;
    max-width:calc(100vw - 32px)!important;
    max-height:var(--fast-v71-max-height,calc(100dvh - 190px))!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;
    scrollbar-width:thin;scrollbar-color:#aeb4bc #f0f2f4;
    opacity:1!important;visibility:visible!important;
  }
  #header #main-menu li.fast-products-mega:hover > .popup,
  #header #main-menu li.fast-products-mega:focus-within > .popup {display:block!important}
  #header #main-menu li.fast-products-mega.fast-v71-dismissed > .popup {display:none!important}
  #header #main-menu li.fast-products-mega > .popup > .inner,
  #header #main-menu li.fast-products-mega > .popup > .inner > .sub-menu {
    width:100%!important;max-width:none!important;box-sizing:border-box!important;
  }
  #header #main-menu .fast-v71-mega {display:grid;grid-template-columns:minmax(245px,1fr) minmax(0,2fr);gap:20px;align-items:start}
  #header #main-menu .fast-v71-categories {min-width:0}
  #header #main-menu .fast-v71-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px;min-width:0}
  #header #main-menu .fast-v71-grid > a.fast-v71-card {
    display:flex!important;flex-direction:column;gap:12px;align-items:center;
    min-width:0;padding:0!important;margin:0!important;border:0!important;
    text-align:center;text-decoration:none!important;white-space:normal!important;
    color:#252b30!important;font:500 13px/1.55 'Segoe UI',Arial,sans-serif!important;
  }
  #header #main-menu .fast-v71-card img {
    display:block!important;position:static!important;width:100%!important;
    max-width:200px!important;height:auto!important;aspect-ratio:1/1;
    object-fit:contain!important;object-position:center!important;
    opacity:1!important;visibility:visible!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:9px!important;background:#f1f3f6;
  }
  #header #main-menu .fast-v71-card span {display:block;overflow-wrap:anywhere}
  #header #main-menu .fast-v71-card:focus-visible {outline:2px solid #222;outline-offset:4px}
}
@media(min-width:992px) and (max-width:1199px) {
  #header #main-menu .fast-v71-mega {grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:14px}
  #header #main-menu .fast-v71-grid {gap:18px 12px}
}

/* Cover fractional CSS viewport widths at the Porto 992px breakpoint. */
@media(max-width:991.98px){#header #main-menu{display:none!important}#header .mobile-toggle{display:inline-block!important}}
