/* Product search — overlay panel (icon uses header-icons.css) */

.noureldein-product-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.noureldein-product-search__glyph {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.noureldein-product-search__overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(4, 36, 27, 0.55);
  backdrop-filter: blur(2px);
}

.noureldein-product-search__overlay[hidden] {
  display: none !important;
}

.noureldein-product-search__panel {
  width: min(100%, 560px);
  background: var(--nd-white, #fff);
  border: 1px solid var(--nd-line, #e1e9e4);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(8, 64, 51, 0.14);
  overflow: hidden;
}

.noureldein-product-search__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--nd-line, #e1e9e4);
  background: var(--nd-mint, #e6f4ef);
}

.noureldein-product-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--nd-font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--nd-dark-green, #084033);
}

.noureldein-product-search__input::placeholder {
  color: var(--nd-muted, #6b7a73);
  font-weight: 500;
}

.noureldein-product-search__input:focus {
  outline: none;
}

.noureldein-product-search__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--nd-cream, #f4eee3);
  color: var(--nd-dark-green, #084033);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.noureldein-product-search__close:hover,
.noureldein-product-search__close:focus-visible {
  background: var(--nd-white, #fff);
  color: var(--nd-emerald, #0d5c46);
  outline: none;
}

.noureldein-product-search__status {
  min-height: 1.25rem;
  padding: 8px 16px 0;
  font-family: var(--nd-font-primary);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nd-muted, #6b7a73);
}

.noureldein-product-search__results {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

.noureldein-product-search__item {
  margin: 0;
}

.noureldein-product-search__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #33423c;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.noureldein-product-search__link:hover,
.noureldein-product-search__link:focus-visible {
  background: var(--nd-mint, #e6f4ef);
  color: var(--nd-emerald, #0d5c46);
  outline: none;
}

.noureldein-product-search__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nd-cream, #f4eee3);
}

.noureldein-product-search__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.noureldein-product-search__title {
  font-family: var(--nd-font-primary);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--nd-ink, #1b2420);
}

.noureldein-product-search__price {
  font-family: var(--nd-font-primary);
  font-size: 12px;
  color: var(--nd-emerald, #0d5c46);
}

.noureldein-product-search__price .amount {
  font-weight: 700;
}

html.noureldein-product-search-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .noureldein-product-search__overlay {
    padding-top: 24px;
    align-items: stretch;
  }

  .noureldein-product-search__panel {
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

  .noureldein-product-search__results {
    max-height: none;
    flex: 1;
  }
}
