/* Homepage hero only. Desktop keeps its existing markup and presentation. */
@media (max-width: 760px) {
  .hero-parallax-wrapper { position: relative; top: auto; }
  .hero-parallax-wrapper:has(.hero-section-nav.open) { z-index: 10050; }
  #hero-section.hero-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px 8px;
    padding: 12px 16px 32px;
  }
  #hero-section .hero-section-nav { position: relative; inset: auto; min-width: 0; }
  #hero-section .hero-top { grid-column: 2 / -1; min-width: 0; padding: 0; }
  #hero-section .hero-top-inner,
  #hero-section .hero-brand { display: block; width: 100%; min-width: 0; }
  #hero-section .hero-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #hero-section .hero-section-nav-toggle,
  #hero-section .hero-primary-link,
  #hero-section .hero-secondary-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 56px;
    padding: 8px 4px;
    border-radius: 12px;
    font-size: .8rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  #hero-section .hero-section-nav-toggle i,
  #hero-section .hero-action-row i { font-size: 1rem; }
  #hero-section .hero-section-nav-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: calc(100vw - 32px);
    max-height: calc(100vh - var(--nexa-header-height, 128px) - 100px);
    max-height: calc(100svh - var(--nexa-header-height, 128px) - 100px);
    overflow-y: auto;
  }
  /* Focus stays on the trigger when closing; visibility follows its expanded state. */
  #hero-section .hero-section-nav:not(.open) .hero-section-nav-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #hero-section .hero-category-section {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  #hero-section .hero-category-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  #hero-section .hero-category-header h3 { margin: 0; font-size: 1.1rem; }
  #hero-section .hero-category-all { gap: 5px; font-size: .76rem; }
  #hero-section .hero-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  #hero-section .hero-category-card {
    min-width: 0;
    min-height: 50px;
    padding: 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    border-radius: 10px;
    text-align: left;
  }
  #hero-section .hero-category-icon { width: 28px; height: 28px; font-size: .9rem; }
  #hero-section .hero-category-name { font-size: .82rem; line-height: 1.3; }
  #hero-section .hero-category-arrow { display: none; }
  #hero-section .hero-category-grid.mobile-categories-ready:not(.is-expanded) > .hero-category-card:nth-child(n+7) { display: none; }
  #hero-section .hero-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(250, 204, 21, .3);
    border-radius: 10px;
    background: rgba(3, 10, 20, .3);
    color: #facc15;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
  }
  #hero-section .hero-category-toggle[hidden] { display: none; }
  #hero-section .hero-category-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  #hero-section .hero-category-toggle:focus-visible,
  #hero-section .hero-category-card:focus-visible,
  #hero-section .hero-section-nav-toggle:focus-visible,
  #hero-section .hero-action-row a:focus-visible { outline: 2px solid #facc15; outline-offset: 3px; }
  @media (max-width: 359px) {
    #hero-section .hero-section-nav-toggle,
    #hero-section .hero-primary-link,
    #hero-section .hero-secondary-link { min-height: 68px; }
  }
}
