.caps-search-wrapper {
  position: relative;
  width: 100%;
}

.caps-search-input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border: 2px solid #e94734;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  box-sizing: border-box;
}

.caps-search-input:focus {
  outline: none;
  border-color: #e94734;
}

.caps-spinner {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #f0f0f0;
  border-top-color: #e94734;
  border-radius: 50%;
  animation: caps-spin .65s linear infinite;
}

@keyframes caps-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.caps-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.caps-group-label {
  padding: 10px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a8a8a;
  background: #fff;
}

.caps-product-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.caps-result {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f3f3f3;
}

.caps-group-label + .caps-product-results .caps-result:first-child {
  border-top: none;
}

.caps-result:hover {
  background: #fff8f7;
}

.caps-image {
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.caps-image img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.caps-details {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.caps-details strong,
.caps-details strong a {
  color: #333;
  text-decoration: none;
}

.caps-details strong a:hover {
  color: #e94734;
}

.caps-cat,
.caps-cat a {
  color: #7c7c7c;
  font-size: 13px;
  text-decoration: none;
}

.caps-cat a:hover {
  color: #e94734;
}

.caps-type-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff1ee;
  color: #e94734;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.caps-result--category .caps-details {
  padding-left: 0;
}

.caps-view-all {
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.caps-view-all a {
  display: block;
  padding: 14px 16px;
  text-align: center;
  color: #e94734;
  font-weight: 600;
  text-decoration: none;
}

.caps-view-all a:hover {
  background: #fff8f7;
}

.caps-no-results {
  padding: 14px 16px;
}

.caps-no-results p {
  margin: 0;
  color: #666;
}
