/* Quick Deal ⚡ সেকশন */
.cl-qd {
	--qd-brand: #1683b5;
	--qd-brand-2: #2596be;
	--qd-red: #f0475e;
	border: 1.5px solid var(--qd-brand);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
/* শুধু মোবাইলে: সেকশন স্ক্রিনের দুই কিনারা পর্যন্ত টানা (ব্যবহারকারীর কথায়, ২০২৬-১১-০৭) */
@media (max-width: 768px) {
	.cl-qd {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
}
.cl-qd-title {
	margin: 0;
	padding: 14px 18px;
	background: var(--qd-brand);
	color: #fff;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
.cl-qd-tabs {
	display: flex;
	gap: 4px;
	padding: 8px 14px 0;
	background: var(--qd-brand-2);
	border-top: 1px solid rgba(255, 255, 255, .25);
	overflow-x: auto;
	scrollbar-width: none;
}
.cl-qd-tabs::-webkit-scrollbar { display: none; }
.cl-qd-tab {
	flex: none;
	border: 0;
	min-height: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	padding: 10px 16px;
	border-radius: 6px 6px 0 0;
	cursor: pointer;
	white-space: nowrap;
}
.cl-qd-tab:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.cl-qd-tab.is-active { background: #fff; color: #222; }

.cl-qd-body { position: relative; padding: 16px 14px 18px; }
.cl-qd-pane[hidden] { display: none; }
.cl-qd-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5 * 12px) / 6);
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.cl-qd-track::-webkit-scrollbar { display: none; }

.cl-qd-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	color: #222 !important;
	text-decoration: none;
	min-width: 0;
}
.cl-qd-img {
	width: 100%;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	margin-bottom: 6px;
}
.cl-qd-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform .2s;
}
.cl-qd-card:hover .cl-qd-img img { transform: scale(1.04); }
.cl-qd-name {
	width: 100%;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* সেল দাম আর MRP পাশাপাশি */
.cl-qd-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cl-qd-price b { color: var(--qd-brand); font-size: 20px; font-weight: 700; line-height: 1.1; }
.cl-qd-price b small { font-size: 13px; font-weight: 600; margin-right: 1px; }
.cl-qd-reg { color: #999; font-size: 14px; }
/* ছাড়ের ব্যাজ ছবির উপরের বাঁ কোণে */
.cl-qd-img { position: relative; }
.cl-qd-off {
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 1;
	font-style: normal;
	background: var(--qd-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 4px;
}
/* ট্যাবের শেষে "See All" কার্ড */
.cl-qd-seeall {
	justify-content: center;
	gap: 10px;
	border: 1.5px dashed #b9d9e6;
	border-radius: 10px;
	background: #f5fafc;
	aspect-ratio: 1;
	align-self: start;
	transition: background .15s, border-color .15s;
}
.cl-qd-seeall:hover { background: #eaf5fa; border-color: var(--qd-brand); }
.cl-qd-seeall-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--qd-brand);
	color: #fff;
	display: grid;
	place-items: center;
	transition: transform .15s;
}
.cl-qd-seeall:hover .cl-qd-seeall-icon { transform: translateX(3px); }
.cl-qd-seeall-icon svg { width: 22px; height: 22px; }
.cl-qd-seeall-text { font-size: 15px; font-weight: 700; color: var(--qd-brand); }

/* খালি ট্যাবের অফার-ব্যানার (প্রথম ঘর) */
.cl-qd-promo {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 18px 14px;
	border-radius: 10px;
	color: #2b2b3a;
	min-width: 0;
	background: linear-gradient(135deg, #e4e9ff, #f1e6ff);
}
.cl-qd-promo.is-freeship { background: linear-gradient(135deg, #cdf7f1, #d6f5fb); }
.cl-qd-promo.is-combo { background: linear-gradient(135deg, #fbefc4, #ffd6cc); }
.cl-qd-promo strong { font-size: 22px; font-weight: 800; color: var(--qd-brand); line-height: 1.1; }
.cl-qd-promo span { font-size: 13px; line-height: 1.35; }
.cl-qd-promo small { font-size: 12px; font-weight: 700; color: var(--qd-brand); margin-top: 4px; }
.cl-qd-promo .cl-qd-promo-badge {
	align-self: flex-start;
	background: var(--qd-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
}

.cl-qd-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 80px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	display: none;
	place-items: center;
	cursor: pointer;
}
.cl-qd-arrow svg { width: 22px; height: 22px; }
.cl-qd-prev { left: 0; border-radius: 0 6px 6px 0; }
.cl-qd-next { right: 0; border-radius: 6px 0 0 6px; }
.cl-qd.cl-can-prev .cl-qd-prev,
.cl-qd.cl-can-next .cl-qd-next { display: grid; }

@media (max-width: 1024px) {
	.cl-qd-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
}
@media (max-width: 768px) {
	.cl-qd-title { font-size: 18px; padding: 11px 12px; }
	.cl-qd-tabs { padding: 6px 8px 0; }
	.cl-qd-body { padding-left: 10px; padding-right: 10px; }
	.cl-qd-tab { font-size: 13px; padding: 8px 12px; }
	.cl-qd-body { padding: 12px 10px 14px; }
	.cl-qd-track { grid-auto-columns: calc((100% - 2 * 10px) / 2.4); gap: 10px; }
	.cl-qd-name { font-size: 13px; }
	.cl-qd-price { gap: 5px; }
	.cl-qd-price b { font-size: 16px; }
	.cl-qd-reg { font-size: 12px; }
	.cl-qd-off { font-size: 10.5px; padding: 3px 5px; }
	.cl-qd-seeall-icon { width: 40px; height: 40px; }
	.cl-qd-seeall-text { font-size: 14px; }
	.cl-qd-promo { padding: 12px 10px; }
	.cl-qd-promo strong { font-size: 18px; }
	.cl-qd-promo span { font-size: 12px; }
	.cl-qd-arrow { display: none !important; }
}
