body {
  font-family: 'Lato', sans-serif;
  background: #fff;
  color: #000;
}

/* ========================= */
/* Search Container (reset) */
/* ========================= */
div.search-container {
  all: unset;              /* wipe out theme interference */
  display: block;
  position: relative;
  width: 100%;
  max-width: 520px;        /* updated width */
  margin: 0 auto;          /* centered horizontally */
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* Search Box (icon + input wrapper) */
/* ========================= */
div.search-container .search-box {
  display: flex;
  align-items: center;      /* vertical centering */
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  height: 44px;             /* consistent height */
  box-sizing: border-box;
}

/* Eyeglass inside bar */
div.search-container .search-box .search-icon {
  font-family: 'Material Icons';
  font-size: 20px;
  color: #000;              /* always black */
  margin-left: 12px;
  margin-right: 8px;
  line-height: 1;           /* remove phantom spacing */
  flex-shrink: 0;           /* don’t let it collapse */
}

/* Input expands to fill */
div.search-container .search-box input#productSearch {
  all: unset;
  flex: 1;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  color: #000;
  padding: 0;
  box-sizing: border-box;
}

div.search-container .search-box input#productSearch::placeholder {
  color: #000;
  opacity: 0.6;
}

/* ========================= */
/* Dropdown Results (flush, full width) */
/* ========================= */
div.search-container .search-results {
  all: unset;
  display: none;
  position: absolute;
  top: 100%;                /* flush against search box */
  left: 0;
  right: 0;
  width: 100%;              /* matches bar */
  background: #fff;
  border: 1px solid #000;
  border-top: none;         /* no double border */
  max-height: 300px;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1000;
}

div.search-container .search-results.show {
  display: block;
}

div.search-container .search-results li {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  box-sizing: border-box;
  cursor: pointer;
  color: #000;
  border-bottom: 1px solid #ddd;
  position: relative;
  overflow: hidden;
}

div.search-container .search-results li:last-child {
  border-bottom: none;
}

/* ========================= */
/* Text Layout */
/* ========================= */
div.search-container .result-text {
  display: flex;
  align-items: center;
  flex: 1;
}

div.search-container .result-title {
  flex: 1;
  font-weight: 700; /* always bold */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

div.search-container .result-genre {
  font-size: 14px;
  font-weight: 400;
  margin-left: 12px;
  opacity: 0.7;
  white-space: nowrap;
}

/* ========================= */
/* Hover Overlay */
/* ========================= */
div.search-container .search-results li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

div.search-container .search-results li:hover::before {
  opacity: 0.1;
}

/* ========================= */
/* Thumbnails */
/* ========================= */
div.search-container .search-results img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  margin-right: 10px;
  position: relative;
  mix-blend-mode: darken;
  transition: transform 0.2s ease;
}

div.search-container .search-results li:hover img {
  transform: scale(1.05);
}

/* ========================= */
/* Mobile Optimizations */
/* ========================= */
@media (max-width: 600px) {
  div.search-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
  }

  div.search-container .search-box {
    height: 52px;
  }

  div.search-container .search-box .search-icon {
    font-size: 22px;
  }

  div.search-container .search-box input#productSearch {
    font-size: 18px;
  }

  div.search-container .search-results li {
    padding: 14px 16px;
  }

  div.search-container .search-results img {
    width: 36px;
    height: 36px;
    margin-right: 12px;
  }

  div.search-container .result-title {
    font-size: 16px;
  }

  div.search-container .result-genre {
    font-size: 13px;
    opacity: 0.6;
    margin-left: 8px;
  }

  /* Whats New header override */
  .mini-header.whats-new {
    margin: 0 !important;
    line-height: 1.3em !important;
    margin-top: 50px !important;
  }
}

@media (max-width: 400px) {
  div.search-container .result-genre {
    display: none;
  }
}
