/* A distinct, tactile header card with a directly typable search field. */
.store-shell > header {
  max-width: none;
  margin: 16px 16px 0;
  padding: 14px 18px;
  gap: 12px 16px;
  flex-wrap: wrap;
  background: #f3e6d9;
  border: 1px solid #e2ceba;
  border-radius: 18px;
  box-shadow: 0 3px 10px #6e50320a, inset 0 1px 0 #fff9f2;
}

.store-shell > header > nav {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.store-shell > header .store-tools {
  margin-left: auto;
  justify-content: flex-end;
}

.store-shell > header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #e3d3c2;
  border-radius: 11px;
  background: #fff9f2;
  box-shadow: 0 2px 0 #d7c4b340;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.store-shell > header a.brand {
  gap: 9px;
  padding: 7px 12px;
  font-size: 26px;
  font-weight: 900;
}

.store-shell > header a:hover,
.store-shell > header a[aria-current="page"] {
  background: #e9def1;
  border-color: #cabbdd;
  text-decoration: none;
  box-shadow: 0 2px 0 #c8b6d64d;
}

.store-shell > header a:active {
  background: #dfd1e9;
  box-shadow: inset 0 1px 3px #725c7d24;
}

.store-shell > header a:focus-visible,
.header-search input:focus-visible,
.header-search button:focus-visible {
  outline: 3px solid #435a9d;
  outline-offset: 3px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0 3px 0 0;
}

.header-search label {
  display: inline;
  font-size: 15px;
  font-weight: 700;
  cursor: text;
}

.header-search-field {
  position: relative;
  display: flex;
  min-width: 0;
}

.header-search input {
  width: 122px;
  min-width: 0;
  height: 38px;
  padding: 7px 33px 7px 10px;
  border: 1px solid #d8c5b2;
  border-radius: 10px;
  background: #fffdfb;
  font-size: 14px;
  box-shadow: inset 0 1px 2px #5b3c2110;
}

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

.header-search button {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: #435a9d;
}

.header-search button:hover {
  background: #e9def1;
}

@media (max-width: 850px) {
  .store-shell > header {
    gap: 12px;
  }

  .store-shell > header .store-tools {
    width: 100%;
  }

  .header-search-field {
    flex: 1 1 auto;
  }

  .header-search input {
    width: clamp(110px, 17vw, 180px);
  }
}

@media (max-width: 650px) {
  .store-shell > header {
    margin: 10px 10px 0;
    padding: 12px;
    border-radius: 14px;
    gap: 12px;
  }

  .store-shell > header a.brand {
    font-size: 23px;
  }

  .store-shell > header > nav {
    gap: 7px;
  }

  .store-shell > header a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .store-shell > header .store-tools {
    justify-content: flex-end;
    gap: 8px;
  }

  .header-search {
    flex: 1 1 100%;
    margin: 0;
  }

  .header-search-field,
  .header-search input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-shell > header a {
    transition: none;
  }
}
