/* Header mega menu */
.nav{position:relative}
.header-categories{position:static}
.header-categories>summary{display:flex;align-items:center;gap:9px;padding:29px 0;position:relative;list-style:none;cursor:pointer;color:inherit;font-weight:800;white-space:nowrap}
.header-categories>summary::-webkit-details-marker{display:none}
.header-categories>summary:after{content:"";position:absolute;right:0;left:100%;bottom:21px;height:3px;border-radius:4px;background:var(--red);transition:.2s}
.header-categories[open]>summary:after,.header-categories[data-current="true"]>summary:after,.header-categories>summary:hover:after{left:0}
.header-categories[open]>summary,.header-categories[data-current="true"]>summary{color:var(--red)}
.menu-dots{display:grid;grid-template-columns:repeat(2,4px);gap:2px}
.menu-dots i{display:block;width:4px;height:4px;border-radius:1px;background:currentColor}
.header-categories-panel{position:absolute;top:calc(100% - 1px);right:0;left:0;background:#fff;border:1px solid #dfe5ee;border-radius:0 0 24px 24px;box-shadow:0 26px 70px rgba(7,29,73,.2);padding:24px;z-index:120;text-align:right}
.header-categories-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 4px 18px;border-bottom:1px solid #e4e9f0;margin-bottom:16px}
.header-categories-head>div{display:grid;gap:2px}
.header-categories-head span{color:var(--red);font-size:.72rem;font-weight:900}
.header-categories-head b{color:var(--navy);font-size:1.18rem}
.header-categories-head small{color:var(--muted);font-size:.72rem}
.header-categories-head>a{padding:9px 14px!important;border:1px solid #dce3ed;border-radius:10px;color:var(--navy);font-size:.72rem;font-weight:900;background:#fff}
.header-categories-head>a:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.header-categories-head>a:after,.header-categories-grid>a:after{display:none!important}
.header-categories-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.header-categories-grid>a{display:flex;align-items:center;gap:11px;min-height:66px;padding:10px 11px!important;border:1px solid transparent;border-radius:14px;background:#f7f9fc;color:inherit}
.header-categories-grid>a:hover,.header-categories-grid>a.active{background:#fff4f2;border-color:#ffd1cd}
.header-categories-grid>a>i{font-style:normal;flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#e8eef8;color:var(--navy);font-size:.78rem;font-weight:900}
.header-categories-grid>a>i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-categories-grid>a:hover>i,.header-categories-grid>a.active>i{background:var(--navy);color:#fff}
.header-categories-grid>a>span{display:grid;min-width:0}
.header-categories-grid b{color:var(--navy);font-size:.8rem}
.header-categories-grid small{color:var(--muted);font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1000px){
  .header-categories{position:relative}
  .header-categories>summary{padding:9px}
  .header-categories>summary:after{display:none}
  .header-categories-panel{position:static;width:100%;margin-top:6px;padding:14px;border-radius:16px;box-shadow:none;background:#f8faff}
  .header-categories-head{align-items:flex-start}
  .header-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:54vh;overflow:auto}
  .header-categories-grid>a{min-height:58px}
}
@media(max-width:520px){
  .header-categories-head{display:grid}
  .header-categories-head>a{width:max-content}
  .header-categories-grid{grid-template-columns:1fr}
  .header-categories-grid small{white-space:normal}
}
