/* ==========================================================================
   Home page: "Diwali bestsellers" (inc/theme-home-bestsellers.php)
   ========================================================================== */
.hbs-sec {
	--hbs-maroon: #8b1a2b;
	--hbs-ink: #1f1a17;
	--hbs-muted: #7a716a;
	--hbs-line: #e9ddd2;
	background: #fdf9f4;
	padding-top: 48px;
	padding-bottom: 48px;
}
.hbs-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.hbs-eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hbs-maroon);
}
.hbs-title {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
	color: var(--hbs-ink);
}
.hbs-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hbs-pill {
	border: 1px solid var(--hbs-maroon);
	background: #fff;
	color: var(--hbs-maroon);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.hbs-pill:hover { background: #f8ece9; }
.hbs-pill.is-active { background: var(--hbs-maroon); color: #fff; }

.hbs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 18px;
}
.hbs-card[hidden] { display: none; }
.hbs-card { display: flex; flex-direction: column; min-width: 0; }
.hbs-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	overflow: hidden;
	background: #f2e9df;
}
.hbs-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.hbs-card:hover .hbs-media img { transform: scale(1.04); }
.hbs-badge {
	position: absolute;
	top: 9px;
	left: 9px;
	background: #fff;
	color: var(--hbs-ink);
	font-size: 10px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 999px;
	line-height: 1.2;
}
.hbs-badge-dark { left: auto; right: 9px; background: #1f1a17; color: #fff; }
.hbs-name {
	margin: 10px 0 2px;
	font-family: "Playfair Display", serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.hbs-name a { color: var(--hbs-ink); text-decoration: none; }
.hbs-name a:hover { color: var(--hbs-maroon); }
.hbs-size { margin: 0; font-size: 11px; color: var(--hbs-muted); min-height: 16px; }
.hbs-foot {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.hbs-price { font-weight: 700; font-size: 15px; color: var(--hbs-ink); white-space: nowrap; }
.hbs-price small { font-weight: 400; font-size: 11px; color: var(--hbs-muted); }
.hbs-price del { display: none; }
.hbs-btn,
.hbs-btn.button {
	display: inline-block;
	border: 1px solid var(--hbs-maroon);
	background: transparent;
	color: var(--hbs-maroon) !important;
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.hbs-btn:hover { background: var(--hbs-maroon); color: #fff !important; }
.hbs-btn.loading { opacity: .6; pointer-events: none; }
.hbs-btn.is-added { background: var(--hbs-maroon); color: #fff !important; }
.hbs-card .added_to_cart { display: none; }
.hbs-empty { text-align: center; color: var(--hbs-muted); padding: 30px 0; }
.hbs-more { text-align: center; margin-top: 30px; }
.hbs-all {
	display: inline-block;
	background: var(--hbs-maroon);
	color: #fff !important;
	border-radius: 999px;
	padding: 11px 26px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .15s ease;
}
.hbs-all:hover { background: #6e1422; }

@media (max-width: 991px) {
	.hbs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.hbs-sec { padding-top: 32px; padding-bottom: 32px; }
	.hbs-head { align-items: flex-start; }
	.hbs-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
	.hbs-pills::-webkit-scrollbar { display: none; }
	.hbs-pill { white-space: nowrap; }
	.hbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.hbs-foot { flex-wrap: wrap; }
	.hbs-btn { width: 100%; text-align: center; }
}
