/* Hide Size attribute from product pages and listings */

/* Hide size swatch/option */
.swatch-attribute[data-attribute-code="size"],
.swatch-attribute.size,
div[data-attribute-code="size"],
.product-options-bottom .swatch-attribute[data-attribute-code="size"],
.product-options-bottom .field.size,
.product-options-wrapper .swatch-attribute[data-attribute-code="size"] {
    display: none !important;
}

/* Hide size label and input in product options */
.product-options-wrapper label[for*="size"],
.product-options-wrapper input[id*="size"],
.product-options-wrapper select[id*="size"],
.product.attribute.size,
.product-info-main .swatch-attribute.size,
.product-attribute-size {
    display: none !important;
}

/* Hide size in product details table */
.product-attribute-table tr[data-attribute-code="size"],
table.data tbody tr:has(td:contains("Size")),
.product-attributes .row:has(label:contains("Size")) {
    display: none !important;
}

/* Hide from sidebar filter */
.filter-options-item[data-attribute-code="size"],
.filter-options-item.size,
.filter-options .item:has(a[href*="size"]) {
    display: none !important;
}

/* Hide from layered navigation */
.layered-navigation .filter-options-item:has(.attribute-code-size),
.filter[data-attribute="size"],
.filter-size {
    display: none !important;
}

/* Generic selectors for different themes */
[data-role="swatch-option"][data-option-type="size"],
.option-size,
.field-size,
.size-field {
    display: none !important;
}
