/* AI Chatbot Woo – Product cards in chat */

.ai-chatbot-woo-cards {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 0 8px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.ai-chatbot-woo-cards::-webkit-scrollbar {
	height: 6px;
}

.ai-chatbot-woo-cards::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

.ai-chatbot-woo-card {
	flex: 0 0 auto;
	width: 160px;
	min-height: 200px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-chatbot-woo-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ai-chatbot-woo-card__image-wrap {
	position: relative;
	width: 100%;
	height: 120px;
	background: #f5f5f5;
	overflow: hidden;
}

.ai-chatbot-woo-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ai-chatbot-woo-card__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	background: #e53935;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}

.ai-chatbot-woo-card__body {
	padding: 10px;
}

.ai-chatbot-woo-card__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ai-chatbot-woo-card__title a {
	color: inherit;
	text-decoration: none;
}

.ai-chatbot-woo-card__title a:hover {
	text-decoration: underline;
}

.ai-chatbot-woo-card__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--ai-chatbot-primary, #2563eb);
	margin-bottom: 4px;
}

.ai-chatbot-woo-card__price del {
	color: #999;
	font-weight: 400;
	font-size: 12px;
	margin-right: 4px;
}

.ai-chatbot-woo-card__desc {
	font-size: 11px;
	color: #666;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 8px;
}

.ai-chatbot-woo-card__stock {
	font-size: 11px;
	color: #2e7d32;
	margin-bottom: 8px;
}

.ai-chatbot-woo-card__stock.out {
	color: #c62828;
}

.ai-chatbot-woo-card__rating {
	font-size: 11px;
	color: #f9a825;
	margin-bottom: 8px;
}

.ai-chatbot-woo-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ai-chatbot-woo-card__btn {
	display: inline-block;
	font-size: 11px;
	padding: 6px 10px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s;
	border: none;
	cursor: pointer;
}

.ai-chatbot-woo-card__btn:hover {
	opacity: 0.9;
}

.ai-chatbot-woo-card__btn--primary {
	background: var(--ai-chatbot-primary, #2563eb);
	color: #fff;
}

.ai-chatbot-woo-card__btn--secondary {
	background: #e5e7eb;
	color: #374151;
}

.ai-chatbot-msg-bot .ai-chatbot-woo-msg-text {
	margin-bottom: 8px;
}

.ai-chatbot-woo-cards {
	animation: aiChatbotWooFadeIn 0.3s ease;
}

@keyframes aiChatbotWooFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
