/* AFIT search: native Journal interactions, refreshed presentation. */
#search input[name="search"]{border-radius:14px!important;font-size:15px!important;}
#search .header-search{border-radius:14px!important;}
#search .search-button{border-radius:0 14px 14px 0!important;}
#search .tt-menu{width:min(620px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:min(620px,72vh)!important;border:1px solid #e0e8e3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 50px #173f2926!important;overflow:auto!important;padding:0!important;margin-top:10px!important;scrollbar-width:thin;scrollbar-color:#b8c9bd #f7f9f7;}
#search .afit-search-heading{font-size:12px;line-height:1.5;font-weight:600;color:#64736a;padding:14px 18px;background:#f5f8f5;border-bottom:1px solid #e8eee9;letter-spacing:.2px;}
#search .search-result{margin:0!important;padding:0!important;border-bottom:1px solid #edf1ee!important;background:#fff;}
#search .search-result > a{display:flex!important;align-items:center!important;gap:16px!important;padding:14px 18px!important;min-height:108px;text-decoration:none!important;white-space:normal!important;}
#search .search-result > a:hover,#search .tt-cursor > a{background:#f1f7f0!important;}
#search .search-result img{width:76px!important;height:76px!important;object-fit:contain!important;flex:0 0 76px;margin:0!important;background:#fff;border-radius:10px;padding:3px;}
#search .search-result > a > span{display:flex!important;flex:1;flex-direction:column;gap:5px;min-width:0;}
#search .search-result .product-name{font-size:14px!important;line-height:1.45!important;font-weight:600!important;color:#253b2c!important;display:block;}
#search .search-result .price,#search .search-result .price-new{font-size:16px!important;font-weight:700!important;color:#27563b!important;}
#search .search-result .price-old{font-size:12px!important;color:#87908a!important;text-decoration:line-through!important;margin-right:8px;}
#search .afit-stock{font-size:11px!important;font-weight:600;line-height:1.4;color:#28633d!important;display:block;}
#search .afit-stock:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#5a9c43;vertical-align:middle;}
#search .afit-stock-out{color:#858c87!important;}
#search .afit-stock-out:before{background:#a6ada8;}
#search .view-more{position:sticky;bottom:0;z-index:2;border-top:1px solid #dce7df!important;border-bottom:0!important;}
#search .view-more > a{min-height:50px;justify-content:center;background:#27563b!important;color:#fff!important;font-size:13px!important;font-weight:600!important;padding:14px!important;}
#search .no-results > a{min-height:74px;color:#68756c;font-size:14px;justify-content:center;}
@media(max-width:767px){#search .tt-menu{width:100%!important;max-width:calc(100vw - 24px)!important;max-height:65vh!important;border-radius:14px!important;}#search .search-result > a{padding:12px!important;gap:12px!important;min-height:96px;}#search .search-result img{width:62px!important;height:62px!important;flex-basis:62px;}#search .search-result .product-name{font-size:13px!important;}#search .afit-search-heading{padding:12px;}}
.route-product-search .title.page-title{color:#253b2c;}
.route-product-search #input-search,.route-product-search #content select[name="category_id"]{border-radius:10px!important;border-color:#dce5de!important;min-height:44px;}
.route-product-search #button-search{background:#27563b!important;border-color:#27563b!important;border-radius:10px!important;min-height:46px;}
.route-product-search .products-filter{border-radius:12px;background:#f4f7f4;padding:14px;}
.route-product-search .main-products .product-thumb{border-radius:14px;overflow:hidden;}
#search .view-more > a{line-height:1.5!important;height:auto!important;}

/* AFIT view-all: preserve contrast on hover and keyboard focus. */
#search .search-result.view-more > a:hover,
#search .search-result.view-more.tt-cursor > a,
#search .search-result.view-more > a:focus,
#search .search-result.view-more > a:focus-visible{background:#1d432d!important;color:#fff!important;opacity:1!important;}
#search .search-result.view-more > a:hover::after,
#search .search-result.view-more > a:focus::after{color:#fff!important;}

/* Compact mobile view-all footer, independent of product-row height. */
@media(max-width:767px){
#search .search-result.view-more > a{box-sizing:border-box!important;min-height:44px!important;height:44px!important;padding:10px 14px!important;line-height:1.4!important;font-size:12px!important;}
}
