/* One search field: discovery before typing, product previews while typing. */
.global-search{border-color:var(--line);min-width:0;background:#fff;z-index:2;display:block}
.search-input-row{display:flex;align-items:center;position:relative;min-width:0;border-radius:8px;background:#fff;z-index:2}
.global-search .search-input-row input{flex:1;width:0;padding:12px 14px;outline-offset:-3px;color:var(--ink);font-size:16px}
.global-search input::-webkit-search-cancel-button{display:none}
.global-search .search-input-row button{position:static;flex:0 0 42px;display:flex;align-items:center;justify-content:center;min-width:42px;min-height:46px;padding:0;border:0;background:transparent;color:var(--ink);border-radius:6px}
.global-search .search-input-row .search-clear{font-size:23px;color:var(--muted)}
.global-search .search-input-row .search-dismiss{display:none;border-left:1px solid var(--line);border-radius:0 8px 8px 0;font-size:28px}
.global-search .search-input-row button[hidden],.search-panel[hidden],.search-scrim[hidden]{display:none}
.storefront .store-header.search-expanded{z-index:100;backdrop-filter:none}
.search-expanded .global-search{border-color:var(--theme-dark);box-shadow:0 0 0 2px var(--theme-mid)}
.search-expanded .global-search .search-dismiss{display:flex}
.search-scrim{position:fixed;inset:0;width:100%;height:100%;border:0;background:#19151e33;z-index:1;cursor:default;padding:0}
.search-panel{position:fixed;left:var(--search-left,16px);top:var(--search-top,100px);width:var(--search-width,840px);max-height:min(720px,var(--search-height,75vh));display:flex;flex-direction:column;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 22px 60px #21182726;overflow:hidden;z-index:2;animation:search-appear .16s ease-out}
.search-panel-body{display:grid;grid-template-columns:220px minmax(0,1fr);overflow:auto;overscroll-behavior:contain;min-height:0}
.search-discovery{padding:26px 22px;background:var(--theme-soft);border-right:1px solid var(--line);min-width:0}
.storefront .search-label{font:600 11px/1.5 var(--font-ui);letter-spacing:.09em;margin:0 0 14px;color:var(--muted)}
.search-term-list{display:flex;flex-wrap:wrap;gap:8px}
.search-term-list a{display:inline-flex;align-items:center;gap:10px;min-height:38px;padding:6px 11px;border:1px solid var(--line);border-radius:6px;font-size:14px;line-height:1.5;background:#fff;overflow-wrap:anywhere}
.search-term-list a span{color:var(--muted);font-size:12px}
.search-term-list a:hover,.search-term-list a:focus-visible{border-color:var(--theme-dark);background:var(--theme-mid)}
.search-shortcuts{display:flex;flex-direction:column;margin-top:26px;border-top:1px solid var(--line);padding-top:12px}
.search-shortcuts a{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:12px;font-size:14px}
.search-shortcuts a:hover{text-decoration:underline;text-underline-offset:4px}
.search-recent{margin-top:26px}.search-recent>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.search-recent .search-label{margin:0}.global-search .search-recent button{position:static;padding:0;min-height:32px;min-width:32px;font-size:12px;text-decoration:underline}
.search-recent>small{display:block;font-size:12px;color:var(--muted);margin-top:10px}
.search-products{padding:24px 24px 12px;min-width:0}
.search-results-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.storefront .search-results-heading h2{font:600 18px/1.5 var(--font-ui);letter-spacing:0;margin:0}
.search-results-heading>span{color:var(--muted);font-size:12px;white-space:nowrap}
.search-product{display:flex;align-items:center;gap:15px;padding:13px 0;border-top:1px solid var(--line);text-decoration:none;min-width:0;transition:background .15s}
.search-product:hover,.search-product:focus-visible{background:var(--theme-soft)}
.search-product img{width:76px;height:95px;flex:0 0 76px;object-fit:cover;border-radius:4px;background:var(--theme-soft)}
.search-product-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.search-product-copy strong{font:600 15px/1.45 var(--font-ui);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.search-product-facts{font-size:12px;line-height:1.5;color:var(--muted)}
.search-product-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;line-height:1.45}
.search-product-price .selling-price{font-size:16px;font-weight:600;color:var(--ink)}
.search-product-price .list-price{font-size:12px;color:var(--muted)}
.search-product-price small{font-size:12px;color:var(--muted)}
.search-rating,.search-unrated{font-size:12px;line-height:1.5;display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px}
.search-unrated{color:var(--muted)}.search-rating>span{font-size:15px;letter-spacing:.02em;color:var(--theme-dark)}
.search-rating small{font-size:11px;color:var(--muted)}.search-product-arrow{font-size:18px;color:var(--muted)}
.search-all{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 24px;border-top:1px solid var(--line);font-size:14px;font-weight:600;min-height:58px;background:var(--theme-soft);overflow-wrap:anywhere}
.search-all:hover{background:var(--theme-mid)}.search-all>span:last-child{font-size:21px}
.search-empty{padding:34px 4px;overflow-wrap:anywhere}.search-empty b{font-size:17px;font-weight:600}
.storefront .search-empty p,.storefront .search-hint{font-size:14px;line-height:1.6;color:var(--muted)}
.search-empty a{font-size:14px;text-decoration:underline;text-underline-offset:5px}
@keyframes search-appear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
  body.search-mobile-open{overflow:hidden}
  .global-search{display:none}
  .search-expanded .global-search{position:fixed;inset:0;display:flex;flex-direction:column;align-items:stretch;width:100%;height:min(100dvh,var(--search-viewport-height,100dvh));max-height:100dvh;background:#fff;border:0;border-radius:0;box-shadow:none;padding:env(safe-area-inset-top) 0 0;overflow:hidden}
  .global-search .search-input-row{flex-shrink:0;margin:12px 12px 0;border:1px solid var(--line);min-height:48px}
  .global-search .search-input-row input{padding-left:12px;font-size:16px}
  .global-search .search-input-row button{flex-basis:38px;min-width:38px;min-height:46px}
  .global-search .search-input-row .search-clear{flex-basis:32px;min-width:32px}
  .search-panel{position:static;flex:1;min-height:0;width:100%;max-height:none;border:0;box-shadow:none;border-radius:0;animation:none;padding-bottom:env(safe-area-inset-bottom)}
  .search-panel-body{display:flex;flex-direction:column;flex:1;overflow:auto}
  .search-discovery{padding:20px 16px 16px;border-right:0;border-bottom:1px solid var(--line)}
  .search-term-list{gap:7px}.search-term-list a{min-height:40px;font-size:14px;padding:6px 11px}
  .search-shortcuts{flex-direction:row;flex-wrap:wrap;gap:0 18px;margin-top:14px;padding-top:8px}.search-shortcuts a{font-size:13px;gap:7px;min-height:38px}
  .search-recent{margin-top:18px}.search-products{padding:18px 16px 8px}
  .search-results-heading{margin-bottom:10px}.storefront .search-results-heading h2{font-size:17px}
  .search-product{gap:12px;padding:14px 0}.search-product img{width:68px;height:85px;flex-basis:68px}
  .search-product-copy strong{font-size:14px}.search-product-arrow{display:none}
  .search-product-facts{font-size:12px}.search-rating{font-size:12px}.search-product-price .selling-price{font-size:15px}
  .search-all{padding:14px 16px;min-height:54px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.search-panel{animation:none}.search-product{transition:none}}
