html {
  scroll-padding-top: 90px;
}
#siteSearchBar {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  animation: srchBarIn .18s ease;
}
@keyframes srchBarIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.srch-input-wrap {
  position: relative;
  flex-grow: 1;
}
.srch-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #2E8B3C;
  font-size: .85rem;
  pointer-events: none;
  z-index: 5;
}
#globalSearchInput {
  padding-left: 40px !important;
  border-color: #2E8B3C !important;
  transition: box-shadow .15s ease, border-color .15s ease;
}
#globalSearchInput:focus {
  box-shadow: 0 0 0 3px rgba(46,139,60,.18) !important;
  border-color: #1e6a28 !important;
  outline: none;
}
#siteSearchDrop {
  display: none;
  position: absolute;
  z-index: 1055;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 520px;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 10px 48px rgba(0,0,0,.16);
  scrollbar-width: thin;
  scrollbar-color: #c8d6cc transparent;
}
#siteSearchDrop::-webkit-scrollbar        { width: 5px; }
#siteSearchDrop::-webkit-scrollbar-track  { background: transparent; }
#siteSearchDrop::-webkit-scrollbar-thumb  { background: #c8d6cc; border-radius: 5px; }
#siteSearchDrop .srch-sl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px 6px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c757d;
}
#siteSearchDrop .srch-sl i {
  font-size: .72rem;
  color: #2E8B3C;
}
#siteSearchDrop .srch-sl::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: #2E8B3C;
  flex-shrink: 0;
}
#siteSearchDrop .srch-dv {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 4px 16px;
}
#siteSearchDrop .srch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
  border-radius: 10px;
  margin: 1px 8px;
}
#siteSearchDrop .srch-item:hover,
#siteSearchDrop .srch-item.is-active {
  background: #f0f7f2;
}
#siteSearchDrop .srch-item--top {
  align-items: flex-start;
}
#siteSearchDrop .srch-iw {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
}
#siteSearchDrop .srch-iw--page { background: #e8f5e9; color: #2E8B3C; }
#siteSearchDrop .srch-iw--faq  { background: #e3f2fd; color: #1565c0; }
#siteSearchDrop .srch-iw--cat  { background: #f3f0ff; color: #5b21b6; }
#siteSearchDrop .srch-item-title {
  font-size: .88rem;
  font-weight: 500;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#siteSearchDrop .srch-chevron {
  font-size: .58rem;
  color: #b0b8b4;
  flex-shrink: 0;
  margin-left: auto;
}
#siteSearchDrop .srch-faq-body {
  flex: 1;
  min-width: 0;
}
#siteSearchDrop .srch-faq-text {
  font-size: .88rem;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#siteSearchDrop .srch-faq-snippet {
  font-size: .76rem;
  color: #6c757d;
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#siteSearchDrop .srch-prod-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.07);
}
#siteSearchDrop .srch-prod-ph {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f5f7f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.07);
  color: #adb5bd;
  font-size: .9rem;
}
#siteSearchDrop .srch-prod-meta {
  flex: 1;
  min-width: 0;
}
#siteSearchDrop .srch-prod-name {
  font-size: .9rem;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#siteSearchDrop .srch-prod-desc {
  font-size: .76rem;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
#siteSearchDrop .srch-price {
  background: #e8f5e9;
  color: #1b6b28;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: .76rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  border: 1px solid rgba(46,139,60,.18);
}
#siteSearchDrop mark {
  background: rgba(255,210,60,.45);
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 700;
  font-style: normal;
}
#siteSearchDrop .srch-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: #2E8B3C;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,.07);
  transition: background .12s ease, color .12s ease;
  border-radius: 0 0 16px 16px;
}
#siteSearchDrop .srch-footer:hover {
  background: #f0f7f2;
  color: #1b6b28;
}
.srch-clear-btn {
  background: none;
  border: none;
  margin-left: auto;
  padding: 0;
  font-size: .68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6c757d;
  cursor: pointer;
}
.srch-clear-btn:hover { color: #dc3545; }
.srch-sl-fire { color: #ef4444; }
.srch-chip-icon { font-size: .62rem; margin-right: 3px; opacity: .75; }
.srch-chip {
  transition: all .14s ease;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}
.srch-chip--recent {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 20px;
  font-size: .8rem;
  padding: 4px 12px;
}
.srch-chip--recent:hover { background: #e5e7eb; color: #111827; }
.srch-chip--pop {
  background: #fff8f0;
  color: #c2410c;
  border: 1px solid rgba(194,65,12,.18);
  border-radius: 20px;
  font-size: .8rem;
  padding: 4px 14px;
}
.srch-chip--pop:hover { background: #fff0e0; color: #9a3412; }
.srch-chip--cat {
  background: #e8f5e9;
  color: #1b6b28;
  border: 1px solid rgba(46,139,60,.18);
  border-radius: 20px;
  font-size: .8rem;
  padding: 4px 14px;
}
.srch-chip--cat:hover { background: #d4edda; color: #155724; }
#siteSearchDrop .srch-empty-icon {
  width: 56px;
  height: 56px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #adb5bd;
  margin: 0 auto 12px;
}
@keyframes srchSkel {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}
.srch-skel-line {
  border-radius: 5px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200%;
  animation: srchSkel 1.4s ease infinite;
}
.faq-item:target {
  scroll-margin-top: 100px;
}
.faq-item.srch-highlight {
  animation: faqPulse 1.8s ease;
}
@keyframes faqPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,139,60,.35); }
  40%  { box-shadow: 0 0 0 8px rgba(46,139,60,.12); }
  100% { box-shadow: 0 0 0 0 rgba(46,139,60,0); }
}
