body.nora-search-view {
  color: var(--nora-charcoal);
  background: var(--nora-cream-soft);
}

body.nora-search-view .nora-site-header {
  position: relative;
  top: 0;
  color: var(--nora-charcoal);
  background: rgba(255, 250, 245, 0.96);
  border-bottom: 1px solid rgba(61, 36, 34, 0.1);
}

body.admin-bar.nora-search-view .nora-site-header {
  top: 0;
}

.nora-search-page {
  min-height: 72vh;
  padding: clamp(42px, 7vw, 90px) 18px calc(110px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 12% 12%, rgba(232, 200, 232, 0.22), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(255, 224, 163, 0.24), transparent 34%),
    var(--nora-cream-soft);
}

.nora-search-page__hero {
  width: min(100%, 980px);
  margin: 0 auto;
}

.nora-search-page__eyebrow {
  margin: 0 0 14px;
  color: var(--nora-burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nora-search-page h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.92;
}

.nora-search-page__hero > p:not(.nora-search-page__eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(35, 27, 24, 0.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.nora-product-search {
  position: relative;
  width: min(100%, 760px);
  margin-top: 28px;
}

.nora-product-search__label {
  display: block;
  margin: 0 0 10px;
  color: rgba(61, 36, 34, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nora-product-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 22px;
  color: var(--nora-charcoal);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(61, 36, 34, 0.14);
  border-radius: 999px;
  box-shadow: 0 22px 70px rgba(74, 37, 69, 0.08);
}

.nora-product-search__icon {
  display: inline-flex;
  color: var(--nora-burgundy);
}

.nora-product-search__input {
  width: 100%;
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1.02rem;
  outline: 0;
}

.nora-product-search__input::placeholder {
  color: rgba(35, 27, 24, 0.44);
}

.nora-product-search__field:focus-within {
  border-color: rgba(74, 37, 69, 0.34);
  box-shadow: 0 24px 80px rgba(74, 37, 69, 0.14);
}

.nora-product-search__status {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(35, 27, 24, 0.58);
  font-size: 0.9rem;
}

.nora-product-search__panel {
  margin-top: 16px;
}

.nora-product-search__empty {
  margin: 0;
  padding: 22px;
  color: rgba(35, 27, 24, 0.7);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(61, 36, 34, 0.1);
  border-radius: 18px;
}

.nora-product-search__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nora-product-search-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(61, 36, 34, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 52px rgba(35, 27, 24, 0.07);
}

.nora-product-search-result__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(239, 225, 214, 0.7);
  border-radius: 14px;
}

.nora-product-search-result__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nora-product-search-result__content {
  min-width: 0;
  align-self: center;
}

.nora-product-search-result__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--nora-charcoal);
  font-family: var(--nora-heading-font);
  font-size: 1.18rem;
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nora-product-search-result__title a {
  color: inherit;
  text-decoration: none;
}

.nora-product-search-result__summary {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: rgba(61, 36, 34, 0.72);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nora-product-search-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.nora-product-search-result__price {
  color: var(--nora-charcoal);
  font-weight: 800;
  white-space: nowrap;
}

.nora-product-search-result__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nora-product-search-result__view,
.nora-product-search-result__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.nora-product-search-result__view {
  color: rgba(61, 36, 34, 0.82);
  background: rgba(61, 36, 34, 0.06);
}

.nora-product-search-result__add {
  color: var(--nora-cream-soft);
  background: linear-gradient(135deg, var(--nora-burgundy), var(--nora-burgundy-deep));
}

.nora-product-search-result__view:hover,
.nora-product-search-result__view:focus-visible,
.nora-product-search-result__add:hover,
.nora-product-search-result__add:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.nora-shop-hero-search {
  width: min(100%, 560px);
}

.nora-shop-hero:has(.nora-product-search__panel:not([hidden])) {
  z-index: 4;
  overflow: visible;
}

.nora-shop-hero-search .nora-product-search {
  margin-top: 24px;
}

.nora-shop-hero-search .nora-product-search__label {
  color: var(--nora-burgundy);
}

.nora-shop-hero-search .nora-product-search__field {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.nora-shop-hero-search .nora-product-search__panel {
  position: absolute;
  z-index: 8;
  inset: auto 0 auto;
  max-height: min(58vh, 560px);
  padding: 12px;
  overflow: auto;
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(61, 36, 34, 0.1);
  border-radius: 24px;
  box-shadow: 0 26px 90px rgba(35, 27, 24, 0.16);
  backdrop-filter: blur(20px);
}

.nora-shop-hero-search .nora-product-search__results {
  grid-template-columns: 1fr;
}

.nora-shop-hero-search .nora-product-search-result {
  box-shadow: none;
}

@media (max-width: 900px) {
  .nora-product-search__results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nora-search-page {
    padding: 28px 16px calc(112px + env(safe-area-inset-bottom));
  }

  .nora-search-page h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .nora-product-search {
    margin-top: 24px;
  }

  .nora-product-search__field {
    min-height: 58px;
    padding: 0 18px;
  }

  .nora-product-search-result {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .nora-product-search-result__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nora-product-search-result__actions {
    width: 100%;
  }

  .nora-product-search-result__view,
  .nora-product-search-result__add {
    flex: 1;
  }

  .nora-shop-hero-search {
    display: none;
  }
}
