/* Product Live Search */
.pls {
  position: relative;
  width: 100%;
  font-family: Poppins, sans-serif;
}
.pls .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.pls-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1.5px solid #d6dbe6;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.pls-form:focus-within {
  border-color: #2B6BEE;
  box-shadow: 0 0 0 3px rgba(43, 107, 238, .15);
}
.pls-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  color: #8a93a6;
}
.pls.is-loading .pls-icon {
  animation: pls-pulse .8s ease-in-out infinite alternate;
}
@keyframes pls-pulse { to { color: #2B6BEE; } }
.pls .pls-input,
.pls .pls-input:focus {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  margin: 0;
  border: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: transparent;
  font-family: Poppins, sans-serif;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  color: #2C2C2C;
}
.pls .pls-input::-webkit-search-cancel-button { cursor: pointer; }
.pls .pls-submit {
  flex: 0 0 auto;
  height: 42px;
  margin: 5px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: #2B6BEE;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 42px;
  cursor: pointer;
  transition: background .15s;
}
.pls .pls-submit:hover,
.pls .pls-submit:focus-visible { background: #1E4699; color: #fff; }
.pls-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
  padding: 6px;
}
.pls-results[hidden] { display: none; }
.pls-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2C2C2C;
  text-decoration: none !important;
}
.pls-item:hover,
.pls-item.is-active { background: #eef3fe; }
.pls-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f5f7;
}
.pls-body { display: flex; flex-direction: column; min-width: 0; }
.pls-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pls-price { font-size: 14px; color: #2B6BEE; font-weight: 600; margin-top: 2px; }
.pls-msg { padding: 14px 12px; font-size: 14px; color: #555; }
.pls .pls-all {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  border-top: 1px solid #eef0f4;
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: #2B6BEE;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pls .pls-all:hover { background: #eef3fe; color: #1E4699; }
@media (max-width: 767px) {
  .pls .pls-input, .pls .pls-input:focus { height: 48px; }
  .pls .pls-submit { height: 38px; line-height: 38px; padding: 0 14px; font-size: 14px; }
  .pls-icon { margin-left: 12px; }
}
