/* 10.8 Storefront — live search dropdown (appended to <body>, positioned under the focused search box). */
.tp8s-sd {
	--ink: #1b1f1c; --muted: #6f7570; --line: #e9e7e2; --soft: #f6f5f2; --accent: #a8432c;
	position: fixed; z-index: 2147483000; box-sizing: border-box; max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px rgba(20,30,22,.18);
	padding: 14px; font-size: 14px; line-height: 1.5; text-align: start;
	display: grid; grid-template-columns: 1fr; gap: 14px;
}
.tp8s-sd:lang(ar), [lang^="ar"] .tp8s-sd, .tp8s-sd[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.tp8s-sd[hidden] { display: none; }
.tp8s-sd *, .tp8s-sd *::before, .tp8s-sd *::after { box-sizing: border-box; }
.tp8s-sd a { color: inherit; text-decoration: none; }
.tp8s-sd h6 { margin: 0 2px 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; font-family: inherit; }
.tp8s-sd.has-side { grid-template-columns: 210px 1fr; }
.tp8s-sd.has-side .tp8s-sd-side { grid-column: 1; grid-row: 1; }
.tp8s-sd.has-side .tp8s-sd-main { grid-column: 2; grid-row: 1; }
.tp8s-sd-sec + .tp8s-sd-sec { margin-top: 12px; }
.tp8s-sd-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
.tp8s-sd-row small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.tp8s-sd-row em { margin-inline-start: auto; font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tp8s-sd-item { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; min-height: 56px; }
.tp8s-sd-item img, .tp8s-sd-noimg { width: 56px; height: 56px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tp8s-sd-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp8s-sd-txt small { color: var(--muted); font: 500 10.5px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.tp8s-sd-txt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
.tp8s-sd-price { font-weight: 600; white-space: nowrap; font-size: 14px; }
.tp8s-sd-price small { font-weight: 400; font-size: .85em; }
.tp8s-sd-price del { color: var(--muted); font-weight: 400; font-size: .85em; }
.tp8s-sd-out { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tp8s-sd-all { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 10px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 600; font-size: 14px; }
.tp8s-sd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp8s-sd-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 13.5px; }
.tp8s-sd-none { color: var(--muted); padding: 6px 4px; }
.tp8s-sd-opt:hover, .tp8s-sd-opt.is-active { background: var(--soft); }
.tp8s-sd-all:hover, .tp8s-sd-all.is-active { background: #000; }
.tp8s-sd.is-narrow { grid-template-columns: 1fr; padding: 12px; border-radius: 14px; }
.tp8s-sd.is-narrow .tp8s-sd-side, .tp8s-sd.is-narrow .tp8s-sd-main { grid-column: 1; grid-row: auto; }
.tp8s-sd.is-narrow .tp8s-sd-side { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tp8s-sd.is-narrow .tp8s-sd-sec + .tp8s-sd-sec { margin-top: 0; }
@media (max-width: 380px) {
	.tp8s-sd-item img, .tp8s-sd-noimg { width: 48px; height: 48px; }
	.tp8s-sd-txt span { font-size: 13px; }
}
