document.addEventListener("DOMContentLoaded", function() {
// Find the variant select dropdown
const variantSelect = document.querySelector('[name="variant-option-Size-select"]');
if (variantSelect) {
// Loop through all options and replace "Select Size"
for (let i = 0; i < variantSelect.options.length; i++) {
if (variantSelect.options[i].textContent.trim() === "Select Size") {
variantSelect.options[i].textContent = "Select Image Size";
}
}
// Also fix the data-selected-value attribute for consistency
const wrapper = variantSelect.closest('.variant-select-wrapper');
if (wrapper && wrapper.dataset.selectedValue === "Select Size") {
wrapper.dataset.selectedValue = "Select Image Size";
}
}
});