/* One catalog, available from every storefront header. */
.site-header .header-tools{grid-column:1;grid-row:1;display:flex;align-items:center;justify-self:start;gap:8px;min-width:0}
.site-header .brand,.site-header .header-actions{grid-row:1}
.site-header .header-tools .menu-toggle{flex:none;grid-column:auto;position:relative}
.catalog-search-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:44px;height:44px;padding:0 12px;border:1px solid #ffffff26;border-radius:8px;background:#ffffff04;color:var(--bone);font:500 11px var(--sans);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.catalog-search-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.catalog-search-trigger span{display:none}
.catalog-search-trigger:focus-visible,.catalog-search-close:focus-visible,.catalog-search-submit:focus-visible,.catalog-search-more:focus-visible,.catalog-search-suggestions button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.catalog-search-trigger[aria-expanded="true"]{border-color:#d5ff3f77;color:var(--lime)}
.catalog-search-trigger:active{scale:.96}

.catalog-search-dialog{position:fixed;top:clamp(12px,7vh,76px);bottom:auto;margin:0 auto;width:min(800px,calc(100% - 32px));max-width:none;max-height:calc(100svh - 40px);padding:28px;border:1px solid #ffffff24;border-radius:14px;background:#171813;color:var(--bone);box-sizing:border-box;box-shadow:0 32px 100px #0009;overflow:hidden}
.catalog-search-dialog:not([hidden]){display:flex;flex-direction:column;animation:catalog-search-in 260ms cubic-bezier(.22,1,.36,1) both}

.catalog-search-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-shrink:0;margin-bottom:24px}
.catalog-search-heading .eyebrow{font-size:9px;letter-spacing:.13em;margin:0 0 10px}
.catalog-search-heading h2{font:500 clamp(25px,3.5vw,36px)/1.12 var(--display);letter-spacing:-.05em;margin:0}
.catalog-search-close{width:42px;height:42px;flex:none;border:1px solid #ffffff22;border-radius:50%;background:transparent;color:var(--bone);font:300 28px/1 var(--sans);cursor:pointer;transition:transform .25s,background .2s}
.catalog-search-form{display:flex;align-items:center;gap:12px;padding:5px 5px 5px 17px;border:1px solid #ffffff30;border-radius:8px;background:#11120f;flex-shrink:0;transition:border-color .2s,box-shadow .2s}
.catalog-search-form:focus-within{border-color:#d5ff3f80;box-shadow:0 0 0 3px #d5ff3f0c}
.catalog-search-form input{width:100%;min-width:0;min-height:46px;padding:4px 0;border:0;background:transparent;color:var(--bone);font:400 16px var(--sans);outline:none;box-shadow:none}
.catalog-search-form input:focus-visible{outline:none}
.catalog-search-form input::placeholder{color:#8d9084}
.catalog-search-submit{border:0;border-radius:5px;background:var(--lime);color:var(--black);padding:13px 17px;min-height:44px;font:600 11px var(--sans);cursor:pointer}
.catalog-search-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 7px;flex-shrink:0}
.catalog-search-suggestions button{border:1px solid #ffffff1e;border-radius:5px;background:transparent;padding:8px 11px;min-height:36px;color:#bec1b4;font:400 11px var(--sans);cursor:pointer;transition:border-color .2s,color .2s,background .2s}
.catalog-search-status{min-height:18px;margin:15px 0 10px;color:#a4a899;font-size:11px;line-height:1.6;flex-shrink:0}
.catalog-search-results{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4d5142 transparent}
.catalog-search-result{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:16px;padding:13px 10px 13px 0;border-top:1px solid #ffffff12;color:var(--bone);border-radius:3px;transition:background .2s,padding-left .2s}
.catalog-search-result img{width:60px;height:74px;border-radius:4px;object-fit:contain;background:#f4f3ee}
.catalog-search-result-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.catalog-search-result-copy strong{font:500 15px/1.4 var(--sans);overflow-wrap:anywhere}
.catalog-search-result-copy small{font-size:11px;line-height:1.5;color:#a3a797;overflow-wrap:anywhere}
.catalog-search-result-copy .catalog-search-coming{color:#c1bea9;font-size:10px}
.catalog-search-price{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.catalog-search-result:focus-visible{outline:2px solid var(--lime);outline-offset:-2px;background:#ffffff06}
.catalog-search-empty{padding:20px 0;max-width:52ch;font-size:13px;color:#a3a797;line-height:1.8}
.catalog-search-more{align-self:center;flex-shrink:0;background:transparent;border:1px solid #ffffff30;border-radius:6px;color:var(--bone);padding:11px 18px;margin-top:12px;min-height:42px;cursor:pointer;font:500 11px var(--sans)}
.catalog-search-foot{flex-shrink:0;margin:16px 0 0;font-size:10px;line-height:1.6;color:#858a7a}
@keyframes catalog-search-in{from{opacity:0;translate:0 -12px}to{opacity:1;translate:0 0}}
@media(hover:hover) and (pointer:fine){.catalog-search-trigger:hover{color:var(--lime);background:#d5ff3f07;border-color:#d5ff3f66}.catalog-search-trigger:hover svg{transform:rotate(-10deg) scale(1.08)}.site-header .header-tools .menu-toggle:not(.is-open):hover span:first-child{transform:translateX(2px)}.site-header .header-tools .menu-toggle:not(.is-open):hover span:last-child{transform:translateX(-2px)}.catalog-search-close:hover{transform:rotate(90deg);background:#ffffff08}.catalog-search-suggestions button:hover{border-color:#d5ff3f55;color:var(--bone);background:#ffffff04}.catalog-search-result:hover{background:#ffffff04;padding-left:6px}}
@media(min-width:1000px){.catalog-search-trigger span{display:inline}}
@media(max-width:620px){.site-header .header-tools{gap:5px}.site-header .header-tools .menu-toggle,.catalog-search-trigger{width:38px;min-width:38px;height:42px;padding:0}.catalog-search-dialog{top:12px;width:calc(100% - 20px);max-height:calc(100svh - 24px);padding:20px 16px;border-radius:10px}.catalog-search-heading{margin-bottom:19px}.catalog-search-heading .eyebrow{font-size:8px}.catalog-search-form{padding-left:11px;gap:6px}.catalog-search-submit{padding:12px 11px}.catalog-search-suggestions{gap:6px}.catalog-search-suggestions button{padding:7px 9px;font-size:10px}.catalog-search-result{grid-template-columns:48px minmax(0,1fr) auto;gap:11px}.catalog-search-result img{width:48px;height:62px}.catalog-search-result-copy strong{font-size:13px}.catalog-search-result-copy small{font-size:10px}.catalog-search-price{font-size:12px}.catalog-search-foot{font-size:9px}}
@media(max-width:400px){.site-header .header-actions{gap:6px}.site-header .header-actions .login-link{padding-inline:7px;font-size:10px}.site-header .header-actions .bag{min-width:30px;font-size:10px}.site-header .brand{gap:5px;font-size:12px}.site-header .brand img{width:22px}.site-header .header-tools{gap:3px}.site-header .header-tools .menu-toggle,.catalog-search-trigger{width:35px;min-width:35px}}
@media(prefers-reduced-motion:reduce){.catalog-search-dialog[open]{animation:none}.catalog-search-trigger,.catalog-search-trigger svg,.catalog-search-close,.catalog-search-result,.catalog-search-suggestions button{transition:none}.catalog-search-trigger:hover svg,.catalog-search-close:hover{transform:none}.site-header .header-tools .menu-toggle:not(.is-open):hover span{transform:none}}

/* Keep all header controls comfortable on compact phones. */
@media(max-width:400px){
 .site-header .header-actions .login-link{position:relative;width:34px;min-width:34px;padding:0;font-size:0}
 .site-header .header-actions .login-link::before{content:"";position:absolute;top:9px;left:13px;width:7px;height:7px;border:1.4px solid currentColor;border-radius:50%;box-sizing:border-box}
 .site-header .header-actions .login-link::after{content:"";position:absolute;top:19px;left:10px;width:13px;height:10px;border:1.4px solid currentColor;border-radius:8px 8px 3px 3px;box-sizing:border-box}
}

/* Compact non-modal search, anchored to the header. */
.site-header{overflow:visible}
.catalog-search-dialog{position:absolute;top:calc(100% + 8px);left:clamp(10px,1.8vw,28px);right:auto;bottom:auto;margin:0;width:min(520px,calc(100vw - 32px));max-height:min(520px,var(--search-room,70svh));padding:18px 18px 12px;border-radius:10px;z-index:30;box-shadow:0 16px 44px #0007}
.catalog-search-dialog[hidden]{display:none!important}
.catalog-search-dialog:not([hidden]){display:flex;animation-duration:180ms}
.catalog-search-heading{align-items:center;margin-bottom:12px;gap:12px}
.catalog-search-heading .eyebrow{display:none}
.catalog-search-heading h2{font-size:18px;letter-spacing:-.025em;line-height:1.3}
.catalog-search-close{width:30px;height:30px;font-size:24px;border-color:transparent}
.catalog-search-form{padding:0 11px;min-height:46px}
.catalog-search-form input{min-height:44px;font-size:16px}
.catalog-search-dialog > .catalog-search-submit{display:block;align-self:flex-end;min-width:76px;min-height:44px;margin-bottom:6px;padding:8px 14px}
.catalog-search-submit:focus-visible{outline:2px solid var(--bone);outline-offset:2px}
.catalog-search-suggestions{margin:12px 0 0;gap:6px}
.catalog-search-suggestions button{min-height:30px;padding:5px 9px;font-size:10px}
.catalog-search-status{margin:12px 0 7px;font-size:10px;min-height:16px}
.catalog-search-result{grid-template-columns:42px minmax(0,1fr) auto;gap:12px;padding-top:10px;padding-bottom:10px}
.catalog-search-result img{width:42px;height:52px}
.catalog-search-result-copy strong{font-size:13px}
.catalog-search-result-copy small{font-size:10px}
.catalog-search-price{font-size:12px}
.catalog-search-foot{display:none}
.catalog-search-more{margin-top:10px;padding:7px 13px;min-height:34px;font-size:10px}
@media(max-width:620px){.catalog-search-dialog{top:calc(100% + 5px);left:10px;width:calc(100vw - 20px);max-height:min(460px,var(--search-room,65svh));padding:14px 12px 10px}.catalog-search-heading h2{font-size:16px}.catalog-search-result{gap:10px}.catalog-search-suggestions button{padding:5px 8px}}

/* Minimal search: one field, quiet suggestions and compact product matches. */
.catalog-search-dialog{width:min(410px,calc(100vw - 32px));max-height:min(420px,var(--search-room,65svh));padding:12px;border-radius:7px;background:#171813;box-shadow:0 12px 30px #0005}
.catalog-search-heading{position:absolute;top:16px;right:16px;margin:0;z-index:1}
.catalog-search-heading>div{display:none}
.catalog-search-close{width:28px;height:28px;font-size:21px;border:0;border-radius:4px;color:#9ba08e}
.catalog-search-form{min-height:40px;border:0;border-bottom:1px solid #ffffff28;border-radius:0;padding:0 34px 0 2px;background:transparent}
.catalog-search-form:focus-within{border-color:#d5ff3f70;box-shadow:none}
.catalog-search-form input{min-height:38px;font-size:14px}
.catalog-search-suggestions{gap:12px;margin:9px 2px 0;flex-wrap:wrap}
.catalog-search-suggestions button{min-height:28px;padding:2px 0;border:0;border-radius:0;color:#959b88;font-size:10px;background:transparent}
.catalog-search-status{margin:9px 2px 4px;min-height:14px;font-size:10px;color:#8b927e}
.catalog-search-result{grid-template-columns:34px minmax(0,1fr) auto;gap:10px;padding:8px 2px;border-color:#ffffff0d}
.catalog-search-result img{width:34px;height:42px;border-radius:2px}
.catalog-search-result-copy{gap:2px}
.catalog-search-result-copy strong{font-size:12px;font-weight:500}
.catalog-search-result-copy small{font-size:9px;line-height:1.4}
.catalog-search-result-copy .catalog-search-coming{font-size:9px}
.catalog-search-price{font-size:11px;color:#bec3b2}
.catalog-search-more{border:0;border-bottom:1px solid #ffffff28;border-radius:0;padding:4px 0;min-height:28px;margin-top:6px;color:#bec3b2}
@media(hover:hover) and (pointer:fine){.catalog-search-suggestions button:hover{background:transparent;border:0;color:var(--bone)}.catalog-search-result:hover{padding-left:4px}.catalog-search-close:hover{transform:none}}
@media(max-width:620px){.catalog-search-dialog{width:min(410px,calc(100vw - 20px));max-height:min(390px,var(--search-room,60svh));padding:10px}.catalog-search-heading{top:14px;right:14px}.catalog-search-form input{font-size:16px}.catalog-search-suggestions{gap:12px}.catalog-search-suggestions button{padding:2px 0}.catalog-search-result{gap:9px}}

/* Filters toggle independently of the search text, with an explicit selected state. */
.catalog-search-suggestions button[aria-pressed="true"]{color:var(--bone)}
.catalog-search-suggestions button::after{content:"";display:inline-block;width:12px;margin-left:4px;text-align:center}
.catalog-search-suggestions button[aria-pressed="true"]::after{content:"✓";color:var(--lime)}

/* The header button unfolds into the live typing field. */
.catalog-search-shell{position:relative;flex:none;width:44px;height:44px;border:1px solid transparent;border-radius:8px;transition:width 340ms cubic-bezier(.22,1,.36,1),border-color 220ms ease,background-color 220ms ease}
.catalog-search-shell>.catalog-search-trigger{position:absolute;inset:0;width:100%;height:100%;min-width:0;box-sizing:border-box}
.catalog-search-shell>.catalog-search-form{position:absolute;inset:0 34px 0 39px;min-width:0;min-height:0;padding:0;border:0;opacity:0;visibility:hidden;background:none;box-shadow:none;transition:opacity 150ms ease}
.catalog-search-shell>.catalog-search-form input{min-height:0;height:100%;font-size:13px}
.catalog-search-shell>.catalog-search-close{position:absolute;right:4px;top:6px;width:28px;height:28px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 150ms ease,visibility 150ms ease}
.catalog-search-shell.is-expanded{width:var(--expanded-search-width,260px);border-color:#ffffff35;background:#171813}
.catalog-search-shell.is-expanded>.catalog-search-trigger{right:auto;width:38px;border:0;background:transparent;color:#b5bba8}
.catalog-search-shell.is-expanded>.catalog-search-trigger span{display:none}
.catalog-search-shell.is-expanded>.catalog-search-form{opacity:1;visibility:visible;transition-delay:70ms}
.catalog-search-shell.is-expanded>.catalog-search-close{opacity:1;visibility:visible;pointer-events:auto;transition-delay:70ms}
.site-header .brand{transition:opacity 180ms ease,translate 240ms ease}
.site-header.search-covers-brand .brand{opacity:0;pointer-events:none;translate:8px 0}
.catalog-search-dialog{left:var(--search-left,16px);width:var(--search-panel-width,360px)}
.catalog-search-dialog .catalog-search-heading{display:none}
.catalog-search-dialog:not([hidden]){animation:catalog-search-in 220ms cubic-bezier(.22,1,.36,1) both}
.catalog-search-suggestions{margin-top:0}
.catalog-search-suggestions button:active{scale:.95}
.catalog-search-suggestions button[aria-pressed="true"]::after{animation:catalog-check-in 220ms cubic-bezier(.22,1,.36,1)}
@keyframes catalog-check-in{from{opacity:0;scale:.5}to{opacity:1;scale:1}}
@media(min-width:1000px){.catalog-search-shell{width:88px}}
@media(max-width:620px){.catalog-search-shell{width:38px;height:42px}.catalog-search-shell>.catalog-search-form input{font-size:16px}.catalog-search-shell>.catalog-search-close{top:5px}.catalog-search-shell.is-expanded>.catalog-search-trigger{width:36px}.catalog-search-shell>.catalog-search-form{left:36px}.catalog-search-dialog{left:var(--search-left,10px);width:var(--search-panel-width,calc(100vw - 20px))}}
@media(max-width:400px){.catalog-search-shell{width:35px}}
@media(prefers-reduced-motion:reduce){.catalog-search-shell,.catalog-search-shell>.catalog-search-form,.catalog-search-shell>.catalog-search-close,.site-header .brand{transition:none!important}.catalog-search-dialog:not([hidden]),.catalog-search-suggestions button[aria-pressed="true"]::after{animation:none!important}}

/* Keep the submit button alongside its field on every screen. */
.catalog-search-dialog .catalog-search-heading{display:flex;position:static;justify-content:space-between;align-items:center;margin:0 0 8px}
.catalog-search-heading > div{display:block}
.catalog-search-dialog .catalog-search-form{display:flex;gap:8px;padding:0 0 5px;min-width:0}
.catalog-search-dialog .catalog-search-form input{flex:1;min-width:0}
.catalog-search-form .catalog-search-submit{flex:none;min-height:44px;padding:8px 14px}
.catalog-search-dialog .catalog-search-suggestions{margin-top:8px}
.catalog-search-page{width:min(100% - 32px,760px);margin:0 auto;padding:clamp(48px,8vw,112px) 0}
.catalog-search-page .catalog-search-dialog{position:static;width:100%;max-height:none;overflow:visible;box-shadow:none;padding:clamp(12px,3vw,26px);animation:none}
.catalog-search-page .catalog-search-dialog .catalog-search-heading{display:none}
.catalog-search-page h1{font-size:clamp(30px,5vw,56px);margin:0 0 24px}
.catalog-search-page .catalog-search-results{overflow:visible;max-height:none}
.catalog-search-page .catalog-search-result{grid-template-columns:56px minmax(0,1fr) auto;gap:12px;padding:12px 2px}
.catalog-search-page .catalog-search-result img{width:56px;height:68px}
.catalog-search-page .catalog-search-result-copy strong,.catalog-search-page .catalog-search-price{font-size:14px}
