/* FABTRACK Smart Search */
.fts { --fts-accent: #0d9488; position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; margin: 0; box-sizing: border-box; }
.fts *, .fts *::before, .fts *::after { box-sizing: border-box; }
.fts .fts-input { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 0 48px 0 16px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; font: inherit; font-size: 15px; line-height: 1.2; box-shadow: none; -webkit-appearance: none; appearance: none; }
.fts .fts-input, .fts .fts-input:focus { color: #0f172a; background: #fff; }
.fts .fts-input:focus { outline: none; border-color: var(--fts-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fts-accent) 22%, transparent); }
.fts .fts-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fts .fts-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--fts-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fts .fts-btn svg { fill: currentColor; }
.fts.is-loading .fts-btn { opacity: .7; }

.fts .fts-drop { position: absolute; z-index: 99999; left: 0; right: 0; top: calc(100% + 6px); min-width: 280px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); text-align: left; }
.fts .fts-drop[hidden] { display: none; }
.fts .fts-drop.is-up { top: auto; bottom: calc(100% + 6px); }
/* some themes (Kadence) add their own search icon inside any search form: ours already has one */
.fts .kadence-search-icon-wrap, .fts .search-submit, .fts .search-icon { display: none !important; }
.fts .fts-head { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }

.fts .fts-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; cursor: pointer; }
.fts .fts-item:hover, .fts .fts-item.is-active, .fts .fts-all.is-active, .fts .fts-chip.is-active { background: #f1f5f9; }
.fts .fts-img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.fts .fts-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fts .fts-title { font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fts .fts-mark { background: transparent; color: var(--fts-accent); font-weight: 700; padding: 0; }
.fts .fts-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #64748b; }
.fts .fts-out { padding: 0 8px; border-radius: 999px; background: #e2e8f0; color: #334155; font-weight: 600; }
.fts .fts-price { flex: 0 0 auto; font-size: 13px; font-weight: 600; text-align: right; color: #0f172a; }
.fts .fts-price del { display: block; font-weight: 400; color: #94a3b8; font-size: 12px; }
.fts .fts-price ins { background: transparent; text-decoration: none; }
.fts .fts-item--cat { justify-content: space-between; font-size: 14px; font-weight: 500; }
.fts .fts-name { flex: 1 1 auto; min-width: 0; }
.fts .fts-count { padding: 0 8px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 12px; }

/* product row + quick-add panel (PRO) */
.fts .fts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-radius: 10px; }
.fts .fts-row .fts-item { flex: 1 1 0; min-width: 0; }
.fts .fts-cart { flex: 0 0 auto; width: 36px; height: 36px; margin-right: 4px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #475569; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fts .fts-cart svg { fill: currentColor; }
.fts .fts-cart:hover, .fts .fts-cart.is-on { background: var(--fts-accent); border-color: var(--fts-accent); color: #fff; }
.fts .fts-panel { flex: 0 0 calc(100% - 72px); box-sizing: border-box; margin: 0 6px 6px 66px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.fts .fts-panel[hidden] { display: none; }
.fts .fts-desc { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: #475569; }
.fts .fts-buy { display: flex; align-items: center; gap: 8px; }
.fts .fts-qty { display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; overflow: hidden; }
.fts .fts-qty__b { width: 30px; height: 34px; padding: 0; border: 0; background: transparent; color: #0f172a; font-size: 18px; line-height: 1; cursor: pointer; }
.fts .fts-qty__n { width: 40px; height: 34px; padding: 0; border: 0; background: transparent; color: #0f172a; text-align: center; font: inherit; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.fts .fts-qty__n::-webkit-outer-spin-button, .fts .fts-qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fts .fts-add { flex: 1 1 auto; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fts-accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.fts .fts-add:disabled { opacity: .7; cursor: default; }
.fts .fts-msg { margin: 6px 0 0; font-size: 12px; color: #b91c1c; }
.fts .fts-msg:empty { display: none; }
.fts .fts-viewcart { color: var(--fts-accent); font-weight: 600; text-decoration: none; }

.fts .fts-all { display: block; margin-top: 4px; padding: 10px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--fts-accent); text-decoration: none; border-top: 1px solid #f1f5f9; }
.fts .fts-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.fts .fts-chip { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #0f172a; font-size: 13px; cursor: pointer; }

.fts .fts-none { padding: 14px 12px; text-align: center; }
.fts .fts-none__t { margin: 0; padding: 8px 12px; font-size: 14px; color: #475569; }
.fts .fts-wa { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 999px; background: #25d366; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
	.fts { max-width: none; }
	.fts .fts-drop { position: fixed; left: 8px; right: 8px; top: 64px; max-height: 70vh; min-width: 0; }
	.fts .fts-input { font-size: 16px; } /* stops iPhones zooming in */
	.fts .fts-panel { flex-basis: calc(100% - 12px); margin-left: 6px; }
}
