/* PARTFIT HEADER SEARCH V2 CSS */

.pfh-search-form{position:relative}

#autocomplete-dropdown.pfhs-panel{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  left:50%!important;
  right:auto!important;
  z-index:10050!important;
  display:none!important;
  width:min(880px,calc(100vw - 40px))!important;
  max-width:none!important;
  max-height:min(610px,calc(100vh - 150px))!important;
  margin:0!important;
  padding:0!important;
  overflow:auto!important;
  color:#101828!important;
  background:#fff!important;
  border:1px solid #dfe4eb!important;
  border-radius:12px!important;
  box-shadow:0 22px 55px rgba(15,23,42,.2)!important;
  transform:translateX(-50%)!important;
}

#autocomplete-dropdown.pfhs-panel.is-open{
  display:block!important;
  animation:pfhs-in .16s ease-out;
}

@keyframes pfhs-in{
  from{opacity:0;transform:translate(-50%,-6px)}
  to{opacity:1;transform:translate(-50%,0)}
}

.pfhs-view,.pfhs-popular,.pfhs-loading{padding:18px}

.pfhs-head,.pfhs-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.pfhs-head{
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid #e5e9ef;
}

.pfhs-head strong{
  display:block;
  color:#101828;
  font-size:15px;
  font-weight:800;
}

.pfhs-head small{
  display:block;
  margin-top:3px;
  color:#667085;
  font-size:11px;
}

.pfhs-all{
  flex:0 0 auto;
  padding:8px 12px;
  color:#e32636;
  background:#fff;
  border:1px solid #f2a5ab;
  border-radius:7px;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.pfhs-all:hover{color:#fff;background:#e32636}

.pfhs-columns{
  display:grid;
  grid-template-columns:minmax(210px,.85fr) minmax(0,1.55fr);
  gap:18px;
}

.pfhs-column{min-width:0}

.pfhs-column+.pfhs-column{
  padding-left:18px;
  border-left:1px solid #e5e9ef;
}

.pfhs-section-head{min-height:30px;margin-bottom:10px}

.pfhs-section-head h3,.pfhs-popular h3{
  margin:0;
  color:#101828;
  font-size:13px;
  font-weight:850;
}

.pfhs-section-head a{
  color:#475467;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}

.pfhs-category-list,.pfhs-extra-list,.pfhs-popular-list{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.pfhs-category,.pfhs-extra{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 9px;
  color:#344054;
  border-radius:8px;
  text-decoration:none;
}

.pfhs-category:hover,.pfhs-extra:hover{
  color:#d92d20;
  background:#fff1f2;
}

.pfhs-entry-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  overflow:hidden;
  background:#fff1f2;
  border-radius:7px;
}

.pfhs-entry-icon img{width:20px;height:20px;object-fit:contain}

.pfhs-entry-copy{min-width:0}

.pfhs-entry-copy strong,.pfhs-entry-copy span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pfhs-entry-copy strong{font-size:12px}
.pfhs-entry-copy span{margin-top:2px;color:#98a2b3;font-size:10px}

.pfhs-extra-title{
  margin:14px 0 6px;
  color:#667085;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

.pfhs-empty{
  display:flex;
  gap:9px;
  padding:13px;
  color:#475467;
  background:#f1f5ff;
  border-radius:9px;
  font-size:12px;
  line-height:1.45;
}

.pfhs-empty b{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 21px;
  width:21px;
  height:21px;
  color:#1570ef;
  border:2px solid #1570ef;
  border-radius:50%;
}

.pfhs-products{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.pfhs-product{
  display:flex;
  min-width:0;
  min-height:150px;
  overflow:hidden;
  color:#101828;
  background:#fff;
  border:1px solid #e4e7ec;
  border-radius:9px;
  text-decoration:none;
  transition:.16s ease;
}

.pfhs-product:hover{
  border-color:#ef6b74;
  box-shadow:0 7px 16px rgba(15,23,42,.09);
  transform:translateY(-2px);
}

.pfhs-product-media{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 43%;
  width:43%;
  min-height:148px;
  overflow:hidden;
  border-right:1px solid #eef1f4;
}

.pfhs-product-media img{
  display:block;
  width:100%;
  height:100%;
  max-height:148px;
  padding:8px;
  box-sizing:border-box;
  object-fit:contain;
}

.pfhs-product-info{
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  padding:11px 9px;
}

.pfhs-product-brand{
  margin-bottom:4px;
  color:#e32636;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}

.pfhs-product-name{
  display:-webkit-box;
  overflow:hidden;
  font-size:12px;
  font-weight:800;
  line-height:1.32;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.pfhs-product-ref{
  display:-webkit-box;
  margin-top:5px;
  overflow:hidden;
  color:#667085;
  font-size:10px;
  line-height:1.3;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.pfhs-product-price{
  margin-top:auto;
  padding-top:7px;
  color:#e32636;
  font-size:11px;
  font-weight:900;
}

.pfhs-popular h3{margin-bottom:9px}

.pfhs-popular button{
  min-height:38px;
  padding:7px 9px;
  color:#344054;
  background:transparent;
  border:0;
  border-radius:7px;
  text-align:left;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}

.pfhs-popular button:hover,.pfhs-popular button:focus{
  color:#d92d20;
  background:#fff1f2;
  outline:none;
}

.pfhs-message{
  padding:28px 18px;
  color:#667085;
  text-align:center;
  font-size:12px;
}

.pfhs-message strong{
  display:block;
  margin-bottom:5px;
  color:#101828;
  font-size:14px;
}

.pfhs-retry{
  margin-top:12px;
  padding:8px 14px;
  color:#fff;
  background:#e32636;
  border:0;
  border-radius:7px;
  font-weight:800;
}

.pfhs-loading-bar,.pfhs-loading-card{
  overflow:hidden;
  background:#edf1f5;
  border-radius:8px;
  animation:pfhs-pulse 1s ease-in-out infinite alternate;
}

.pfhs-loading-bar{width:42%;height:15px;margin-bottom:16px}

.pfhs-loading-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}

.pfhs-loading-card{height:145px}

@keyframes pfhs-pulse{to{opacity:.45}}

/* Mobile fullscreen search */

.pfhs-mobile{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
  flex-direction:column;
  width:100%;
  height:100dvh;
  color:#101828;
  background:#fff;
  opacity:0;
  visibility:hidden;
  transform:translateX(100%);
  transition:.2s ease;
}

.pfhs-mobile-top{
  display:flex;
  align-items:center;
  gap:7px;
  padding:max(11px,env(safe-area-inset-top)) 12px 11px;
  border-bottom:1px solid #d8dee8;
}

.pfhs-mobile-back,.pfhs-mobile-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 43px;
  width:43px;
  height:43px;
  color:#0b1f46;
  background:#fff;
  border:0;
}

.pfhs-mobile-back svg,.pfhs-mobile-submit svg{width:25px;height:25px}

.pfhs-mobile-form{
  display:flex;
  flex:1;
  min-width:0;
  height:44px;
  border-bottom:2px solid #102342;
}

.pfhs-mobile-form input{
  flex:1;
  min-width:0;
  padding:0 8px;
  color:#101828;
  background:#fff;
  border:0;
  outline:0;
  font:inherit;
  font-size:16px;
}

.pfhs-mobile-content{
  flex:1;
  min-height:0;
  padding:20px 15px max(30px,env(safe-area-inset-bottom));
  overflow-y:auto;
}

body.pfhs-mobile-open{overflow:hidden!important}

body.pfhs-mobile-open .pfhs-mobile{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
}

@media(max-width:1100px) and (min-width:901px){
  #autocomplete-dropdown.pfhs-panel{
    width:min(760px,calc(100vw - 28px))!important;
  }
}

@media(max-width:900px){
  #autocomplete-dropdown.pfhs-panel{display:none!important}
  .pfhs-mobile{display:flex}

  .pfhs-mobile-content .pfhs-view,
  .pfhs-mobile-content .pfhs-popular,
  .pfhs-mobile-content .pfhs-loading{padding:0}

  .pfhs-mobile-content .pfhs-columns{display:block}

  .pfhs-mobile-content .pfhs-column+.pfhs-column{
    margin-top:24px;
    padding:20px 0 0;
    border-top:1px solid #e4e7ec;
    border-left:0;
  }

  .pfhs-mobile-content .pfhs-section-head h3,
  .pfhs-mobile-content .pfhs-popular h3{
    color:#0b1f46;
    font-size:19px;
  }

  .pfhs-mobile-content .pfhs-section-head a{font-size:15px}

  .pfhs-mobile-content .pfhs-empty{
    padding:17px;
    font-size:15px;
  }

  .pfhs-mobile-content .pfhs-popular button{
    min-height:44px;
    padding:9px 3px;
    font-size:15px;
  }

  .pfhs-mobile-content .pfhs-products{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .pfhs-mobile-content .pfhs-product{
    flex-direction:column;
    min-height:275px;
  }

  .pfhs-mobile-content .pfhs-product-media{
    flex:0 0 158px;
    width:100%;
    min-height:158px;
    border-right:0;
    border-bottom:1px solid #eef1f4;
  }

  .pfhs-mobile-content .pfhs-product-media img{max-height:158px}

  .pfhs-mobile-content .pfhs-product-name{font-size:13px}
  .pfhs-mobile-content .pfhs-product-ref{font-size:11px}
  .pfhs-mobile-content .pfhs-loading-card{height:275px}
}

@media(max-width:380px){
  .pfhs-mobile-content{padding-right:11px;padding-left:11px}
  .pfhs-mobile-content .pfhs-products{gap:7px}
  .pfhs-mobile-content .pfhs-product-media{
    flex-basis:140px;
    min-height:140px;
  }
}

@media(prefers-reduced-motion:reduce){
  #autocomplete-dropdown.pfhs-panel.is-open,
  .pfhs-mobile,
  .pfhs-loading-bar,
  .pfhs-loading-card{
    animation:none;
    transition:none;
  }
}

/* PARTFIT MOBILE INLINE SEARCH REMOVE V2.1 */
@media(max-width:900px){
  .pfh-main-inner{
    grid-template-areas:"toggle logo mobile-actions"!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    row-gap:0!important;
  }

  .pfh-search{
    display:none!important;
  }
}
