.esnaf-search-sheet {
  --search-ink: #172c20;
  --search-muted: #56685d;
  --search-green: #146c42;
  inset: auto 0 0;
  position: fixed;
  width: 100%;
  max-width: none;
  height: min(81vh, 720px);
  height: min(81dvh, 720px);
  max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
  margin: auto 0 0;
  padding: 0;
  color: var(--search-ink);
  background: #fffef9;
  border: 1px solid #dbe3d9;
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  box-shadow: 0 18px 90px #132f2545;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
.esnaf-search-sheet[open] { display: flex; flex-direction: column; }
.esnaf-search-sheet[open]::backdrop { background: rgb(16 29 22 / 46%); }
.esnaf-search-grip { width: 36px; height: 4px; border-radius: 5px; margin: 9px auto 0; background: #c9d4ca; flex: none; }
.esnaf-search-top { display: flex; align-items: center; justify-content: space-between; margin: 7px 20px 8px; }
.esnaf-search-sheet h2 { margin: 0; color: var(--search-ink); font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.9px; }
.esnaf-search-sheet h3 { margin: 0 0 12px; color: var(--search-ink); font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.35; letter-spacing: -.2px; }
.esnaf-search-close { border: 0; padding: 0; width: 44px; height: 44px; border-radius: 50%; color: #3e5948; background: #edf2eb; font-size: 15px; }
.esnaf-search-bar { display:flex; align-items:center; flex: none; gap: 10px; min-height: 52px; margin: 0 20px 18px; padding: 4px 4px 4px 14px; background: #fff; color: var(--search-muted); border: 1px solid #bdccbf; border-radius: 15px; }
.esnaf-search-bar:focus-within { border-color: #37764c; box-shadow: 0 0 0 3px #146c4210; }
.esnaf-search-bar input[type="search"] { flex: 1; width: 0; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--search-ink); font: inherit; font-size:16px; }
.esnaf-search-bar input[type="search"]::-webkit-search-cancel-button { display: none; }
.esnaf-search-bar .esnaf-search-clear { display: grid; place-items: center; min-width: 26px; min-height: 40px; padding: 0; border: 0; color: #63776a; background: transparent; font-size: 17px; }
.esnaf-search-bar .esnaf-search-submit { font-family: inherit; min-width: 50px; min-height: 42px; border: 0; border-radius: 11px; background: #154c32; color: white; font-size: 14px; font-weight: 650; }
.esnaf-search-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 20px max(18px, env(safe-area-inset-bottom)); }
.esnaf-search-categories { margin-bottom: 24px; }
.esnaf-search-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.esnaf-store .esnaf-search-chips a { display: inline-flex; align-items: center; min-height: 37px; padding: 7px 13px; background: #eaf3e9; border: 1px solid #d8e7d8; border-radius: 100px; color: #1b5837; font-size: 13px; font-weight: 600; text-decoration: none; }
.esnaf-search-list { margin:0; padding:0; list-style: none; }
.esnaf-search-list li+li { border-top: 1px solid #e5ebe2; }
.esnaf-store .esnaf-search-result { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 77px; padding: 9px 2px; color: var(--search-ink); text-decoration: none; }
.esnaf-search-result img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: #f0f3eb; }
.esnaf-search-detail { display: grid; gap: 4px; min-width: 0; }
.esnaf-search-detail strong { font-size: 15px; font-weight: 630; line-height: 1.25; }
.esnaf-search-detail small { font-size: 12px; color: var(--search-muted); line-height: 1.25; }
.esnaf-search-result b { font-size: 14px; font-weight: 650; white-space: nowrap; color: #184e32; }
.esnaf-store .esnaf-search-more { display:flex; justify-content: space-between; align-items:center; min-height: 46px; margin-top: 9px; padding: 8px 14px; border-radius: 12px; background: #eaf3e9; color: #185637; font-size: 14px; font-weight: 650; text-decoration:none; }
.esnaf-search-status { margin: 10px 0; color: var(--search-muted); font-size: 13px; }
.esnaf-search-status:empty { margin: 0; }
.esnaf-search-empty { padding: 28px 12px; text-align: center; color: var(--search-muted); }
.esnaf-search-empty > i { display: inline-grid; place-items:center; width: 46px; height: 46px; margin-bottom: 12px; background: #edf1e9; border-radius: 50%; color: #526b58; }
.esnaf-search-empty h3 { margin-bottom: 5px; }
.esnaf-search-empty p { margin: 0; font-size: 14px; }
.esnaf-search-sheet :is(a,button):focus-visible { outline: 3px solid #428762; outline-offset: 2px; }
.esnaf-store .esnaf-search-sheet [hidden] { display:none!important; }
@media (min-width: 700px) {
  .esnaf-search-sheet { inset: 0; margin: auto; width: min(560px, 90vw); height: min(650px, 83vh); border-radius: 24px; border-bottom: 1px solid #dbe3d9; }
  .esnaf-search-grip { display: none; }
  .esnaf-search-top { margin-top: 20px; }
  .esnaf-search-body, .esnaf-search-top, .esnaf-search-bar { --search-side: 24px; }
  .esnaf-search-body { padding-inline: var(--search-side); }
  .esnaf-search-top, .esnaf-search-bar { margin-inline: var(--search-side); }
  .esnaf-search-result:hover { background: #f2f6ed; border-radius: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .esnaf-search-sheet[open] { animation: esnaf-search-in 180ms ease-out; }
  @keyframes esnaf-search-in { from { opacity: .6; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
#product-search { padding-block: 14px 42px; color: #172c20; }
#product-search h1, #product-search h2 { margin: 14px 0; font-family: inherit; font-weight: 650; letter-spacing: -.8px; color: #172c20; }
#product-search h1 { font-size: clamp(26px, 4vw, 36px); }
#product-search h2 { font-size: 23px; }
#product-search .breadcrumb { background: transparent; border: 0; padding: 0; box-shadow: none; }
#product-search .breadcrumb > li:after { display: none; }
#product-search .breadcrumb > li { padding: 0 12px 0 0; }
.esnaf-results-search { max-width: 670px; }
.esnaf-results-input { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 13px; border: 1px solid #bdccbf; border-radius: 15px; background: white; color: #41634b; }
.esnaf-results-input input { border: 0; min-width: 0; flex: 1; outline: none; color: #172c20; background: transparent; font-family: inherit; font-size: 16px; }
.esnaf-results-input:focus-within { border-color: #146c42; }
.esnaf-results-input button { min-width: 58px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #154c32; color: #fff; font-weight: 650; }
.esnaf-results-filters { margin: 11px 0 20px; color: #405e49; }
.esnaf-results-filters summary { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; cursor: pointer; font-size: 13px; font-weight: 625; }
.esnaf-results-filters[open] summary { display:flex; }
.esnaf-results-filters select { margin: 5px 0; }
.esnaf-results-filters label { margin: 3px 10px 5px 0; }
#product-search .form-control, #product-search .input-group-addon, #product-search .btn-default { background-image: none; box-shadow: none; text-shadow: none; border-color: #d3ddd2; color: #32523f; }
#product-search .btn-default, #product-search .input-group-addon { background-color: #eff4ec; }
#product-search .esnaf-results-grid { margin: 0 -6px; }
#product-search .product-layout { padding-inline: 6px; }
#product-search .product-thumb { position:relative; min-width: 0; overflow: hidden; border: 1px solid #dfe7da; border-radius: 17px; background: #fff; }
#product-search .product-thumb .image img { border-radius: 12px; }
#product-search .product-thumb .caption { min-height: 0; padding: 10px 12px; }
#product-search .product-thumb .caption h4 { margin: 0 0 5px; font: 650 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #192e20; }
#product-search .product-thumb .caption > p:not(.price) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #56675a; }
#product-search .product-thumb .price { margin: 6px 0; color: #175434; font-weight: 650; }
#product-search .esnaf-product-price-unit { color: #56675a; font-weight: normal; font-size: 12px; }
#product-search .product-thumb .button-group { display: flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0 11px 11px; }
#product-search .product-thumb .button-group button { flex: 0 0 36px; float: none; border: 0; border-radius: 10px; background: #f1f5ee; color: #526a59; font-size: 13px; line-height: 38px; }
#product-search .product-thumb .button-group button:first-child { flex: 1 1 auto; max-width: 185px; font-weight: 650; background: #e4f1e4; color: #165a37; text-transform: none; }
@media (max-width: 767px) {
  #product-search .product-thumb { display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: center; }
  #product-search .product-thumb .image { padding: 7px; }
  #product-search .product-thumb .caption { padding: 10px 8px 2px; }
  #product-search .product-thumb .button-group { padding: 2px 7px 8px; }
  #product-search .product-thumb .price-tax { display: none; }
}
