/*
Theme Name: hungphat
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.text-hotline{
	white-space: nowrap
}
#billing_first_name_field{
	width:100% !important
}
.entry-content.single-page{
	padding-top:0px !important
}
.footer-2{
	border-top:0px !important;
	background-color:#161d27 !important;
	background-repeat:no-repeat !important
}
.badge-inner.callout-new-bg.is-small.new-bubble{
	position: relative;
    top: -263px;
    left: -120px;
}
span.onsale{
	color:#111 !important
}
.product-images.woocommerce-product-gallery{
	border:1px solid #dedede !important
}
.shop-page-title.category-page-title.page-title{
	background:#f5f5f5 !important
}
ul.tabs.product-tabs>li>a{
	font-size:1.15em;
}
.shop-page-title.category-page-title.page-title nav a,.page-title.shop-page-title.product-page-title nav a{
	font-weight:700;
}
.page-title.shop-page-title.product-page-title{
	background:#f5f5f5 !important
}
.page-title.shop-page-title.product-page-title .page-title-inner{
	padding-top:0px !important
}
.shop-page-title.category-page-title.page-title .page-title-inner{
	padding-top:0px !important
}
ul.sub-menu.nav-dropdown.nav-dropdown-simple{
	left:0px !important;
	padding-top:2px !important;
	padding-bottom:2px !important
}
li.cat-item>a{
	font-weight:600;
}
li.cat-item a, .recent-blog-posts-li a{
	color:#111;
}
.post_comments{
	display:none;
}
ul.product_list_widget .product-title{
	color:#111;
}
.section.tintuc{
	padding-bottom:10px !important
}
.footer-2{
	    border-top: 0px !important;
	    padding-top: 90px !important;
}
.footer-2  .col-inner ul li {
    margin-left: 0em;
}
#mega-menu-title {

    font-family: "Quicksand",sans-serif !important;

}
.product_meta{
	font-size:1em !important;
}
.secondary.on-sale{
	
	background:url(https://webhungphat.top/wp-content/uploads/2020/05/icon-saleoff.png) no-repeat top center !important;
background-size: cover !important;	
}
.product-small .callout.badge.badge-circle{
	float:right;
}
.product-small .badge-container.absolute{
    margin-top:10px !important;
	top:auto;
	right:10px;
	bottom:10px
}
.product-small .secondary.on-sale span{
	color:#222 !important
}
secondary.on-sale span{
	color:#222 !important
}
.product-small.box .price-wrapper{
	height:40px !important;
}
.product-small.box .price-wrapper .price{
	padding-right:60px;
}
.product-small.box .name.product-title{
	margin-bottom:12px
}
ins span.amount{
	color:#dd0615;
	font-size: 1.25em;

}
.product-small.box ins{
    margin-top: 5px;
    display: block;
}
.product-small.box .name.product-title a{
	color:#444;
	font-weight:600;
}
.product-small.box{
	border:1px solid #dedede;
}
.product-small.box .box-text.box-text-products{
	padding-bottom:10px;
	padding-left:12px;
	padding-right:12px;
}
.btmain:before{
    content: '';
    display: block;
    line-height: 40px;
    background: #ffabac;
    width: 15px;
    height: 30px;
    position: absolute;
    top: 8px;
    right: 0;
    margin-right: -20px;
    transform: skewX(13deg);
    border-radius: 0 5px 0 0;
}
.btmain:after{
        content: '';
    display: block;
    line-height: 40px;
    background: #dc2913;
    width: 22px;
    height: 40px;
    position: absolute;
    top: -1px;
    right: 0;
    margin-right: -15px;
    transform: skewX(21deg);
    border-radius: 0 5px 0 0;
}
.titlemain{
	border-bottom: 2px solid #dc2913;
}
.btmain{
	margin:0px !important;
	position:relative;
	z-index:11
}
.bxemthem{
	margin:0px !important;
	float: right;
}
.sectionkm .row.row-small{
	max-width:1150px !important
}
.sectionkm .row.row-small .col.medium-3.small-6{
	padding:0 5px 5px
}
.colslider{
	padding-left:250px !important;
	margin-top:5px !important
}
.colslider .col.sliderright{
	padding-left:5px !important
}
.colslider .col.sliderright .img.has-hover{
	margin-bottom:5px !important
}
.colslider .col.sliderright .img.has-hover.imgpad0{
	margin-bottom:0px !important
}
#top-bar ul.nav-left li i{
	margin-right:6px;
	color:#dd0615
}
#top-bar .cart-item .header-cart-link.is-small{
	background:#dd0615;
	padding-right:15px;
	padding-left:15px;
	font-weight:700;
}
#mega-menu-wrap {
  
    background: #dd0615 !important;
    max-width: 250px !important;
}
#mega_menu li a{
	color:#222;
	font-weight:500;
}
#mega_menu>li>a>i{
	width:20px !important
}
.sf-vertical.sf-arrows li:hover>.sf-with-ul:after {
    border-left-color: #dd0615 !important; 
}
ul.nav.header-nav.header-bottom-nav>li{
	padding:0px 12px !important
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	#top-bar ul.mobile-nav li a i{
		margin-right:10px !important
	}
	.colslider {
    padding-left: 0px!important;
    margin-top: 5px!important;
	}
	.titlemain .col.medium-8{
		float:left;
	}
	.titlemain .col.medium-4{
		float:right;
	}
.badge-inner.callout-new-bg.is-small.new-bubble {
    top: -230px;
    left: -90px;
}
	ul.mobile-nav li a i{
		margin-right:10px !important
	}
}
<?php
// Add custom Theme Functions here
//Thay đổi logo cho trang đăng nhập
add_action( 'login_enqueue_scripts', 'giuseart_login_enqueue_scripts' );
function giuseart_login_enqueue_scripts(){
echo '<style type="text/css" media="screen">';
echo '#login h1 a
{
background-image:url(wp-content/uploads/2020/05/1221.png);
;';
echo '</style>';
}
//Thay đổi url ảnh logo
add_filter( 'login_headerurl', 'giuseart_login_headerurl');
function giuseart_login_headerurl(){
return "https://hungphatads.com/"; // duong dan vao website cua ban
}
function tp_custom_logo() { ?>
    <style type="text/css">
		.login #login_error{    box-shadow: 0 30px 80px rgba(37, 37, 37, 0.1) !important;    border-radius: 15px !important;}
		.login .message{border-left: 4px solid #ec1f27 !important; border-radius: 15px;box-shadow: 0 30px 80px rgba(37, 37, 37, 0.1) !important;}
		.login #nav a:hover, .login #backtoblog a:hover{color: #eb1f27 !important;}
		.login .button-primary {background: #eb1f27 !important;border-color: #eb1f27 #eb1f27 #eb1f27 !important;box-shadow: 0 1px 0 #eb1f27 !important;border-radius: 20px !important;color: #fff !importanttext-decoration: none;text-shadow: none !important;}
		input[type=checkbox]:checked:before{color: #eb1f27;}
		.login input[type=text]:focus, .login input[type=password]:focus, input[type=email]:focus{    box-shadow: 0 0 2px rgb(255, 255, 255) !important;}
   		.login h1 a{    background-size: 415px !important;     height: 225px !important; width: 409px !important; }
#login {width: 450px !important;}
		.login form {box-shadow: 0 30px 80px rgba(37, 37, 37, 0.1) !important;border-radius: 15px;    padding: 40px !important;}.login form .input, .login form input[type=checkbox], .login input[type=text] {background: #f5f5f5;border-radius: 30px;border: none;box-shadow: none;}
		@media only screen and (max-width: 480px) {
  #login {width: 320px !important;}
}
    </style>
<?php }
add_action('login_enqueue_scripts', 'tp_custom_logo');
function remove_footer_admin () {
 
echo 'Cung cấp bởi <a href="http://hungphatads.com" target="_blank">Hưng Phát Ads</a> | Giao diện sử dụng tại : <a href="https://hungphatads.com/" target="_blank">Theme Hưng Phát Ads </a></p>';
 
}
add_filter('admin_footer_text', 'remove_footer_admin');