/* ==========================================================================
   产品搜索 — 页眉 & 列表页
   ========================================================================== */

.pf-product-search {
  margin: 0;
}

.pf-product-search-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-product-search-inner:focus-within {
  border-color: rgba(232, 168, 0, 0.75);
  box-shadow: 0 0 0 2px rgba(232, 168, 0, 0.2);
}

.pf-product-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.pf-product-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 10px 8px 10px 0;
  outline: none;
}

.pf-product-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pf-product-search-submit {
  flex-shrink: 0;
  border: 0;
  background: var(--wp--preset--color--secaccent, #c9a000);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pf-product-search-submit:hover {
  background: #e8c84a;
}

/* 页眉 */
.pf-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.pf-product-search--header {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
}

/* 列表页 */
.pf-product-search-bar {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.pf-product-search--archive .pf-product-search-inner {
  background: #fff;
  border: 1px solid #dde3ea;
  box-shadow: 0 4px 16px rgba(15, 36, 56, 0.06);
}

.pf-product-search--archive .pf-product-search-inner:focus-within {
  border-color: #c9a000;
  box-shadow: 0 0 0 2px rgba(201, 160, 0, 0.15);
}

.pf-product-search--archive .pf-product-search-icon {
  color: #6b7280;
  background: #f8fafc;
  border-right: 1px solid #eef2f6;
}

.pf-product-search--archive .pf-product-search-input {
  color: #333;
  padding: 12px 12px 12px 0;
}

.pf-product-search--archive .pf-product-search-input::placeholder {
  color: #9ca3af;
}

.pf-product-search--archive .pf-product-search-submit {
  padding: 0 22px;
}

.pf-product-search-hint {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #f0e4b8;
  border-radius: 8px;
  font-size: 14px;
  color: #5c4a12;
}

.pf-product-search-hint a {
  color: #1a3a5c;
  font-weight: 600;
}

@media (max-width: 991px) {
  .pf-header-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-product-search--header {
    max-width: none;
    order: -1;
  }

  .header-inner-menu .pf-header-tools .wp-block-navigation {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .pf-product-search-submit {
    padding: 0 12px;
    font-size: 12px;
  }

  .pf-product-search--header .pf-product-search-inner {
    flex-wrap: wrap;
  }

  .pf-product-search--header .pf-product-search-submit {
    width: 100%;
    padding: 10px;
  }
}
