{% comment %}
  JSON-LD Offer "price" — always the SKU selling price in Shopify (major units).

  Accepts:
  - variant: {Object} required

  This is what the customer pays (variant.price). Not compare-at, not MAP metafield.

  Truncated to 2 decimals (e.g. cents precision for feeds).
{% endcomment %}
{%- liquid
  assign schema_price = variant.price | divided_by: 100.0
  assign schema_price_cents_trunc = schema_price | times: 100.0 | floor
  assign schema_price = schema_price_cents_trunc | divided_by: 100.0
-%}
{{- schema_price | json -}}
