/* Kılınç Search V1.1 — native catalogue search panel. */
.kg-search-panel { background:#fff; max-height:100dvh; overflow-y:auto; overscroll-behavior:contain; }
.kg-search-panel__inner { max-width:1000px; padding-block:24px 32px; }
.kg-search-panel__top { margin-bottom:20px; }
.kg-search-panel__eyebrow { font-size:12px; font-weight:650; letter-spacing:.08em; }
.kg-search-form { grid-template-columns:minmax(0,1fr) 48px; }
.kg-search-form input[type="search"] { width:100%; min-width:0; font-family:var(--kg-font-sans); font-size:24px; line-height:1.4; padding:12px 0; border:0; outline-offset:-2px; box-shadow:none; background:transparent; color:#111; }
.kg-search-form input::-webkit-search-cancel-button { -webkit-appearance:none; }
.kg-search-form button { width:48px; height:48px; border:0; background:transparent; cursor:pointer; }
.kg-search-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; color:#777; font-size:11px; }
.kg-search-tools button { padding:0; min-height:44px; border:0; background:transparent; color:#333; font-size:12px; text-decoration:underline; cursor:pointer; }
.kg-search-tools span { margin-left:auto; }
.kg-search-suggestions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.kg-search-suggestions > span { font-size:11px; color:#777; margin-right:8px; }
.kg-search-suggestions button { min-height:44px; padding:8px 16px; border:1px solid #e8e8e3; border-radius:0; background:#fafaf8; color:#333; font-size:12px; cursor:pointer; }
.kg-search-suggestions button:hover { border-color:#111; background:#fff; }
.kg-search-status { display:flex; align-items:center; flex-wrap:wrap; gap:5px; font-size:12px; color:#666; margin:12px 0; line-height:1.5; }
.kg-search-status:empty { margin:0; }
.kg-search-didyoumean { appearance:none; padding:0; border:0; background:transparent; color:#111; font:inherit; font-weight:650; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.kg-search-didyoumean:hover { text-decoration-thickness:2px; }
.kg-search-results { display:block; }
.kg-search-category-group,
.kg-search-product-group { margin-top:18px; }
.kg-search-category-group__label,
.kg-search-product-group__label { margin-bottom:8px; color:#777; font-size:10px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; }
.kg-search-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.kg-search-category { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; column-gap:10px; min-width:0; padding:12px 14px; border:1px solid #e9e9e5; background:#fafaf8; color:#111; }
.kg-search-category:hover,
.kg-search-category[aria-selected="true"] { border-color:#111; background:#fff; }
.kg-search-category__title { grid-column:1; grid-row:1; min-width:0; font-size:12px; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.kg-search-category__meta { grid-column:1; grid-row:2; margin-top:3px; color:#888; font-size:10px; }
.kg-search-category__arrow { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:15px; }
.kg-search-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.kg-search-result { display:flex; gap:16px; align-items:center; min-width:0; min-height:112px; padding:12px 8px; border-bottom:1px solid #efefeb; color:#111; }
.kg-search-result:hover,
.kg-search-result[aria-selected="true"] { background:#f6f6f3; }
.kg-search-result img { width:60px; height:80px; flex:0 0 60px; object-fit:contain; background:#f2f2f2; }
.kg-search-result__copy { display:flex; flex-direction:column; gap:8px; min-width:0; }
.kg-search-result__title { font-size:13px; line-height:1.5; font-weight:550; overflow-wrap:anywhere; }
.kg-search-result__price { font-size:13px; font-weight:650; }
.kg-search-result__price del { color:#888; font-size:11px; font-weight:400; margin-right:6px; }
.kg-search-result__price ins { text-decoration:none; background:transparent; }
.kg-search-result small { color:#888; font-size:11px; }
.kg-search-all { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:12px 16px; margin-top:20px; border:1px solid #111; font-size:12px; color:#111; }
.kg-search-all:hover { background:#111; color:#fff; }
.kg-search-panel [hidden] { display:none !important; }
.kg-search-panel.is-search-loading .kg-search-status::before { content:""; display:inline-block; width:12px; height:12px; flex:0 0 12px; border:1px solid #ddd; border-top-color:#111; border-radius:50%; animation:kg-search-spin .7s linear infinite; }
@keyframes kg-search-spin { to { transform:rotate(360deg); } }
/* Search results reuse archive.css; keep only search-specific copy here. */
.kg-search-page__suggestion {
  order:1;
  margin:-4px 0 12px;
  color:#666;
  font-size:13px;
  line-height:1.5;
}
.kg-search-page__suggestion a {
  color:#111;
  font-weight:650;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:782px) { .admin-bar .kg-search-panel { max-height:calc(100dvh - 46px); } }
@media(min-width:783px) { .admin-bar .kg-search-panel { max-height:calc(100dvh - 32px); } }
@media(max-width:640px) {
 .kg-search-panel__inner { padding-inline:20px; padding-block:16px 24px; }
 .kg-search-form input[type="search"] { font-size:16px; }
 .kg-search-categories { grid-template-columns:1fr; }
 .kg-search-product-grid { grid-template-columns:1fr; }
 .kg-search-result { min-height:100px; padding-inline:0; }
}
@media(max-width:600px) { .admin-bar .kg-search-panel { max-height:100dvh; } }
@media(prefers-reduced-motion:reduce) { .kg-search-panel.is-search-loading .kg-search-status::before { animation:none; } }
