/* Market Kapımda - Akıllı arama görünüm düzeltmesi
   Bu dosya en son yüklenir ve genel form/button stillerinin öneri kartlarını bozmasını engeller. */

.smart-search-dropdown{
  color-scheme:light!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(15,23,42,.11)!important;
  border-radius:20px!important;
  box-shadow:0 24px 64px rgba(15,23,42,.20)!important;
}
.smart-search-head{
  min-height:56px!important;
  padding:13px 16px!important;
  background:linear-gradient(135deg,#f5f8ea 0%,#fff 72%)!important;
  border-bottom:1px solid #edf0e5!important;
}
.smart-search-head span{color:#172033!important;font-size:13px!important;font-weight:950!important}
.smart-search-head small{color:#647526!important;background:#edf4d5!important;border:1px solid #e3ecc4!important}
.smart-search-list{
  max-height:420px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.smart-search-list::-webkit-scrollbar{width:8px}
.smart-search-list::-webkit-scrollbar-track{background:transparent}
.smart-search-list::-webkit-scrollbar-thumb{background:#cbd5e1;border:2px solid #fff;border-radius:999px}

/* Kategori arama panelindeki genel button kuralını kesin olarak sıfırlar. */
.smart-search-dropdown button.smart-search-item,
.category-search-panel .smart-search-dropdown button.smart-search-item,
.search-bar .smart-search-dropdown button.smart-search-item,
.mobile-search-foodmart .smart-search-dropdown button.smart-search-item,
.foodmart-product-search .smart-search-dropdown button.smart-search-item{
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  min-height:72px!important;
  margin:0!important;
  padding:10px 16px!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:13px!important;
  appearance:none!important;
  border:0!important;
  border-bottom:1px solid #eef1f4!important;
  border-radius:0!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:none!important;
  font-family:inherit!important;
  font-size:inherit!important;
  line-height:normal!important;
  text-align:left!important;
  cursor:pointer!important;
  transition:background-color .14s ease,transform .14s ease!important;
}
.smart-search-dropdown button.smart-search-item:last-child{border-bottom:0!important}
.smart-search-dropdown button.smart-search-item:hover,
.smart-search-dropdown button.smart-search-item.is-active{
  background:#f7faef!important;
  color:#172033!important;
}
.smart-search-dropdown button.smart-search-item:active{transform:scale(.998)!important}
.smart-search-dropdown button.smart-search-item:focus-visible{
  position:relative!important;
  z-index:1!important;
  outline:3px solid rgba(163,190,76,.28)!important;
  outline-offset:-3px!important;
}
.smart-search-dropdown .smart-search-item img{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  object-fit:contain!important;
  padding:5px!important;
  border:1px solid #e8edf2!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 4px 12px rgba(15,23,42,.04)!important;
}
.smart-search-dropdown .smart-search-item-copy{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:3px!important;
}
.smart-search-dropdown .smart-search-item-copy strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  color:#172033!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1.28!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.smart-search-dropdown .smart-search-item-copy small{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  color:#7b8798!important;
  font-size:11px!important;
  font-weight:750!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.smart-search-dropdown .smart-search-item-copy em{
  margin-top:2px!important;
  padding:3px 7px!important;
  border:1px solid #e4edc5!important;
  border-radius:999px!important;
  background:#f3f7e4!important;
  color:#657626!important;
  font-size:9px!important;
  font-style:normal!important;
  font-weight:900!important;
  line-height:1.2!important;
}
.smart-search-dropdown .smart-search-item-price{
  display:flex!important;
  min-width:88px!important;
  align-items:flex-end!important;
  flex-direction:column!important;
  gap:3px!important;
  color:#172033!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.25!important;
  text-align:right!important;
  white-space:nowrap!important;
}
.smart-search-dropdown .smart-search-stock{color:#dc2626!important;font-size:9px!important;font-weight:950!important}

.smart-search-dropdown button.smart-search-all,
.category-search-panel .smart-search-dropdown button.smart-search-all,
.search-bar .smart-search-dropdown button.smart-search-all,
.mobile-search-foodmart .smart-search-dropdown button.smart-search-all,
.foodmart-product-search .smart-search-dropdown button.smart-search-all{
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  min-height:56px!important;
  margin:0!important;
  padding:13px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  appearance:none!important;
  border:0!important;
  border-top:1px solid #e8edf2!important;
  border-radius:0!important;
  background:#f8fafc!important;
  color:#172033!important;
  box-shadow:none!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1.35!important;
  text-align:left!important;
  cursor:pointer!important;
}
.smart-search-dropdown button.smart-search-all:hover,
.smart-search-dropdown button.smart-search-all.is-active{
  background:#edf4d5!important;
  color:#52641e!important;
}
.smart-search-dropdown button.smart-search-all b{color:inherit!important;font-size:20px!important;line-height:1!important}
.smart-search-loading,.smart-search-empty{background:#fff!important;color:#64748b!important}
.smart-search-empty strong{color:#172033!important}

@media(max-width:767px){
  .smart-search-dropdown{border-radius:16px!important;max-height:64vh!important}
  .smart-search-head{min-height:50px!important;padding:11px 12px!important}
  .smart-search-list{max-height:calc(64vh - 104px)!important}
  .smart-search-dropdown button.smart-search-item,
  .category-search-panel .smart-search-dropdown button.smart-search-item,
  .search-bar .smart-search-dropdown button.smart-search-item,
  .mobile-search-foodmart .smart-search-dropdown button.smart-search-item,
  .foodmart-product-search .smart-search-dropdown button.smart-search-item{
    min-height:66px!important;
    grid-template-columns:48px minmax(0,1fr) auto!important;
    gap:10px!important;
    padding:9px 11px!important;
  }
  .smart-search-dropdown .smart-search-item img{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important}
  .smart-search-dropdown .smart-search-item-copy strong{font-size:12px!important}
  .smart-search-dropdown .smart-search-item-price{min-width:72px!important;max-width:82px!important;font-size:11px!important;white-space:normal!important}
  .smart-search-dropdown button.smart-search-all{min-height:52px!important;padding:11px 12px!important;font-size:11px!important}
}
