.site-header:has(.site-search:not([hidden])){z-index:40}.site-search{position:absolute;top:100%;left:0;right:0;z-index:41;border:1px solid #dde3df;background:#fff;padding:24px 0;box-shadow:0 12px 24px #2030271a;max-height:70dvh;overflow-y:auto}.site-search>.wrap{height:auto;display:block}.site-search[hidden]{display:none}.site-search label{display:block;margin-bottom:10px;font-size:14px;font-weight:600}.site-search-row{display:flex;gap:16px}.site-search input{min-width:0;flex:1;border:1px solid var(--green);border-radius:5px;padding:12px 14px;background:white;font:inherit}.site-search button{border:1px solid var(--line-strong);border-radius:5px;background:#fff;padding:10px 18px;color:var(--green);min-height:44px}.site-search .site-search-close{border-color:transparent;background:transparent;font-size:24px;padding:4px 12px}.site-search-status{font-size:14px;color:#626b67;margin:12px 0 0}.site-search-status:empty{display:none}.site-search-results{display:grid;gap:4px;max-height:40vh;overflow:auto}.site-search-results a{display:block;padding:12px 0;border-bottom:1px solid #dde3df;color:var(--green)}.site-header .nav .header-search[aria-expanded="true"]{background:var(--surface-hover);color:var(--green)}@media(max-width:650px){.site-search{padding:18px 0}.site-search>.wrap{width:calc(100% - 32px)}.site-search-row{flex-wrap:wrap}.site-search input{flex-basis:calc(100% - 60px);width:0}.site-search .site-search-close{order:2;width:44px}.site-search input{font-size:16px}}

@media(max-width:650px){.site-search-row{row-gap:20px}}/* Keep the browser's search-clear control in the site palette. */
.site-search input::-webkit-search-cancel-button,
.quick-query::-webkit-search-cancel-button{
  -webkit-appearance:none;
  width:18px;
  height:18px;
  margin-left:8px;
  cursor:pointer;
  background-color:#202725;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 5 8 8M13 5l-8 8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.site-search input::-webkit-search-cancel-button:hover,
.quick-query::-webkit-search-cancel-button:hover{background-color:var(--green)}

/* Shared search: readable results and clear pointer/touch targets. */
.site-search{font-size:16px;line-height:1.5}
.site-search label{font-size:16px}
.site-search input,.site-search button{font-family:inherit;font-size:16px}
.site-search .site-search-close{flex:0 0 48px;width:48px;min-height:48px;padding:0;display:flex;align-items:center;justify-content:center;font-size:28px;cursor:pointer}
.site-search-results a{font-size:16px;line-height:1.5;padding:12px;border-radius:5px;min-height:48px;box-sizing:border-box}
.site-search-results a:hover,.site-search-results a:focus-visible,
.site-search .site-search-close:hover,.site-search .site-search-close:focus-visible{background:var(--surface-hover);color:var(--green);filter:none}
.site-search input::-webkit-search-cancel-button{width:32px;height:32px;-webkit-mask-size:18px 18px}
@media(max-width:700px){
 .site-search>.wrap{display:grid;grid-template-columns:auto minmax(0,1fr) 48px;gap:12px}
 .site-search>.wrap>form{display:contents!important}
 .site-search .site-search-row{display:contents}
 .site-search label{grid-column:1/-1;grid-row:1;margin:0}
 .site-search input{grid-column:1/3;grid-row:2;width:100%;box-sizing:border-box;min-height:48px}
 .site-search .site-search-close{grid-column:3;grid-row:2}
 
 .site-search .site-search-status{grid-column:1/-1;grid-row:3;align-self:center;margin:0;font-size:13px}
 .site-search-results{grid-column:1/-1;grid-row:4;min-width:0}
}

/* A bounded search card uses the same visual language as the navigation menu. */
.site-search{left:24px;right:24px;top:calc(100% + 8px);width:auto;max-width:960px;margin-inline:auto;border:1px solid var(--line-strong);border-radius:8px;padding:20px;box-shadow:0 12px 28px #20302724;box-sizing:border-box}
.site-search>.wrap{width:100%;max-width:none;margin:0}
.site-search-results{margin-top:12px;gap:4px}
.site-search-results a{border:0;background:white;color:var(--ink)}
.site-search-results a:hover,.site-search-results a:focus-visible{color:var(--ink)}
@media(max-width:700px){
 .site-search{left:16px;right:16px;padding:12px;max-height:70dvh}
 .site-search>.wrap{width:100%;grid-template-columns:auto minmax(0,1fr) 48px;gap:10px}
 .site-search label{grid-column:1/3;align-self:center;margin:0;font-weight:600}
 .site-search .site-search-close{grid-column:3;grid-row:1}
 .site-search input{grid-column:1/-1;grid-row:2}
 .site-search-results{margin-top:4px}
}
.site-search-results a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.site-search-results a::after{content:'→';color:var(--green)}

/* Phone search occupies the visible viewport, including when the keyboard opens. */
html.mobile-search-open,html.mobile-search-open body{overflow:hidden;overscroll-behavior:none}
dialog.mobile-search-dialog{position:fixed;inset:auto;margin:0;padding:0;border:0;border-radius:0;max-width:none;max-height:none;overflow:hidden;background:#fff;box-sizing:border-box}
.mobile-search-dialog::backdrop{background:#fff;backdrop-filter:none}
.mobile-search-dialog .site-search{position:static;display:flex;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:12px 16px;border:0;border-radius:0;box-shadow:none;overflow:hidden;box-sizing:border-box}
.mobile-search-dialog .site-search>.wrap{display:grid;width:100%;height:100%;min-height:0;grid-template-columns:auto minmax(0,1fr) 44px;grid-template-rows:44px 48px auto minmax(0,1fr);gap:16px 10px;align-content:stretch}
.mobile-search-dialog .site-search form,.mobile-search-dialog .site-search-row{display:contents}
.mobile-search-dialog .site-search label{grid-column:1/3;grid-row:1;min-height:0;margin:0;padding:0;align-self:center;font-size:16px}
.mobile-search-dialog .site-search .site-search-close{position:static;grid-column:3;grid-row:1;width:44px;height:44px;margin:0;padding:0}
.mobile-search-dialog .site-search input{grid-column:1/-1;grid-row:2;width:100%;min-height:48px;font-size:16px}

.mobile-search-dialog .site-search .site-search-status{grid-column:1/-1;grid-row:3;margin:0;padding:0;align-self:center}
.mobile-search-dialog .site-search-results{grid-column:1/-1;grid-row:4;display:block;min-height:0;max-height:none;margin:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom,0px)}
.mobile-search-dialog .site-search-results a{min-height:48px;padding:12px}

/* Keep closing in the heading on desktop as well as mobile. */
@media(min-width:701px){
 .site-search form{position:relative}
 .site-search label{min-height:48px;display:flex;align-items:center;padding-right:60px;margin-bottom:12px}
 .site-search .site-search-close{position:absolute;right:0;top:0;height:48px}
 
}
@media(max-width:700px){
 
 .site-search .site-search-status{padding-top:6px}
}
/* Closing is visible before hover in both search layouts. */
body .site-search .site-search-close{border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-hover);color:var(--green)}
body .site-search .site-search-close:hover{background:var(--surface-active);border-color:var(--green);filter:none}

.site-search-results a.search-product-result{grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding:10px 12px;align-items:center;min-height:84px;border-radius:5px}
.site-search-results a.search-product-result:hover,.site-search-results a.search-product-result:focus-visible{background:var(--surface-hover);filter:none}
.search-product-result img{width:48px;height:64px;object-fit:contain;mix-blend-mode:multiply}
.search-product-body{display:grid;gap:6px;min-width:0}
.search-product-title{font-size:14px;font-weight:400;overflow-wrap:anywhere}
.search-product-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;line-height:1.5}
.search-product-price{color:var(--ink);font-weight:500}
.search-product-stock{color:var(--green);font-weight:400}
.search-product-stock.unavailable{color:var(--muted)}
.site-search-results a.search-product-result.search-product-no-photo{grid-template-columns:minmax(0,1fr) auto}
.site-search [data-search-more]{grid-column:1/-1;justify-self:start;margin-top:8px;padding:6px 14px;font-size:14px}
.site-search input:focus,.quick-query:focus{outline:2px solid var(--green);outline-offset:2px}
.site-search-results .search-product-title{color:var(--ink)}
.search-product-stock::before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:currentColor;vertical-align:middle}
@media(max-width:360px){.site-search-results a.search-product-result{grid-template-columns:40px minmax(0,1fr) auto;gap:8px}.search-product-result img{width:40px}.site-search-results a.search-product-result::after{display:block}}

/* Shared explicit clear control: accessible on touch, keyboard and non-WebKit browsers. */
.site-search-field{position:relative;display:flex;flex:1;min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--green);border-radius:5px;background:#fff}
.site-search .site-search-field input{flex:1;width:100%;min-width:0;min-height:48px;border:0;background:transparent;padding:10px 58px 10px 14px;outline:none;box-shadow:none}
.site-search-field:focus-within{outline:2px solid var(--green);outline-offset:2px}
.site-search .site-search-field input::-webkit-search-cancel-button{display:none}
.site-search .site-search-clear{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface-hover);color:var(--green);font-size:24px;line-height:1;cursor:pointer}
.site-search .site-search-clear[hidden]{display:none}
.site-search .site-search-clear:active{background:var(--surface-active);filter:none}
.site-search .site-search-close{width:44px;height:44px;min-height:44px;flex-basis:44px;font-size:24px;line-height:1}
.site-search button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.site-search button,.site-search-results a{touch-action:manipulation}
.site-search-results{gap:0}
.site-search-results a,.site-search-results a.search-product-result{border-bottom:1px solid #cfdfd6;border-radius:0;padding:14px 12px}
.site-search-results a:last-child{border-bottom:0}
.site-search-results .search-product-title{font-size:16px;line-height:1.5}
.site-search-results a:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.site-search-results a:active{background:var(--surface-hover);filter:none}
@media(max-width:700px){
 .site-search .site-search-field{grid-column:1/-1;grid-row:2}
 .mobile-search-dialog .site-search>.wrap{grid-template-rows:44px 50px auto minmax(0,1fr)}
 .mobile-search-dialog .site-search .site-search-status{font-size:14px;line-height:1.5;padding:0}
}
/* Do not leave a simulated hover behind after a touch or scroll. */
@media(hover:none){
 .site-search-results a:hover,.site-search-results a.search-product-result:hover{background:#fff}
 .site-search-results a:active,.site-search-results a.search-product-result:active,
 .site-search-results a:focus-visible{background:var(--surface-hover)}
}
.full-search-page{padding-block:32px;min-height:60vh}
.full-search-results{max-height:none;overflow:visible;margin-top:20px}
.full-search-page h1{overflow-wrap:anywhere}
.full-search-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.full-search-toolbar p{margin:0;color:var(--muted)}
.full-search-views{display:flex;padding:3px;border:1px solid var(--line,#cfdfd6);border-radius:6px;gap:2px}
.full-search-views button{padding:8px 14px;border:0;border-radius:4px;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
.full-search-views button[aria-pressed="true"]{background:var(--surface-hover,#edf4ef);color:var(--green)}
.full-search-views button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.full-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.full-search-results a,.full-search-results a.search-product-result,.full-search-results a.search-product-result.search-product-no-photo{display:grid;grid-template-columns:80px minmax(0,1fr) 16px;align-items:center;gap:16px;padding:16px;border:1px solid var(--line,#cfdfd6);border-radius:7px;min-width:0;text-decoration:none}
.full-search-results a:last-child{border-bottom:1px solid var(--line,#cfdfd6)}
.full-search-results a:not(.search-product-result){grid-template-columns:minmax(0,1fr) 16px;min-height:100px}
.full-search-thumb{display:grid;place-items:center;width:80px;height:100px;background:var(--surface,#f6f8f6);border-radius:4px;overflow:hidden}
.full-search-thumb img{width:100%;height:100%;object-fit:contain}
.full-search-placeholder{display:grid;place-items:center;color:var(--muted,#7d8781)}
.full-search-placeholder svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.full-search-thumb [hidden]{display:none}
.full-search-results .search-product-body{gap:9px}
.full-search-results .search-product-title{font-size:16px;line-height:1.4}
.full-search-results .search-product-meta{gap:4px 14px}
.full-search-results .search-product-price{font-size:17px;font-weight:500;flex-basis:100%}
.full-search-results[data-view="list"]{grid-template-columns:minmax(0,1fr);gap:0}
.full-search-results[data-view="list"] a{border:0;border-bottom:1px solid var(--line,#cfdfd6);border-radius:0}
.full-search-results[data-view="list"] .search-product-body{grid-template-columns:minmax(0,1fr) minmax(200px,260px);align-items:center;gap:20px}
.full-search-results[data-view="list"] .search-product-meta{justify-content:flex-end;text-align:right}
@media(max-width:800px){
 .full-search-results{grid-template-columns:minmax(0,1fr)}
 .full-search-results[data-view="list"] .search-product-body{grid-template-columns:minmax(0,1fr);gap:9px}
 .full-search-results[data-view="list"] .search-product-meta{justify-content:flex-start;text-align:left}
}
@media(max-width:440px){
 .full-search-results a,.full-search-results a.search-product-result,.full-search-results a.search-product-result.search-product-no-photo{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px}
 .full-search-thumb{width:64px;height:80px}
 .full-search-results a::after{display:none!important}
 .full-search-views button{padding:8px 10px}
}
