
@media (max-width: 760px) {
  body.storefront-page .header { height: auto; }
  body.storefront-page .header .nav-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto auto auto;
    align-items: center;
    gap: 6px;
    height: auto;
    padding-block: 6px;
  }
  body.storefront-page .header .brand { grid-area: 1 / 1 / 2 / 3; min-width: 0; }
  body.storefront-page .header .brand strong {
    font-size: clamp(17px,5vw,25px);
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: normal;
  }
  body.storefront-page .header .brand small { display: none; }
  body.storefront-page .header .nav-right { display: contents; }
  body.storefront-page .header .customer-account-link {
    grid-area: 1 / 3 / 2 / 4;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 6px !important;
    font-size: 11px !important;
  }
  body.storefront-page .header .nav-right .menu-toggle { grid-area: 1 / 4 / 2 / 5; }
  body.storefront-page .header .nav-right .basket-button { grid-area: 1 / 5 / 2 / 6; }
  body.storefront-page .header .menu-toggle,
  body.storefront-page .header .basket-button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  body.storefront-page .header .nav-right .language-switch {
    grid-area: 2 / 1 / 3 / 2;
    justify-self: start;
    white-space: nowrap;
  }
  body.storefront-page .header .language-switch button { padding-inline: 6px; }
  body.storefront-page .header .shop-search {
    grid-area: 2 / 2 / 3 / 6;
    display: flex;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  body.storefront-page .header .shop-search input { min-width: 0; min-height: 44px; }
  body.storefront-page .header .shop-search button { min-width: 44px; min-height: 44px; }
  body.storefront-page .header .nav-links.mobile-open {
    grid-area: 3 / 1 / 4 / 6;
    position: static;
    width: 100%;
    max-height: 60dvh;
    overflow-y: auto;
  }
  body.storefront-page .header .admin-link { grid-row: 4; grid-column: 1 / -1; }
  .w5-header .w5-nav { flex-wrap: wrap; gap: 4px 10px; }
  .w5-header .w5-account-actions { margin-inline-start: auto; }
  .w5-header .w5-nav nav { flex: 1 1 100%; }
  .w5-header .w5-account-actions a, .w5-header .w5-cart-button { min-height: 44px; }
}
.w5-account-actions { display: flex; align-items: center; gap: 8px; }
.w5-account-actions a { display: inline-flex; align-items: center; padding: 4px 8px; color: inherit; }

.detail-reviews-link { display: inline-block; margin-block: 2px 8px; color: inherit; text-underline-offset: .2em; }

@media (max-width: 760px) {
  body.storefront-page .header .nav-row:has(.nav-right .language-switch[hidden]) .shop-search {
    grid-column: 1 / -1;
  }
  body.storefront-page .header .basket-button .cart-count { top: 0; right: 0; }
}
