/* Only the mobile menu changes; desktop keeps the existing hover mega menu. */
@media (max-width: 900px), (max-width: 1180px) and (hover: none) and (pointer: coarse) {
  .brands-popup-enabled .brands-menu > .brands-panel { display: none; }
  html.brands-popup-open, html.brands-popup-open body { overflow-y: hidden; }

  dialog.mobile-brands-dialog {
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 510px;
    max-height: calc(100% - 40px);
    max-height: calc(100svh - 40px);
    margin: auto;
    padding: 0;
    border: 1px solid #73e7ff40;
    border-radius: 24px;
    background: linear-gradient(145deg, #091c3a, #0c0927);
    color: #f4f8ff;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    box-shadow: 0 24px 80px #0008;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-brands-dialog:not([open]) { display: none; }
  .mobile-brands-dialog[open] { animation: brands-popup-enter 180ms ease-out; }
  .mobile-brands-dialog::backdrop { background: #010511d9; touch-action: none; }
  .mobile-brands-shell { padding: 22px; }
  .mobile-brands-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
  }
  .mobile-brands-heading h2 {
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.04em;
  }
  .mobile-brands-close {
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c8eaff38;
    border-radius: 12px;
    color: #ecf8ff;
    background: #ffffff08;
    cursor: pointer;
  }
  .mobile-brands-close svg { display: block; }
  .mobile-brands-close:hover { background: #ffffff14; }
  .mobile-brands-dialog :focus-visible { outline: 2px solid #6deaff; outline-offset: 3px; }
  .mobile-brands-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mobile-brands-cards .brand-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    min-width: 0;
    padding: 18px;
    border-radius: 17px;
    color: #c3cee0;
    text-decoration: none;
    transform: none;
    transition: border-color .2s ease;
    box-shadow: none;
  }
  .mobile-brands-cards .brand-menu-card small { font-size: 14px; line-height: 1.5; }
  .mobile-brands-cards .brand-menu-card img { width: min(100%, 260px); height: auto; margin: 0; }
  .mobile-brands-cards .brand-menu-card b {
    position: relative;
    inset: auto;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .035em;
  }
  .mobile-brands-cards .brand-menu-card.future strong { margin: 24px 0 0; font-size: 20px; line-height: 1.25; }
  @keyframes brands-popup-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @media (max-width: 400px) {
    .mobile-brands-shell { padding: 18px; }
    .mobile-brands-cards { grid-template-columns: minmax(0, 1fr); }
    .mobile-brands-cards .brand-menu-card { min-height: 150px; }
    .mobile-brands-cards .brand-menu-card img { width: min(100%, 230px); margin: 0; }
    .mobile-brands-cards .brand-menu-card.future { min-height: 145px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-brands-dialog[open] { animation: none; }
  }
}
