.site-header {
  --ink: #242424;
  --yellow: #ffd500;
  position: relative;
  z-index: 20;
  width: 100%;
  background: #fff;
  border-top: 1px solid #94a0a5;
  font-family: "Inter", Arial, sans-serif;
}

.announcement {
  height: 63px;
  overflow: hidden;
  background: #f7f7f7;
  border-bottom: 1px solid #f2f2f2;
}

.announcement__track {
  display: flex;
  width: max-content;
  min-width: 200%;
  height: 100%;
  animation: announcement-scroll 38s linear infinite;
  will-change: transform;
}

.announcement__group {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
}

.announcement__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 38px;
  color: #090909;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.announcement__item i {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.announcement__item i::before,
.announcement__item i::after {
  position: absolute;
  inset: 3px -3px;
  content: "";
  background: #f7f7f7;
}

.announcement__item i::after {
  inset: -3px 3px;
}

@keyframes announcement-scroll {
  to { transform: translateX(-50%); }
}

.navbar {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 152px;
  align-items: center;
  min-height: 88px;
  padding: 0 54px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  width: 130px;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 1.65vw, 32px);
  height: 100%;
  white-space: nowrap;
}

.main-nav > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > li > a {
  display: block;
}

.main-nav a {
  position: relative;
  padding: 34px 0 32px;
  color: #2b2b2b;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: #111;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.icon-button {
  display: inline-grid;
  width: 27px;
  height: 32px;
  padding: 3px;
  place-items: center;
  color: #303030;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #a47e00;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.header-search-legacy {
  display: none;
}

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

.header-search {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 116px 20px 24px;
  visibility: hidden;
  place-items: start center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}

.header-search.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.header-search__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgb(0 0 0 / 38%);
  border: 0;
  cursor: default;
}

.header-search__dialog {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100vw - 40px));
  max-height: calc(100vh - 140px);
  overflow: hidden;
  color: #171717;
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgb(0 0 0 / 20%);
  transform: translateY(-10px);
  transition: transform .2s ease;
}

.header-search.is-open .header-search__dialog {
  transform: translateY(0);
}

.header-search__form {
  display: grid;
  min-height: 66px;
  padding: 0 20px;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #1e1e1e;
}

.header-search__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #333;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.header-search__form input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 10px;
  color: #242424;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 18px;
}

.header-search__form input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.header-search__close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 7px;
  place-items: center;
  color: #111;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.header-search__close:hover,
.header-search__close:focus-visible {
  background: #eee;
}

.header-search__close svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.header-search__content {
  max-height: calc(100vh - 206px);
  padding: 22px 25px 28px;
  overflow-y: auto;
}

.search-recent header {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-recent h3,
.search-products h3 {
  margin: 0;
  color: #202020;
  font-size: 18px;
  font-weight: 500;
}

.search-recent header button {
  padding: 3px 0;
  color: #666;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}

.search-recent header button:hover,
.search-recent header button:focus-visible {
  color: #a47e00;
  text-decoration: underline;
}

.search-recent__items {
  min-height: 0;
}

.search-recent__card {
  display: flex;
  width: 184px;
  color: #171717;
  flex-direction: column;
  text-decoration: none;
}

.search-recent__image,
.search-product__image {
  display: block;
  overflow: hidden;
  background: #eee;
}

.search-recent__image {
  width: 184px;
  aspect-ratio: 4 / 5;
}

.search-recent__image img,
.search-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-recent__card > strong {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-recent__price,
.search-product > span:last-child {
  margin-top: 6px;
  color: #d4a400;
  font-weight: 700;
}

.search-recent__price del,
.search-product del {
  margin-left: 5px;
  color: #888;
  font-weight: 400;
}

.search-recent__empty,
.search-products__empty {
  margin: 6px 0 22px;
  color: #777;
  font-size: 14px;
}

.search-products {
  margin-top: 18px;
}

.search-products h3 {
  margin-bottom: 10px;
}

.search-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.search-product {
  display: flex;
  min-width: 0;
  color: #171717;
  flex-direction: column;
  text-decoration: none;
}

.search-product[hidden] {
  display: none;
}

.search-product__image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.search-product > strong {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-product > span:last-child {
  font-size: 13px;
}

@media (max-width: 1550px) {
  .navbar {
    grid-template-columns: 174px minmax(0, 1fr) 136px;
    padding: 0 36px;
  }

  .main-nav { gap: 18px; }
  .main-nav a { font-size: 15px; }
  .header-actions { gap: 19px; }
}

@media (max-width: 1180px) {
  .navbar {
    grid-template-columns: 1fr auto;
    min-height: 78px;
    padding: 0 28px;
  }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    height: auto;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 25px rgb(0 0 0 / 8%);
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, visibility .3s;
  }

  .main-nav.is-open {
    max-height: 520px;
    visibility: visible;
    opacity: 1;
  }

  .main-nav a {
    display: block;
    padding: 13px 28px;
    border-bottom: 1px solid #f1f1f1;
  }

  .main-nav a::after { display: none; }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .announcement { height: 48px; }
  .announcement__item { gap: 14px; padding: 0 22px; font-size: 12px; }

  .navbar {
    min-height: 70px;
    padding: 0 16px;
  }

  .brand {
    width: 105px;
  }

  .header-actions { gap: 10px; }
  .header-actions > a[aria-label="My account"] { display: none; }

  .header-search {
    inset: 0;
    padding: 68px 10px 10px;
  }

  .header-search__dialog {
    width: 100%;
    max-height: calc(100vh - 78px);
    border-radius: 12px;
  }

  .header-search__form {
    min-height: 58px;
    padding: 0 12px;
    grid-template-columns: 25px minmax(0, 1fr) 36px;
  }

  .header-search__form input[type="search"] {
    font-size: 16px;
  }

  .header-search__content {
    max-height: calc(100vh - 136px);
    padding: 18px 16px 24px;
  }

  .search-recent__card {
    display: grid;
    width: 100%;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
  }

  .search-recent__image {
    width: 104px;
    grid-row: 1 / 4;
  }

  .search-recent__card > strong {
    margin-top: 2px;
  }

  .search-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement__track { animation-play-state: paused; }
  .main-nav,
  .menu-toggle span,
  .header-search { transition: none; }
}
