/* Bluespot Helper — asistent produse (chip + drawer). Paletă: #1e73be / #e3e8ee / #137a3a. */

.bs-helper-chip {
	/* ascuns până când JS îl arată (la 10s după load) */
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: #1e73be;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(20, 45, 80, .28);
	transition: transform .15s ease, box-shadow .15s ease;
}
.bs-helper-chip.bsh-show {
	opacity: 1;
	transform: none;
	pointer-events: auto;
	transition: opacity .35s ease, transform .35s ease, box-shadow .15s ease;
	animation: bshPulse 1.8s ease .5s 2;
}
@keyframes bshPulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(20, 45, 80, .28); }
	50% { box-shadow: 0 4px 14px rgba(20, 45, 80, .28), 0 0 0 9px rgba(30, 115, 190, .16); }
}
.bs-helper-chip.bsh-show:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 45, 80, .34); color: #fff; }
.bs-helper-chip svg { flex: 0 0 auto; }

html.bsh-open { overflow: hidden; }

#bs-helper-root .bsh-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(15, 25, 40, .45);
}
#bs-helper-root .bsh-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99991;
	width: 560px;
	max-width: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 30px rgba(15, 25, 40, .22);
	animation: bshSlide .22s ease;
}
@keyframes bshSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.bsh-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #e3e8ee;
}
.bsh-head-t { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.bsh-dots { display: flex; gap: 5px; margin-left: auto; align-items: center; }
.bsh-stepno { font-size: 11.5px; font-weight: 700; color: #9aa3af; margin-right: 4px; }
.bsh-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e3e8ee; }
.bsh-dots i.on { background: #1e73be; }
.bsh-close {
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 2px 6px;
}
.bsh-close:hover { color: #1a1a1a; }

.bsh-body { flex: 1; overflow-y: auto; padding: 20px 18px 28px; -webkit-overflow-scrolling: touch; }

.bsh-q { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; }
.bsh-sub { font-weight: 500; color: #6b7280; font-size: 13px; }
.bsh-hint { font-size: 12.5px; color: #6b7280; margin: 10px 0 0; }

.bsh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bsh-chip-opt {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	border: 1.5px solid #e3e8ee;
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .12s, background .12s;
	min-height: 44px;
}
.bsh-chip-opt:hover { border-color: #1e73be; }
.bsh-chip-opt.sel { border-color: #1e73be; background: #f7fbff; color: #1e73be; }
.bsh-chip-opt.big { flex: 1 1 calc(50% - 8px); justify-content: flex-start; padding: 14px; font-size: 15px; }
.bsh-chip-opt.sm { padding: 7px 11px; font-size: 13px; min-height: 36px; }
#bsh-bsugg { margin-top: 12px; }
.bsh-ic { font-size: 18px; }

.bsh-inline { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.bsh-input {
	width: 100%;
	max-width: 240px;
	padding: 10px 12px;
	border: 1.5px solid #e3e8ee;
	border-radius: 10px;
	font-size: 15px;
	color: #1a1a1a;
	background: #fff;
}
.bsh-input:focus { outline: none; border-color: #1e73be; }
.bsh-ta { max-width: 100%; resize: vertical; font-family: inherit; }
.bsh-unit { color: #6b7280; font-size: 14px; font-weight: 600; }

.bsh-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.bsh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 1.5px solid transparent;
	min-height: 44px;
	text-decoration: none;
}
.bsh-btn.main { background: #1e73be; color: #fff; border-color: #1e73be; }
.bsh-btn.main:hover { background: #185f9d; color: #fff; }
.bsh-btn.ghost { background: #fff; color: #334155; border-color: #e3e8ee; }
.bsh-btn.ghost:hover { border-color: #1e73be; color: #1e73be; }

.bsh-loading, .bsh-err { padding: 30px 10px; text-align: center; color: #6b7280; font-size: 14.5px; }
.bsh-err { color: #b42318; }

.bsh-note, .bsh-warn {
	padding: 11px 13px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.45;
	margin: 0 0 14px;
}
.bsh-note { background: #f7fbff; border: 1px solid #d6e6f5; color: #334155; }
.bsh-note a { font-weight: 700; color: #1e73be; }
.bsh-warn { background: #fff8e6; border: 1px solid #f0dfae; color: #7a5b00; }

.bsh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bsh-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #e3e8ee;
	border-radius: 12px;
	padding: 10px;
	background: #fff;
	text-decoration: none;
	transition: border-color .12s, box-shadow .12s;
	min-width: 0;
}
.bsh-card:hover { border-color: #1e73be; box-shadow: 0 3px 12px rgba(20, 45, 80, .1); }
.bsh-img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f5f7fa; }
.bsh-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bsh-t { font-size: 13.5px; font-weight: 700; color: #1a1a1a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsh-cat { font-size: 11.5px; color: #6b7280; }
.bsh-price { font-size: 13px; font-weight: 700; color: #1e73be; }
.bsh-approx { font-weight: 500; color: #6b7280; }
.bsh-novat { font-weight: 500; color: #9aa3af; font-size: 11px; }
.bsh-total { font-size: 11.5px; font-weight: 600; color: #334155; }
.bsh-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.bsh-bdg { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; line-height: 1.5; }
.bsh-bdg.ok { background: #e8f5ec; color: #137a3a; }
.bsh-bdg.outlet { background: #fff1e4; color: #b45309; }
.bsh-bdg.top { background: #eaf2fb; color: #1e73be; }
.bsh-bdg.exp { background: #f3edfb; color: #6b3fa0; }
#bsh-date { max-width: 175px; }

.bsh-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #f5f7fa;
	border-radius: 10px;
}
.bsh-summary > span {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	background: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 999px;
	padding: 4px 10px;
}
.bsh-edit {
	margin-left: auto;
	border: 0;
	background: none;
	color: #1e73be;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 6px;
}
.bsh-edit:hover { text-decoration: underline; }

.bsh-fixqty {
	display: inline-block;
	margin-top: 6px;
	border: 1.5px solid #b45309;
	background: #fff;
	color: #b45309;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 8px;
	padding: 5px 10px;
	cursor: pointer;
}
.bsh-fixqty:hover { background: #b45309; color: #fff; }

.bsh-more-wrap { text-align: center; margin-top: 14px; }

.bsh-cats { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 16px; font-size: 12.5px; }
.bsh-cats span { color: #6b7280; font-weight: 600; }
.bsh-cats a { color: #1e73be; font-weight: 700; text-decoration: none; }
.bsh-cats a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.bs-helper-chip.bsh-show { animation: none; transition: none; }
	#bs-helper-root .bsh-panel { animation: none; }
}

.bsh-xsell {
	display: block;
	margin-top: 16px;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1.5px dashed #1e73be;
	background: #f7fbff;
	color: #334155;
	font-size: 13.5px;
	line-height: 1.45;
	text-decoration: none;
}
.bsh-xsell:hover { background: #eaf4fd; color: #334155; }
.bsh-xsell strong { color: #1e73be; }

@media (max-width: 900px) {
	#bs-helper-root .bsh-panel { width: 480px; }
}

@media (max-width: 560px) {
	.bs-helper-chip { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px; font-size: 13px; }
	#bs-helper-root .bsh-panel {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 92dvh;
		height: 92dvh;
		border-radius: 16px 16px 0 0;
		animation: bshUp .22s ease;
	}
	@keyframes bshUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.bsh-body { padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
	.bsh-chip-opt.big { flex-basis: 100%; }
	.bsh-grid { gap: 10px; }
	.bsh-q { font-size: 16px; }
}

@media (max-width: 380px) {
	.bsh-grid { grid-template-columns: 1fr; }
	.bsh-img { aspect-ratio: 16 / 10; }
}
