/* Intelligent storefront search v1. */
.og-search-trigger {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--og-line);
  border-radius: 50%;
  background: rgba(251, 248, 243, .94);
  color: var(--og-ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.og-search-trigger:hover,
.og-search-trigger:focus-visible,
.og-search-trigger[aria-expanded="true"] {
  border-color: var(--og-berry);
  background: var(--og-berry);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.og-search-glyph {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.og-search-glyph::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.og-search-panel {
  position: absolute;
  z-index: 8;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--og-line);
  border-bottom: 1px solid var(--og-line);
  background: rgba(251, 248, 243, .985);
  box-shadow: 0 22px 44px rgba(44, 30, 25, .1);
  backdrop-filter: blur(20px);
}

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

.og-search-panel-inner {
  width: min(920px, calc(100vw - 72px));
  max-height: min(72vh, 720px);
  margin: 0 auto;
  padding: 28px 0 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.og-search-form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--og-ink);
  color: var(--og-ink);
}

.og-search-form--header { grid-template-columns: auto minmax(0, 1fr) auto auto; }

.og-search-form > .og-search-glyph { margin: 0 4px 0 3px; }

.og-search-form input[type="search"] {
  min-width: 0;
  height: 62px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--og-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  line-height: 1;
  -webkit-appearance: none;
}

.og-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.og-search-form input[type="search"]::placeholder { color: rgba(36, 31, 28, .45); opacity: 1; }

.og-search-submit {
  min-width: 94px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--og-ink);
  border-radius: 0;
  background: var(--og-ink);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}

.og-search-submit:hover,
.og-search-submit:focus-visible { border-color: var(--og-berry); background: var(--og-berry); outline: 0; }

.og-search-clear {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--og-muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.og-search-assist { padding-top: 20px; }

.og-search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

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

.og-search-popular > span {
  margin-right: 4px;
  color: var(--og-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.og-search-popular button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--og-line);
  border-radius: 30px;
  background: transparent;
  color: var(--og-ink);
  cursor: pointer;
  font: 500 12px/1.2 "Manrope", Arial, sans-serif;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.og-search-popular button:hover,
.og-search-popular button:focus-visible {
  border-color: var(--og-berry);
  background: var(--og-berry);
  color: #fff;
  outline: 0;
}

.og-search-status {
  min-height: 20px;
  margin: 0;
  color: var(--og-muted);
  font-size: 12px;
}

.og-search-suggestions {
  display: grid;
  margin-top: 2px;
  border-top: 1px solid var(--og-line);
}

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

.og-search-suggestion {
  min-width: 0;
  padding: 12px 2px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--og-line);
  color: var(--og-ink);
  text-decoration: none;
  transition: background .18s ease, padding .18s ease;
}

.og-search-suggestion:hover,
.og-search-suggestion:focus-visible,
.og-search-suggestion.is-active {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--og-cream);
  outline: 0;
}

.og-search-suggestion img,
.og-search-suggestion-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--og-cream);
  object-fit: cover;
}

.og-search-suggestion-mark .og-search-glyph { width: 13px; height: 13px; color: var(--og-berry); }
.og-search-suggestion-copy { min-width: 0; display: grid; gap: 2px; }
.og-search-suggestion-copy small { color: var(--og-berry); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.og-search-suggestion-copy strong { overflow: hidden; font: 500 15px/1.35 "Manrope", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.og-search-suggestion-copy span { overflow: hidden; color: var(--og-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.og-search-suggestion > b { color: var(--og-berry); font-size: 17px; font-weight: 400; }

.og-search-all {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--og-berry) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.og-search-all[hidden] { display: none; }
.og-search-all span { font-size: 17px; transition: transform .2s ease; }
.og-search-all:hover span { transform: translateX(4px); }
body.og-search-open { overflow: hidden; }

/* Full search-results page. */
.og-search-page { max-width: 1320px; }

.og-search-page-header {
  max-width: 1040px;
  margin-bottom: 58px;
}

.og-search-page-header h1 {
  max-width: 1000px;
  margin: 0 0 38px;
  font-size: clamp(54px, 7vw, 92px);
  overflow-wrap: anywhere;
}

.og-search-form--page { max-width: 860px; }
.og-search-form--page button { min-width: 112px; height: 48px; padding: 0 22px; border: 0; background: var(--og-ink); color: #fff; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.og-search-count { margin: 18px 0 0; color: var(--og-muted); font-size: 13px; }

.og-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.og-search-result-card {
  position: relative;
  min-height: 330px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--og-line);
  background: var(--og-white);
  color: var(--og-ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.og-search-result-card.has-image { min-height: 500px; padding: 0; color: #fff; }
.og-search-result-card:hover,
.og-search-result-card:focus-visible { border-color: rgba(107, 38, 63, .5); box-shadow: var(--og-shadow); outline: 0; transform: translateY(-3px); }
.og-search-result-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.og-search-result-card.has-image:hover > img { transform: scale(1.025); }
.og-search-result-card.has-image::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(25, 17, 15, .82), rgba(25, 17, 15, .02) 65%); content: ""; }

.og-search-result-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--og-cream);
  color: var(--og-berry);
}

.og-search-result-copy { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 10px; }
.og-search-result-copy small { color: var(--og-berry); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.og-search-result-copy strong { font: 400 clamp(28px, 3vw, 40px)/1.08 "Playfair Display", Georgia, serif; letter-spacing: -.03em; }
.og-search-result-copy > span { color: var(--og-muted); font-size: 13px; line-height: 1.55; }
.og-search-result-card.has-image .og-search-result-copy { padding: 34px; }
.og-search-result-card.has-image .og-search-result-copy small,
.og-search-result-card.has-image .og-search-result-copy > span { color: rgba(255, 255, 255, .78); }
.og-search-result-card > b { position: absolute; z-index: 2; top: 22px; right: 24px; font-size: 21px; font-weight: 400; }

.og-search-empty { padding: clamp(42px, 6vw, 76px); background: var(--og-cream); }
.og-search-empty h2 { max-width: 720px; margin: 0; font-size: clamp(42px, 5vw, 70px); }
.og-search-empty > p { max-width: 640px; margin: 22px 0 32px; color: var(--og-muted); font-size: 17px; }
.og-search-empty nav { display: flex; flex-wrap: wrap; gap: 10px; }
.og-search-empty nav a { padding: 11px 15px; border: 1px solid var(--og-line); background: var(--og-paper); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 1100px) {
  .og-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .og-search-panel-inner { width: calc(100vw - 34px); max-height: calc(100dvh - 124px); padding: 20px 0 24px; }
  .og-search-form input[type="search"] { height: 54px; padding: 0 12px; font-size: 20px; }
  .og-search-form > .og-search-glyph { margin-left: 2px; }
  .og-search-submit { min-width: 74px; height: 38px; padding: 0 12px; font-size: 9px; }
  .og-search-assist { padding-top: 16px; }
  .og-search-popular { gap: 7px; }
  .og-search-popular > span { width: 100%; }
  .og-search-suggestion { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 10px 1px; }
  .og-search-suggestion img,
  .og-search-suggestion-mark { width: 46px; height: 46px; }
  .og-search-suggestion-copy strong { font-size: 13px; }
  .og-search-suggestion-copy span { font-size: 10px; }
  body.og-search-open .og-mobile-orderbar,
  body.og-search-open .og-mobile-buybar { display: none; }

  .og-search-page-header { margin-bottom: 42px; }
  .og-search-page-header h1 { margin-bottom: 28px; font-size: 50px; }
  .og-search-results { grid-template-columns: 1fr; gap: 14px; }
  .og-search-result-card { min-height: 250px; padding: 26px; }
  .og-search-result-card.has-image { min-height: 116vw; }
  .og-search-result-card.has-image .og-search-result-copy { padding: 26px; }
}

@media (max-width: 420px) {
  .og-header-actions .og-favorites-trigger { display: none; }
  .og-search-trigger { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (max-width: 370px) {
  .og-search-form input[type="search"] { font-size: 17px; }
  .og-search-submit { min-width: 60px; padding: 0 8px; }
  .og-search-popular button { padding-right: 10px; padding-left: 10px; font-size: 11px; }
}
