/* Search results presentation, scoped to the public results route. */
.esh-search-page {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1440px);
  margin: 24px auto 64px;
  padding: 24px;
  background: #f7f9fc;
  border-radius: 18px;
}
.esh-search-page-head { border: 0; padding: 0 0 4px; }
.esh-search-page-head .esh-search-title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.esh-search-page-head .esh-search-count {
  margin: 5px 0 0;
  color: #617087;
  font-size: 14px;
  font-weight: 500;
}
.esh-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
}
.esh-search-facets {
  display: block;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
}
.esh-search-facets summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  cursor: pointer;
  color: #163e82;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.esh-search-facets summary::-webkit-details-marker { display: none; }
.esh-search-facets summary::before {
  content: "▤";
  color: #0053e2;
  font-size: 18px;
  line-height: 1;
}
.esh-search-facets summary > span:first-child { margin-right: auto; }
.esh-search-facets summary::after {
  content: "⌄";
  color: #0053e2;
  font-size: 20px;
  line-height: 1;
  transition: transform .15s;
}
.esh-search-facets[open] summary::after { transform: rotate(180deg); }
.esh-search-facets summary:focus-visible { outline: 2px solid #0053e2; outline-offset: 2px; }
.esh-search-filter-summary { color: #637187; font-size: 12px; font-weight: 500; white-space: nowrap; }
.esh-search-filter-body { padding: 0 16px 16px; border-top: 1px solid #e8edf4; }
.esh-search-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
  gap: 14px;
  width: 100%;
}
.esh-search-filter-form label { min-width: 0; margin: 12px 0 0; }
.esh-search-filter-form button { min-height: 44px; margin-top: 12px; }
.esh-search-filter-form .esh-search-filter-note { grid-column: 1 / -1; margin: 0; color: #6b7686; }
.esh-search-results-panel { min-width: 0; }
.esh-search-results-panel > .esh-results-section-title { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.esh-results-grid { gap: 14px; }
.esh-search-page .esh-results-card {
  overflow: hidden;
  border-color: #e0e7f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20,43,73,.03);
}
.esh-search-page .esh-results-card:hover {
  border-color: #7aa8ec;
  box-shadow: 0 10px 28px rgba(20,43,73,.1);
}
.esh-search-page .esh-results-card > a[data-product-id] { padding: 14px; }
.esh-search-page .esh-results-image { overflow: hidden; margin-bottom: 12px; border-radius: 8px; background: #fff; }
.esh-search-page .esh-results-image img { transition: transform .2s; }
.esh-search-page .esh-results-card:hover .esh-results-image img { transform: scale(1.035); }
.esh-search-page .esh-results-card h2 { font-size: 15px; font-weight: 650; line-height: 1.4; }
.esh-search-page .esh-results-availability { color: #52637a !important; font-size: 12px; }
.esh-search-page .esh-results-price { margin-top: auto; padding-top: 10px; font-size: 17px; }
@media (max-width: 820px) {
  .esh-search-page { width: min(calc(100% - 24px), 720px); margin: 14px auto 48px; padding: 16px; border-radius: 12px; }
  .esh-search-page-head .esh-search-title { font-size: 24px; }
  .esh-search-layout { gap: 14px; padding-top: 12px; }
  .esh-search-facets { display: block; overflow: visible; padding: 0; }
  .esh-search-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 540px) {
  .esh-search-page { padding: 12px; }
  .esh-search-page-head .esh-search-title { font-size: 21px; }
  .esh-search-filter-summary { display: none; }
  .esh-search-filter-form { grid-template-columns: 1fr; }
  .esh-results-grid { gap: 10px; }
  .esh-search-page .esh-results-card > a[data-product-id] { padding: 8px; }
  .esh-search-page .esh-results-image { margin-bottom: 8px; }
  .esh-search-page .esh-results-card h2 { font-size: 13px; line-height: 1.35; }
  .esh-search-page .esh-results-price { font-size: 14px; }
}
@media (max-width: 340px) {
  .esh-results-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .esh-search-facets summary::after, .esh-search-page .esh-results-image img { transition: none; }
}
