/* ===== Catalog: home cards, mega menu, catalog window ===== */

/* home: five main groups */
.cats{grid-template-columns:repeat(6,1fr)}
.cats .cat{height:12.4rem}
.cats .cat__img{height:7.6rem}
.cat span.n{position:relative;font-size:0.72rem;color:var(--muted);margin-top:0.2rem}

/* mega menu */
.header__in{position:relative}
.nav__drop{position:static}
.dropdown{left:0;right:0;width:auto;top:calc(100% - 0.5rem);padding:0;border-radius:1rem}
.mega{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.2rem 1.8rem;padding:1.5rem 1.7rem 1.4rem}
.mega__col{display:flex;flex-direction:column;gap:0.05rem;min-width:0}
.dropdown .mega__col a{padding:0.32rem 0;border-radius:0;font-size:0.8rem;font-weight:400;color:#4b5b69;line-height:1.35}
.dropdown .mega__col a:hover{background:none;color:var(--teal)}
.dropdown .mega__col a.mega__h{font-size:0.86rem;font-weight:600;color:var(--navy);padding:0 0 0.55rem;margin-bottom:0.3rem;border-bottom:1px solid var(--line)}
.dropdown .mega__col a.mega__h:hover{color:var(--teal)}

/* catalog window */
.ctabs{display:flex;gap:1.5rem;border-bottom:1px solid var(--line);margin:0 0 1rem;overflow-x:auto;scrollbar-width:none}
.ctabs::-webkit-scrollbar{display:none}
.ctabs button{flex:none;padding:0.55rem 0;margin-bottom:-1px;font-size:0.85rem;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap;transition:color .2s,border-color .2s}
.ctabs button:hover{color:var(--navy)}
.ctabs button.on{color:var(--navy);font-weight:600;border-color:var(--teal)}
.chips.csub{margin-bottom:1rem}

/* products without a photo yet */
.noimg{display:grid;place-items:center;width:4.6rem;height:4.6rem;border-radius:1.1rem;background:#fff;color:#a9bfcc;box-shadow:inset 0 0 0 1.5px #e3ecf1}
.noimg svg{width:2.1rem;height:2.1rem}
.ci__img .noimg,.search__res .thumb .noimg{width:2.4rem;height:2.4rem;border-radius:0.6rem}
.ci__img .noimg svg,.search__res .thumb .noimg svg{width:1.2rem;height:1.2rem}

@media (max-width:1100px){
  .cats{grid-template-columns:repeat(3,1fr)}
  .mega{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* animate only what changes */
.chip{transition:background .2s,color .2s,border-color .2s}
.prod__f button{transition:background .2s}
.link-arrow,.fl__reset{transition:gap .2s,border-color .2s,color .2s,background .2s}
.fl__grp--wide{flex:1 0 100%}
/* photo of network equipment has a white background */

img[src$="cat_net.png"]{filter:brightness(1.05) contrast(1.05)}
.cats .cat__img{padding-left:0.25rem;padding-right:0.25rem}
.cats .cat__img img{max-width:100%}
/* photo of video surveillance equipment has a white background */
img[src$="cat_video.png"]{filter:brightness(1.05) contrast(1.05)}
/* photo of smart home equipment has a white background */
img[src$="cat_smart.png"]{filter:brightness(1.04) contrast(1.05)}
/* photo of IP telephony equipment has a white background */
img[src$="cat_ip.png"]{filter:brightness(1.04) contrast(1.05)}
/* photo of cellular amplification equipment has a white background */
img[src$="cat_cell.png"]{filter:brightness(1.04) contrast(1.05)}

/* clear cart */
.drawer__h{gap:0.8rem}
.drawer__h h3{margin-right:auto}
.cart-clear{font-size:0.78rem;font-weight:600;color:var(--muted);padding:0.4rem 0.9rem;border:1.5px solid #c3d2dc;border-radius:1.4rem;background:#fff;transition:border-color .2s,color .2s,background .2s}
.cart-clear:hover,.cart-clear.sure{border-color:#e08a8a;color:#c24d4d;background:#fff6f6}
.prod h5 a{color:inherit}
.prod h5 a:hover{color:var(--teal)}
