/* Isolated search UI: independent of Porto/YITH's form and suggestion selectors. */
body.ast-header-experience #header .header-top .searchform-popup { width: 340px; flex-basis: 340px; }
body.ast-header-experience #header .header-top form.ast-search,
body.ast-header-experience #side-nav-panel form.ast-search { position: relative; display: block !important; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
body.ast-header-experience .ast-search-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.ast-header-experience #header .header-top .ast-search .ast-search-fields,
body.ast-header-experience #side-nav-panel .ast-search .ast-search-fields { display: flex !important; position: relative; width: 100%; margin: 0; padding: 0; border: 1px solid #c6d5e3; border-radius: 4px; background: #fff; box-sizing: border-box; }
body.ast-header-experience .ast-search input[type=search] { width: 100%; min-width: 0; flex: 1; height: 30px; margin: 0; padding: 0 10px; border: 0 !important; border-radius: 4px 0 0 4px; color: #173a62 !important; background: #fff !important; font: 12px/1.4 Arial,sans-serif; box-shadow: none; }
body.ast-header-experience .ast-search input::placeholder { color: #627184; opacity: 1; }
body.ast-header-experience .ast-search button[type=submit] { position: static; flex: 0 0 62px; width: 62px; height: 30px; margin: 0; padding: 0 9px; border: 0; border-left: 1px solid #dbe5ee; border-radius: 0 3px 3px 0; background: #eef5fa; color: #173a62; font: 600 11px/1 Arial,sans-serif; cursor: pointer; }
body.ast-header-experience .ast-search button:hover { background: #dfeefa; }
body.ast-header-experience .ast-search input:focus-visible,
body.ast-header-experience .ast-search button:focus-visible,
body.ast-header-experience .ast-search a:focus-visible { outline: 2px solid #087dcc; outline-offset: -2px; }
body.ast-header-experience #header .header-top .ast-search .ast-search-panel,
body.ast-header-experience #side-nav-panel .ast-search .ast-search-panel { position: absolute; top: calc(100% + 5px); right: 0; left: auto; width: 400px; max-width: calc(100vw - 28px); max-height: min(520px,75vh); overflow: auto; display: block !important; margin: 0; padding: 0; box-sizing: border-box; border: 1px solid #cfdae6; border-radius: 6px; background: #fff; color: #173a62; box-shadow: 0 14px 32px #102f5329; z-index: 10050; text-align: left; }
body.ast-header-experience #header .header-top .ast-search .ast-search-panel[hidden],
body.ast-header-experience #side-nav-panel .ast-search .ast-search-panel[hidden] { display: none !important; }
body.ast-header-experience .ast-search-status { margin: 0; padding: 12px 14px; background: #f4f7fa; color: #536579; font: 12px/1.45 Arial,sans-serif; }
body.ast-header-experience .ast-search-items { list-style: none; margin: 0; padding: 0; }
body.ast-header-experience .ast-search-items li { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #edf1f5; }
body.ast-header-experience .ast-search a.ast-search-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 68px; box-sizing: border-box; background: #fff; color: #173a62 !important; text-decoration: none; white-space: normal; }
body.ast-header-experience .ast-search-result img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; float: none; margin: 0; background: #fff; }
body.ast-header-experience .ast-search-result span { min-width: 0; }
body.ast-header-experience .ast-search-result strong { display: block; color: #173a62; font: 600 12px/1.45 Arial,sans-serif; }
body.ast-header-experience .ast-search-result small { display: block; margin-top: 3px; color: #647488; font: 11px/1.4 Arial,sans-serif; }
body.ast-header-experience .ast-search a.ast-search-result:hover,
body.ast-header-experience .ast-search a.ast-search-result:focus { background: #edf6fc; }
body.ast-header-experience .ast-search a.ast-search-all { display: flex; justify-content: space-between; padding: 13px 14px; color: #0874bd; background: #f4f8fc; font: 600 12px/1.4 Arial,sans-serif; text-decoration: none; }
body.ast-header-experience #header .header-top .ast-search input[type=search] { height: 30px !important; padding: 0 10px !important; border-radius: 3px 0 0 3px !important; font: 12px/1.4 Arial,sans-serif !important; }
body.ast-header-experience #header .header-top .ast-search button[type=submit] { height: 30px !important; padding: 0 9px !important; border-radius: 0 3px 3px 0 !important; font: 600 11px/1 Arial,sans-serif !important; }
body.search.post-type-archive-product .ast-search-heading { margin-bottom: 22px; padding: 20px 22px; background: #f3f7fa; border: 1px solid #e0e7ee; border-radius: 5px; }
body.search.post-type-archive-product .ast-search-heading p { margin: 0 0 7px; color: #367eb7; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
body.search.post-type-archive-product .ast-search-heading h1 { margin: 0 0 7px; color: #173a62; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
body.search.post-type-archive-product .ast-search-heading span { color: #627184; font-size: 12px; }
body.search.post-type-archive-product .shop-loop-before { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
body.search.post-type-archive-product .shop-loop-before .woocommerce-ordering { margin: 0 auto 0 0; }
body.search.post-type-archive-product .shop-loop-before .woocommerce-pagination { margin: 0; padding: 0; }
body.search.post-type-archive-product .shop-loop-before .gridlist-toggle { display: none; }
body.search.post-type-archive-product ul.products.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0 0 24px; }
body.search.post-type-archive-product ul.products.grid::before,
body.search.post-type-archive-product ul.products.grid::after { display: none; }
body.search.post-type-archive-product ul.products.grid li.product { width: 100%; max-width: 100%; margin: 0; padding: 0; }
body.search.post-type-archive-product ul.products.grid .product-inner { height: 100%; display: flex; flex-direction: column; padding: 14px; border: 1px solid #dde5ed; border-radius: 5px; background: #fff; }
body.search.post-type-archive-product ul.products.grid .product-image { width: 100%; margin: 0 0 14px; border: 0; }
body.search.post-type-archive-product ul.products.grid .product-image .inner { height: 180px; }
body.search.post-type-archive-product ul.products.grid .product-image img { width: 100%; height: 180px; object-fit: contain; }
body.search.post-type-archive-product ul.products.grid .product-content { align-items: flex-start; text-align: left; flex: 1; }
body.search.post-type-archive-product ul.products.grid .category-list,
body.search.post-type-archive-product ul.products.grid .rating-wrap { display: none; }
body.search.post-type-archive-product ul.products.grid .product-loop-title { white-space: normal; overflow: visible; width: 100%; }
body.search.post-type-archive-product ul.products.grid h3.woocommerce-loop-product__title { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; line-height: 1.45; color: #173a62; margin: 0 0 10px; }
body.search.post-type-archive-product ul.products.grid .description { width: 100%; margin: 0 0 12px; color: #627184; font-size: 12px; line-height: 1.6; }
body.search.post-type-archive-product ul.products.grid .description p { margin: 0; font-size: inherit; line-height: inherit; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.search.post-type-archive-product .ast-search-product-link { display: inline-flex; gap: 9px; margin-top: auto; color: #287ab7; font-size: 12px; font-weight: 600; }
body.search.post-type-archive-product .sidebar-content .widget-title { font-size: 18px; line-height: 1.3; }
@media(max-width:767px) { body.search.post-type-archive-product ul.products.grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } body.search.post-type-archive-product ul.products.grid .product-image .inner, body.search.post-type-archive-product ul.products.grid .product-image img { height: 145px; } }
@media(max-width:479px) { body.search.post-type-archive-product ul.products.grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:767px) {
  body.ast-header-experience #side-nav-panel form.ast-search { padding: 12px 48px 12px 12px; box-sizing: border-box; background: #102f53; }
  body.ast-header-experience #side-nav-panel .ast-search input[type=search] { height: 38px; font-size: 16px; }
  body.ast-header-experience #side-nav-panel .ast-search button[type=submit] { height: 38px; flex-basis: 56px; width: 56px; }
  body.ast-header-experience #side-nav-panel .ast-search .ast-search-panel { width: calc(100% - 24px); left: 12px; right: 12px; top: calc(100% - 8px); max-height: 65vh; }
}
