Costco Wholesale Corporation COST came out with decent fourth-quarter fiscal 2021 results. While the top line fell short of the Zacks Consensus Estimate, the bottom line registered second straight beat. Impressively, both the metrics improved from the prior-year period. This operator of membership warehouses maintained its decent comparable sales run. Also, the company’s e-commerce sales continued to showcase strength. Yet, supply chain bottlenecks, and higher labor and freight costs remain concerns.Q4 Earnings & Sales PictureCostco posted adjusted quarterly earnings of $3.90 per share that handily beat the Zacks Consensus Estimate of $3.55. On a reported basis, earnings came in at $3.76 per share that included a 14 cents charge for the write-off of certain information technology assets. The figure rose meaningfully from $3.13 per share posted in the year-ago quarter. This year-over-year increase in the bottom line can be attributed to higher revenues.Total revenues, which include net sales and membership fees, were $62,675 million, up 17.4% from the prior-year quarter. The metric, however, fell short of the Zacks Consensus Estimate of $62,812 million.Costco Wholesale Corporation Price, Consensus and EPS Surprise Costco Wholesale Corporation price-consensus-eps-surprise-chart | Costco Wholesale Corporation QuoteCostco’s growth strategies, improved price management, decent membership trends and increasing penetration of the e-commerce business have been contributing to its performance. For the reported quarter, the company’s e-commerce comparable sales rose 11.2% year over year. Excluding the effect of gasoline prices and foreign exchange, the same exhibited an improvement of 8.9% year over year.Without a doubt, Costco Logistics boosted e-commerce capabilities and facilitates to sell "big and bulky" items. We note that Costco Logistics sales represented 24% of e-commerce sales.Costco informed that categories such as jewelry, home furnishings, sporting goods, pharmacy, electronics and majors were strong.With the prevailing trend of digital transformation in the sector, retailers are rapidly adopting the omni-channel mantra to provide a seamless shopping experience. Costco, which shares space with Dollar Tree DLTR, Dollar General DG and Target TGT in the same industry, is not an exception in this regard. It operates e-commerce sites in the United States, Canada, U.K., Mexico, Korea, Taiwan, Japan and Australia.Delving DeeperCostco’s net sales grew 17.5% year over year to $61,441 million, while membership fees increased 11.6% to $1,234 million for the reported quarter. Comparable sales climbed 15.5% from the prior-year quarter, reflecting an improvement of 14.9%, 19.5%, and 15% in the United States, Canada, and Other International locations, respectively. We note that traffic or shopping frequency rose 9.2% globally and 8.8% in the United States. Average transaction or basket was up 5.8% globally and 5.6% in the United States. Excluding the impact of foreign currency fluctuations and gasoline prices, the company witnessed comparable sales growth of 9.4% for the quarter. The United States, Canada, and Other International locations registered a comparable sales increase of 10.3%, 6.7%, and 7.3%, respectively.Operating income for the quarter increased 17.9% year over year to $2,275 million, while operating margin (as a percentage of total revenues) remained flat at 3.6%.Store UpdateCostco currently operates 817 warehouses, comprising 565 in the United States and Puerto Rico, 105 in Canada, 39 in Mexico, 30 in Japan, 29 in the United Kingdom, 16 in Korea, 14 in Taiwan, 13 in Australia, three in Spain, and one each in Iceland, France as well as China.During fiscal 2021, the company opened 22 warehouses, including two relocations. Management plans to open at least 25 net new units in fiscal 2022, including second warehouses in each of China and France, and its first location in New Zealand.Financial AspectsCostco ended the reported quarter with cash and cash equivalents of $11,258 million, and long-term debt (excluding current portion) of $6,692 million. The company’s shareholders’ equity was $17,564 million, excluding non-controlling interests of $514 million. Management incurred capital expenditures of $1.09 billion during the quarter.Shares of this Zacks Rank #2 (Buy) company have gained 31.3% in the past six months compared with the industry’s 16.7% rally. You can see the complete list of today’s Zacks #1 Rank (Strong Buy) stocks here. Time to Invest in Legal Marijuana If you’re looking for big gains, there couldn’t be a better time to get in on a young industry primed to skyrocket from $17.7 billion back in 2019 to an expected $73.6 billion by 2027. After a clean sweep of 6 election referendums in 5 states, pot is now legal in 36 states plus D.C. Federal legalization is expected soon and that could be a still greater bonanza for investors. Even before the latest wave of legalization, Zacks Investment Research has recommended pot stocks that have shot up as high as +285.9%. You’re invited to check out Zacks’ Marijuana Moneymakers: An Investor’s Guide. It features a timely Watch List of pot stocks and ETFs with exceptional growth potential.Today, Download Marijuana Moneymakers FREE >>Want the latest recommendations from Zacks Investment Research? Today, you can download 7 Best Stocks for the Next 30 Days. Click to get this free report Target Corporation (TGT): Free Stock Analysis Report Dollar General Corporation (DG): Free Stock Analysis Report Dollar Tree, Inc. (DLTR): Free Stock Analysis Report Costco Wholesale Corporation (COST): Free Stock Analysis Report To read this article on Zacks.com click here. Zacks Investment Research