A warranty guarantees repair or replacement if a product fails within a specific period. Understand the types, terms, and your legal rights.