.kss-widget,
.kss-widget * { box-sizing: border-box; }
.kss-widget { --kss-scroll-thumb: #c68a52; --kss-scroll-track: #f4e7d3; --kss-scroll-size: 6px; position: relative; width: 100%; direction: rtl; font-family: inherit; color: #515251; z-index: 80; }
.kss-widget input,
.kss-widget button,
.kss-widget select,
.kss-widget textarea,
.kss-widget a { font-family: inherit !important; }
.kss-form { position: relative; z-index: 3; margin: 0; }
.kss-search-shell { display: flex; align-items: center; min-height: 58px; padding: 5px; background: #faf7f2; border: 1px solid #eadcc9; border-radius: 18px; transition: border-color .2s, box-shadow .2s, background .2s; }
.kss-search-shell:focus-within { border-color: #c68a52; box-shadow: 0 0 0 3px rgba(198,138,82,.16); background: #fff; }
.kss-search-input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background-color: transparent; color: #515251; font: inherit; font-size: 14px; text-align: right; -webkit-appearance: none; }
.kss-search-input::-webkit-search-cancel-button { display: none; }
.kss-search-input::placeholder { color: #8b827d; opacity: 1; }
.kss-submit { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: #70452b; color: #fff; cursor: pointer; transition: transform .2s, background .2s; }
.kss-submit:hover { background: #7cb8cc; transform: translateY(-1px); }
.kss-submit svg, .kss-mobile-back svg, .kss-trigger-toggle svg, .kss-trigger-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kss-clear { display: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #eadcc9; color: #70452b; line-height: 1; cursor: pointer; }
.kss-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kss-widget.has-value .kss-clear { display: grid; place-items: center; }
.kss-spinner { display: none; width: 20px; height: 20px; margin: 0 8px; border: 2px solid #eadcc9; border-top-color: #70452b; border-radius: 50%; animation: kss-spin .7s linear infinite; }
.kss-widget.is-loading .kss-spinner { display: block; }
.kss-mobile-back { display: none; }
.kss-results { position: absolute; z-index: 2; top: calc(100% + 10px); right: 0; left: 0; max-height: min(650px, 72vh); overflow: auto; overscroll-behavior: contain; padding: 20px; background: #fff; border: 1px solid #eadcc9; border-radius: 18px; box-shadow: 0 22px 55px rgba(112,69,43,.17); scrollbar-width: thin; scrollbar-color: var(--kss-scroll-thumb) var(--kss-scroll-track); scrollbar-gutter: stable; animation: kss-in .2s ease-out; }
.kss-results::-webkit-scrollbar { width: var(--kss-scroll-size); height: var(--kss-scroll-size); }
.kss-results::-webkit-scrollbar-track { background: var(--kss-scroll-track); border-radius: 999px; }
.kss-results::-webkit-scrollbar-thumb { background: var(--kss-scroll-thumb); border-radius: 999px; }
.kss-results::-webkit-scrollbar-thumb:hover { filter: brightness(.92); }
.kss-results[hidden] { display: none !important; }
.kss-section + .kss-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid #f0e8df; }
.kss-section-title { margin: 0 0 12px; color: #70452b; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; }
.kss-categories { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.kss-category { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; color: #515251; text-decoration: none !important; background: #faf7f2; border: 1px solid transparent; border-radius: 14px; transition: border-color .2s, transform .2s, background .2s; }
.kss-category:hover { color: #70452b; background: #fff; border-color: #c68a52; transform: translateY(-2px); }
.kss-category img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border-radius: 11px; background: #fff; }
.kss-category span { min-width: 0; display: flex; flex-direction: column; }
.kss-category-no-image { min-height: 54px; }
.kss-category strong { overflow: hidden; color: inherit; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.kss-category small { color: #928780; font-size: 10px; }
.kss-category svg, .kss-view-all svg { width: 16px; height: 16px; margin-right: auto; fill: none; stroke: currentColor; stroke-width: 2; }
.kss-products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.kss-product { display: flex; min-width: 0; gap: 12px; padding: 10px; border: 1px solid #f0e8df; border-radius: 15px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.kss-product:hover { border-color: #eadcc9; box-shadow: 0 8px 22px rgba(112,69,43,.08); }
.kss-product-image { position: relative; flex: 0 0 84px; width: 84px; height: 84px; overflow: hidden; border-radius: 12px; background: #faf7f2; }
.kss-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kss-discount { position: absolute; top: 5px; right: 5px; min-width: 31px; padding: 3px 5px; border-radius: 8px; background: #ff4d4d; color: #fff; font-size: 10px; font-weight: 700; text-align: center; }
.kss-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kss-product-no-image { min-height: 92px; }
.kss-product-no-image .kss-discount { position: static; align-self: flex-start; margin-bottom: 4px; }
.kss-product-name { display: -webkit-box; overflow: hidden; margin: 1px 0 3px; color: #3f3b38; font-size: 13px; font-weight: 700; line-height: 1.7; text-decoration: none !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kss-product-name:hover { color: #70452b; }
.kss-stock { display: inline-flex; align-items: center; gap: 5px; color: #719773; font-size: 10px; }
.kss-stock i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kss-stock.is-out-of-stock { color: #a3948c; }
.kss-product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.kss-price { min-width: 0; color: #70452b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kss-price del { display: block; color: #aaa; font-size: 9px; font-weight: 400; }
.kss-price ins { text-decoration: none; }
.kss-add-to-cart { flex: 0 0 auto; padding: 7px 9px; border-radius: 9px; background: #70452b; color: #fff !important; font-size: 10px; font-weight: 600; line-height: 1.4; text-decoration: none !important; transition: background .2s, transform .2s; }
.kss-add-to-cart:hover { background: #7cb8cc; transform: translateY(-1px); }
.kss-add-to-cart.loading { opacity: .65; pointer-events: none; }
.kss-add-to-cart.added { background: #9fc8a2; }
.kss-add-to-cart.is-disabled { background: #ded7d1; color: #8c817a !important; pointer-events: none; }
.kss-view-all { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; padding: 12px; border-radius: 12px; background: #faf7f2; color: #70452b; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.kss-view-all:hover { background: #f4e7d3; color: #70452b; }
.kss-view-all svg { margin: 0; transform: rotate(180deg); }
.kss-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.kss-suggestion { padding: 8px 12px; border: 1px solid #eadcc9; border-radius: 999px; background: #faf7f2; color: #70452b; font-family: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
.kss-suggestion:hover { background: #f4e7d3; border-color: #c68a52; }
.kss-state, .kss-hint, .kss-empty { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #8b827d; font-size: 13px; text-align: center; }
.kss-state-loader { width: 18px; height: 18px; border: 2px solid #eadcc9; border-top-color: #70452b; border-radius: 50%; animation: kss-spin .7s linear infinite; }
.kss-empty { min-height: 180px; flex-direction: column; }
.kss-empty > span { color: #c68a52; font-family: inherit; font-size: 52px; line-height: 1; transform: rotate(-15deg); }
.kss-empty strong { color: #515251; font-size: 14px; }
.kss-empty small { font-size: 11px; }
.kss-backdrop { display: none; }
.kss-mobile-trigger-widget { display: none; width: auto; }
.kss-mobile-trigger-widget.is-trigger-open { z-index: 999999; }
.kss-trigger-toggle { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: #70452b; color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.kss-trigger-toggle:hover { background: #7cb8cc; transform: translateY(-1px); }
.kss-trigger-toggle:focus-visible { outline: 2px solid #c68a52; outline-offset: 3px; }
.kss-trigger-panel[hidden], .kss-trigger-backdrop { display: none !important; }
.kss-trigger-panel { position: fixed; z-index: 1000001; top: var(--kss-trigger-top, 70px); right: 0; left: 0; width: 100vw; padding: 10px 12px 12px; background: #fff; border-top: 1px solid #eadcc9; box-shadow: 0 18px 40px rgba(81,82,81,.16); animation: kss-drop-down .22s ease-out; }
.kss-trigger-panel .kss-form, .kss-trigger-panel .kss-results { width: min(720px, 100%); margin-right: auto; margin-left: auto; }
.kss-trigger-panel .kss-results { position: static; max-height: calc(100dvh - var(--kss-trigger-top, 70px) - 86px); margin-top: 10px; padding: 14px; box-shadow: none; }
.kss-trigger-close { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 11px; background: #f4e7d3; color: #70452b; cursor: pointer; }
.kss-trigger-close svg { width: 18px; height: 18px; }
.kss-mobile-trigger-widget.is-trigger-open .kss-trigger-backdrop { position: fixed; z-index: 1000000; inset: 0; display: block !important; background: rgba(30,22,18,.22); backdrop-filter: blur(2px); }
body.kss-lock-scroll { overflow: hidden !important; }
@keyframes kss-spin { to { transform: rotate(360deg); } }
@keyframes kss-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kss-drop-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
	.kss-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.kss-products { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.kss-mobile-trigger-widget { display: inline-flex; align-items: center; justify-content: center; }
	.kss-widget.is-mobile-open { position: fixed; z-index: 999999; inset: 0; width: 100vw; height: 100dvh; padding: 12px; background: #fff; }
	.kss-widget.is-mobile-open .kss-form { position: relative; z-index: 2; }
	.kss-widget.is-mobile-open .kss-search-shell { min-height: 54px; border-radius: 14px; }
	.kss-widget.is-mobile-open .kss-mobile-back { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 0; background: transparent; color: #70452b; }
	.kss-widget.is-mobile-open .kss-mobile-back svg { transform: rotate(180deg); }
	.kss-widget.is-mobile-open .kss-submit { display: none; }
	.kss-widget.is-mobile-open .kss-results { position: absolute; z-index: 1; top: 78px; right: 0; bottom: 0; left: 0; max-height: none; padding: 10px 12px 28px; border: 0; border-radius: 0 !important; box-shadow: none; }
	.kss-widget.is-mobile-open .kss-backdrop { display: block; position: fixed; inset: 0; background: #fff; }
	.kss-categories { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.kss-category { padding: 7px; }
	.kss-category img { width: 38px; height: 38px; flex-basis: 38px; }
	.kss-product { padding: 9px; gap: 10px; }
	.kss-product-image { width: 76px; height: 76px; flex-basis: 76px; }
	.kss-product-bottom { align-items: center; }
	.kss-add-to-cart { padding: 7px 8px; }
}

body.elementor-editor-active .kss-mobile-trigger-widget { display: inline-flex; }

@media (max-width: 390px) {
	.kss-categories { grid-template-columns: 1fr; }
	.kss-product-name { font-size: 12px; }
	.kss-price { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.kss-widget *, .kss-widget *::before, .kss-widget *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
