/* Header remains part of the page flow, on every page and at every width.
 * Relative positioning preserves anchor layout for the mobile search row.
 * This versioned stylesheet is deliberately independent of cached style.css.
 */
.site-header,
.is-front .site-header {
  position: relative !important;
  top: auto !important;
}

/* Unify the global search field with the Works gallery treatment.
 * Without these rules the inline SVG inherits width:auto and black fill,
 * expanding to ~155px on artwork PDPs.
 */
.site-header .am-header-search-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 40px;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #d4d1cb;
  border-radius: 4px;
  background: rgba(255, 255, 255, .48);
  transition: border-color .18s ease, background .18s ease;
}
.site-header .am-header-search-field:focus-within {
  border-color: #9d9992;
  background: rgba(255, 255, 255, .75);
}
.site-header .am-header-search-field-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: #85817b !important;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .am-header-search-field input {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  color: #282725;
  font: 400 12px/1.35 "Rubik", sans-serif;
  appearance: none;
  -webkit-appearance: none;
}
.site-header .am-header-search-field input:focus,
.site-header .am-header-search-field input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.site-header .am-header-search-field input::placeholder { color: #92908c; opacity: 1; }
.site-header .am-header-search-close {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #78756f;
  cursor: pointer;
}
.site-header .am-header-search-close svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.site-header .am-header-search-close:hover { background: #e8e5e0; color: #282725; }
.site-header .am-header-search-close:focus-visible { outline: 2px solid #75716b; outline-offset: 2px; }
@media (max-width: 900px) {
  .site-header .am-header-search-field { min-width: 0; }
  .site-header .am-header-search-field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .am-header-search-field { transition: none; }
}
