OUT of STOCK Product still showing ADD TO CART Button

Hi, I am facing Shopify Product Page Problem. Link Shared Below.
The Very First Variant is, Size 36 and Burgundy-Black Color has ZERO Quantity. All other Variants have available quantities.

But When I open the product page it still shows ADD TO CART Button for that specific variant. And It’s not even working for all of the other available variants. The Quantity Selector is also not working.
Everything is working on the Fresh DEBUT theme. But on My ARTESIAN Theme, it is not working.
https://safirafashion.com/collections/day-wear/products/bezen-polka-dot-dress

Here is the Code of My Product-Form.Liquid File.

{% if section.settings.show_payment_button %}
{% assign show_payment_button = true %}
{% elsif block.settings.show_payment_button %}
{% assign show_payment_button = true %}
{% elsif show_payment_button_quickshop %}
{% assign show_payment_button = true %}
{% else %}
{% assign show_payment_button = false %}
{% endif %}

{% assign variant = product.selected_or_first_available_variant %}

{% form 'product', product %}

{% if product.options.size > 1 %}

{% elsif product.options.size == 1 and product.variants.size > 1 or product.options.size == 1 and product.options[0] != "Title" %}

{% else %}

{% endif %}

{% if settings.product_form_style == "swatches" and product.variants.size > 1 or settings.product_form_style == "swatches" and product.options[0] != "Title" %}

{% for option in product.options %}
{% render 'product-swatch',
option: option,
product: product
%}
{% endfor %}

{% endif %}

{% if settings.cart_action == 'reload_page' %}

{% elsif settings.cart_action == 'redirect_checkout' %}

{% endif %}

{% if product.available %}
{% if settings.display_product_quantity %}

{% endif %}

{% if settings.display_inventory_left %}
{% if variant.inventory_management != blank and variant.inventory_quantity > 0 %}

{% capture items_left_text %}
{% if variant.inventory_quantity == 1 %}
{{ 'products.product.items_left_count.one' | t }}
{% else %}
{{ 'products.product.items_left_count.other' | t }}
{% endif %}
{% endcapture %}
{% if variant.inventory_quantity <= settings.inventory_threshold %}
{{ variant.inventory_quantity }} {{ items_left_text }}
{% endif %}

{% endif %}
{% endif %}
{% endif %}

{% capture add_to_cart_label %}{% if collection_handles contains 'pre-order' %}{{ 'collections.general.pre_order' | t }}{% else %}{% if product.available %}{{ 'products.product.add_to_cart' | t }}{% else %}{{ 'products.product.sold_out' | t }}{% assign isDisabled = true %}{% endif %}{% endif %}{% endcapture %}

{% if show_payment_button %}
{{ form | payment_button }}
{% endif %}

{% unless template contains 'index' or show_payment_button %}

{% if settings.cart_action == 'reload_page' %}

{% elsif settings.cart_action == 'redirect_checkout' %}

{% endif %}

{% capture add_to_cart_label %}{% if collection_handles contains 'pre-order' %}{{ 'collections.general.pre_order' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endif %}{% endcapture %}

{% endunless %}

{% endform %}