.dvaps{
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* Input: better desktop + mobile tap size */
.dvaps__input{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  outline: none;
  font-size: 15px;
  line-height: 1.2;
}

.dvaps__input:focus{
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

/* Dropdown: responsive, scrollable, nice shadow */
.dvaps__dropdown{
  position: absolute;
  z-index: 9999;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  display: none;
}

.dvaps__dropdown.is-open{ display: block; }

.dvaps__list{
  max-height: 360px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Items: better spacing */
.dvaps__item{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none !important;
  color: inherit !important;
}

.dvaps__item:hover{
  background: rgba(0,0,0,.04);
}

.dvaps__img{
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 52px;
  background: rgba(0,0,0,.03);
}

.dvaps__meta{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dvaps__title{
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dvaps__price{
  font-size: 13px;
  opacity: .88;
}
.dvaps__price del{
  opacity: .55;
  margin-right: 6px;
}

/* Loading state */
.dvaps__loading,
.dvaps__empty{
  padding: 14px;
  font-size: 13px;
  opacity: .82;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dvaps__spinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.55);
  animation: dvaps-spin .7s linear infinite;
}
@keyframes dvaps-spin { to { transform: rotate(360deg); } }

/* View all footer */
.dvaps__viewall{
  display: block;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 14px;
}

/* Mobile UX */
@media (max-width: 480px){
  .dvaps__input{
    padding: 13px 14px;
    font-size: 16px; /* prevents iOS zoom */
  }
  .dvaps__list{ max-height: 55vh; }
  .dvaps__item{ padding: 12px; }
  .dvaps__img{ width: 48px; height: 48px; flex-basis: 48px; }
}
