/* Final shop UI patch: loaded last on every storefront page. */
html body .brand {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 42px !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .brand-menu-cue {
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #111827 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 160ms ease, transform 180ms ease !important;
}

html body .brand-menu-cue::before {
  content: "" !important;
  width: 10px !important;
  height: 10px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: translateY(-2px) rotate(45deg) !important;
}

html body .brand:hover .brand-menu-cue,
html body .brand:focus-visible .brand-menu-cue,
html body.brand-mega-nav-open .brand-menu-cue {
  background: rgba(15, 23, 42, 0.06) !important;
}

html body.brand-mega-nav-open .brand-menu-cue {
  transform: rotate(180deg) !important;
}

html body .home-feature-showcase,
html body .category-feature-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

html body.filters-panel-open.view-products .products-view {
  padding-top: 158px !important;
}

html body .catalog-tools .filter-menu > fieldset,
html body .catalog-tools .filter-menu > .field {
  top: calc(100% + 14px) !important;
  z-index: 930 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16) !important;
}

html body .catalog-tools .sort-field select,
html body .catalog-tools .price-filter input {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #fff !important;
}

html body .catalog-tools .filter-menu[open] summary {
  border-color: rgba(20, 115, 230, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(20, 115, 230, 0.16) !important;
}

@media (max-width: 760px) {
  html body .brand {
    grid-template-columns: auto minmax(0, 1fr) 34px !important;
    gap: 8px !important;
  }

  html body .brand-menu-cue {
    width: 34px !important;
    height: 34px !important;
  }

  html body.filters-panel-open.view-products .products-view {
    padding-top: 150px !important;
  }
}
