/* SECURIX live search v1 — keeps the existing header visual language intact. */
.sx-live-search{position:relative;z-index:65}
.sx-search-form{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;overflow:hidden}
.sx-search-form:focus-within{border-color:#eca73f;box-shadow:0 0 0 3px rgba(236,167,63,.10)}
.sx-search-clear{display:none}
.sx-search-clear.is-visible{display:grid}

.sx-search-panel{
  position:absolute;right:0;top:calc(100% + 8px);width:min(720px,72vw);max-height:min(520px,72vh);
  overflow:auto;visibility:hidden;pointer-events:none;opacity:0;transform:translateY(-6px) scale(.992);
  border:1px solid rgba(228,228,231,.95);border-radius:18px;background:rgba(255,255,255,.985);
  box-shadow:0 28px 80px rgba(17,24,39,.18);backdrop-filter:blur(18px);transition:opacity .16s ease,transform .16s ease,visibility .16s;
  z-index:90
}
.sx-search-panel.is-open{visibility:visible;pointer-events:auto;opacity:1;transform:none}
.sx-search-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(240px,.82fr)}
.sx-search-products-col{padding:14px 14px 12px}
.sx-search-meta-col{padding:14px;border-left:1px solid #eceef1;background:rgba(250,250,250,.58)}
.sx-search-heading{margin-bottom:7px;font-size:10px;font-weight:800;letter-spacing:.04em;color:#8a8e98}
.sx-search-products{display:grid}
.sx-search-product{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:7px 4px;border-radius:11px;transition:background .15s ease}
.sx-search-product:hover{background:#fafafa}
.sx-search-product-media{display:grid;width:48px;height:48px;place-items:center;border-radius:10px;background:#fff}
.sx-search-product-media img{display:block;max-width:44px;max-height:44px;object-fit:contain}
.sx-search-product-copy{display:grid;min-width:0;gap:3px}
.sx-search-product-copy strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:11px;line-height:1.25}
.sx-search-product-copy small{font-size:8.5px;font-weight:700}
.sx-search-product-copy small.is-stock{color:#17a765}
.sx-search-product-copy small.is-out{color:#dc4c4c}
.sx-search-product>b{padding-left:6px;white-space:nowrap;font-size:12px}
.sx-search-meta-col section+section{margin-top:17px;padding-top:13px;border-top:1px solid #eceef1}
.sx-search-meta-list,.sx-search-brand-list{display:grid;gap:2px}
.sx-search-meta-row,.sx-search-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px;border-radius:9px;font-size:10.5px;color:#5f6470;transition:background .15s ease,color .15s ease}
.sx-search-meta-row:hover,.sx-search-brand-row:hover{background:#fff;color:#17181a}
.sx-search-meta-row b,.sx-search-brand-row b{color:#9296a0;font-size:9.5px}
.sx-search-brand-row span{font-weight:800;color:#26282d}
.sx-search-all{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;padding:8px 7px 2px;font-size:10.5px;font-weight:800;color:#ce850d}
.sx-search-all span{font-size:14px}

.sx-search-loading{display:grid;gap:10px;padding:24px}
.sx-search-loading span{display:block;height:46px;border-radius:12px;background:linear-gradient(90deg,#f5f5f5 20%,#ececec 45%,#f5f5f5 70%);background-size:220% 100%;animation:sxSearchShimmer 1.05s linear infinite}
@keyframes sxSearchShimmer{to{background-position:-220% 0}}
.sx-search-empty{display:grid;min-height:210px;place-items:center;align-content:center;gap:8px;padding:28px;text-align:center}
.sx-search-empty-icon{position:relative;display:block;width:62px;height:62px;border-radius:50%;background:#f5f6f7}
.sx-search-empty-icon:before{content:'';position:absolute;left:18px;top:16px;width:22px;height:22px;border:3px solid #6f7480;border-radius:50%}
.sx-search-empty-icon:after{content:'';position:absolute;left:39px;top:38px;width:15px;height:3px;border-radius:2px;background:#6f7480;transform:rotate(45deg);transform-origin:left center}
.sx-search-empty strong{font-size:16px}
.sx-search-empty p{max-width:280px;font-size:11px;line-height:1.45;color:#81858f}
.sx-search-panel .hidden{display:none!important}

@media (max-width:767px){
  .sx-live-search{position:static!important}
  .sx-search-panel{
    position:fixed;left:8px;right:8px;top:var(--sx-search-top,132px);width:auto;max-width:none;
    max-height:calc(100dvh - var(--sx-search-top,132px) - 8px);border-radius:18px;z-index:120
  }
  .sx-search-grid{display:block}
  .sx-search-products-col{padding:13px 12px 12px}
  .sx-search-meta-col{display:none}
  .sx-search-heading{font-size:10px}
  .sx-search-product{grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding:8px 3px}
  .sx-search-product-media{width:44px;height:50px}
  .sx-search-product-media img{max-width:40px;max-height:46px}
  .sx-search-product-copy strong{font-size:10.5px}
  .sx-search-product>b{font-size:11.5px}
  .sx-search-all{margin-top:7px;padding:10px 4px 2px;font-size:11px}
  .sx-search-empty{min-height:260px}
}

/* Availability: dealer preorder status */
.sx-search-product small.is-preorder{color:#c77d0a}

/* SECURIX Platform v1 — smarter search metadata */
.sx-search-correction{display:flex;align-items:center;gap:9px;padding:10px 14px;border-bottom:1px solid #eceef1;background:#fff8eb;color:#17191d;text-decoration:none}
.sx-search-correction small{color:#8d9198;font-size:10px;font-weight:700}.sx-search-correction strong{font-size:12px}.sx-search-correction span{margin-left:auto;color:#d88b0e;font-weight:900}
.sx-search-meta-col section+section{margin-top:14px;padding-top:12px;border-top:1px solid #eceef1}
.sx-search-attributes{display:flex;flex-wrap:wrap;gap:6px}.sx-search-attribute{max-width:100%;padding:6px 8px;border:1px solid #e6e8ec;border-radius:8px;background:#fff;color:#555b64;font-size:9.5px;font-weight:650;line-height:1.25}
@media(max-width:767px){.sx-search-correction{padding:9px 12px}.sx-search-attributes{display:grid}.sx-search-attribute{width:100%}}
