Yes, you can still deduct the gift, but the deduction itself is capped at $25 per recipient per year, no matter how much you actually spent. If you buy a client a $100 gift, you can only deduct $25 of it on your business tax return. The remaining $75 simply isn't deductible, but you don't need to do anything special with it other than not include it in your expense total.
This $25 limit is a long-standing IRS rule for business gifts and it hasn't changed in decades, so you can count on it staying roughly where it is. It applies per person, per year, which means if you give the same client two gifts over the course of the year, you add those costs together and the combined deductible amount still tops out at $25 total, not $25 each.
There are a few costs that don't count toward that $25 cap, which is good news. Incidental costs like engraving, gift wrapping, and shipping generally don't count against the limit, as long as they don't add substantial value to the gift itself. So if you spend $25 on the gift and another $10 on nice wrapping and shipping, you may be able to deduct the full $35, provided the wrapping and shipping are clearly incidental.
There's also an important distinction between a gift and other types of deductible spending. If instead of giving a physical item you take a client to dinner, that falls under the meals deduction rules, not the gift rules, and is governed by a different percentage-based limit. Promotional items that cost $4 or less, have your business name permanently imprinted on them, and are widely distributed, like branded pens or notepads, are also excluded from the gift limit entirely and are usually fully deductible.
The rule gets a little more nuanced with gifts to a company rather than an individual. If you give a gift intended for a whole office or team to use or enjoy together, such as a gift basket left in a break room, the IRS generally treats that differently than a gift targeted at one specific decision-maker, and in practice the $25 cap is usually applied per individual who clearly benefits from it. When gifts are given to a married couple and both spouses are involved with your business dealings, each spouse can sometimes be treated as a separate recipient, but this is a gray area where it pays to be conservative.
For record-keeping, keep the receipt, note who the gift was for, and why it was given, since the IRS wants to see a clear business purpose. If you're spending significant amounts on client gifts regularly, it's worth talking to a tax professional or CPA about whether some of that spending might be better categorized as marketing, meals, or entertainment, since those categories sometimes offer more favorable deduction treatment than the strict $25 gift cap.