.store-navigation {
  position: relative;
  z-index: 3;
}

.products-menu-toggle {
  white-space: nowrap;
  border: 0;
  padding: 0;
  background: transparent;
  color: #213447;
  font: inherit;
  cursor: pointer;
}

.products-menu-toggle:is(:hover, [aria-expanded="true"]) {
  color: #17435c;
}

.products-menu-position {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  pointer-events: none;
}

.products-menu {
  display: grid;
  grid-template-columns: clamp(112px, 19%, 154px) minmax(0, 1fr);
  width: min(100%, 850px);
  max-height: min(64dvh, 560px);
  overflow: hidden;
  border: 1px solid #dfe7ee;
  border-radius: 12px;
  background: #fff;
  color: #213447;
  box-shadow: 0 12px 26px #20344922;
  pointer-events: auto;
}

.products-menu[hidden],
.products-menu [hidden] {
  display: none !important;
}

.products-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#productsMenuCategories,
.products-menu-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#productsMenuCategories {
  background: #f6f8fa;
  border-inline-end: 1px solid #e3e9f0;
}

#productsMenuCategories li + li {
  border-top: 1px solid #e3e9f0;
}

.products-menu-content {
  padding: 0 18px 16px;
}

.products-menu-toolbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 49px;
  background: #fff;
  border-bottom: 1px solid #e3e9f0;
}

.products-menu-toolbar a,
#productsCategoryLink {
  font-weight: 700;
}

#productsCategoryLink {
  display: inline-block;
  padding-block: 12px;
}

#productsMenuClose {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 25px/1 sans-serif;
}

#productsMenuSubcategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.products-menu .products-menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 11px 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#productsMenuCategories .products-menu-tile[aria-pressed="true"] {
  box-shadow: inset -3px 0 #17435c;
  background: #fff;
  color: #17435c;
  font-weight: 700;
}

#productsMenuSubcategories .products-menu-tile {
  border-radius: 8px;
}

.products-menu .products-menu-tile:is(:hover, :focus-visible),
#productsMenuClose:is(:hover, :focus-visible) {
  background: #edf4f7;
}

.products-menu a:is(:hover, :focus-visible) {
  color: #17435c;
}

.products-menu-thumbnail {
  display: grid;
  place-items: center;
  width: min(100%, 96px);
  height: 78px;
  color: #647789;
  font-size: 27px;
}

#productsMenuCategories .products-menu-thumbnail {
  width: min(100%, 66px);
  height: 56px;
}

.products-menu-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 600px) {
  .products-menu-position {
    margin-inline: 0;
    padding-inline: 6px;
  }

  .products-menu {
    grid-template-columns: clamp(78px, 24%, 116px) minmax(0, 1fr);
  }

  .products-menu-content {
    padding-inline: 9px;
  }

  #productsMenuSubcategories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .products-menu .products-menu-tile {
    font-size: 12px;
  }

  .products-menu-thumbnail {
    height: 60px;
  }

  #productsMenuCategories .products-menu-thumbnail {
    height: 48px;
  }
}

.store-header--secondary {
  display: none;
}

@media (min-width: 901px) {
  .store-header {
    color: #203449;
    background: #fff;
  }

  .store-header .head,
  .store-header .nav {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 4%;
  }

  .store-header .store-navigation {
    border-bottom: 1px solid #e3e9f0;
  }

  .store-header .products-menu-position {
    max-width: none;
    padding-inline: 4%;
  }

  .store-header--secondary {
    display: block;
    font: 14px Vazirmatn, Tahoma, Arial, sans-serif;
  }

  .store-header--secondary + .bar {
    display: none;
  }

  .store-header--secondary .top {
    border-bottom: 1px solid #e3e9f0;
  }

  .store-header--secondary .top .wrap {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
    padding: 10px 4%;
    color: #657b8e;
    font-size: 12px;
  }

  .store-header--secondary .head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-block: 15px;
    background: #fff;
  }

  .store-header--secondary .search {
    flex: 1;
    max-width: 590px;
    margin: auto;
    padding: 14px 18px;
    color: #203449;
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: #f5f7fa;
  }

  .store-header--secondary .hbtn {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    white-space: nowrap;
  }

  .store-header--secondary .nav {
    display: flex;
    gap: clamp(16px, 2.4vw, 34px);
    overflow: auto;
    padding-block: 14px;
    border-top: 1px solid #e3e9f0;
    white-space: nowrap;
  }

  .store-header--secondary a:hover {
    color: #17435c;
  }

  .store-header--secondary [hidden] {
    display: none;
  }
}

@media (max-width: 900px) {
  .store-header--product {
    display: block;
    color: #213447;
    background: #fff;
  }

  .store-header--product .top,
  .store-header--product + .bar {
    display: none;
  }

}

.mobile-store-nav {
  display: none;
}

@media (max-width: 900px) {
  body:has(.mobile-store-nav) {
    --mobile-store-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
    --mobile-store-navy: #0b1925;
    --mobile-store-blue: #142e41;
    padding-bottom: var(--mobile-store-nav-height);
  }

  html:has(#productsMenu:not([hidden])) {
    overflow: hidden;
  }

  .store-header .nav,
  .store-header .head .hbtn {
    display: none;
  }

  .store-navigation {
    z-index: 8;
  }

  .mobile-store-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-sizing: border-box;
    height: var(--mobile-store-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #dfe7ee;
    background: #fff;
    color: var(--mobile-store-blue);
    box-shadow: 0 -4px 20px #20344912;
  }

  .mobile-store-nav :is(a, button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 2px 5px;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: inherit;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
  }

  .mobile-store-nav :is(a, button):is(:focus-visible, [aria-current="page"], [aria-expanded="true"]) {
    color: var(--mobile-store-navy);
    background: #edf3f7;
    font-weight: 700;
  }

  .mobile-store-nav:has([aria-expanded="true"]) #mobileStore:not(:focus-visible) {
    color: inherit;
    background: transparent;
    font-weight: inherit;
  }

  .mobile-store-nav svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .products-menu-position {
    position: fixed;
    inset: 0 0 var(--mobile-store-nav-height);
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: env(safe-area-inset-top, 0px) 0 0;
  }

  .products-menu-position:has(.products-menu:not([hidden])) {
    background: #fff;
  }

  .products-menu {
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #productsMenuClose {
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  #productsMenuCategories .products-menu-tile[aria-pressed="true"] {
    box-shadow: inset -3px 0 var(--mobile-store-blue);
    color: var(--mobile-store-navy);
  }

  .products-menu .products-menu-tile:is(:hover, :focus-visible),
  #productsMenuClose:is(:hover, :focus-visible) {
    background: #edf3f7;
  }

  .products-menu a:is(:hover, :focus-visible) {
    color: var(--mobile-store-blue);
  }
}

.store-search-box {
  display: contents;
}

.mobile-more-toggle,
.mobile-more-links {
  display: none;
}

@media (max-width: 900px) {
  .store-header--product .head,
  .store-header .head {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding-block: 9px;
  }

  .mobile-more-toggle {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    height: 44px;
    padding: 0;
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: #fff;
    color: var(--mobile-store-blue);
    cursor: pointer;
  }

  .mobile-more-toggle[aria-expanded="true"] {
    background: #edf3f7;
  }

  .mobile-more-toggle svg {
    width: 23px;
    height: 23px;
  }

  .store-search-box {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    --search-logo-width: clamp(75px, 24vw, 112px);
  }

  .store-header .store-search-box .logo {
    position: absolute;
    inset-inline-end: 10px;
    inset-block: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--search-logo-width);
  }

  .store-header .store-search-box .search {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
    margin: 0;
    padding-inline: 11px calc(var(--search-logo-width) + 19px);
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: #f5f7fa;
    color: #203449;
    font: inherit;
    font-size: 16px;
  }

  .store-search-box .search::placeholder {
    font-size: 13px;
    text-overflow: ellipsis;
  }

  .mobile-more-links:not([hidden]) {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 4%;
    z-index: 7;
    display: grid;
    min-width: min(235px, 92vw);
    padding: 5px;
    border: 1px solid #dce5ed;
    border-radius: 12px;
    background: #fff;
    color: var(--mobile-store-blue);
    box-shadow: 0 10px 26px #20344924;
  }

  .mobile-more-links a:not([hidden]) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
  }

  .mobile-more-links a:is(:hover, :focus-visible) {
    background: #edf3f7;
  }
}

.store-header .cart-trigger-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  background: #fff;
}

.store-header button.cart-trigger-icon:hover {
  border-color: #ff7900;
}

.store-header .cart-trigger-icon svg {
  width: 24px;
  height: 24px;
}

.store-header .cart-count:not([hidden]) {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 5px;
  background: #c7193e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .store-header .head .cart-trigger-icon {
    display: none;
  }

  .store-header .mobile-store-nav .cart-trigger-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .store-header .mobile-store-nav .cart-trigger-icon svg {
    width: 20px;
    height: 20px;
  }

  .store-header .mobile-store-nav .cart-count:not([hidden]) {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

.store-header .head .store-account-link {
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.store-account-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.store-account-text {
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-contact {
  display: none;
}

@media (min-width: 901px) {
  .store-contact {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .store-contact a {
    color: inherit;
    text-decoration: none;
  }

  .store-contact-icon {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 40px;
  }

  .store-contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .store-contact-phone {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .store-contact-phone:is(:hover, :focus-visible) {
    text-decoration: underline;
  }
}
