/* GoJD desktop search — Apple-clean anchored popover. Mobile header search remains hidden. */
@media (max-width:768px){
  .main-header .desktop-header-search,
  .main-header form.search-container.desktop-header-search{display:none!important}
}

@media (min-width:769px){
  .desktop-header-search .search-overlay-panel,
  .desktop-header-search~.search-backdrop,
  .search-backdrop{display:none!important}

  .desktop-header-search{
    position:relative!important;
    flex:1 1 500px!important;
    width:auto!important;
    min-width:340px!important;
    max-width:600px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  body.gojd-desktop-search-open .desktop-header-search{z-index:4120!important}

  .desktop-header-search .search-input{
    box-sizing:border-box!important;
    width:100%!important;
    height:44px!important;
    margin:0!important;
    padding:0 48px 0 16px!important;
    border:1px solid #d9dde2!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#15171a!important;
    font-size:14px!important;
    font-weight:500!important;
    letter-spacing:0!important;
    outline:none!important;
    box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
  }

  .desktop-header-search .search-input::placeholder{color:#8a9098!important;font-weight:450!important}
  .desktop-header-search .search-input:hover{border-color:#cbd0d6!important}
  .desktop-header-search .search-input:focus{
    border-color:#aeb4bc!important;
    background:#fff!important;
    box-shadow:0 0 0 3px rgba(15,23,42,.035),0 4px 14px rgba(15,23,42,.055)!important;
  }

  .desktop-header-search .search-btn{
    position:absolute!important;
    right:4px!important;
    top:4px!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#5f6670!important;
    display:grid!important;
    place-items:center!important;
    box-shadow:none!important;
    cursor:pointer!important;
    transition:background .14s ease,color .14s ease!important;
  }
  .desktop-header-search .search-btn:hover{background:#f3f4f6!important;color:#17191c!important}
  .desktop-header-search .search-btn:focus-visible{outline:2px solid #c8ccd2!important;outline-offset:1px!important}
  .desktop-header-search .search-btn svg{width:17px!important;height:17px!important;margin:0!important;opacity:1!important}

  .gojd-search-pro-backdrop{
    position:fixed;
    inset:0;
    z-index:4100;
    border:0;
    padding:0;
    background:rgba(15,23,42,.035);
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    opacity:0;
    pointer-events:none;
    transition:opacity .14s ease;
  }
  .gojd-search-pro-backdrop.open{opacity:1;pointer-events:auto}

  .gojd-search-pro-panel{
    position:fixed;
    z-index:4110;
    width:620px;
    max-width:calc(100vw - 36px);
    max-height:min(470px,calc(100vh - 110px));
    margin:0;
    transform:translateY(-4px);
    opacity:0;
    pointer-events:none;
    background:#fff;
    border:1px solid #dde1e6;
    border-radius:12px;
    box-shadow:0 14px 34px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.05);
    overflow:auto;
    color:#15171a;
    overscroll-behavior:contain;
    transition:opacity .14s ease,transform .16s cubic-bezier(.2,.8,.2,1);
  }
  .gojd-search-pro-panel.open{opacity:1;pointer-events:auto;transform:translateY(0)}
  .gojd-search-pro-panel::-webkit-scrollbar{width:8px}
  .gojd-search-pro-panel::-webkit-scrollbar-thumb{background:#d7dbe0;border-radius:8px;border:2px solid #fff}

  .gojd-search-pro-loading{padding:30px;text-align:center;color:#707780;font-size:12px}

  .gojd-search-pro-head{
    height:48px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eceff2;
    background:#fff;
    position:sticky;
    top:0;
    z-index:2;
  }
  .gojd-search-pro-head span{font-size:12px;font-weight:800;color:#4c535c}
  .gojd-search-pro-head button{border:0;background:none;color:#e50914;font-size:11px;font-weight:750;cursor:pointer;padding:6px}

  .gojd-search-pro-results{padding:6px}
  .gojd-search-pro-result{
    width:100%;
    min-height:64px;
    border:0;
    border-radius:8px;
    background:#fff;
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto 18px;
    gap:10px;
    align-items:center;
    text-align:left;
    padding:7px 10px;
    cursor:pointer;
    color:#17191b;
  }
  .gojd-search-pro-result:hover,.gojd-search-pro-result.keyboard-active{background:#f6f7f8}
  .gojd-search-pro-result img{width:52px;height:52px;object-fit:contain;border-radius:7px;background:#fafafa}
  .gojd-search-pro-result>span{min-width:0;display:flex;flex-direction:column;gap:3px}
  .gojd-search-pro-result strong{font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gojd-search-pro-result span small{font-size:10.5px;color:#747b84}
  .gojd-search-pro-result>b{font-size:12px;color:#078d39;white-space:nowrap;text-align:right}
  .gojd-search-pro-result>b small{display:block;font-size:8.5px;font-weight:600}
  .gojd-search-pro-result>i{font-style:normal;font-size:18px;color:#9ba1a8}

  .gojd-search-pro-empty{padding:28px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px}
  .gojd-search-pro-empty strong{font-size:14px}
  .gojd-search-pro-empty span{font-size:11px;color:#737a84}
  .gojd-search-pro-empty button{margin-top:7px;height:36px;padding:0 14px;border:0;border-radius:8px;background:#e50914;color:#fff;font-size:11px;font-weight:750;cursor:pointer}

  .gojd-search-pro-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(210px,.75fr);min-height:0}
  .gojd-search-pro-grid>section{padding:18px 20px}
  .gojd-search-pro-grid>section.quick{border-left:1px solid #eceff2;background:#fbfbfc}
  .gojd-search-pro-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
  .gojd-search-pro-section-head.spaced{margin-top:16px}
  .gojd-search-pro-section-head h3,.gojd-search-pro-grid .quick>h3{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#626973;font-weight:800}
  .gojd-search-pro-section-head button{border:0;background:none;color:#e50914;font-size:10px;font-weight:750;cursor:pointer;padding:3px}
  .gojd-search-pro-muted{font-size:11px;color:#8a9098;margin:9px 0 0}

  .gojd-search-pro-recent{display:grid}
  .gojd-search-pro-recent>div{height:34px;border-bottom:1px solid #eef0f2;display:grid;grid-template-columns:1fr 26px;align-items:center}
  .gojd-search-pro-recent>div>button:first-child{border:0;background:none;text-align:left;padding:0;color:#202328;font-size:12px;cursor:pointer}
  .gojd-search-pro-recent>div>button:last-child{border:0;background:none;color:#9da2a9;font-size:15px;cursor:pointer}
  .gojd-search-pro-recent>div>button:last-child:hover{color:#e50914}

  .gojd-search-pro-featured{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .gojd-search-pro-featured button{border:1px solid #e8ebee;background:#fff;border-radius:8px;padding:6px;min-width:0;cursor:pointer;transition:border-color .14s,background .14s}
  .gojd-search-pro-featured button:hover{border-color:#d4d8dd;background:#fafafa}
  .gojd-search-pro-featured img{display:block;width:100%;height:58px;object-fit:contain}
  .gojd-search-pro-featured span{display:block;margin-top:4px;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .gojd-search-pro-shortcuts{display:grid;gap:6px;margin-top:10px}
  .gojd-search-pro-shortcuts button{height:42px;border:1px solid #e3e6e9;border-radius:8px;background:#fff;padding:0 12px;display:flex;align-items:center;justify-content:space-between;color:#191b1f;font-size:12px;font-weight:700;cursor:pointer;transition:border-color .14s,background .14s}
  .gojd-search-pro-shortcuts button:hover{border-color:#cfd4d9;background:#f8f9fa}
  .gojd-search-pro-shortcuts i{font-style:normal;font-size:16px;color:#999fa7}
  .gojd-search-pro-catalog-note{margin-top:12px;padding:10px 11px;border-radius:8px;background:#f3f7f4;display:flex;flex-direction:column;gap:2px}
  .gojd-search-pro-catalog-note strong{font-size:10.5px;color:#15753d}
  .gojd-search-pro-catalog-note span{font-size:9.5px;color:#637068}

  @media (max-width:1080px){
    .desktop-header-search{min-width:300px!important;max-width:500px!important}
    .gojd-search-pro-grid{grid-template-columns:minmax(0,1fr) 205px}
  }
}
