/* Top Products Box (Bestsellers)
   ----------------------------------------------------------------- */
.tpb {
	--tpb-orange: #f88e15;
	--tpb-title: #3f3f3f;
	--tpb-price: #326e97;
	--tpb-divider: #e2e2e2;
	--tpb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

	position: relative;
	width: 100%;
	font-family: var(--tpb-font);
	margin: 0 0 1.5rem;
}

/* Tab ----------------------------------------------------------------- */
.tpb__tab {
	position: relative;
	z-index: 2;
	display: inline-block;
	margin-left: 14px;
	margin-bottom: -2px;            /* sit on top of the box border */
	background: var(--tpb-orange);
	border-radius: 10px 10px 0 0;
	padding: 11px 30px 13px;
}
.tpb__tab span {
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1;
}
/* convex "ear" that curves the tab into the box's top border */
.tpb__tab::after {
	content: "";
	position: absolute;
	right: -16px;
	bottom: 0;
	width: 16px;
	height: 18px;
	background: radial-gradient(circle at 100% 0, transparent 16px, var(--tpb-orange) 16px);
}

/* Box ----------------------------------------------------------------- */
.tpb__box {
	position: relative;
	z-index: 1;
	border: 2px solid var(--tpb-orange);
	border-radius: 0 16px 16px 16px;
	background: #fff;
	padding: 8px 10px;
}

/* Grid + items -------------------------------------------------------- */
.tpb__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.tpb-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	min-width: 0;
}
/* vertical divider between cells (inset, like the mock) */
.tpb-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	bottom: 16px;
	width: 1px;
	background: var(--tpb-divider);
}
.tpb-item:first-child::before { display: none; }

.tpb-item__thumb {
	flex: 0 0 auto;
	display: block;
	width: 64px;
	height: 64px;
}
.tpb-item__thumb .tpb-item__img,
.tpb-item__thumb img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	display: block;
}

.tpb-item__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.tpb-item__title {
	color: var(--tpb-title);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}
a.tpb-item__title:hover { color: var(--tpb-orange); }

.tpb-item__price {
	margin-top: 6px;
	color: var(--tpb-price);
	font-size: 13px;
	font-weight: 400;
}
