/* جلوگیری از اسکرول پشت مدال */
body.nizva-no-scroll { overflow: hidden; }

.nizva-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99998;
}
.nizva-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.nizva-sheet{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 82vh;
  max-height: 720px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 50px rgba(0,0,0,.18);
  transform: translateY(110%);
  transition: transform .25s ease;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  direction: rtl;
  font-family: inherit;
}
.nizva-sheet.is-open{ transform: translateY(0); }

.nizva-sheet__header{
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.nizva-sheet__grab{
  width: 44px;
  height: 5px;
  border-radius: 10px;
  background: rgba(0,0,0,.14);
  margin: 4px auto 10px;
}

.nizva-sheet__title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nizva-sheet__title{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.nizva-sheet__close{
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 30px;
  color: #111827;
}

.nizva-searchbox{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.nizva-searchbox__input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
}

.nizva-searchbox__clear{
  width: 26px; height: 26px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,.10);
  color: #111;
  cursor: pointer;
  visibility: hidden;
}

.nizva-sheet__hint{
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.nizva-sheet__body{
  padding: 10px 12px 18px;
  overflow: auto;
}

.nizva-status{
  font-size: 12px;
  color: #6b7280;
  margin: 8px 2px 10px;
}

.nizva-results{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nizva-item{
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: .15s ease;
}
.nizva-item:hover{ transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }

.nizva-item__img{
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  flex: 0 0 auto;
  position: relative;
}
.nizva-item__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nizva-badge{
  position: absolute;
  left: 6px;
  top: 6px;
  background: #111827;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  opacity: .92;
}

.nizva-item__meta{ flex: 1; min-width: 0; }
.nizva-item__title{
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nizva-item__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nizva-item__price{
  font-size: 12px;
  color: #111827;
}
.nizva-item__price .amount{ font-weight: 800; }
.nizva-item__price del{ opacity: .5; margin-left: 6px; }

.nizva-stock{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  white-space: nowrap;
}
.nizva-stock.is-instock{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.25);
  color: #065f46;
}
.nizva-stock.is-oos{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.22);
  color: #7f1d1d;
}

.nizva-empty{
  padding: 14px;
  background: #fff;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 14px;
  color: #6b7280;
  font-size: 13px;
}
