/* Product search uses the existing palette and native WooCommerce result grid. */
.cny-product-search .cny-search-head { margin:16px 0 28px;max-width:760px; }
.cny-search-eyebrow { margin:0 0 10px;color:#786b62;font-size:12px;letter-spacing:.08em;text-transform:uppercase; }
.cny-product-search .cny-search-head h1 { margin:0 0 24px;font-size:32px;line-height:1.3;font-weight:500;overflow-wrap:anywhere; }
.cny-search-head h1::after { content:"";display:block;width:48px;height:4px;margin-top:14px;border-radius:4px;background:#ed7832; }
.cny-product-search-form { margin:0 0 12px; }
.cny-product-search-form label { display:block;margin:0 0 8px;font-size:14px;font-weight:500; }
.cny-search-input-row { display:flex;gap:10px; }
.cny-search-input-row input[type=search] { flex:1;min-width:0;height:48px;margin:0;padding:10px 14px;border:1px solid #d6c9bc;border-radius:10px;box-shadow:none;font-size:16px;color:#171717;background:#fff; }
.cny-search-input-row button { flex:0 0 auto;min-height:48px;height:48px;line-height:1.3;box-sizing:border-box;margin:0;padding:10px 24px;border:1px solid #b01116;border-radius:999px;color:#fff;background:#b01116;font-size:15px;letter-spacing:0;text-transform:none; }
.cny-search-reset { display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#b01116;font-size:14px;text-decoration:underline;text-underline-offset:3px; }
.cny-search-empty { margin:0 0 48px;padding:28px;border:1px solid #eee0d0;border-left:3px solid #ed7832;border-radius:16px;background:#fff7e9; }
.cny-search-empty h2 { margin:0 0 10px;font-size:23px;font-weight:500;line-height:1.4; }
.cny-search-empty p { margin:0 0 20px;color:#61574f;font-size:15px;line-height:1.6; }
.cny-search-empty nav { display:flex;flex-wrap:wrap;gap:10px; }
.cny-search-empty nav a { display:inline-flex;align-items:center;gap:14px;min-height:44px;padding:10px 16px;border:1px solid #b01116;border-radius:999px;color:#b01116;background:#fff;font-size:14px;line-height:1.4; }
.cny-product-search .products > .cny-shop-promo { display:none!important; }
.cny-search-head :is(a,button,input):focus-visible,.cny-search-empty a:focus-visible { outline:2px solid #b01116;outline-offset:3px; }

/* Keep the native desktop dropdown inside the viewport. */
#header .header-search-dropdown .nav-dropdown { left:auto!important;right:0;width:min(400px,calc(100vw - 32px));min-width:0;padding:16px;border:1px solid #e8ded4;border-radius:14px;background:#fff; }
#header .header-search-dropdown input[type=search] { height:46px;font-size:16px;border-color:#d6c9bc;box-shadow:none; }
#header .header-search-dropdown .submit-button { min-width:46px;min-height:46px;background:#b01116;color:#fff;border-color:#b01116; }

#header .header-search-dropdown.cny-search-open > .nav-dropdown { opacity:1;visibility:visible;pointer-events:auto; }

/* Native autocomplete is retained; only product forms receive this class. */
.cny-search-form .autocomplete-suggestions { max-height:min(440px,55dvh)!important;overflow:auto;overscroll-behavior:contain;margin-top:8px;border:1px solid #e8ded4;border-radius:12px;background:#fff;box-shadow:0 6px 18px #0000000d;text-align:left; }
.cny-search-form .autocomplete-suggestion { min-height:48px;padding:12px;white-space:normal;border-bottom:1px solid #eee5dd;color:#171717; }
.cny-search-form .autocomplete-suggestion:last-child { border-bottom:0; }
.cny-search-form .autocomplete-suggestion:has(.search-image) { display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 10px; }
.cny-search-form .autocomplete-suggestion .search-image { float:none;grid-row:1 / span 2;width:44px;height:44px;margin:0;border-radius:8px;object-fit:contain; }
.cny-search-form .search-name { min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere; }
.cny-search-form .search-price { display:block;font-size:13px;line-height:1.5;white-space:normal; }
.cny-search-form .autocomplete-suggestion:has(.search-image) :is(.search-name,.search-price) { grid-column:2; }
.cny-search-form .search-price del { font-size:12px;color:#777; }
.cny-search-form .search-price ins { margin-left:6px;font-weight:600;text-decoration:none; }
.cny-search-form :is(.cny-search-stock,.cny-search-configurable) { display:block;color:#6b594b;font-size:12px;line-height:1.5; }
.cny-search-form .autocomplete-selected { background:#fff7e9; }
.cny-product-search-form .live-search-results { position:relative; }

@media(max-width:549px) {
 .cny-product-search .cny-search-head { margin:16px 0 20px; }
 .cny-product-search .cny-search-head h1 { font-size:25px;margin-bottom:20px; }
 .cny-search-input-row { gap:8px; }
 .cny-search-input-row button { padding:10px 16px;font-size:14px; }
 .cny-search-empty { padding:20px;margin-bottom:32px; }
 .cny-search-empty h2 { font-size:21px; }
 .cny-search-empty nav { gap:8px; }
}
