/* Compact product search shared by every Gold Robina header. */
.site-header .header-tools {
  position: relative;
  z-index: 290;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-width: max-content;
}

.site-header .header-search {
  position: relative;
  flex: 0 0 auto;
  font-family: Inter, Arial, sans-serif;
}

.site-header .header-search-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(86, 57, 95, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #24182a;
  box-shadow: 0 12px 28px rgba(71, 48, 82, .1);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-header .header-search-toggle:hover,
.site-header .header-search-toggle:focus-visible,
.site-header .header-search.is-open .header-search-toggle {
  border-color: rgba(207, 169, 87, .72);
  background: #fffdf9;
  color: #a77720;
  box-shadow: 0 14px 32px rgba(105, 74, 116, .16);
  outline: none;
}

.header-search-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.header-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.8px;
  right: -5px;
  bottom: -3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.header-search-toggle-label {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.site-header .header-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  width: min(390px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(207, 169, 87, .44);
  border-radius: 20px;
  background: rgba(255, 253, 250, .985);
  box-shadow: 0 28px 72px rgba(55, 35, 61, .22);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

[dir="rtl"] .site-header .header-search-panel {
  transform-origin: top left;
}

.site-header .header-search.is-open .header-search-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-search-field {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(86, 57, 95, .16);
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.header-search-field:focus-within {
  border-color: rgba(207, 169, 87, .78);
  box-shadow: 0 0 0 3px rgba(207, 169, 87, .13);
}

.header-search-field .header-search-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #b38633;
}

.header-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #24182a;
  font: 500 14px/1.2 Inter, Arial, sans-serif;
}

.header-search-input::placeholder {
  color: #8b7e8f;
}

.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.header-search-input::-ms-clear {
  display: none;
}

.header-search-clear {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7c6d81;
  font: 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.header-search-clear:hover,
.header-search-clear:focus-visible {
  background: rgba(169, 145, 188, .14);
  color: #5f4168;
  outline: none;
}

.header-search-clear[hidden] {
  display: none;
}

.header-search-results {
  max-height: min(390px, 58vh);
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 145, 188, .55) transparent;
}

.header-search-status {
  margin: 0;
  padding: 18px 14px;
  color: #776b7b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.header-search-result {
  display: block;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #24182a;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.header-search-result:hover,
.header-search-result:focus-visible,
.header-search-result.is-active {
  background: linear-gradient(90deg, rgba(207, 169, 87, .17), rgba(169, 145, 188, .08));
  color: #6d4c76;
  outline: none;
}

.header-search-result-copy {
  min-width: 0;
}

.header-search-result strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font: 600 14px/1.28 Georgia, "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-result small {
  display: block;
  margin-top: 5px;
  color: #8a7a8e;
  font: 600 9px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.header-search-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  border-top: 1px solid rgba(86, 57, 95, .12);
  color: #72537c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-search-all:hover,
.header-search-all:focus-visible {
  color: #b38633;
  outline: none;
}

@media (min-width: 1320px) {
  .site-header .header-search-toggle {
    width: auto;
    min-width: 92px;
    padding: 0 16px 0 14px;
  }

  [dir="rtl"] .site-header .header-search-toggle {
    padding: 0 14px 0 16px;
  }

  .header-search-toggle-label {
    display: inline;
  }
}

@media (max-width: 1000px) {
  .site-header .header-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .site-header .header-tools .lang,
  .site-header .header-tools .lang-switch {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }

  .site-header .header-search-panel {
    position: fixed;
    top: var(--gr-search-top, 116px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform-origin: top center;
  }
}

@media (max-width: 620px) {
  .site-header .header-tools {
    gap: 6px;
  }

  .site-header .header-search-toggle {
    width: 32px;
    height: 32px;
    box-shadow: 0 8px 18px rgba(71, 48, 82, .09);
  }

  .header-search-icon {
    width: 13px;
    height: 13px;
  }

  .site-header .header-search-panel {
    left: 8px;
    right: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .header-search-field {
    height: 43px;
  }

  .header-search-results {
    max-height: min(340px, 54svh);
  }

  .header-search-result {
    min-height: 57px;
    padding: 9px 10px;
  }
}

@media (max-width: 360px) {
  .site-header .header-tools {
    gap: 4px;
  }

  .site-header .header-search-toggle {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-search-panel,
  .site-header .header-search-toggle,
  .header-search-result {
    transition: none;
  }
}
