.wcpt-wrapper {
	direction: rtl;
	font-family: inherit;
	width: 100%;
	overflow-x: auto;
}

.wcpt-tabs-nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin-bottom: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 6px;
}

.wcpt-tabs-nav::-webkit-scrollbar {
	height: 5px;
}

.wcpt-tabs-nav::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 10px;
}

.wcpt-tab-btn {
	background: #e0342b;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 14px;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.wcpt-tab-btn.active,
.wcpt-tab-btn:hover {
	opacity: 1;
}

.wcpt-tab-content {
	display: none;
}

.wcpt-tab-content.active {
	display: block;
}

.wcpt-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 13px;
}

.wcpt-table thead th {
	text-align: center;
	color: #444;
	font-weight: 600;
	padding: 12px 8px;
	border-bottom: 2px solid #eee;
	white-space: nowrap;
}

.wcpt-table tbody td {
	text-align: center;
	vertical-align: middle;
	padding: 10px 8px;
	border-bottom: 1px solid #f0f0f0;
}

.wcpt-col-image img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.wcpt-col-barcode svg {
	max-width: 120px;
	height: auto;
}

.wcpt-change {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	font-size: 13px;
}

.wcpt-change.up {
	color: #1e9e57;
}

.wcpt-change.down {
	color: #d92d20;
}

.wcpt-change.flat {
	color: #888;
}

.wcpt-col-chart canvas {
	width: 140px;
	height: 50px;
}

.wcpt-stock {
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	display: inline-block;
}

.wcpt-stock.in-stock {
	color: #1e9e57;
	background: rgba(30, 158, 87, 0.1);
}

.wcpt-stock.out-stock {
	color: #d92d20;
	background: rgba(217, 45, 32, 0.1);
}

.wcpt-col-price {
	font-weight: 600;
	white-space: nowrap;
}

.wcpt-view-btn {
	background: #e0342b;
	color: #fff !important;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.wcpt-view-btn:hover {
	opacity: 0.85;
	color: #fff;
}

@media (max-width: 768px) {
	.wcpt-table thead {
		display: none;
	}

	.wcpt-table {
		display: block;
		width: 100%;
	}

	.wcpt-table tbody {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 12px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding: 4px 4px 12px;
		scrollbar-width: thin;
	}

	.wcpt-table tbody::-webkit-scrollbar {
		height: 5px;
	}

	.wcpt-table tbody::-webkit-scrollbar-thumb {
		background: #ddd;
		border-radius: 10px;
	}

	.wcpt-table tr {
		display: block;
		flex: 0 0 auto;
		width: 250px;
		scroll-snap-align: start;
		margin-bottom: 0;
		border: 1px solid #eee;
		border-radius: 10px;
		padding: 10px 0;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
		background: #fff;
	}

	.wcpt-table td {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		text-align: left;
		border-bottom: 1px solid #f5f5f5;
		padding: 10px 14px;
	}

	.wcpt-table td:last-child {
		border-bottom: none;
	}

	.wcpt-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #666;
		font-size: 12px;
		flex-shrink: 0;
		margin-left: 10px;
	}

	.wcpt-col-image {
		justify-content: flex-end !important;
	}

	.wcpt-col-image img {
		width: 50px;
		height: 50px;
	}

	.wcpt-col-barcode svg {
		max-width: 100px;
	}

	.wcpt-col-chart canvas {
		width: 110px;
		height: 40px;
	}

	.wcpt-col-action {
		justify-content: center !important;
	}

	.wcpt-col-action::before {
		display: none;
	}

	.wcpt-view-btn {
		width: 100%;
		text-align: center;
	}
}


