/* SGMaart Branch Live Search – fully scoped. No theme-wide selectors except body lock. */
.sgbs-overlay,.sgbs-overlay *{box-sizing:border-box}
.sgbs-overlay[hidden],.sgbs-overlay [hidden]{display:none!important}
html.sgbs-html-open{overflow:hidden!important;overscroll-behavior:none}body.sgbs-body-open{position:fixed!important;left:0;right:0;width:100%;overflow:hidden!important;touch-action:auto}
.sgbs-overlay{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;min-height:100dvh;z-index:2147483647!important;background:var(--sgbs-bg,#fcfaf0);color:#252831;font-family:inherit;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.sgbs-shell{position:relative;z-index:1;min-height:100%;max-width:1320px;margin:0 auto;background:#fff;box-shadow:0 0 32px rgba(40,36,23,.07);padding-bottom:max(35px,env(safe-area-inset-bottom,0px))}
.sgbs-top{background:var(--sgbs-bg,#fcfaf0);padding:calc(22px + env(safe-area-inset-top,0px)) 20px 11px}
.sgbs-searchbar{display:flex;align-items:center;min-height:58px;border:1px solid #dedede;background:#fff;border-radius:18px;box-shadow:0 1px 3px #3d382910;overflow:hidden}
.sgbs-searchbar button{background:none!important;box-shadow:none!important;border:0!important;color:#33353a!important;display:flex;align-items:center;justify-content:center;min-width:48px;height:52px;padding:9px;cursor:pointer;touch-action:manipulation}
.sgbs-searchbar button:focus-visible{outline:2px solid #e16d31;outline-offset:-2px}
.sgbs-searchbar svg{width:23px;height:23px}
.sgbs-searchbar input#sgbs-input{appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0;flex:1;width:auto;height:54px;padding:0 5px!important;outline:0!important;font-size:18px!important;line-height:1.3!important;font-weight:500!important;color:#262631!important;letter-spacing:0;text-transform:none;margin:0!important}
.sgbs-searchbar input#sgbs-input::-webkit-search-cancel-button{-webkit-appearance:none}
.sgbs-searchbar input#sgbs-input::placeholder{color:#767784;opacity:1}
.sgbs-clear svg{stroke:#8b8d99;width:21px;height:21px}
.sgbs-search-deco{height:30px;width:36px;display:flex;align-items:center;justify-content:center;border-left:1px solid #e8e8e8;margin-right:8px;color:#676971;pointer-events:none}
.sgbs-search-deco svg{width:19px;height:19px}
.sgbs-suggestions{padding:9px 2px 3px}
.sgbs-suggestions > .sgbs-suggestion:nth-child(n+3){display:none!important}
.sgbs-suggestion{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:13px;width:100%;min-height:54px;padding:5px 2px;border-radius:10px;cursor:pointer;color:#424551;font:500 16px/1.4 inherit;touch-action:manipulation}
.sgbs-suggestion:active,.sgbs-suggestion:hover{background:#f8f5e9}
.sgbs-suggestion:focus-visible{outline:2px solid #f08b4a}
.sgbs-suggest-img{height:43px;width:43px;flex:0 0 43px;display:flex;justify-content:center;align-items:center;border-radius:12px;border:1px solid #e6e3dd;background:#fff;overflow:hidden;color:#9da0a5}
.sgbs-suggest-img img{height:100%;width:100%;object-fit:contain}
.sgbs-suggest-img svg{height:21px;width:21px}
.sgbs-suggest-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgbs-filterbar{display:flex;gap:9px;align-items:center;overflow-x:auto;white-space:nowrap;scrollbar-width:none;border-bottom:1px solid #eee;padding:13px 18px;background:#fff;position:sticky;top:0;z-index:3}
.sgbs-filterbar::-webkit-scrollbar{display:none}
.sgbs-chip{border:1px solid #e7e7e7!important;border-radius:12px;background:#fff!important;box-shadow:0 2px 6px #2f293015;min-height:42px;padding:0 10px;display:flex;align-items:center;gap:5px;color:#414244!important;font-size:14px;font-weight:600;flex:none;line-height:1;cursor:pointer}
.sgbs-chip select{appearance:none;-webkit-appearance:none;min-width:25px;max-width:95px;border:0!important;background:transparent!important;color:#555!important;outline:0;box-shadow:none!important;padding:0 2px!important;height:40px!important;font:inherit!important;font-weight:500!important;cursor:pointer}
.sgbs-chevron{font-size:20px;color:#555;line-height:.5;margin-top:-4px}
.sgbs-chip.sgbs-toggle{appearance:none;font:600 14px/1.2 inherit!important;padding:0 12px;color:#58534b!important}
.sgbs-chip.sgbs-toggle[aria-pressed=true]{border-color:#ecb65b!important;background:#fff6de!important;color:#9b6515!important}
.sgbs-results-area{padding:15px 18px 35px;min-height:210px;background:#fff}
.sgbs-note{font-size:13px;line-height:1.5;color:#6c6f78;margin:0 0 12px!important;padding:0 2px}.sgbs-note-text{display:block}.sgbs-note-loading,.sgbs-note-empty{padding:0!important;color:inherit}.sgbs-loader{display:grid;gap:10px;padding:10px 2px 14px}.sgbs-loader-line{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,#f0ede6 20%,#fff8ee 40%,#f0ede6 60%);background-size:200% 100%;animation:sgbsShine 1.15s linear infinite}.sgbs-loader-line-lg{width:68%}.sgbs-loader-line-sm{width:48%}.sgbs-empty-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 18px 34px;border:1px solid #f0e2cf;border-radius:20px;background:linear-gradient(180deg,#fffdfa 0%,#fff6ea 100%);box-shadow:0 10px 24px rgba(212,132,41,.08)}.sgbs-empty-icon{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:20px;background:#fff;border:1px solid #f3d9b8;box-shadow:0 10px 18px rgba(230,137,54,.10);font-size:30px;margin-bottom:16px}.sgbs-empty-title{font-size:21px;font-weight:800;line-height:1.2;color:#2d3037;margin:0 0 8px}.sgbs-empty-text{max-width:430px;font-size:14px;line-height:1.55;color:#78716a}@keyframes sgbsShine{0%{background-position:200% 0}100%{background-position:-200% 0}}
.sgbs-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 16px}
.sgbs-product{min-width:0;display:flex;flex-direction:column;color:#282b33;margin:0;padding:0;border:0;background:#fff}
.sgbs-thumb{display:flex;justify-content:center;align-items:center;aspect-ratio:1/1.16;padding:5px;border:1px solid #ededf1;border-radius:12px;background:#f9f9fc;text-decoration:none;overflow:hidden;min-height:0}
.sgbs-thumb img{width:100%;height:100%;object-fit:contain;display:block;mix-blend-mode:multiply}
.sgbs-product-meta{min-width:0;padding-top:4px}
.sgbs-cart-row{height:40px;display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:-4px}
.sgbs-unit{font-size:12px;font-weight:600;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgbs-add,.sgbs-options{display:inline-flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;background:white!important;border:1.2px solid #338b38!important;color:#21812d!important;font-weight:750!important;border-radius:10px!important;min-width:70px;min-height:35px;padding:5px 7px!important;font-size:13px!important;line-height:1.15!important;white-space:nowrap;box-shadow:none!important;text-decoration:none!important}
.sgbs-add:disabled{opacity:.75;cursor:wait}.sgbs-add:focus-visible,.sgbs-options:focus-visible{outline:2px solid #ef9234;outline-offset:2px}
.sgbs-price{font-size:18px;line-height:1.5;color:#27292e;font-weight:750;min-height:28px;overflow:hidden}
.sgbs-price .amount{font-size:inherit;font-weight:inherit;color:inherit}
.sgbs-price del{font-size:11px;font-weight:400;color:#888;white-space:nowrap}
.sgbs-price ins{text-decoration:none}
.sgbs-price .woocommerce-Price-currencySymbol{font-size:.9em}
.sgbs-product-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;text-decoration:none!important;color:#313139!important;font-size:15px;font-weight:500;line-height:1.35;min-height:39px;word-break:normal}
.sgbs-morewrap{text-align:center;padding:24px 0 15px}
.sgbs-more{padding:11px 27px!important;border-radius:24px!important;border:1px solid #ed8d32!important;background:#fff8ee!important;color:#9f520f!important;cursor:pointer;font-size:14px!important;font-weight:650!important}
.sgbs-more:disabled{opacity:.6}
@media(max-width:990px){.sgbs-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:19px 12px}}
@media(max-width:767px){
 .sgbs-shell{box-shadow:none}
 .sgbs-loader{gap:9px;padding:8px 1px 12px}
 .sgbs-loader-line{height:11px}
 .sgbs-empty-card{padding:28px 15px 30px;border-radius:18px}
 .sgbs-empty-icon{width:60px;height:60px;border-radius:18px;font-size:26px;margin-bottom:14px}
 .sgbs-empty-title{font-size:19px}
 .sgbs-empty-text{font-size:13px}
 .sgbs-top{padding:calc(14px + env(safe-area-inset-top,0px)) 14px 8px}
 .sgbs-searchbar{min-height:54px;border-radius:15px}
 .sgbs-searchbar input#sgbs-input{font-size:16px!important;height:52px}
 .sgbs-searchbar button{height:52px;min-width:48px}
 .sgbs-suggestions{padding-top:10px}
 .sgbs-suggestion{min-height:55px;gap:11px;font-size:15px}
 .sgbs-suggest-img{width:43px;height:43px;flex-basis:43px}
 .sgbs-filterbar{padding:11px 11px;gap:8px}
 .sgbs-chip{min-height:40px;border-radius:11px}
 .sgbs-results-area{padding:13px 11px 25px}
 .sgbs-products{grid-template-columns:repeat(var(--sgbs-cols,3),minmax(0,1fr));gap:17px 10px}
 .sgbs-thumb{border-radius:11px;padding:4px;aspect-ratio:1/1.16}
 .sgbs-cart-row{height:38px}
 .sgbs-add,.sgbs-options{border-radius:10px!important;min-width:51px;min-height:32px;font-size:12px!important;padding:4px!important}
 .sgbs-unit{font-size:11px}
 .sgbs-price{font-size:15px;min-height:24px}
 .sgbs-price del{font-size:10px}
 .sgbs-product-title{font-size:13px;line-height:1.32;min-height:35px}
}
@media(max-width:360px){.sgbs-products{gap:15px 7px}.sgbs-add,.sgbs-options{min-width:44px;font-size:11px!important}.sgbs-unit{font-size:10px}.sgbs-product-title{font-size:12px}.sgbs-price{font-size:14px}}
@media(prefers-reduced-motion:reduce){.sgbs-overlay{scroll-behavior:auto}}

/* Overlay always beats any customer-facing fixed headers, checkout/delivery bars and sticky mobile menus. */
body.sgbs-body-open > #sgbs-overlay{position:fixed!important;inset:0!important;display:block;z-index:2147483647!important;transform:none!important;isolation:isolate!important;visibility:visible!important;opacity:1!important}
body.sgbs-body-open > #sgbs-overlay[hidden]{display:none!important}
@supports (height:100dvh){body.sgbs-body-open > #sgbs-overlay{height:100dvh!important}}

/* 1.2.0 – category suggestion and a stable VIEW state for the ADD button. */
.sgbs-category-suggestion{font-weight:650!important;color:#e56d19!important;text-decoration:none!important}
.sgbs-category-suggestion .sgbs-suggest-img{background:#fff1e3;border-color:#ffd8b5;color:#e87821}
.sgbs-category-suggestion .sgbs-suggest-arrow{margin-left:auto;font-size:26px;font-weight:400;color:#ee7b2f;padding-right:8px}
.sgbs-category-suggestion:hover,.sgbs-category-suggestion:active{background:#fff3e5}
.sgbs-add.sgbs-view{background:#f1fff1!important;border-color:#238b34!important;color:#20772c!important}

/* 1.3.0: remove theme/WooCommerce's duplicate View cart links only inside search cards. */
.sgbs-products .sgbs-product a.added_to_cart,
.sgbs-products .sgbs-product a.wc-forward:not(.sgbs-view){display:none!important}
.sgbs-add[aria-busy="true"]{opacity:.72;cursor:progress!important}
.sgbs-retry-search{margin-top:14px;min-height:40px;padding:8px 18px;border:1px solid #e58534;border-radius:22px;background:#fff;color:#9f520f;font:600 14px/1.2 inherit;cursor:pointer}
.sgbs-retry-search:focus-visible{outline:2px solid #ef9234;outline-offset:2px}

/* 1.3.0: screenshot-style recent searches, stored in browser (no backend writes). */
.sgbs-recent{background:#fff;padding:19px 20px 18px;border-bottom:1px solid #eeedf1;overflow:hidden}
.sgbs-recent[hidden],.sgbs-recent [hidden]{display:none!important}
.sgbs-recent-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}
.sgbs-recent-heading{font-size:21px!important;font-weight:750!important;line-height:1.25!important;letter-spacing:-.3px;color:#282930!important;margin:0!important;padding:0!important}
.sgbs-recent-actions{display:flex;align-items:center;gap:15px;flex:none}
.sgbs-recent-edit,.sgbs-recent-clear{appearance:none;cursor:pointer;border:none!important;box-shadow:none!important;background:transparent!important;padding:5px 0!important;color:#1778de!important;font-family:inherit!important;font-weight:700!important;font-size:14px!important;line-height:1.3!important;min-height:30px}
.sgbs-recent-clear{padding-right:15px!important;border-right:1px solid #d7d7da!important}
.sgbs-recent-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 1px 5px}
.sgbs-recent-track::-webkit-scrollbar{display:none}
.sgbs-recent-tile{width:120px;min-width:120px;max-width:120px;position:relative;scroll-snap-align:start}
.sgbs-recent-open{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;color:#303138!important;font:inherit;text-align:left;touch-action:manipulation}
.sgbs-recent-open:focus-visible{outline:2px solid #f68738;outline-offset:3px;border-radius:11px}
.sgbs-recent-thumb{display:flex;width:100%;aspect-ratio:1/1;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e7e7ec;border-radius:16px;background:#f8f8fa;padding:5px}
.sgbs-recent-thumb img{height:100%;width:100%;object-fit:contain;display:block;mix-blend-mode:multiply}
.sgbs-recent-thumb svg{width:32px;height:32px;stroke:#999}
.sgbs-recent-label{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px;margin:7px 3px 0;font-size:13px;font-weight:500;line-height:1.34;word-break:break-word;color:#36363c}
.sgbs-recent-remove{position:absolute;right:-6px;top:-5px;z-index:2;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0!important;border:1px solid #e0e0e0!important;background:#fff!important;border-radius:9px!important;color:#2d2d31!important;font-family:Arial,sans-serif!important;font-weight:400!important;font-size:25px!important;line-height:1!important;box-shadow:0 2px 6px #1a1a1a12!important;cursor:pointer}
@media(max-width:767px){
 .sgbs-recent{padding:16px 15px 15px}
 .sgbs-recent-heading{font-size:19px!important}
 .sgbs-recent-head{margin-bottom:14px}
 .sgbs-recent-track{gap:12px}
 .sgbs-recent-tile{width:106px;min-width:106px;max-width:106px}
 .sgbs-recent-thumb{border-radius:13px}
 .sgbs-recent-label{font-size:12px;min-height:33px}
 .sgbs-recent-actions{gap:10px}
}
@media(max-width:360px){.sgbs-recent-tile{width:96px;min-width:96px;max-width:96px}.sgbs-recent-heading{font-size:17px!important}}

/* 1.5.1: product navigation feedback inside this search dialog only. */
#sgbs-overlay > .sgbs-product-loader{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.38);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease}
#sgbs-overlay > .sgbs-product-loader.sgbs-show{opacity:1;visibility:visible;pointer-events:auto}
#sgbs-overlay .sgbs-product-spinner{width:34px;height:34px;box-sizing:border-box;border:3px solid rgba(255,102,0,.20);border-top-color:#ff6600;border-radius:50%;animation:sgbs-product-loader-spin .65s linear infinite}
#sgbs-overlay .sgbs-product-spinner > .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes sgbs-product-loader-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#sgbs-overlay .sgbs-product-spinner{animation-duration:1.2s}}
