/**
 * Profero storefront skin — customer area (fixed layout).
 * Works with existing Bootstrap / aiz markup; complements header.profero (cloned from header1).
 */
body.profero-storefront {
  --profero-primary: #285dae;
  --profero-primary-hover: #1f4a92;
  --profero-accent: #40a1e4;
}

body.profero-storefront {
  --primary: var(--profero-primary);
  --hov-primary: var(--profero-primary-hover);
  --soft-primary: rgba(40, 93, 174, 0.12);
}

body.profero-storefront .top-navbar {
  background-color: var(--profero-primary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.profero-storefront .top-navbar .top-text-color-visibility,
body.profero-storefront .top-navbar a,
body.profero-storefront .top-navbar .dropdown-toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Bar links above use !important — exclude light-on-white dropdown panels (language / currency / seller) */
body.profero-storefront .top-navbar .dropdown-menu {
  border-radius: 6px;
  background-color: #fff;
}

body.profero-storefront .top-navbar .dropdown-menu .dropdown-item {
  color: #1a2744 !important;
}

body.profero-storefront .top-navbar .dropdown-menu .dropdown-item:hover,
body.profero-storefront .top-navbar .dropdown-menu .dropdown-item:focus {
  color: #1a2744 !important;
  background-color: rgba(40, 93, 174, 0.08);
}

body.profero-storefront .top-navbar .dropdown-menu .dropdown-item.active,
body.profero-storefront .top-navbar .dropdown-menu .dropdown-item.text-dark.active {
  color: var(--profero-primary) !important;
  background-color: rgba(40, 93, 174, 0.12);
}

/*
 * User account panel is not .dropdown-menu — bar rule `.top-navbar a { color: white !important }` bleeds in
 * and makes labels invisible on white. Force readable text in hover-user / aiz panels.
 */
body.profero-storefront .top-navbar .profero-hover-user-top-menu a,
body.profero-storefront .top-navbar .hover-user-top-menu a,
body.profero-storefront .top-navbar .aiz-user-top-menu a {
  color: #1a2744 !important;
}

body.profero-storefront .top-navbar .profero-hover-user-top-menu .user-top-menu-name,
body.profero-storefront .top-navbar .aiz-user-top-menu .user-top-menu-name {
  color: #1a2744 !important;
}

body.profero-storefront .top-navbar .profero-hover-user-top-menu a:hover,
body.profero-storefront .top-navbar .aiz-user-top-menu a:hover {
  color: var(--profero-primary) !important;
}

body.profero-storefront .top-navbar .aiz-user-top-menu .text-dark,
body.profero-storefront .top-navbar .profero-hover-user-top-menu .text-dark {
  color: #1a2744 !important;
}

body.profero-storefront .middle-background-color-visibility {
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(26, 39, 68, 0.06);
}

body.profero-storefront .stikcy-header-visibility.border-bottom,
body.profero-storefront .logo-bar-area {
  border-color: #dce3f0 !important;
}

body.profero-storefront .btn-primary,
body.profero-storefront .bg-primary {
  background-color: var(--profero-primary) !important;
  border-color: var(--profero-primary) !important;
}

body.profero-storefront .btn-primary:hover {
  background-color: var(--profero-primary-hover) !important;
  border-color: var(--profero-primary-hover) !important;
}

body.profero-storefront .text-primary,
body.profero-storefront a.text-primary {
  color: var(--profero-primary) !important;
}

body.profero-storefront .border-primary {
  border-color: var(--profero-primary) !important;
}

html[dir="rtl"] body.profero-storefront {
  font-family: Tahoma, "Arial Unicode MS", "Segoe UI", sans-serif;
}

/*
 * Sticky header: <header> follows <div.top-navbar> in DOM and used z-1025 on the menubar, so the white bar
 * painted over top-nav dropdowns. Keep top bar + its popovers above the main menubar.
 */
body.profero-storefront .profero-sticky-header-wrap > .top-navbar.profero-top-navbar {
  position: relative;
  z-index: 1060;
}

body.profero-storefront .profero-sticky-header-wrap > .profero-site-header {
  position: relative;
  z-index: 1;
}

body.profero-storefront .profero-sticky-header-wrap .top-navbar .dropdown-menu {
  z-index: 1061 !important;
}

/* —— Profero header / nav enhancements (top bar, utility strip, main row, menu, promo) —— */

body.profero-storefront .min-w-0 {
  min-width: 0;
}

body.profero-storefront .profero-top-navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.profero-storefront .profero-top-navbar__row {
  min-height: 38px;
}

body.profero-storefront .profero-top-navbar .dropdown-toggle::after {
  opacity: 0.85;
}

body.profero-storefront .profero-top-navbar .list-inline-item > a.dropdown-toggle,
body.profero-storefront .profero-top-navbar .list-inline-item .dropdown > a {
  border-radius: 4px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.profero-storefront .profero-top-navbar .list-inline-item > a.dropdown-toggle:hover,
body.profero-storefront .profero-top-navbar .list-inline-item .dropdown > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Wishlist + account moved into top strip (wishlist partial still uses .text-dark) */
body.profero-storefront .top-navbar .profero-top-navbar-wishlist a.text-dark,
body.profero-storefront .top-navbar .profero-top-navbar-wishlist a {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.profero-storefront .top-navbar .profero-top-navbar-wishlist a svg path,
body.profero-storefront .top-navbar .profero-top-navbar-wishlist path {
  fill: rgba(255, 255, 255, 0.88) !important;
}

body.profero-storefront .top-navbar .profero-top-navbar-notifications .dropdown-toggle svg path {
  fill: rgba(255, 255, 255, 0.88) !important;
}

body.profero-storefront .top-navbar .profero-top-navbar-account .profero-top-navbar-user-name {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.profero-storefront .top-navbar .profero-top-navbar-account .nav-user-img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
}

body.profero-storefront .top-navbar .profero-top-navbar-login-link {
  border-radius: 999px;
  padding: 1px;
  transition: transform 0.2s ease;
}

body.profero-storefront .top-navbar .profero-top-navbar-login-link:hover,
body.profero-storefront .top-navbar .profero-top-navbar-login-link:focus {
  transform: translateY(-1px);
}

body.profero-storefront .top-navbar .profero-top-navbar-login-link:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

body.profero-storefront .top-navbar .profero-top-navbar-login-icon.size-40px {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
}

body.profero-storefront .top-navbar .profero-top-navbar-login-icon svg path {
  fill: currentColor;
}

body.profero-storefront .top-navbar .profero-top-navbar-auth-link {
  color: rgba(255, 255, 255, 0.88) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.profero-storefront .top-navbar .profero-top-navbar-auth-link:last-of-type {
  border-right: 0;
}

body.profero-storefront .top-navbar .profero-top-navbar-auth-link:hover,
body.profero-storefront .top-navbar .profero-top-navbar-auth-link:focus {
  color: #fff !important;
  text-decoration: none;
}

body.profero-storefront .top-navbar .profero-top-navbar-account .nav-user-info {
  padding-top: 0;
  padding-bottom: 0;
}

body.profero-storefront .top-navbar .profero-top-navbar-account .hover-user-top-menu,
body.profero-storefront .top-navbar .profero-top-navbar-notifications .dropdown-menu {
  z-index: 1062 !important;
}

body.profero-storefront .profero-global-utility {
  text-align: inherit;
}

body.profero-storefront .profero-global-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

@media (min-width: 768px) {
  body.profero-storefront .profero-global-utility__inner {
    justify-content: space-between;
  }
}

body.profero-storefront .profero-global-utility__hint {
  color: var(--profero-primary);
  font-weight: 600;
  font-size: 13px;
}

body.profero-storefront .profero-global-utility__sep {
  color: #b8c4db;
  user-select: none;
}

body.profero-storefront .profero-global-utility__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  font-size: 13px;
}

body.profero-storefront .profero-site-header.sticky-top {
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.08);
}

body.profero-storefront .profero-logo-bar .front-header-search {
  background: transparent !important;
}

body.profero-storefront .profero-menubar-wrap.profero-logo-bar {
  background: #ffffff !important;
  border-bottom: 3px solid #ff8a2b !important;
  box-shadow: none !important;
}

body.profero-storefront .profero-category-menu-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header / main menubar search (class is on the box next to menu + logo) */
body.profero-storefront .profero-search-input-box .form-control {
  border-radius: 999px;
  border-color: #dce3f0 !important;
  min-height: 44px;
  box-shadow: 0 1px 2px rgba(26, 39, 68, 0.04);
  /* LTR: SVG on left (see rules below) */
  padding-left: 2.75rem;
  padding-right: 1.15rem;
}

html[dir="rtl"] body.profero-storefront .profero-search-input-box .form-control {
  /* RTL: SVG moved to right — mirror padding so placeholder/text clear the icon */
  padding-right: 2.75rem;
  padding-left: 1.15rem;
}

body.profero-storefront .profero-search-input-box .form-control:focus {
  border-color: var(--profero-accent) !important;
  box-shadow: 0 0 0 3px rgba(64, 161, 228, 0.2);
}

body.profero-storefront .profero-search-input-box > svg {
  right: auto !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%);
}

html[dir="rtl"] body.profero-storefront .profero-search-input-box > svg {
  left: auto !important;
  right: 14px !important;
}

body.profero-storefront .profero-search-input-box svg path {
  fill: #7a8aa8;
}

body.profero-storefront .profero-header-cart-wrap {
  border-left: 1px solid #e8edf5;
  padding-left: 0.5rem;
}

html[dir="rtl"] body.profero-storefront .profero-header-cart-wrap {
  border-left: 0;
  border-right: 1px solid #e8edf5;
  padding-left: 0;
  padding-right: 0.5rem;
}

body.profero-storefront .profero-header-cart-wrap .nav-cart-box > a {
  border-radius: 8px;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  min-height: 44px;
  align-items: center;
}

body.profero-storefront .profero-header-cart-wrap .bottom-text-color-visibility,
body.profero-storefront .profero-header-cart-wrap .middle-text-color-visibility {
  color: #1a2744 !important;
}

body.profero-storefront .profero-header-cart-wrap .nav-cart-box > a:hover {
  background: rgba(40, 93, 174, 0.06);
}

body.profero-storefront .profero-main-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

body.profero-storefront .profero-cat-menu-trigger {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

html[dir="rtl"] body.profero-storefront .profero-cat-menu-trigger {
  border-right: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

body.profero-storefront .profero-cat-menu-trigger__icon {
  color: currentColor;
  opacity: 0.92;
  flex-shrink: 0;
}

body.profero-storefront .profero-main-nav__links .header_menu_links {
  border-radius: 6px;
  margin: 0 0.1rem;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.profero-storefront .profero-main-nav__links .header_menu_links:hover {
  background-color: rgba(40, 93, 174, 0.08) !important;
}

body.profero-storefront .profero-main-nav__links .header_menu_links.active {
  box-shadow: inset 0 -2px 0 var(--profero-accent);
}

body.profero-storefront .profero-nav-promo {
  border-top: 1px solid var(--border, #dce3f0);
}

body.profero-storefront .profero-nav-promo .value-proposition__inner {
  min-height: 2.75rem;
}

/* —— Single-row desktop menubar (reference layout) —— */
@media (min-width: 992px) {
  body.profero-storefront .profero-logo-bar__row {
    display: grid;
    /* Reserve a real center track so the logo column is not overlapped by column 3 in RTL */
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, max-content) minmax(0, 1fr);
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  body.profero-storefront .profero-desktop-nav {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
  }

  body.profero-storefront .profero-header-logo-wrap {
    grid-column: 2;
    justify-self: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    /* Logo stays *under* search if tracks collide; search/input must stay clickable */
    z-index: 1;
    max-width: 100%;
    padding-inline: clamp(0.85rem, 2.25vw, 1.75rem) !important;
  }

  body.profero-storefront .profero-header-right-cluster {
    grid-column: 3;
    justify-self: end;
    width: fit-content;
    max-width: min(36rem, 100%);
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    margin-inline-start: clamp(0.85rem, 2.25vw, 1.75rem);
    position: relative;
    z-index: 2;
    isolation: isolate;
  }

  body.profero-storefront .profero-header-search {
    flex: 1 1 auto;
    min-width: 12rem;
    max-width: 22rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    z-index: 1;
  }

  html[dir="rtl"] body.profero-storefront .profero-header-right-cluster {
    margin-inline-start: clamp(1.1rem, 3vw, 2.25rem);
  }
}

@media (max-width: 991.98px) {
  body.profero-storefront .profero-sticky-header-wrap {
    /* Fixed search bar sits just under sticky top + menubar (tweak if header rows change height) */
    --profero-mobile-search-top: calc(env(safe-area-inset-top, 0px) + 6rem);
  }

  body.profero-storefront .profero-logo-bar__row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
  }

  body.profero-storefront .profero-logo-bar__row .profero-header-logo-wrap {
    position: relative;
    z-index: 1;
    padding-inline: 0.5rem !important;
    min-width: 0;
  }

  body.profero-storefront .profero-logo-bar__row .profero-static-logo-img {
    max-width: min(10rem, 40vw);
    height: auto;
  }

  body.profero-storefront .profero-logo-bar__row .profero-header-logo--upload {
    max-height: 2.35rem;
    width: auto;
    max-width: min(11rem, 44vw);
  }

  body.profero-storefront .profero-logo-bar__row .profero-header-right-cluster {
    flex-grow: 0 !important;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    margin-inline-start: 0;
    position: relative;
    z-index: 2;
    isolation: isolate;
  }

  /*
   * Mobile search: theme toggles `.active` on `.front-header-search` from the magnifier icon.
   * Inline flex slot stays narrow — hide until open, then use a fixed full-bleed bar under the header.
   */
  body.profero-storefront .profero-logo-bar .front-header-search.profero-header-search:not(.active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0 !important;
    flex: 0 0 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    opacity: 0;
    pointer-events: none;
    background: transparent !important;
  }

  body.profero-storefront .profero-logo-bar .front-header-search.profero-header-search.active {
    position: fixed;
    inset-inline: 0;
    top: var(--profero-mobile-search-top);
    width: auto;
    max-width: none !important;
    flex: none !important;
    min-width: 0 !important;
    min-height: 3.25rem;
    margin: 0 !important;
    padding: 0.65rem 0.85rem 0.85rem !important;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    z-index: 1080;
    box-shadow: 0 10px 28px rgba(26, 39, 68, 0.14);
    background: #fff !important;
    border-bottom: 1px solid #dce3f0 !important;
  }

  body.profero-storefront .profero-logo-bar .front-header-search.active > .position-relative.flex-grow-1 {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 0 !important;
  }

  body.profero-storefront .profero-logo-bar .front-header-search.active .typed-search-box {
    max-height: min(58vh, 400px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

body.profero-storefront .profero-desktop-hamburger {
  line-height: 1;
  color: #1a2744;
}

body.profero-storefront .profero-desktop-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

body.profero-storefront .profero-desktop-nav__site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.15rem;
  padding: 0.2rem;
  border-radius: 6px;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

body.profero-storefront .profero-desktop-nav__site-icon:hover {
  background: rgba(40, 93, 174, 0.08);
}

body.profero-storefront .profero-desktop-nav__site-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

body.profero-storefront .profero-desktop-nav__link {
  display: inline-block;
  padding: 0.45rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a2744;
  letter-spacing: 0.01em;
  border-radius: 6px;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.35rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

body.profero-storefront .profero-desktop-nav__link:hover {
  color: var(--profero-primary);
  background: rgba(40, 93, 174, 0.06);
}

body.profero-storefront .profero-desktop-nav__link.is-active {
  color: var(--profero-primary);
  border-bottom-color: var(--profero-primary);
}

/* Desktop nav: Categories / Brand hover panels */
body.profero-storefront .profero-desktop-nav__item--dropdown {
  position: relative;
}

body.profero-storefront .profero-desktop-nav__link--has-caret {
  position: relative;
  padding-inline-end: 1.05rem;
}

body.profero-storefront .profero-desktop-nav__link--has-caret::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.2rem;
  top: 50%;
  margin-top: -1px;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.45;
  pointer-events: none;
}

body.profero-storefront .profero-desktop-nav__dropdown {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 0.35rem);
  min-width: 280px;
  max-width: min(440px, 92vw);
  max-height: min(70vh, 440px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dce3f0;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(26, 39, 68, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1060;
  overflow: hidden;
}

body.profero-storefront .profero-desktop-nav__dropdown--brands {
  min-width: 300px;
  max-width: min(520px, 94vw);
}

body.profero-storefront .profero-desktop-nav__dropdown--categories {
  min-width: 300px;
  max-width: min(420px, 34vw, 94vw);
}

body.profero-storefront .profero-desktop-nav__item--dropdown:hover > .profero-desktop-nav__dropdown,
body.profero-storefront .profero-desktop-nav__item--dropdown:focus-within > .profero-desktop-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.profero-storefront .profero-desktop-nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.65rem;
  overflow-y: auto;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 0.35rem;
  align-content: start;
}

body.profero-storefront .profero-desktop-nav__cat-tree {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.55rem 0.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
  align-content: start;
}

body.profero-storefront .profero-desktop-nav__cat-tree-item {
  margin: 0;
}

body.profero-storefront .profero-desktop-nav__cat-tree-nested {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 0.55rem;
  border-left: 2px solid rgba(40, 93, 174, 0.15);
}

body.profero-storefront .profero-desktop-nav__cat-tree-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2744;
  text-decoration: none !important;
  border-radius: 6px;
  line-height: 1.35;
}

body.profero-storefront .profero-desktop-nav__cat-tree-nested .profero-desktop-nav__cat-tree-link {
  font-size: 0.8125rem;
  font-weight: 500;
}

body.profero-storefront .profero-desktop-nav__cat-tree-nested .profero-desktop-nav__cat-tree-nested .profero-desktop-nav__cat-tree-link {
  font-size: 0.8rem;
}

body.profero-storefront .profero-desktop-nav__cat-tree-link:hover {
  background: rgba(40, 93, 174, 0.08);
  color: var(--profero-primary);
}

body.profero-storefront .profero-desktop-nav__cat-tree-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

body.profero-storefront .profero-desktop-nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2744;
  text-decoration: none !important;
  border-radius: 6px;
  line-height: 1.3;
}

body.profero-storefront .profero-desktop-nav__dropdown-link:hover {
  background: rgba(40, 93, 174, 0.08);
  color: var(--profero-primary);
}

body.profero-storefront .profero-desktop-nav__dropdown-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

body.profero-storefront .profero-desktop-nav__dropdown-footer {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  border-top: 1px solid #dce3f0;
  background: #f8fafc;
}

body.profero-storefront .profero-desktop-nav__dropdown-all {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--profero-primary);
  text-decoration: none !important;
}

body.profero-storefront .profero-desktop-nav__dropdown-all:hover {
  text-decoration: underline !important;
}

body.profero-storefront .profero-desktop-nav__dropdown-brands {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.65rem;
  overflow-y: auto;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
  align-content: start;
}

body.profero-storefront .profero-desktop-nav__dropdown-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1a2744;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.profero-storefront .profero-desktop-nav__dropdown-brand:hover {
  background: rgba(40, 93, 174, 0.08);
  color: var(--profero-primary);
}

body.profero-storefront .profero-desktop-nav__dropdown-brand-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eef2f9;
  border-radius: 6px;
  overflow: hidden;
}

body.profero-storefront .profero-desktop-nav__dropdown-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

body.profero-storefront .profero-desktop-nav__dropdown-brand-name {
  min-width: 0;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 400px) {
  body.profero-storefront .profero-desktop-nav__dropdown-list,
  body.profero-storefront .profero-desktop-nav__dropdown-brands {
    grid-template-columns: 1fr;
  }
}

/* Match profero-template header: width-led logo (clamp), height follows aspect ratio */
body.profero-storefront .profero-static-logo-img,
body.profero-storefront .profero-header-logo--upload {
  display: block;
  width: clamp(140px, 22vw, 220px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

body.profero-storefront .profero-header-compare-wrap {
  display: none !important;
}

body.profero-storefront .profero-header-wishlist-wrap a {
  color: #1a2744 !important;
}

/*
 * Header user avatar: flex default min-width:auto uses the image’s intrinsic width,
 * so the box can grow wider than 40px while height stays 40px → oval, not a circle
 * (common around ~1200–1400px when the right cluster is tight).
 */
body.profero-storefront .profero-header-user-wrap .nav-user-img {
  color: #1a2744 !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  align-self: center;
  box-sizing: border-box;
}

body.profero-storefront .profero-header-user-wrap .nav-user-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
}

/* Guest login circle in top bar: override .profero-header-user-wrap .nav-user-img (dark #1a2744 for middle header) */
body.profero-storefront .top-navbar .profero-header-user-wrap .nav-user-img.profero-top-navbar-login-icon {
  color: rgba(255, 255, 255, 0.96) !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
}

body.profero-storefront .top-navbar .profero-header-user-wrap .profero-top-navbar-login-link:hover .nav-user-img.profero-top-navbar-login-icon,
body.profero-storefront .top-navbar .profero-header-user-wrap .profero-top-navbar-login-link:focus .nav-user-img.profero-top-navbar-login-icon {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

/*
 * Menubar is always white in Profero; Appearance → middle header text color is often tuned for other skins
 * and may be light-on-dark — inline color on the name would then be white-on-white here.
 */
body.profero-storefront .profero-logo-bar .profero-header-user-name {
  color: #1a2744 !important;
}

/* User menu: position from avatar/name anchor, not .container + float-right (misaligned on Profero grid) */
body.profero-storefront .profero-user-dropdown-anchor {
  flex-shrink: 0;
}

body.profero-storefront .profero-user-dropdown-anchor .profero-hover-user-top-menu {
  left: auto;
  right: 0;
  width: 220px;
}

html[dir="rtl"] body.profero-storefront .profero-user-dropdown-anchor .profero-hover-user-top-menu {
  right: auto;
  left: 0;
}

/* Bridge the gap between the avatar row and the dropdown so the pointer path stays “inside” the menu */
body.profero-storefront .hover-user-top-menu.active {
  padding-top: 12px;
  margin-top: -12px;
}

body.profero-storefront .profero-header-right-cluster.d-flex {
  align-items: center;
  column-gap: 0.65rem;
}

@media (min-width: 992px) {
  body.profero-storefront .profero-header-right-cluster.d-flex {
    column-gap: 0.75rem;
  }
}

body.profero-storefront .profero-header-compare-wrap,
body.profero-storefront .profero-header-wishlist-wrap,
body.profero-storefront .profero-header-user-wrap,
body.profero-storefront .profero-header-cart-wrap {
  flex-shrink: 0;
}

body.profero-storefront .profero-header-wishlist-wrap a,
body.profero-storefront .profero-header-user-wrap .nav-user-info,
body.profero-storefront .profero-header-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.profero-storefront .profero-header-wishlist-wrap svg path,
body.profero-storefront .profero-header-wishlist-wrap path {
  fill: #1a2744 !important;
}

body.profero-storefront .profero-header-cart-wrap .badge-primary {
  background: #fff !important;
  color: var(--profero-primary) !important;
  border: 1px solid #dce3f0;
  font-weight: 800;
}

body.profero-storefront .profero-click-category-host {
  min-height: 0;
}
