/* ===== Padiham Live Search Dropdown v2 ===== */
.elementor-search-form__container { position: relative; }
.pmn-search { position: relative; }

.padiham-search-dd {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e5e9;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(21,23,27,.18);
  z-index: 999999;
  padding: 6px;
  text-align: left;
}
.padiham-search-dd.open { display: block; }

.psd-section-label {
  font-family: Archivo, sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #9aa0a8; padding: 10px 12px 6px;
}
.psd-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  transition: background .15s;
}
.psd-cat:hover { background: #fdf0e7; }
.psd-cat-name { font-family: Hanken Grotesk, sans-serif; font-size: 14px; font-weight: 600; color: #15171b; }
.psd-cat:hover .psd-cat-name { color: #e2641f; }
.psd-cat-count {
  font-family: Archivo, sans-serif; font-size: 11px; font-weight: 700;
  color: #9aa0a8; background: #f4f5f7; border-radius: 20px; padding: 2px 9px;
}
.psd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  transition: background .15s;
}
.psd-item:hover { background: #f4f5f7; }
.psd-thumb {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 8px;
  overflow: hidden; background: #f4f5f7; display: flex; align-items: center; justify-content: center;
}
.psd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.psd-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.psd-title {
  font-family: Hanken Grotesk, sans-serif; font-size: 14px; font-weight: 600;
  color: #15171b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.psd-price { font-family: Archivo, sans-serif; font-size: 13px; font-weight: 800; color: #e2641f; }
.psd-price del { color: #9aa0a8; font-weight: 500; margin-right: 5px; }
.psd-price ins { text-decoration: none; }
.psd-viewall {
  display: block; text-align: center; padding: 12px; margin-top: 4px;
  border-top: 1px solid #f0f1f3; font-family: Archivo, sans-serif;
  font-size: 13px; font-weight: 700; color: #e2641f; text-decoration: none;
}
.psd-viewall:hover { background: #fdf0e7; border-radius: 0 0 10px 10px; }
.psd-loading, .psd-empty {
  padding: 20px 14px; text-align: center;
  font-family: Hanken Grotesk, sans-serif; font-size: 14px; color: #9aa0a8;
}
@media (max-width: 768px) {
  .padiham-search-dd { position: fixed; top: 120px; left: 8px; right: 8px; min-width: 0; max-height: 65vh; }
}
/* ===== Polished custom search bar (desktop) ===== */
.pds-wrap { width: 100%; position: relative; }
.pds-form {
  display: flex;
  align-items: center;
  background: #f4f5f7;
  border: 1.5px solid #e3e5e9;
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pds-form:focus-within {
  background: #fff;
  border-color: #e2641f;
  box-shadow: 0 0 0 4px rgba(226,100,31,.10);
}
.pds-icon {
  display: flex; align-items: center;
  color: #9aa0a8; flex-shrink: 0; margin-right: 10px;
}
.pds-form:focus-within .pds-icon { color: #e2641f; }
.pds-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14.5px;
  color: #15171b;
  padding: 10px 8px !important;
  min-width: 0;
}
.pds-input::placeholder { color: #9aa0a8; }
.pds-btn {
  flex-shrink: 0;
  background: #15171b;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s;
}
.pds-btn:hover { background: #e2641f; }

/* Dropdown anchors to the form */
.pds-form { position: relative; }
/* Dropdown inside custom search wrap */
.pds-wrap > .padiham-search-dd { top: calc(100% + 10px); }
