
/* Opto Zero v3.52 — search results redesign, PC + phones */

.oc-search-v352{
  max-width:1450px;
  padding-top:14px;
  padding-bottom:40px;
}

.oc-search-topline{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:9px;
}

.oc-search-home-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 12px;
  border:1px solid #dce5f0;
  border-radius:10px;
  background:#fff;
  color:#34445d;
  font-size:10.5px;
  font-weight:900;
  text-decoration:none!important;
}

.oc-search-home-btn:hover{
  border-color:#b9cef0;
  background:#f5f9ff;
  color:#0d5de6;
}

.oc-search-breadcrumbs{
  margin:0!important;
  padding:0!important;
}

.oc-search-hero{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:20px;
  border:1px solid #e0e7f0;
  border-radius:18px;
  background:
    radial-gradient(circle at 5% 20%,rgba(13,93,230,.08),transparent 34%),
    #fff;
  box-shadow:0 6px 20px rgba(31,47,73,.04);
}

.oc-search-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  color:#0d5de6;
  font-size:9.5px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.35px;
}

.oc-search-heading h1{
  margin:0 0 5px;
  color:#20304a;
  font-size:28px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.4px;
}

.oc-search-heading p{
  margin:0;
  color:#7d899a;
  font-size:10.5px;
  line-height:1.4;
  font-weight:650;
}

.oc-search-heading p strong{
  color:#33445e;
}

.oc-search-form-card{
  min-width:0;
}

.oc-search-main-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 118px;
  gap:8px;
}

.oc-search-input-shell{
  position:relative;
  min-width:0;
}

.oc-search-input-shell>i{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  color:#95a0b0;
  font-size:13px;
  pointer-events:none;
}

.oc-search-page-input{
  width:100%!important;
  height:44px!important;
  padding:0 13px 0 37px!important;
  border:1px solid #d9e3ef!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#263650!important;
  font-size:12px!important;
  font-weight:650!important;
}

.oc-search-page-input:focus{
  border-color:#82adf1!important;
  box-shadow:0 0 0 3px rgba(13,93,230,.07)!important;
}

.oc-search-page-submit{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 14px;
  border:0;
  border-radius:11px;
  background:#0d5de6;
  color:#fff;
  font-size:11px;
  font-weight:900;
  box-shadow:0 5px 13px rgba(13,93,230,.16);
}

.oc-search-extra-row{
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto auto;
  gap:7px;
  margin-top:8px;
}

.oc-search-category-shell{
  position:relative;
  min-width:0;
}

.oc-search-category-shell>i{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  color:#8390a2;
  font-size:11px;
  pointer-events:none;
}

.oc-search-category-select{
  width:100%!important;
  height:37px!important;
  padding:0 28px 0 31px!important;
  border:1px solid #dce4ee!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#4c5a70!important;
  font-size:10px!important;
  font-weight:750!important;
}

.oc-search-check{
  position:relative;
  min-height:37px;
  margin:0;
  cursor:pointer;
}

.oc-search-check input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.oc-search-check span{
  height:37px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border:1px solid #dce4ee;
  border-radius:9px;
  background:#fff;
  color:#66748a;
  font-size:9.5px;
  font-weight:800;
  white-space:nowrap;
}

.oc-search-check input:checked+span{
  border-color:#a8c5f3;
  background:#eef5ff;
  color:#0d5de6;
}

.oc-search-results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:16px 0 10px;
  padding:0 2px;
}

.oc-search-results-head h2{
  margin:0 0 3px;
  color:#24344d;
  font-size:18px;
  font-weight:900;
}

.oc-search-results-head p{
  margin:0;
  color:#8a95a5;
  font-size:9.5px;
  font-weight:650;
}

.oc-search-result-controls{
  display:flex;
  align-items:end;
  gap:7px;
}

.oc-search-select-wrap{
  display:grid;
  gap:3px;
  margin:0;
}

.oc-search-select-wrap span{
  color:#8a95a5;
  font-size:8px;
  font-weight:800;
}

.oc-search-select-wrap select{
  height:34px;
  min-width:170px;
  padding:0 28px 0 9px;
  border:1px solid #dce4ee;
  border-radius:9px;
  background:#fff;
  color:#526077;
  font-size:9.5px;
  font-weight:750;
}

.oc-search-limit select{
  min-width:112px;
}

.oc-search-products{
  margin-left:-5px!important;
  margin-right:-5px!important;
}

.oc-search-products>.oc-product-col{
  padding-left:5px!important;
  padding-right:5px!important;
  margin-bottom:10px!important;
}

.oc-search-product-card{
  position:relative!important;
  height:100%!important;
}

.oc-search-heart{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  z-index:5!important;
  width:30px!important;
  height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #dfe6ef!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.96)!important;
  color:#93a0b1!important;
  box-shadow:0 2px 7px rgba(31,47,73,.04)!important;
}

.oc-search-heart:hover{
  color:#e14b66!important;
  border-color:#f0c8d0!important;
}

.oc-search-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:9px;
  padding:12px 2px 0;
  border-top:1px solid #edf1f5;
}

.oc-search-bottom .pagination{
  margin:0!important;
}

.oc-search-bottom .pagination>li>a,
.oc-search-bottom .pagination>li>span{
  min-width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-color:#dce4ee;
  color:#56657b;
  font-size:10px;
  font-weight:850;
}

.oc-search-bottom .pagination>.active>span,
.oc-search-bottom .pagination>.active>a{
  border-color:#0d5de6;
  background:#0d5de6;
  color:#fff;
}

.oc-search-bottom .oc-results-wrap{
  color:#8a95a5;
  font-size:9.5px;
  font-weight:700;
}

.oc-search-empty{
  max-width:620px;
  margin:34px auto 60px;
  padding:36px 24px;
  border:1px solid #e0e7f0;
  border-radius:17px;
  background:#fff;
  text-align:center;
  box-shadow:0 7px 22px rgba(31,47,73,.045);
}

.oc-search-empty-icon{
  width:60px;
  height:60px;
  margin:0 auto 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef5ff;
  color:#0d5de6;
  font-size:23px;
}

.oc-search-empty h2{
  margin:0 0 7px;
  color:#273750;
  font-size:21px;
  font-weight:900;
}

.oc-search-empty p{
  margin:0;
  color:#8290a2;
  font-size:10.5px;
  line-height:1.45;
  font-weight:650;
}

.oc-search-empty-actions{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:16px;
}

.oc-search-empty-home,
.oc-search-empty-focus{
  min-height:39px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border-radius:10px;
  font-size:10px;
  font-weight:900;
  text-decoration:none!important;
}

.oc-search-empty-home{
  border:0;
  background:#0d5de6;
  color:#fff!important;
}

.oc-search-empty-focus{
  border:1px solid #dce4ee;
  background:#fff;
  color:#536176;
}

/* ===== Desktop cards ===== */
@media(min-width:992px){
  .oc-search-product-card .oc-product-image-wrap{
    height:190px!important;
  }

  .oc-search-product-card .oc-product-title{
    min-height:38px!important;
    font-size:12px!important;
  }

  .oc-search-product-card .oc-product-prices{
    margin-top:auto!important;
  }
}

/* ===== Phones ===== */
@media(max-width:767px){
  .oc-search-v352{
    padding:8px 8px 28px!important;
    overflow-x:hidden!important;
  }

  .oc-search-topline{
    min-height:34px;
    margin-bottom:7px;
  }

  .oc-search-home-btn{
    min-height:34px;
    padding:0 10px;
    font-size:9.5px;
  }

  .oc-search-breadcrumbs{
    display:none!important;
  }

  .oc-search-hero{
    display:block;
    padding:13px;
    border-radius:15px;
  }

  .oc-search-heading{
    margin-bottom:10px;
  }

  .oc-search-kicker{
    margin-bottom:4px;
    font-size:8.5px;
  }

  .oc-search-heading h1{
    font-size:23px;
  }

  .oc-search-heading p{
    font-size:9.5px;
  }

  .oc-search-main-row{
    grid-template-columns:minmax(0,1fr) 48px;
    gap:5px;
  }

  .oc-search-page-input{
    height:43px!important;
    padding-left:34px!important;
    font-size:16px!important;
  }

  .oc-search-input-shell>i{
    left:11px;
  }

  .oc-search-page-submit{
    width:48px;
    height:43px;
    padding:0;
    border-radius:11px;
    font-size:16px;
  }

  .oc-search-page-submit span{
    display:none;
  }

  .oc-search-extra-row{
    grid-template-columns:1fr 1fr;
    gap:5px;
    margin-top:6px;
  }

  .oc-search-category-shell{
    grid-column:1/-1;
  }

  .oc-search-category-select{
    height:39px!important;
    font-size:11px!important;
  }

  .oc-search-check span{
    min-height:37px;
    height:auto;
    padding:7px 8px;
    white-space:normal;
    font-size:8.5px;
    line-height:1.15;
  }

  .oc-search-results-head{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
    margin:12px 0 8px;
  }

  .oc-search-results-head h2{
    font-size:16px;
  }

  .oc-search-results-head p{
    font-size:8.5px;
  }

  .oc-search-result-controls{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) 110px;
    gap:5px;
  }

  .oc-search-select-wrap select{
    width:100%;
    min-width:0;
    height:35px;
    font-size:9px;
  }

  .oc-search-products{
    margin-left:-4px!important;
    margin-right:-4px!important;
  }

  .oc-search-products>.oc-product-col{
    padding-left:4px!important;
    padding-right:4px!important;
    margin-bottom:8px!important;
  }

  .oc-search-product-card{
    padding:7px!important;
    border-radius:13px!important;
  }

  .oc-search-product-card .oc-product-image-wrap{
    height:118px!important;
    margin-bottom:6px!important;
  }

  .oc-search-product-card .oc-product-title{
    min-height:32px!important;
    margin-bottom:5px!important;
    font-size:10px!important;
    line-height:1.28!important;
  }

  .oc-search-product-card .oc-product-prices{
    gap:4px!important;
  }

  .oc-search-product-card .oc-main-price,
  .oc-search-product-card .oc-second-price{
    min-height:47px!important;
    padding:7px 6px!important;
    border-radius:9px!important;
    font-size:12px!important;
  }

  .oc-search-product-card .oc-main-price small,
  .oc-search-product-card .oc-second-price small{
    font-size:7px!important;
  }

  .oc-search-product-card .oc-pack-note{
    font-size:7px!important;
  }

  .oc-search-product-card .oc-sale-type-switch{
    min-height:31px!important;
    margin:6px 0!important;
  }

  .oc-search-product-card .oc-sale-type-switch button{
    min-height:30px!important;
    padding:5px 2px!important;
    font-size:8.5px!important;
  }

  .oc-search-product-card .oc-product-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
  }

  .oc-search-product-card .oc-qty-control{
    width:100%!important;
    min-width:0!important;
    height:35px!important;
  }

  .oc-search-product-card .oc-qty-btn,
  .oc-search-product-card .oc-qty-input{
    height:35px!important;
  }

  .oc-search-product-card .oc-add-cart-btn{
    width:100%!important;
    min-width:0!important;
    height:35px!important;
    justify-content:center!important;
    padding:0 6px!important;
    font-size:8.5px!important;
  }

  .oc-search-heart{
    top:6px!important;
    right:6px!important;
    width:28px!important;
    height:28px!important;
  }

  .oc-search-bottom{
    align-items:center;
    flex-direction:column;
    margin-top:6px;
    padding-top:10px;
  }

  .oc-search-bottom .oc-results-wrap{
    font-size:8.5px;
  }

  .oc-search-empty{
    margin:22px 0 40px;
    padding:28px 16px;
    border-radius:15px;
  }

  .oc-search-empty-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:380px){
  .oc-search-product-card .oc-product-image-wrap{
    height:105px!important;
  }

  .oc-search-product-card .oc-main-price,
  .oc-search-product-card .oc-second-price{
    font-size:11px!important;
  }

  .oc-search-result-controls{
    grid-template-columns:minmax(0,1fr) 95px;
  }
}
