/* TacMat – Recherche instantanée */
.tri-panel {
	position: absolute; z-index: 999999; background: #fff; color: #1d1d1b;
	border: 1px solid #e3e3e0; border-top: 3px solid var(--tri-accent, #52774d);
	border-radius: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
	max-height: 75vh; overflow-y: auto; padding: 8px 0; font-size: 14px; line-height: 1.35;
	text-align: left;
}
.tri-panel[hidden] { display: none; }
.tri-panel.tri-loading { opacity: .7; }
.tri-label {
	display: block; padding: 6px 14px 4px; font-size: 11px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; color: #8a8a85;
}
.tri-cats { padding-bottom: 6px; border-bottom: 1px solid #efefec; margin-bottom: 4px; }
.tri-cat {
	display: inline-block; margin: 2px 0 2px 14px; padding: 4px 10px; border-radius: 14px;
	background: #f2f5f1; color: #1d1d1b !important; text-decoration: none !important; font-size: 13px;
}
.tri-cat small { color: #8a8a85; }
.tri-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.tri-list li { margin: 0 !important; padding: 0 !important; list-style: none; }
.tri-prod {
	display: flex; align-items: center; gap: 12px; padding: 8px 14px;
	color: inherit !important; text-decoration: none !important;
}
.tri-prod img {
	width: 56px; height: 56px; object-fit: contain; flex: none;
	background: #fafaf8; border: 1px solid #efefec; border-radius: 4px;
}
.tri-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tri-title { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tri-sku { font-size: 12px; color: #8a8a85; }
.tri-stock { font-size: 12px; font-weight: 600; }
.tri-stock.ok { color: #2e7d32; }
.tri-stock.wait { color: #b26a00; }
.tri-stock.ko { color: #b3261e; }
.tri-price { flex: none; font-weight: 700; color: var(--tri-accent, #52774d); white-space: nowrap; text-align: right; }
.tri-price del { color: #8a8a85; font-weight: 400; font-size: 12px; display: block; }
.tri-price ins { text-decoration: none; }
.tri-panel mark { background: none; color: var(--tri-accent, #52774d); font-weight: 800; padding: 0; }
.tri-item:hover, .tri-item.tri-active { background: #f2f5f1; }
.tri-cat:hover, .tri-cat.tri-active { background: var(--tri-accent, #52774d); color: #fff !important; }
.tri-cat:hover mark, .tri-cat.tri-active mark, .tri-cat:hover small, .tri-cat.tri-active small { color: #fff; }
.tri-all {
	display: block; margin: 6px 14px 4px; padding: 10px; text-align: center; border-radius: 4px;
	background: var(--tri-accent, #52774d); color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.tri-all:hover, .tri-all.tri-active { filter: brightness(1.1); background: var(--tri-accent, #52774d); }
.tri-empty { padding: 16px 14px; text-align: center; color: #555; }

/* Barre du shortcode [tacmat_recherche] */
.tri-form { display: flex; max-width: 640px; border: 2px solid var(--tri-accent, #52774d); border-radius: 6px; overflow: hidden; background: #fff; }
.tri-form .tri-input { flex: 1; border: 0 !important; padding: 12px 14px; font-size: 16px; outline: none; box-shadow: none !important; margin: 0; }
.tri-form button { border: 0; background: var(--tri-accent, #52774d); color: #fff; padding: 0 18px; cursor: pointer; }

@media (max-width: 639px) {
	.tri-prod img { width: 48px; height: 48px; }
	.tri-panel { max-height: 70vh; }
}
