/* Balance navigation and account controls around the desktop logo. */
@media (min-width: 1200px) {
  .header .main-nav .menu > li.active > a {
    color: #d50000;
    border-top-color: #d50000;
  }
  .header .main-nav .menu > li:not(.active):hover > a,
  .header .main-nav .menu > li:not(.active).show > a,
  .header .main-nav .menu > li:not(.active) > a:hover {
    color: #222529;
    border-top-color: transparent;
  }
  .header .header-middle > .container-fluid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
  }
  .header .header-middle > .container-fluid > .header-left,
  .header .header-middle > .container-fluid > .header-right {
    min-width: 0;
    margin: 0;
  }
  .header .header-middle > .container-fluid > .header-center {
    margin: 0 !important;
    justify-self: center;
  }
}

/* Product navigation follows the theme's simple type and fine dividers. */
@media (min-width: 1200px) {
  .header .menu .products-megamenu {
    width: 640px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 24px;
    border: 1px solid #eee;
    border-top: 2px solid #d50000;
    border-radius: 0;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
  }
  .header .products-megamenu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #888;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
  }
  .header .menu .products-megamenu-heading a {
    padding: 0;
    color: #222529;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .header .menu .products-megamenu-heading a:hover { color: #d50000; }
  .header .products-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 26px;
    margin: 0;
    align-items: start;
  }
  .header .menu .products-megamenu-grid > div {
    width: auto;
    max-width: none;
    padding: 0;
  }
  .header .menu .products-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 0 10px;
    border-bottom: 1px solid #eee;
    background: transparent;
    color: #222529;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color .18s ease;
  }
  .header .products-category-name { flex: 1; }
  .header .products-category-arrow { color: #aaa; font-weight: 400; }
  .header .menu .products-category-link:hover,
  .header .menu .products-category-link:focus-visible { background: transparent; color: #d50000; }
  .header .menu .products-category-link:focus-visible { outline: 1px solid #d50000; outline-offset: 3px; }
  .header .products-category-link:hover .products-category-arrow { color: #d50000; }
  .header .menu li:focus-within > .products-megamenu { display: block; opacity: 1; }
  .header .menu .products-megamenu .products-category-children {
    display: block !important;
    position: static;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .header .main-nav .menu .products-category-children li { display: block; }
  .header .menu .products-category-children a {
    padding: 5px 0;
    background: transparent;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
  }
  .header .menu .products-category-children li:hover > a,
  .header .menu .products-category-children a:focus-visible { color: #d50000; background: transparent; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header .products-category-link { transition: none; }
}

/* Three clear shopping paths keep the product menu compact and scannable. */
@media (min-width: 1200px) {
  .header .menu .products-megamenu {
    width: 820px;
    padding: 26px 28px 22px;
  }
  .header .products-megamenu-heading {
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 17px;
  }
  .header .products-megamenu-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8a8580;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
  }
  .header .products-megamenu-heading strong {
    display: block;
    color: #222529;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-transform: none;
  }
  .header .products-megamenu-grid { gap: 12px; }
  .header .menu .products-megamenu-grid > .products-menu-group {
    min-width: 0;
    padding: 0;
    border: 1px solid #eeeae6;
    background: #f9f8f6;
    overflow: hidden;
  }
  .header .menu .products-menu-group-main {
    display: block;
    padding: 0;
    background: #f9f8f6;
    color: #25282b;
    text-decoration: none;
    text-transform: none;
  }
  .header .main-nav .menu .products-megamenu .products-menu-group-main .products-menu-group-image {
    display: block;
    width: 100%;
    height: 108px;
    object-fit: cover;
    object-position: center;
  }
  .header .products-menu-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 47px;
    padding: 11px 13px;
    color: #3c3937;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .header .products-menu-group-title > span { color: #bd3033; font-size: 17px; letter-spacing: 0; }
  .header .menu .products-menu-group-main:hover .products-menu-group-title,
  .header .menu .products-menu-group-main:focus-visible .products-menu-group-title { color: #bd3033; }
  .header .menu .products-menu-group-main:focus-visible { outline: 2px solid #bd3033; outline-offset: -2px; }
  .header .products-menu-group-links { padding: 0 13px 9px; }
  .header .menu .products-menu-group-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 33px;
    padding: 5px 0;
    border-top: 1px solid #e9e5e0;
    background: transparent;
    color: #25282b;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }
  .header .menu .products-menu-group-links a span:last-child { color: #a39a93; font-size: 16px; }
  .header .menu .products-menu-group-links a:hover,
  .header .menu .products-menu-group-links a:focus-visible { color: #bd3033; background: transparent; }
  .header .menu .products-menu-group-links a:focus-visible { outline: 2px solid #bd3033; outline-offset: 2px; }
  .header .products-megamenu-more {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 13px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #eee;
  }
  .header .products-megamenu-more > span {
    margin-right: 3px;
    color: #817a74;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .header .menu .products-megamenu-more a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #e4dfda;
    background: #fff;
    color: #292b2e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
  .header .menu .products-megamenu-more a:hover,
  .header .menu .products-megamenu-more a:focus-visible { border-color: #bd3033; color: #bd3033; background: #fff; }
}
