/* LEKUB Search 3.0 v9: completely isolated CSS, never overrides legacy search */
#lk3-panel{--lk3-text:#1a3144;--lk3-muted:#758696;--lk3-line:#e7edf1;--lk3-teal:#399eaa;position:fixed;display:none;flex-direction:column;box-sizing:border-box;background:white;border:1px solid #e0e9ed;border-radius:16px;box-shadow:0 26px 80px #16374425;z-index:2147482000;color:var(--lk3-text);font:15px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;overflow:hidden;min-height:200px}
#lk3-panel *{box-sizing:border-box}#lk3-panel.lk3-visible{display:flex}#lk3-panel button{cursor:pointer;font:inherit}
#lk3-panel .lk3-header{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--lk3-line);flex:none}#lk3-panel .lk3-header strong{font-size:15px}#lk3-panel .lk3-close,#lk3-panel .lk3-back{background:#f2f7f8;border:0;border-radius:8px;padding:5px 10px;color:#526c7c}#lk3-panel .lk3-back{display:none}
#lk3-panel .lk3-results{display:grid;grid-template-columns:260px minmax(0,1fr);overflow:auto;min-height:140px;overscroll-behavior:contain}#lk3-panel .lk3-cats{background:#f8fafb;border-right:1px solid var(--lk3-line);padding:15px}#lk3-panel .lk3-products{padding:15px}#lk3-panel .lk3-section{font-size:11px;letter-spacing:.07em;font-weight:800;text-transform:uppercase;color:var(--lk3-muted);margin:0 0 10px}
#lk3-panel a.lk3-cat{display:flex;align-items:center;gap:10px;padding:9px 7px;margin-bottom:4px;border-radius:10px;color:var(--lk3-text);text-decoration:none}#lk3-panel .lk3-cat-icon{flex:none;width:31px;height:31px;border:1px solid #dce7ed;background:white;border-radius:8px;display:grid;place-items:center}#lk3-panel .lk3-cat-name{min-width:0}#lk3-panel .lk3-cat-name strong{font-size:13px;display:block}#lk3-panel .lk3-cat-name small{color:var(--lk3-muted);font-size:11px;display:block}
#lk3-panel a.lk3-product{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 4px;margin-bottom:3px;border-radius:9px;text-decoration:none;color:var(--lk3-text);min-height:78px;border-bottom:1px solid #f0f3f5}#lk3-panel a.lk3-cat:hover,#lk3-panel a.lk3-product:hover,#lk3-panel .lk3-selected{background:#e9f5f6}#lk3-panel .lk3-thumb{width:66px;height:66px;object-fit:contain;flex:none;border:1px solid #f0f2f4;border-radius:8px}#lk3-panel .lk3-noimage{display:grid;place-items:center;color:#8b9ca8}#lk3-panel .lk3-product-desc{min-width:0}#lk3-panel .lk3-name{font-weight:650;font-size:13px;line-height:1.3;display:block}#lk3-panel .lk3-art{color:var(--lk3-muted);font-size:11px;display:block;margin-top:4px}#lk3-panel .lk3-details{display:flex;flex-direction:column;align-items:flex-end;min-width:100px}#lk3-panel .lk3-price{font-size:14px;white-space:nowrap}#lk3-panel .lk3-stock{font-size:11px;color:#26816d;margin-top:4px}#lk3-panel .lk3-out{color:#b96767}#lk3-panel .lk3-note{font-size:13px;color:var(--lk3-muted);margin:8px 0;line-height:1.45}
#lk3-panel .lk3-footer{flex:none;background:white;border-top:1px solid var(--lk3-line);padding:12px}#lk3-panel .lk3-all{display:block;width:100%;padding:12px;color:white;background:#399eaa;border:0;border-radius:10px;font-weight:700;text-align:center}#lk3-panel.lk3-sku .lk3-cats{display:none}#lk3-panel.lk3-sku .lk3-results{grid-template-columns:minmax(0,1fr)}#lk3-panel .lk3-mobilebar{display:none}
@media(max-width:767px){#lk3-panel{inset:0!important;width:100%!important;max-height:none!important;height:100dvh!important;border:0;border-radius:0;z-index:2147482000}#lk3-panel .lk3-header{padding:calc(8px + env(safe-area-inset-top)) 14px 10px}#lk3-panel .lk3-back{display:block}#lk3-panel .lk3-close{display:none}#lk3-panel .lk3-mobilebar{display:block;padding:5px 13px 12px;border-bottom:1px solid var(--lk3-line)}#lk3-panel .lk3-mobileinput{width:100%;height:44px;font-size:16px;border:1px solid #b8d9df;border-radius:10px;padding:0 13px;outline:0;color:var(--lk3-text);background:white}#lk3-panel .lk3-results{display:block;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}#lk3-panel .lk3-cats{border-right:0;border-bottom:1px solid var(--lk3-line);padding:10px 13px}#lk3-panel .lk3-cats .lk3-section{margin-bottom:7px}#lk3-panel a.lk3-cat{display:inline-flex;width:auto;vertical-align:top;border:1px solid var(--lk3-line);background:white;padding:6px 9px;margin-right:5px;margin-bottom:6px}#lk3-panel .lk3-cat-name small{display:none}#lk3-panel .lk3-products{padding:11px 13px}#lk3-panel a.lk3-product{grid-template-columns:62px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 11px;align-content:center;min-height:82px;padding:9px 0}#lk3-panel .lk3-thumb{grid-column:1;grid-row:1/span 2;width:62px;height:62px;align-self:center}#lk3-panel .lk3-product-desc{grid-column:2;grid-row:1}#lk3-panel .lk3-details{grid-column:2;grid-row:2;align-items:baseline;flex-direction:row;gap:9px;min-width:0;flex-wrap:wrap}#lk3-panel .lk3-price{font-size:14px}#lk3-panel .lk3-stock{margin:0}#lk3-panel .lk3-footer{padding:9px 13px calc(10px + env(safe-area-inset-bottom))}html.lk3-mobile-active,body.lk3-mobile-active{overflow:hidden!important}}

html.lk3-device-mobile #lk3-panel{inset:0!important;width:100%!important;max-height:none!important;height:100dvh!important;border:0;border-radius:0;z-index:2147482000}

html.lk3-device-mobile #lk3-panel .lk3-header{padding:calc(8px + env(safe-area-inset-top)) 14px 10px}

html.lk3-device-mobile #lk3-panel .lk3-back{display:block}

html.lk3-device-mobile #lk3-panel .lk3-close{display:none}

html.lk3-device-mobile #lk3-panel .lk3-mobilebar{display:block;padding:5px 13px 12px;border-bottom:1px solid var(--lk3-line)}

html.lk3-device-mobile #lk3-panel .lk3-mobileinput{width:100%;height:44px;font-size:16px;border:1px solid #b8d9df;border-radius:10px;padding:0 13px;outline:0;color:var(--lk3-text);background:white}

html.lk3-device-mobile #lk3-panel .lk3-results{display:block;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}

html.lk3-device-mobile #lk3-panel .lk3-cats{border-right:0;border-bottom:1px solid var(--lk3-line);padding:10px 13px}

html.lk3-device-mobile #lk3-panel .lk3-cats .lk3-section{margin-bottom:7px}

html.lk3-device-mobile #lk3-panel a.lk3-cat{display:inline-flex;width:auto;vertical-align:top;border:1px solid var(--lk3-line);background:white;padding:6px 9px;margin-right:5px;margin-bottom:6px}

html.lk3-device-mobile #lk3-panel .lk3-cat-name small{display:none}

html.lk3-device-mobile #lk3-panel .lk3-products{padding:11px 13px}

html.lk3-device-mobile #lk3-panel a.lk3-product{grid-template-columns:62px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 11px;align-content:center;min-height:82px;padding:9px 0}

html.lk3-device-mobile #lk3-panel .lk3-thumb{grid-column:1;grid-row:1/span 2;width:62px;height:62px;align-self:center}

html.lk3-device-mobile #lk3-panel .lk3-product-desc{grid-column:2;grid-row:1}

html.lk3-device-mobile #lk3-panel .lk3-details{grid-column:2;grid-row:2;align-items:baseline;flex-direction:row;gap:9px;min-width:0;flex-wrap:wrap}

html.lk3-device-mobile #lk3-panel .lk3-price{font-size:14px}

html.lk3-device-mobile #lk3-panel .lk3-stock{margin:0}

html.lk3-device-mobile #lk3-panel .lk3-footer{padding:9px 13px calc(10px + env(safe-area-inset-bottom))}

html.lk3-device-mobile.lk3-mobile-active,html.lk3-device-mobile body.lk3-mobile-active{overflow:hidden!important}

/* Search UI v10: editable popular searches, no empty categories */
#lk3-panel.lk3-empty .lk3-cats{display:none!important}
#lk3-panel.lk3-empty .lk3-results{display:block}
#lk3-panel .lk3-quicklinks{display:flex;flex-wrap:wrap;align-content:flex-start;gap:9px;margin:12px 0}
#lk3-panel .lk3-quick{display:inline-flex;align-items:center;border:1px solid #d9e7eb;background:#f8fafb;border-radius:30px;padding:9px 14px;text-decoration:none;color:var(--lk3-text);font-size:14px;font-weight:600}
#lk3-panel .lk3-quick:hover{background:#e9f5f6}
#lk3-panel .lk3-cat-icon{font-size:19px;font-weight:500;color:#5b9da9;background:#f7fbfc}
@media(max-width:767px){#lk3-panel.lk3-empty .lk3-products{padding-top:20px}}

/* Search UI v11: text-only category navigation, tighter desktop product rows */
#lk3-panel .lk3-cat-icon{display:none!important}
#lk3-panel a.lk3-cat{padding:9px 11px;margin-bottom:3px;border-left:3px solid transparent}
#lk3-panel a.lk3-cat.lk3-primary{border-left-color:var(--lk3-teal);background:#ecf7f8}
#lk3-panel a.lk3-product{padding:5px 4px;min-height:68px;gap:10px}
#lk3-panel .lk3-thumb{width:58px;height:58px}
#lk3-panel a.lk3-product{grid-template-columns:58px minmax(0,1fr) auto}
#lk3-panel.lk3-empty .lk3-footer{display:none}
#lk3-panel .lk3-quick{font-family:inherit;cursor:pointer}
@media(max-width:767px){
 #lk3-panel a.lk3-cat{padding:8px 11px;border-left:1px solid var(--lk3-line)}
 #lk3-panel a.lk3-cat.lk3-primary{border-left:3px solid var(--lk3-teal)}
 #lk3-panel a.lk3-product{grid-template-columns:62px minmax(0,1fr);grid-template-rows:auto auto;min-height:80px;padding:8px 0;gap:3px 11px}
 #lk3-panel .lk3-thumb{width:62px;height:62px}
}
html.lk3-device-mobile #lk3-panel a.lk3-product{grid-template-columns:62px minmax(0,1fr);grid-template-rows:auto auto;min-height:80px;padding:8px 0;gap:3px 11px}
html.lk3-device-mobile #lk3-panel .lk3-thumb{width:62px;height:62px}

/* Search UI v12: mobile-only larger tap targets and collapsed categories.
   Desktop v11 remains unchanged. */
#lk3-panel .lk3-more-cats{display:none}
@media(max-width:767px){
 #lk3-panel a.lk3-cat{min-height:48px;display:inline-flex;align-items:center;padding:11px 13px;margin:0 6px 8px 0;line-height:1.3;border-radius:11px;box-sizing:border-box}
 #lk3-panel .lk3-cats>a.lk3-cat:nth-of-type(n+4){display:none}
 #lk3-panel.lk3-cats-expanded .lk3-cats>a.lk3-cat:nth-of-type(n+4){display:inline-flex}
 #lk3-panel .lk3-more-cats{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 14px;margin:0 6px 8px 0;background:#eaf5f7;border:1px solid #badde3;color:#285c68;border-radius:11px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}
 #lk3-panel .lk3-cats{padding-bottom:4px}
}
html.lk3-device-mobile #lk3-panel a.lk3-cat{min-height:48px;display:inline-flex;align-items:center;padding:11px 13px;margin:0 6px 8px 0;line-height:1.3;border-radius:11px;box-sizing:border-box}
html.lk3-device-mobile #lk3-panel .lk3-cats>a.lk3-cat:nth-of-type(n+4){display:none}
html.lk3-device-mobile #lk3-panel.lk3-cats-expanded .lk3-cats>a.lk3-cat:nth-of-type(n+4){display:inline-flex}
html.lk3-device-mobile #lk3-panel .lk3-more-cats{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 14px;margin:0 6px 8px 0;background:#eaf5f7;border:1px solid #badde3;color:#285c68;border-radius:11px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}
html.lk3-device-mobile #lk3-panel .lk3-cats{padding-bottom:4px}
