v3.26.3
Significant Accounting Policies - Additional Information (Details)
$ in Thousands
12 Months Ended
Aug. 29, 2026
USD ($)
store
shares
Aug. 30, 2025
USD ($)
shares
Aug. 31, 2024
USD ($)
shares
Significant Accounting Policies [Line Items]      
Number of stores with commercial sales program | store 6,443    
Description of reporting periods The Company’s fiscal year consists of 52 or 53 weeks ending on the last Saturday in August. Fiscal 2026 and 2025 represented 52 weeks. Fiscal 2024 represented 53 weeks.    
Cash and cash equivalents $ 326,115 $ 271,803  
Allowances for credit losses 15,300 11,700  
Inventory LIFO Reserves 275,000 83,000  
IEEPA refunds 127,600    
Reduction to cost of sales for the refunds related to products previously sold 96,000    
Reduction to inventory for the portion of refunds related to unsold inventory 31,600    
Goodwill 302,645 302,645  
Self insurance reserve $ 308,500 268,800  
Renewal options and lease term The leases have varying terms and expire at various dates through 2046. Real estate operating leases typically have initial terms between one and 20 years, and real estate finance leases typically have terms of 20 or more years, with multiple optional renewal periods of one to five years each.    
Measure of income tax benefit for uncertain income tax positions more than 50%    
Advertising expense, net of vendor promotional funds $ 101,200 109,500 $ 102,700
Vendor promotional funds, which reduced advertising expense $ 70,400 65,700 $ 67,800
Limited warranty period, minimum period (Days) 30 days    
Amortization expenses $ 1,200 0  
Location, Statement of Financial Position, Balance [Axis]: us-gaap:OtherAssetsCurrent      
Significant Accounting Policies [Line Items]      
Capitalized cloud-based software implementation costs 4,100 1,600  
Location, Statement of Financial Position, Balance [Axis]: us-gaap:OtherAssetsNoncurrent      
Significant Accounting Policies [Line Items]      
Capitalized cloud-based software implementation costs $ 48,000 29,600  
Cash Equivalents      
Significant Accounting Policies [Line Items]      
Maturity period of investments 90 days or less    
Settlement term of credit and debit card transaction less than five days    
Credit and debit card receivables included within cash and cash equivalents $ 108,300 $ 105,000  
Supplier Concentration Risk | Cost of Goods and Service Benchmark | One Individual Vendor      
Significant Accounting Policies [Line Items]      
Concentration risk percentage 14.00%    
Stock Options      
Significant Accounting Policies [Line Items]      
Anti-dilutive shares excluded from the computation of earnings per share | shares 175,819 115,475 118,771
Minimum | Building      
Significant Accounting Policies [Line Items]      
Estimated useful lives 40 years    
Minimum | Building Improvements      
Significant Accounting Policies [Line Items]      
Estimated useful lives 5 years    
Minimum | Equipment      
Significant Accounting Policies [Line Items]      
Estimated useful lives 3 years    
Minimum | Vehicles      
Significant Accounting Policies [Line Items]      
Finance lease term 1 year    
Maximum | Building      
Significant Accounting Policies [Line Items]      
Estimated useful lives 50 years    
Maximum | Building Improvements      
Significant Accounting Policies [Line Items]      
Estimated useful lives 15 years    
Maximum | Equipment      
Significant Accounting Policies [Line Items]      
Estimated useful lives 10 years    
Maximum | Vehicles      
Significant Accounting Policies [Line Items]      
Finance lease term 5 years    
Variable Interest Entity Not Primary Beneficiary | Location, Statement of Financial Position, Balance [Axis]: us-gaap:OtherAssetsNoncurrent      
Significant Accounting Policies [Line Items]      
Maximum exposure to losses amount $ 53,100 $ 60,800  
One class of similar products | Maximum | Product Concentration Risk | Revenue Benchmark      
Significant Accounting Policies [Line Items]      
Concentration risk percentage 14.00%    
Stores in the United States Including Puerto Rico      
Significant Accounting Policies [Line Items]      
Number of stores | store 6,863    
Mexico      
Significant Accounting Policies [Line Items]      
Number of stores | store 1,001    
Brazil      
Significant Accounting Policies [Line Items]      
Number of stores | store 167    
Non-US      
Significant Accounting Policies [Line Items]      
Cash and cash equivalents $ 113,600 $ 79,100