This study examines the challenges of two warehouses operating under Last-In-First-Out (LIFO) order policies in inventory management, including unpredictable demand patterns, the decay of Weibull distribution, and the need to reduce carbon emissions by adopting green technology. The research addresses various shortage circumstances using advanced inventory modeling techniques to manage ramp-type demand and Weibull distribution deterioration. Additionally, it aims to reduce carbon emissions by incorporating environmentally friendly technologies. By combining advanced inventory modeling with green technology, businesses can effectively manage unpredictable market situations while actively contributing to the global initiative of reducing carbon emissions. It also takes into account various potential backlog scenarios. The proposed model also considers no, partial, and complete shortages and their combinations. This research aims to determine the optimal cycle duration for retailers to increase their total profit while simultaneously investing in green technology. A numerical illustration is provided, and a sensitivity analysis is performed in MATLAB on the optimal solutions concerning parameters to demonstrate applicability.