/* Override theme capitalization only for product-name elements. */
body .me-home .me-home-card__title,
body .me-home .me-home-card__title a,
body.woocommerce .product_title,
body .products .woocommerce-loop-product__title,
body .products .woocommerce-loop-product__title a,
body .products .product-name,
body .products .product-name a,
body .products .product-title,
body .products .product-title a,
body .products .name,
body .products .name a,
body .products-list .product-name,
body .products-list .product-name a,
body .products-list .product-title,
body .products-list .product-title a,
body .bwp-single-product .product_title,
body .widget_shopping_cart .product-name,
body .widget_shopping_cart .product-name a,
body .woocommerce-cart-form .product-name a {
    text-transform: none !important;
}

/* Catalog cards: same reading scale as the home. Never target the single-product H1. */
body .products .woocommerce-loop-product__title,
body .products .woocommerce-loop-product__title a,
body .products .product-name,
body .products .product-name a,
body .products .product-title,
body .products .product-title a,
body .products .name,
body .products .name a,
body .products-list .product-name,
body .products-list .product-name a,
body .products-list .product-title,
body .products-list .product-title a,
body .me-home h3.me-home-card__title,
body .me-home h3.me-home-card__title a {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #20262d !important;
    letter-spacing: normal !important;
    overflow-wrap: anywhere;
}
body .me-home h3.me-home-card__title { min-height: 4.5em; }
@media (max-width: 767px) {
    body .products .woocommerce-loop-product__title,
    body .products .woocommerce-loop-product__title a,
    body .products .product-name,
    body .products .product-name a,
    body .products .product-title,
    body .products .product-title a,
    body .products .name,
    body .products .name a,
    body .products-list .product-name,
    body .products-list .product-name a,
    body .products-list .product-title,
    body .products-list .product-title a,
    body .me-home h3.me-home-card__title,
    body .me-home h3.me-home-card__title a { font-size: 15px !important; }
}

/* Universal custom product cards: no category, taxonomy or catalog-profile condition.
   Increase specificity to beat the theme's compact archive rules, even after CSS combining. */
body .products .milestilos-product-card h3.product-title.milestilos-product-title,
body .products .milestilos-product-card h3.product-title.milestilos-product-title a,
body .products-list .milestilos-product-card h3.product-title.milestilos-product-title,
body .products-list .milestilos-product-card h3.product-title.milestilos-product-title a {
 font-size:16px!important;line-height:1.5!important;font-weight:500!important;
 letter-spacing:normal!important;color:#20262d!important;text-transform:none!important;
 overflow-wrap:anywhere;
}
body .products .milestilos-product-card h3.product-title.milestilos-product-title,
body .products-list .milestilos-product-card h3.product-title.milestilos-product-title {
 height:72px!important;min-height:72px!important;max-height:none!important;
 margin:0!important;
}
body .products .milestilos-product-card h3.product-title.milestilos-product-title a,
body .products-list .milestilos-product-card h3.product-title.milestilos-product-title a {
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;
}
/* Only adapt fixed tracks when the custom theme profile actually uses them.
   The typography above applies independently of that profile. */
body .products .milestilos-product-card .products-content.milestilos-product-content,
body .products-list .milestilos-product-card .products-content.milestilos-product-content {
 grid-template-rows:minmax(16px,auto) 72px minmax(25px,auto) minmax(18px,auto) minmax(24px,auto) minmax(18px,auto)!important;
 row-gap:4px!important;
}
@media(max-width:767px){
 body .products .milestilos-product-card h3.product-title.milestilos-product-title,
 body .products .milestilos-product-card h3.product-title.milestilos-product-title a,
 body .products-list .milestilos-product-card h3.product-title.milestilos-product-title,
 body .products-list .milestilos-product-card h3.product-title.milestilos-product-title a{font-size:15px!important}
 body .products .milestilos-product-card h3.product-title.milestilos-product-title,
 body .products-list .milestilos-product-card h3.product-title.milestilos-product-title{height:67.5px!important;min-height:67.5px!important}
 body .products .milestilos-product-card .products-content.milestilos-product-content,
 body .products-list .milestilos-product-card .products-content.milestilos-product-content{grid-template-rows:minmax(16px,auto) 67.5px minmax(25px,auto) minmax(18px,auto) minmax(24px,auto) minmax(18px,auto)!important}
}
