/* ==========================================================================
   1. STANDARD TEXT LINKS (STRIPPED & CLEANED)
   ========================================================================== */

/* Targets all links EXCEPT those that are buttons or have button classes */
a:not(.wp-element-button):not(.button):not(.btn):not([class*="button"]) {
    color: inherit !important;          /* Keeps text the same color as the body text */
    text-decoration: none !important;    /* Removes underlines */
    background: transparent !important;  /* Removes highlight/background boxes */
    box-shadow: none !important;         /* Removes "fake" modern underlines */
    border: none !important;             /* Removes any border-based underlines */
    outline: none !important;            /* Removes focus outline rings */
    transition: none !important;         /* Disables any hover color fade transitions */
    -webkit-tap-highlight-color: transparent !important; /* Removes mobile tap flash */
}

/* Ensures the same 'no-highlight' rules apply when hovering, active, or focused */
a:not(.wp-element-button):not(.button):not(.btn):not([class*="button"]):hover,
a:not(.wp-element-button):not(.button):not(.btn):not([class*="button"]):active,
a:not(.wp-element-button):not(.button):not(.btn):not([class*="button"]):focus {
    color: inherit !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* ==========================================================================
   2. TARGETED CORNER ROUNDING (NO SIZE BLOWOUTS)
   ========================================================================= */

/* Strips corner rules off global grid structures to instantly fix layout sizes */
.woocommerce ul.products li.product a,
.woocommerce-loop-product__link {
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Applies the rounded corners ONLY to the actual picture files and physical image box frames */
.post-type-archive-product img,
.tax-product_cat img,
.woocommerce shop img,
.woocommerce-page shop img,
.woocommerce ul.products li.product img,
.woocommerce-loop-product__link img,
.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img,
.product-thumbnail img,
.attachment-woocommerce_thumbnail,
.attachment-woocommerce_single,
.wp-post-image,
.woo-entry-image,
.woo-entry-image-main,
.inner-product-img,
.product_image_wrapper img {
    border-radius: 12px !important;    /* Clean, balanced corner curves */
    overflow: hidden !important;        /* Keeps the image contained inside the curve */
    max-width: 100% !important;         /* Keeps original bounding widths */
    height: auto !important;            /* Restores normal layout ratios */
}

/* Keeps secondary product gallery thumbnails matching nicely */
.woocommerce div.product div.images .flex-control-thumbs img {
    border-radius: 6px !important;
}
