body[data-public-header] .site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 10px clamp(16px, 4.2vw, 64px);
  color: #f9f7f2;
  background: #072e3b;
  border-bottom: 1px solid rgba(249, 247, 242, .2);
  box-shadow: 0 8px 24px rgba(5, 19, 27, .12);
  direction: rtl;
  backdrop-filter: none;
}

body[data-public-header]:not([data-page="home"]) #main-content { padding-top: 72px; }

body[data-public-header] .site-header--reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform .46s cubic-bezier(.24, .72, .18, 1), visibility .46s;
}

body[data-public-header] .site-header--reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

body[data-public-header] .site-header .brand,
body[data-public-header] .site-header .brand img {
  flex: none;
  width: 100px;
  min-width: 100px;
  height: 44px;
  object-fit: contain;
}

body[data-public-header] .site-header .search-zone {
  position: relative;
  flex: 0 1 460px;
  width: clamp(180px, 32vw, 460px);
  min-width: 0;
}

body[data-public-header] .site-header .header-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: #072e3b;
  background: #f9f7f2;
  border: 1px solid #9fbbb3;
  border-radius: 6px;
}

body[data-public-header] .site-header .header-search input {
  width: 100%;
  min-width: 0;
  color: #072e3b;
  background: transparent;
  border: 0;
  outline: none;
  font-size: .82rem;
}

body[data-public-header] .site-header .header-spacer { flex: 1; min-width: 0; }
body[data-public-header] .site-header .header-actions { display: flex; align-items: center; flex: none; gap: 10px; }
body[data-public-header] .site-header .menu-zone { position: relative; }

body[data-public-header] .site-header .menu-button {
  flex: none;
  width: 44px;
  height: 44px;
  color: #072e3b;
  background: #f9f7f2;
  border: 1px solid #c5d5cf;
  border-radius: 7px;
}

body[data-public-header] .site-header .menu-button i { background: currentColor; }

body[data-public-header] .site-header .account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  color: #072e3b;
  background: #d5e5dd;
  border: 1px solid #a9c5ba;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}

body[data-public-header] .site-header .account-button:hover,
body[data-public-header] .site-header .account-button:focus-visible {
  background: #e5f1e9;
  border-color: #d5e5dd;
}

body[data-public-header] .site-header .main-menu {
  position: fixed;
  top: 64px;
  left: 14px;
  right: auto;
  display: grid;
  width: min(350px, calc(100vw - 28px));
  max-height: calc(100vh - 80px);
  padding: 18px;
  overflow: visible;
  color: #072e3b;
  background: #fff;
  border: 1px solid #c8d9d2;
  border-radius: 8px;
}

body[data-public-header] .site-header .main-menu[hidden] { display: none !important; }
body[data-public-header] .site-header .menu-head img { width: 80px; height: 42px; object-fit: contain; }
body[data-public-header] .site-header .main-menu a { color: #072e3b; }
body[data-public-header] .site-header .main-menu a:hover { color: #0b4556; background: #eaf3f0; }
body[data-public-header] .site-header .main-menu a:focus-visible,
body[data-public-header] .site-header .search-mega :focus-visible { outline: 2px solid #0b4556; outline-offset: 2px; }

body[data-public-header] .site-header .menu-links { display: grid; gap: 2px; }
body[data-public-header] .site-header .menu-entry { position: relative; display: flex; align-items: center; }
body[data-public-header] .site-header .menu-entry > a { flex: 1; min-width: 0; }
body[data-public-header] .site-header .menu-submenu-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: #072e3b;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
body[data-public-header] .site-header .menu-submenu-toggle:hover,
body[data-public-header] .site-header .menu-submenu-toggle[aria-expanded="true"] { background: #eaf3f0; }
body[data-public-header] .site-header .menu-submenu-toggle:focus-visible { outline: 2px solid #0b4556; outline-offset: 2px; }
body[data-public-header] .site-header .menu-submenu-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body[data-public-header] .site-header .menu-submenu {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(100% - 1px);
  display: grid;
  gap: 2px;
  width: 240px;
  padding: 8px;
  color: #072e3b;
  background: #fff;
  border: 1px solid #c8d9d2;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(5, 19, 27, .16);
}
body[data-public-header] .site-header .menu-submenu[hidden] { display: none !important; }
body[data-public-header] .site-header .menu-submenu a { white-space: normal; }

body[data-public-header] .site-header .search-mega { top: 50px; }
body[data-public-header] .site-header .search-categories button::after { border-color: currentColor; }

[dir="ltr"] body[data-public-header] .site-header .main-menu { left: auto; right: 14px; }
[dir="ltr"] body[data-public-header] .site-header .menu-submenu { left: auto; right: calc(100% - 1px); }

@media (max-width: 760px) {
  body[data-public-header] .site-header { gap: 7px; padding-inline: 10px; }
  body[data-public-header] .site-header .brand,
  body[data-public-header] .site-header .brand img { width: 70px; min-width: 70px; height: 38px; }
  body[data-public-header] .site-header .search-zone { flex: 1 1 auto; width: auto; }
  body[data-public-header] .site-header .header-actions { gap: 6px; }
  body[data-public-header] .site-header .language-button { display: none; }
  body[data-public-header] .site-header .account-button { padding-inline: 9px; font-size: .72rem; }
  body[data-public-header] .site-header .main-menu { overflow-y: auto; }
  body[data-public-header] .site-header .menu-entry { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
  body[data-public-header] .site-header .menu-submenu { position: static; grid-column: 1 / -1; width: 100%; box-shadow: none; }
}

@media (max-width: 360px) {
  body[data-public-header] .site-header { gap: 5px; padding-inline: 8px; }
  body[data-public-header] .site-header .brand,
  body[data-public-header] .site-header .brand img { width: 62px; min-width: 62px; height: 34px; }
  body[data-public-header] .site-header .menu-button { width: 40px; }
  body[data-public-header] .site-header .account-button { padding-inline: 6px; font-size: .68rem; }
}

@media (min-width: 761px) and (max-height: 700px) {
  body[data-public-header] .site-header .main-menu { overflow-y: auto; }
  body[data-public-header] .site-header .menu-entry { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
  body[data-public-header] .site-header .menu-submenu { position: static; grid-column: 1 / -1; width: 100%; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-public-header] .site-header--reveal { transition: none; }
}
