<?php 
/**
 * Custom Style for Th Shop Mania Theme.
 * @package     Th Shop Mania
 * @author      ThemeHunk
 * @copyright   Copyright (c) 2021, Th Shop Mania
 * @since       Th Shop Mania 1.0.0
 */
function th_shop_mania_custom_style(){
$th_shop_mania_style=""; 
/*********************/
// Theme Color Option
/*********************/ 
$th_shop_mania_theme_clr = esc_html(get_theme_mod('th_shop_mania_theme_clr','#008000'));

$th_shop_mania_style.=".thunk-icon-market a:hover,.th-shop-mania-menu li a:hover, .th-shop-mania-menu .current-menu-item a,.th-shop-mania-menu li ul.sub-menu li a:hover,.thunk-product .th-add-to-cart a,.thunk-product .th-add-to-cart a:hover,.woocommerce ul.products li.product .price ins,.thunk-product .thunk-compare a:hover,.woocommerce ul.cart_list li .woocommerce-Price-amount,.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,.th-shop-mania-load-more button,article.thunk-post-article .thunk-readmore.button, .comment-respond [type='submit'],.btn-main-header,header .taiowc-icon:hover .th-icon,header .taiowc-content:hover .th-icon,header .taiowc-content:hover .taiowc-total,.woocommerce ul.cart_list li .woocommerce-Price-amount, .woocommerce ul.product_list_widget li .woocommerce-Price-amount,.wc-block-grid__product ins,.th-post-categ a,.footer-copyright a,a:hover, #open-above-menu.amaz-store-menu > li > a:hover, #open-above-menu.amaz-store-menu li a:hover, .thunk-cat-tab .tab-link li a.active, .thunk-cat-tab .tab-link li a:hover, .thunk-breadcrumb li a:hover,.woocommerce-breadcrumb a:hover,.thunk-single-product-summary-wrap .product_meta span a:hover{color:{$th_shop_mania_theme_clr};}";

$th_shop_mania_style.="#move-to-top .th-mtt__btn,article.thunk-post-article .thunk-readmore.button:hover, [type='submit']:hover,.nav-links .page-numbers.current, .nav-links .page-numbers:hover,.tagcloud a:hover, .thunk-tags-wrapper a:hover,#searchform [type='submit']:hover, .widget_product_search button[type='submit']:hover,.cart-contents .count-item,.woocommerce .return-to-shop a:hover,.woocommerce span.onsale,.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current,.single_add_to_cart_button.button.alt, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit, .woocommerce button.button, .woocommerce input.button, .woocommerce div.product form.cart .button,.thunk-single-product-summary-wrap.single span.onsale,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce .widget_price_filter .th-shop-mania-widget-content .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .th-shop-mania-widget-content .ui-slider .ui-slider-handle,.menu-close-btn:hover:before, .menu-close-btn:hover:after, .cart-close-btn:hover:after, .cart-close-btn:hover:before,.woocommerce .woocommerce-error .button, .woocommerce .woocommerce-info .button, .woocommerce .woocommerce-message .button,.woocommerce .woocommerce-error .button:hover, .woocommerce .woocommerce-info .button:hover, .woocommerce .woocommerce-message .button:hover,.thunk-quik a.opn-quick-view-text,.cat-toggle,.th-shop-mania-load-more button:hover,.ea-simple-product-slider .elemento-owl-slider-common-secript .owl-dots button.owl-dot:hover span, .ea-simple-product-slider .elemento-owl-slider-common-secript .owl-dots button.owl-dot.active span,.woocommerce #alm-quick-view-modal .alm-qv-image-slider .flex-control-paging li a.flex-active,.woocommerce .ea-simple-product-slider .elemento-owl-slider-common-secript .owl-dots button.owl-dot:hover span, .woocommerce .ea-simple-product-slider .elemento-owl-slider-common-secript .owl-dots button.owl-dot.active span,.wp-block-button__link,.wc-block-components-product-sale-badge,.theme-button,.elemento_quick_view_model .elemento-quickview-wrapper > div .elemento-addons-sale,.theme-th-shop-mania .tickera_table input.tickera-button,.theme-th-shop-mania input[type='submit'].dokan-btn-theme, .theme-th-shop-mania a.dokan-btn-theme, .theme-th-shop-mania .dokan-btn-theme,.cross-sells-product .wp-block-button .wp-block-button__link,.woocommerce-cart .wp-block-button__link,.woocommerce-cart add_to_cart_button, .wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.comment-list .reply a,.wc-block-components-totals-coupon__button,.woocommerce .thnew-popup .thnew-qv-sale-badge span{background:{$th_shop_mania_theme_clr};}
";
$th_shop_mania_style.="#searchform [type='submit']:hover, .widget_product_search button[type='submit']:hover,.thunk-product .th-add-to-cart a,.th-shop-mania-pre-loader .th-loader,.th-shop-mania-load-more button,article.thunk-post-article .thunk-readmore.button, .comment-respond [type='submit'],.btn-main-header,.wc-block-components-product-sale-badge,.wc-block-grid__product-onsale,.theme-th-shop-mania input[type='submit'].dokan-btn-theme, .theme-th-shop-mania a.dokan-btn-theme, .theme-th-shop-mania .dokan-btn-theme{border-color:{$th_shop_mania_theme_clr};}";


$th_shop_mania_style.="#move-to-top .th-mtt__ring--progress{stroke:{$th_shop_mania_theme_clr};}";

$th_shop_mania_style .= '.thnew-popup-overlay{cursor:url("' . TH_SHOP_MANIA_THEME_URI . '/svg/close.svg"),pointer;}';

$th_shop_mania_style.=".loader{
	border-right-color:{$th_shop_mania_theme_clr};
	border-bottom-color:{$th_shop_mania_theme_clr};
	border-left-color:{$th_shop_mania_theme_clr};}";

if (is_front_page() && !is_home()) {
	$th_shop_mania_style.=".page-head{display: none}";
}

return $th_shop_mania_style;
}

function th_shop_mania_block_editor_custom_style(){
$th_shop_mania_theme_clr = esc_html(get_theme_mod('th_shop_mania_theme_clr','#008000'));
$th_shop_mania_block_editor_style = '';
$th_shop_mania_block_editor_style.=".wp-block-button__link{
    background: {$th_shop_mania_theme_clr};
}";
$th_shop_mania_block_editor_style.=".wc-block-grid__product ins{
    color: {$th_shop_mania_theme_clr};
}"; 

return $th_shop_mania_block_editor_style;
}
