/*
Theme Name: Lebanon Post Card
Author: webvade
Description: Your description goes here
Version: 1.6.25
Template: porto

This is the child theme for Porto theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

.breadcrumb {
    text-shadow: none;
    text-transform: uppercase;
    line-height: inherit;
    font-weight: bolder;
    font-size: 17px!important;
    color: darkred!important;
}




/* Generic title RTL fix if Arabic is detected */
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.product_title {
  unicode-bidi: plaintext;
  direction: inherit;
}

/* Force RTL for Arabic letters in WooCommerce product titles */
.woocommerce-loop-product__title:has(:lang(ar)),
.product_title:has(:lang(ar)) {
  direction: rtl !important;
  text-align: right !important;
}


function exclude_category_from_widget($args) {
    // Replace 354 with the ID of your "Featured Products" category
    $exclude_id = 354;

    if (isset($args['exclude'])) {
        $args['exclude'] .= ',' . $exclude_id;
    } else {
        $args['exclude'] = $exclude_id;
    }

    return $args;
}
add_filter('woocommerce_product_categories_widget_args', 'exclude_category_from_widget');
