/*
  MixPrice Search v2 overrides.
  Main layout, filters, product cards, pagination and cart modal are intentionally inherited
  from assets/mx-collection-v2.css to keep the search page visually identical to collection pages.
*/

.mx-search-v2 .mx-catalog-v2__head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
}

.mx-search-v2__catalog{
  min-width:0;
}

.mx-search-v2__head h1,
.mx-search-v2__head p{
  margin-left:0;
  margin-right:0;
}

.mx-search-v2__form{
  display:flex;
  align-items:center;
  width:min(100%,720px);
  min-height:48px;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.mx-search-v2__input{
  flex:1 1 auto;
  min-width:0;
  height:48px;
  border:0;
  outline:0;
  padding:0 16px;
  background:transparent;
  color:inherit;
  font:inherit;
}

.mx-search-v2__input::placeholder{
  color:rgba(15,23,42,.45);
}

.mx-search-v2__submit{
  align-self:stretch;
  border:0;
  padding:0 22px;
  background:#76AD00;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}

.mx-search-v2__submit:hover{
  background:#5f8f00;
}

.mx-search-v2__submit:active{
  transform:translateY(1px);
}

.mx-search-v2__collections{
  margin:0 0 18px;
}

.mx-search-v2__collections h2{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.25;
  font-weight:800;
}

.mx-search-v2__collections-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.mx-search-v2__collection-link{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mx-search-v2__collection-link:hover{
  border-color:rgba(118,173,0,.45);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  transform:translateY(-1px);
}

.mx-search-v2 .mx-empty-v2{
  grid-column:1/-1;
}

@media (max-width: 768px){
  .mx-search-v2 .mx-catalog-v2__head{
    gap:14px;
  }
}

@media (max-width: 576px){
  .mx-search-v2__form{
    min-height:46px;
    border-radius:10px;
  }

  .mx-search-v2__input{
    height:46px;
    padding:0 13px;
    font-size:14px;
  }

  .mx-search-v2__submit{
    padding:0 15px;
    font-size:14px;
  }

  .mx-search-v2__collections-grid{
    gap:8px;
  }

  .mx-search-v2__collection-link{
    min-height:36px;
    padding:7px 11px;
    font-size:13px;
  }
}