/*
 * Approved header standard for every non-home page.
 * Future pages must copy the .approved-header markup from product.html or
 * cart.html and load this stylesheet after their page stylesheet.
 */
.approved-header,
.approved-header * {
  box-sizing: border-box;
}

.approved-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  font-family: "Manrope", Arial, sans-serif;
}

.approved-header button,
.approved-header input {
  font: inherit;
}

.approved-header button,
.approved-header a {
  -webkit-tap-highlight-color: transparent;
}

.approved-header a {
  color: inherit;
  text-decoration: none;
}

.approved-header svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.approved-header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.approved-header .container {
  width: min(100% - 40px, 1360px);
  max-width: none;
  margin-inline: auto;
}

.approved-header .topbar {
  color: #dffbf7;
  background: var(--primary-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.approved-header .topbar__inner {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.approved-header .topbar p {
  margin: 0;
}

.approved-header .topbar__links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.approved-header .topbar__links > span:last-of-type {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.approved-header .header-main__inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(155px, 1fr) minmax(380px, 700px) minmax(225px, 1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.approved-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.approved-header .brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  border-radius: 11px 11px 11px 4px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
  transform: rotate(-2deg);
}

.approved-header .brand__mark svg {
  width: 26px;
}

.approved-header .brand__name {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.approved-header .brand__name span {
  color: var(--primary);
}

.approved-header .search {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: var(--background);
  border: 1px solid #dce6e5;
  border-radius: 10px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.approved-header .search:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.approved-header .search__icon {
  width: 19px;
  margin-inline: 15px 10px;
}

.approved-header .search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.approved-header .search input::placeholder {
  color: #94a3b8;
}

.approved-header .search input::-webkit-search-cancel-button {
  display: none;
}

.approved-header .search > button {
  height: 32px;
  margin: 4px;
  padding: 0 15px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.approved-header .search > button:hover {
  background: var(--primary-dark);
}

.approved-header .search > button:active {
  transform: scale(0.97);
}

.approved-header .header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.approved-header .language-menu {
  position: relative;
  display: block;
  margin-inline-end: 4px;
}

.approved-header .language-toggle {
  padding: 0;
  cursor: pointer;
}

.approved-header .language-toggle[aria-expanded="true"] {
  color: var(--primary);
  background: #f0fdfa;
  border-color: #99f6e4;
}

.approved-header .language-dropdown {
  position: absolute;
  z-index: 70;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: 148px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.approved-header .language-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.approved-header .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: start;
}

.approved-header .language-option:hover,
.approved-header .language-option.is-active {
  color: var(--primary);
  background: #f0fdfa;
}

.approved-header .language-option svg {
  width: 13px;
  opacity: 0;
}

.approved-header .language-option.is-active svg {
  opacity: 1;
}

.approved-header .action {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #334155;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.approved-header .action:hover {
  color: var(--primary);
  background: #f0fdfa;
  border-color: #99f6e4;
}

.approved-header .action svg {
  width: 19px;
}

.approved-header .cart__count,
.approved-header .wishlist__count {
  position: absolute;
  inset-block-start: -7px;
  inset-inline-end: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.approved-header .header-mobile-search-toggle {
  display: none;
}

.header-mobile-search-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.header-mobile-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.header-mobile-search-panel {
  width: min(100%, 440px);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  transform: translateY(-10px);
  transition: transform 180ms ease;
}

.header-mobile-search-overlay.is-open .header-mobile-search-panel {
  transform: translateY(0);
}

.header-mobile-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.header-mobile-search-head strong {
  font-size: 14px;
}

.header-mobile-search-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #334155;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.header-mobile-search-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-mobile-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.header-mobile-search-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #dce6e5;
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.header-mobile-search-form input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.header-mobile-search-form button {
  min-width: 76px;
  height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

body.header-search-open {
  overflow: hidden;
}

.approved-header .main-nav {
  display: block;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.approved-header .main-nav__inner {
  position: static;
  height: 42px;
  display: flex;
  align-items: center;
}

.approved-header .categories {
  position: relative;
}

.approved-header .categories__toggle {
  min-width: 200px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.approved-header .categories__toggle > svg:first-child {
  width: 16px;
}

.approved-header .categories__chevron {
  width: 13px;
  margin-inline-start: auto;
  transition: transform 180ms ease;
}

.approved-header .categories__toggle[aria-expanded="true"] .categories__chevron {
  transform: rotate(180deg);
}

.approved-header .categories__menu {
  position: absolute;
  z-index: 60;
  inset-block-start: calc(100% + 9px);
  inset-inline-start: 0;
  width: 200px;
  display: grid;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.approved-header .categories__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.approved-header .categories__menu a {
  padding: 10px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}

.approved-header .categories__menu a:hover {
  color: var(--primary);
  background: #f0fdfa;
}

.approved-header .nav-links {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.2vw, 50px);
  padding-inline: clamp(25px, 3.2vw, 48px);
}

.approved-header .nav-link {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}

.approved-header .nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.approved-header .nav-link--deals {
  color: #d97706;
}

.approved-header .nav-link--deals svg {
  width: 14px;
  fill: #fef3c7;
}

.approved-header .market-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.approved-header .market-note svg {
  width: 15px;
  color: var(--primary);
}

.approved-header .mobile-menu-toggle,
.approved-header .mobile-search,
.approved-header .mobile-menu {
  display: none;
}

.approved-header .icon-button {
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.approved-header .icon-button svg {
  width: 23px;
}

[dir="rtl"] .approved-header {
  font-family: "Noto Kufi Arabic", Arial, sans-serif;
}

@media (max-width: 1100px) {
  .approved-header .header-main__inner {
    grid-template-columns: 155px minmax(300px, 1fr) auto;
    gap: 16px;
  }

  .approved-header .market-note {
    display: none;
  }

  .approved-header .nav-links {
    flex: 1;
    justify-content: space-around;
  }
}

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }

  .approved-header .container {
    width: calc(100% - 28px);
  }

  .approved-header .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .approved-header .topbar__links,
  .approved-header .header-main__inner > .search,
  .approved-header .language-menu,
  .approved-header .header-actions .action:not(.cart),
  .approved-header .main-nav {
    display: none;
  }

  .approved-header .header-main {
    padding-bottom: 12px;
  }

  .approved-header .header-main__inner {
    min-height: 60px;
    display: flex;
    gap: 10px;
  }

  .approved-header .mobile-menu-toggle {
    display: grid;
    margin-inline-start: -7px;
  }

  .approved-header .brand {
    margin-inline-end: auto;
  }

  .approved-header .brand__mark {
    width: 34px;
    height: 34px;
  }

  .approved-header .brand__mark svg {
    width: 25px;
  }

  .approved-header .brand__name {
    font-size: 20px;
  }

  .approved-header .header-actions {
    display: flex;
  }

  .approved-header .action {
    background: transparent;
    border: 0;
  }

  .approved-header .mobile-search {
    display: block;
  }

  .approved-header .mobile-search .search {
    height: 43px;
  }

  .approved-header .mobile-search .search > button {
    width: 38px;
    height: 33px;
    display: grid;
    place-items: center;
    padding: 0;
  }

  .approved-header .mobile-search .search > button svg {
    width: 16px;
  }

  .approved-header .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .approved-header .mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .approved-header .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(15, 23, 42, 0.5);
    border: 0;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 240ms ease;
  }

  .approved-header .mobile-menu__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(86vw, 350px);
    display: block;
    padding: 21px;
    background: #fff;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.16);
    transform: translateX(-102%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  [dir="rtl"] .approved-header .mobile-menu__panel {
    transform: translateX(102%);
  }

  .approved-header .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .approved-header .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .approved-header .mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
  }

  .approved-header .mobile-menu__links {
    display: grid;
    margin-top: 20px;
  }

  .approved-header .mobile-menu__links > span {
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .approved-header .mobile-menu__links a {
    padding: 12px 4px;
    color: inherit;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
  }

  .approved-header .mobile-language {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
  }

  .approved-header .mobile-language strong {
    color: var(--primary);
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
  }
}

@media (max-width: 420px) {
  .approved-header .container {
    width: calc(100% - 22px);
  }

  .approved-header .topbar {
    font-size: 8px;
  }

  .approved-header .topbar__inner {
    min-height: 26px;
  }

  .approved-header .header-main__inner {
    min-height: 56px;
  }

  .approved-header .brand {
    gap: 7px;
  }

  .approved-header .brand__mark {
    width: 31px;
    height: 31px;
  }

  .approved-header .brand__name {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .approved-header .mobile-search {
    display: none;
  }

  .approved-header .header-actions .action.header-mobile-search-toggle {
    display: grid;
  }

  .header-mobile-search-overlay {
    display: flex;
  }
}
