/* Products mega-menu (desktop). Dark category rail + light panel, red/black/white theme. */
@media (min-width: 992px) {
  .navbar-nav .mega-item { position: static; }
  .dropdown-menu.mega-menu {
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    position: absolute; top: 100%; left: 0; right: 0; width: auto; min-width: 0; margin: 0; padding: 0;
    overflow: hidden; background: #fff; border: 0; border-top: 4px solid var(--brand-red); border-radius: 0 0 8px 8px;
    box-shadow: 0 28px 60px rgba(0,0,0,.28);
    visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .navbar .mega-item:hover > .mega-menu,
  .navbar .mega-item > .mega-menu.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }

  .mega-rail { background: #151515; padding: .4rem 0; }
  .mega-tab {
    position: relative; display: flex; align-items: center; gap: .85rem; padding: .62rem 1.1rem;
    color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .92rem; font-weight: 600; transition: background .15s ease, color .15s ease;
  }
  .mega-tab:last-child { border-bottom: 0; }
  .mega-tab img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; background: #fff; border-radius: 8px; }
  .mega-tab span { flex: 1; }
  .mega-noimg { display: grid !important; place-items: center; flex: 0 0 44px !important; width: 44px; height: 44px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); border-radius: 8px; font-size: 1.2rem; }
  .mega-grid a .mega-noimg { flex-basis: 46px !important; width: 46px; height: 46px; color: #9aa1a6; background: #f2f2f2; border-radius: 6px; }
  .mega-tab i { font-size: .7rem; color: rgba(255,255,255,.4); transition: transform .15s ease, color .15s ease; }
  .mega-tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-red); transform: scaleY(0); transition: transform .15s ease; }
  .mega-tab:hover, .mega-tab:focus-visible, .mega-tab.is-active { color: #fff; background: #242424; outline: 0; }
  .mega-tab.is-active::before { transform: scaleY(1); }
  .mega-tab.is-active i { color: var(--brand-red); transform: translateX(3px); }

  .mega-panels { position: relative; min-height: 420px; background: linear-gradient(135deg, #fff 60%, #f6f6f6 100%); }
  .mega-panel { display: none; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; height: 100%; padding: 1.6rem 1.8rem; }
  .mega-panel.is-active { display: grid; animation: megaIn .2s ease; }
  @keyframes megaIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

  .mega-title { margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #151515; }
  .mega-title span { display: inline-block; padding-bottom: .35rem; border-bottom: 3px solid var(--brand-red); }
  .mega-blurb { margin: .8rem 0 1.1rem; color: #6b7378; font-size: .86rem; }
  .mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin: 0; padding: 0; list-style: none; }
  .mega-grid a {
    display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; color: #252a2e;
    border: 1px solid #ececec; border-radius: 8px; background: #fff; font-size: .88rem; font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
  }
  .mega-grid a img { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
  .mega-grid a span { flex: 1; }
  .mega-grid a i { color: #b5bbbf; font-size: .72rem; transition: color .15s ease, transform .15s ease; }
  .mega-grid a:hover, .mega-grid a:focus-visible { color: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 6px 16px rgba(237,28,36,.12); transform: translateY(-1px); outline: 0; }
  .mega-grid a:hover i { color: var(--brand-red); transform: translate(2px,-2px); }
  .mega-all { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem; color: var(--brand-red); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .mega-all:hover { color: #151515; }

  .mega-feature { position: relative; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; border-radius: 10px; background: #151515; color: #fff; }
  .mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
  .mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,7,7,.95) 8%, rgba(7,7,7,.1) 70%); }
  .mega-feature div { position: relative; z-index: 1; padding: 1.2rem; }
  .mega-feature small { display: block; color: var(--brand-red); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mega-feature strong { display: block; margin: .3rem 0 .7rem; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
  .mega-feature a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; color: #fff; background: var(--brand-red); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .mega-feature a:hover { background: #fff; color: #151515; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .dropdown-menu.mega-menu { grid-template-columns: 250px minmax(0, 1fr); }
  .mega-panel { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
}
@media (max-width: 991.98px) { .mega-menu { display: none !important; } }
