/* Global product search overlay used by the shared header. */
.nav-search { border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; }
.nav-search[aria-expanded="true"] svg { display: none; }
.nav-search[aria-expanded="true"], .search-close { position: relative; }
.nav-search[aria-expanded="true"]::before, .nav-search[aria-expanded="true"]::after,
.search-close::before, .search-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 90%;
  height: 1.5px; background: currentColor; transform: translate(-50%,-50%) rotate(45deg);
}
.nav-search[aria-expanded="true"]::after, .search-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
#product-search {
  position: fixed; inset: var(--search-top,90px) 0 0; margin: 0; padding: 0;
  width: 100%; max-width: none; height: calc(100% - var(--search-top,90px)); max-height: none;
  overflow-y: auto; border: 0; background: white; color: #333;
}
#product-search::backdrop { background: transparent; }
html:has(#product-search[open]) { overflow: hidden; scrollbar-gutter: stable; }
#product-search form { position: relative; border-bottom: 1px solid #e5e5e5; }
#product-search input[type="search"] {
  display: block; width: 100%; height: 110px; padding: 0 90px;
  border: 0; outline: 0; background: transparent; color: #333; text-align: center;
  font: 600 48px/1.2 Montserrat,Arial,sans-serif; appearance: none;
}
#product-search input::placeholder { color: #333; opacity: 1; }
#product-search input::-webkit-search-cancel-button { display: none; }
.search-close { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; color: #333; }
.search-close::before, .search-close::after { height: 3px; width: 100%; }
.search-message { margin: 12px 15px; color: #777; text-align: center; font-size: 16px; }
.search-matches { list-style: none; margin: 28px auto; padding: 0 15px; max-width: 1380px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(200px,100%),1fr)); gap: 30px; }
.search-matches[hidden], .search-matches li[hidden] { display: none; }
.search-matches img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.search-matches strong, .search-matches small { display: block; margin-top: 6px; }
@media (max-width: 767px) {
  #product-search input[type="search"] { height: 78px; padding-inline: 44px; font-size: clamp(20px,6vw,32px); }
  .search-close { width: 26px; height: 26px; right: 12px; }
  .search-matches { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
}
