/* Product search is a compact header control and an accessible native dialog. */
.header .product-search-trigger{height:var(--header);flex:0 0 112px;display:flex;align-items:center;justify-content:center;gap:10px;border-left:1px solid #333844;background:transparent;color:#afb4c0;font:14px/1.3 Inter}
.header .product-search-trigger:hover{background:#262d40;color:#fff}
.product-search-trigger svg{flex-shrink:0}
#product-search-dialog{width:min(760px,calc(100vw - 48px));height:fit-content;max-width:none;max-height:calc(100dvh - 64px);margin:auto;padding:32px;border:1px solid #e2e5eb;border-radius:20px;background:#fff;color:var(--ink);overflow:hidden;box-shadow:0 24px 100px #0003}
#product-search-dialog[open]{display:flex;flex-direction:column}
#product-search-dialog::backdrop{background:#090e1bb3;backdrop-filter:blur(7px)}
.product-search-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px;flex-shrink:0}
.product-search-head h2{font:32px/1.2 Stolzl;letter-spacing:-.025em}
.product-search-close{display:grid;place-items:center;box-sizing:border-box;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #dfe3eb;border-radius:50%;background:white;color:var(--ink)}
.product-search-close>svg{display:block;width:20px;height:20px;pointer-events:none}
.product-search-close:hover{color:var(--blue);border-color:var(--blue)}
.product-search-form{flex-shrink:0}
.product-search-form label{display:block;margin-bottom:10px;color:#656b76;font:13px/1.4 Inter}
.product-search-field{display:flex;align-items:center;gap:12px;min-height:60px;border:1px solid #c7cfdf;border-radius:10px;padding:0 16px;background:#f8f9fc}
.product-search-field>svg{color:var(--blue);flex-shrink:0}
.product-search-field:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #0c31b914}
.product-search-field input{display:block;min-width:0;width:100%;padding:18px 0;border:0;background:transparent;color:var(--ink);font:16px/1.4 Inter;outline:none!important;box-shadow:none}
.product-search-field input::-webkit-search-cancel-button{display:none}
.product-search-field input::placeholder{color:#8c929d}
.product-search-clear{flex:0 0 28px;display:grid;place-items:center;width:28px;height:32px;padding:0;background:none;color:#747a85;font:26px/1 Inter}
.product-search-status{margin:24px 0 8px;color:#777e8a;font:12px/1.5 Inter;flex-shrink:0}
.product-search-results{overflow:auto;overscroll-behavior:contain;min-height:0;max-height:480px;padding-right:4px}
.product-search-result{display:flex;gap:18px;align-items:center;min-height:94px;padding:14px 4px;border-top:1px solid #e6e9ef}
.product-search-result:hover{background:#f4f7ff}
.product-search-result:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;background:#f4f7ff}
.product-search-result img,.product-search-image-placeholder{width:64px;height:64px;object-fit:contain;flex-shrink:0;background:#f7f8fa;border-radius:6px;mix-blend-mode:multiply}
.product-search-result-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.product-search-result-name{font:18px/1.3 Stolzl;overflow-wrap:anywhere}
.product-search-result-category{font:12px/1.45 Inter;color:#747a85}
.product-search-result-arrow{margin-left:auto;padding:0 8px;color:var(--blue);font:23px/1 Inter}
.product-search-empty{padding:32px 0 40px}
.product-search-empty h3{font:22px/1.3 Stolzl;margin-bottom:12px}
.product-search-empty p{max-width:420px;color:#747a85;font:15px/1.6 Inter}
.product-card .product-image .product-open-link{position:absolute;bottom:0;right:0;display:inline-flex;align-items:center;justify-content:center;gap:14px;width:auto;height:auto;min-height:38px;padding:8px 13px;border:1px solid #b8c3d9;border-radius:6px;background:#f6f8fce8;color:var(--blue);font:13px/1.4 Inter;opacity:1;transition:background .2s,border-color .2s}
.product-card .product-image .product-open-link>span{font:21px/1 Inter}
.product-card .product-image a:hover .product-open-link{border-color:var(--blue);background:#eaf0ff}
@media(max-width:1500px) and (min-width:821px){
 .has-product-search .header-secondary{display:none}
 .has-product-search .header .phone{margin-left:auto}
 .header .product-search-trigger{flex-basis:88px;gap:7px;font-size:12px}
}
@media(max-width:1100px) and (min-width:821px){
 .has-product-search .header .phone{display:none}
 .header .product-search-trigger{margin-left:auto;flex-basis:88px}
}
@media(max-width:820px){
 .header .product-search-trigger{flex:0 0 56px;height:72px;margin:0;border-left:0}
 .product-search-trigger>span{display:none}
 #product-search-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:22px 18px;border-radius:16px}
 .product-search-head{gap:14px;margin-bottom:22px}
 .product-search-head h2{font-size:25px}
 .product-search-close{flex-basis:36px;width:36px;height:36px}
 .product-search-field{gap:10px;padding:0 12px;min-height:56px}
 .product-search-field input{font-size:16px;padding:15px 0}
 .product-search-field input::placeholder{font-size:13px}
 .product-search-status{margin-top:20px}
 .product-search-results{max-height:55dvh;padding-right:0}
 .product-search-result{gap:12px;min-height:86px}
 .product-search-result img,.product-search-image-placeholder{width:52px;height:52px}
 .product-search-result-name{font-size:16px}
 .product-search-result-category{font-size:11px}
 .product-search-result-arrow{font-size:21px;padding:0 2px}
}
@media(max-width:380px){
 .has-product-search .header .brand{margin-left:20px}
 .has-product-search .header .brand img{width:min(144px,calc(100vw - 192px))}
 .has-product-search .header .cart-trigger,.has-product-search .header .menu-trigger{width:60px;flex-basis:60px}
 .header .product-search-trigger{flex-basis:48px}
}
