/*
Theme Name: Gia công cơ khí
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
#rev_slider_1_1_wrapper .lark::after {
    background: rgb(187 185 185 / 74%);
}
#rev_slider_1_1_wrapper .lark::before{
   content: none;}
.header-top {background:url() left no-repeat; background-size:cover; background-color:#f5f5f5 !important}
#top-bar .fa-solid {color:#FF0000 !important;}
#main {background:#f9f9f9;}
.section-title-normal span {border:none; background:url(https://code.demo-thietkeweb.com/PTlemidia/wp-content/uploads/2026/08/heading.png) left no-repeat ; color:#fff; padding:5px 10px 5px 10px; min-width:40%; font-size:18px;}
.section-title-normal {border:none; background:#fff;}
.section-title-container {margin-bottom:0;}
.product-small.box {background:#fff; border:2px solid #ddd;}
.testimonial-meta {color:#e95c1d;}
.product-small .box-text {padding-bottom:0 0 10px 0;}
.add-to-cart-button a {font-size:12px !important; background-color:transparent !important; color:#FF0000 !important; border-radius:7px !important}
img.size-full.alignnone {margin-bottom:0;}
.blog-tc .post-title {height:40px; overflow:hidden; margin-bottom:10px;}
.post-meta {margin-bottom:10px;}
.widget a {color:#000 !important;}
.widget a:hover {color:#e95c1d !important;}
.widget .is-divider {display:none;}
span.widget-title {display:block; background:#003c9c; color:#fff; padding:14px; text-align:center; margin-bottom:10px;}
.recent-blog-posts-li a {font-size:13px;}
.section-title a {margin-right:10px; font-weight:500; font-size:13px;}
.header-button-1 a {
    background: url(https://code.webhth.com/ace/wp-content/uploads/2024/09/icon-user.png) 19px center no-repeat;
    padding: 0 25px 0 44px;
}
.ux-search-submit,
.search-field {
height: 45px !important;
border-radius: 100px !important;
    padding-left: 20px !important;
}
.ux-search-submit {
    width: 60px;
    background: none !important;
    box-shadow: 0 0 0 !important;
    text-shadow: 0 0 0 !important;
    border: none;
position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
.ux-search-submit i {
color: #333;
}
.searchform {
    min-width: 350px;
    border-radius: 100px;
    overflow: hidden;
    padding: 10px;
}
.col.post-item .button,
.but-no-bo.secondary  {
    border-radius: 6px !important;
}
.logo-slider2 .ux-logo img {
border: 1px solid #e1e1e1;
}
.list-footer ul {
    list-style: none;
}
.list-footer ul li {
    background: url(https://code.webhth.com/ace/wp-content/uploads/2024/09/ft1.png) 0 4px no-repeat;
    padding-left: 34px;
    margin: 0 0 10px;
    line-height: 30px;
}
.list-footer ul li:nth-child(2) {
    background: url(https://code.webhth.com/ace/wp-content/uploads/2024/09/ft2.png) 0 4px no-repeat;
}
.list-footer ul li:nth-child(4) {
    background: url(https://code.webhth.com/ace/wp-content/uploads/2024/09/ft3.png) 0 4px no-repeat;
}
.list-footer ul li:nth-child(5) {
    background: url(https://code.webhth.com/ace/wp-content/uploads/2024/09/ft4.png) 0 4px no-repeat;
}
.product-small.box .add-to-cart-button .primary {
 	border-radius: 6px !important;
}
.product-small.box .product-title {
	padding:  0 10px;
}
.product-thumbnails img {
		height: 80px;
}
.content-row .col.large-9 {
	padding-left: 0;
	border: none !important;
}

.transparent #logo img {background:none !important; box-shadow:none !important; max-height:90px !important;}
.header-main .nav > li > a {margin:0 10px 0 0 !important;}

.header-button span:before {content: "\f007"; font-family: FontAwesome; padding-right:7px}
.dark .nav > li.active > a, .dark .nav > li > a.active, .nav-dark .nav > li.active > a, .nav-dark .nav > li.current > a, .nav-dark .nav > li > a.active {font-weight:700; color: #ffffff !important;}
.box-category .overlay {
	background: #003C9C !important;
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
    height: 70px;
}
.box-category {border-radius:3px;}

.box-category:hover .overlay {
	background: linear-gradient(180deg,rgba(0, 60, 156, 1) 0%, rgba(255, 255, 255, 0) 100%) !important;
	height: 100%;
}
.box-category .box-text {top:0;}
.box-category:hover .box-text {
	background-color: transparent !important;
}
.box-category h5 {
	font-size: 16px;
}
.bor-pic img {border-radius:12px;}
.is-outline.primary {background:transparent !important; color:#003c9c !important}
.is-outline.primary:hover {color:#fff !important; background:#003c9c !important}
.button.xemthem-but span:after {content: "\f061"; font-family: FontAwesome; padding-left:7px;}
.vcttext p {margin-bottom:5px;}
.vcttext span {border:1px solid #F35704; padding:7px 20px; border-radius:99px;}
.hotline-col .col-inner {border-radius:15px 15px 15px 60px;}
.section-title a {color:#999999 !important;}
.product_type_simple.is-outline {
	color: #F35704 !important;
    border: 1px solid;
    font-weight: normal;
    font-size: 14px;
    padding: 2px 15px 0;
}
.product_type_simple.is-outline:hover {background: #FEE300 !important;
    color: #fff !important;
    border: none;
    font-weight: bold; background:#F35704 !important;
 }
.product-small.box { border:1px solid #ddd !important}
.product-small.box .product-title a {font-weight: 500; color: #003C9C; font-weight:600}
.product-small.box .price {color:#FF0000; margin: 6px 0}
.duan-tc .box-text {bottom:0px; display:none}
.duan-tc .box-image {border-radius:15px;}
.duan-tc .box-blog-post:hover .box-text {display:block;}
.duan-tc .overlay {background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(18, 107, 244, 0.89) 100%);}

.box-blog-post .post-title a {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 600;
}
.box-blog-post:hover .post-title a {color:var(-primary-color);}
.wpcf7-spinner {display:none}
#footer .form-flat input:not([type=submit]) {background:#fff;}
#footer input[type='submit']:not(.is-form) {background-color:#F03800;}
.breadcrumbs {font-size:25px;}
.header:not(.transparent) .header-nav-main.nav > li > a {color:#fff !important}
.duan-tc .box-blog-post:hover .post-title a {color:#fff;}
.home-icon-wrap{
    position:relative;
    display:inline-block;
    width:18px;
    height:18px;
    vertical-align:middle;
}

.home-icon-wrap img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    transition:opacity .25s ease;
}

.home-fill{
    opacity:0;
}

.nav > li:hover .home-fill,
.nav > li.current-menu-item .home-fill,
.nav > li.current_page_item .home-fill{
    opacity:1;
}

.nav > li:hover .home-outline,
.nav > li.current-menu-item .home-outline,
.nav > li.current_page_item .home-outline{
    opacity:0;
}
.hotline-link,
.hotline-link span{
    color:#003c9c !important;
    transition:color .3s ease;
}

.hotline-link:hover,
.hotline-link:hover span{
    color:#28a745 !important;
}
.relatedcat {
    padding: 0 20px 8px;
}
.entry-meta .byline {
    display: none;
}
/* Giá thường */
.price > .woocommerce-Price-amount,
.price > span.woocommerce-Price-amount {
    color: #FF0000 !important;
    font-weight: 600 !important;
}

/* Giá gốc */
.price del,
.price del .woocommerce-Price-amount {
    color: #333 !important;
    font-weight: 400 !important;
}

/* Giá giảm */
.price ins,
.price ins .woocommerce-Price-amount {
    color: #FF0000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.cart {
    display: none !important;
}
#footer .menu a,
#footer .textwidget a,
#footer p a,
#footer li a {
    color: #fff !important; /* đổi thành màu hiện tại của chữ */
}

#footer .menu a:hover,
#footer .textwidget a:hover,
#footer p a:hover,
#footer li a:hover {
    color: #fff !important;
    font-weight: 700 !important;
}
/* Dropdown bình thường */
.header-nav .sub-menu {
    background: #ffffff !important;
}

.header-nav .sub-menu a {
    color: #003c9c !important;
    font-weight: 400;
    transition: all 0.2s ease;
	display: block;
}

/* Khi hover */
.header-nav .sub-menu li a:hover {
    background: #003c9c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
.product-small.box .box-image img {
	height: 220px;
	object-fit: cover;
}
/* Toàn bộ thanh top-bar */
/* Container tổng: nền xám làm nền chính */
#top-bar.header-top {
    position: relative;
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
}

/* Lớp xanh navy vát chéo, đè lên bên trái */
#top-bar.header-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 52%;               /* điều chỉnh độ rộng phần xanh */
    background: #003C9C;
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
    z-index: 1;
}
.flex-left {
	z-index: 2;
}

a.button.xemthem-but {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F35704 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 20px;
    border-radius: 0px !important;
    border: 4px solid #ffffff;
    outline: 2px solid #F35704;
    outline-offset: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.button.xemthem-but:hover {
	background: #003c9c !important;
	color: #ffffff !important;
    outline: 2px solid #003c9c;
}

.button.xemthem-but span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Mũi tên sau chữ */
.button.xemthem-but span::after {
    content: "→";
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}
.button.xemthem-but:hover span::after {
	color: #ffffff;
}

/* Hiệu ứng hover (tuỳ chọn) */
/*.button.xemthem-but:hover {
    background: #ffe95c;
    transform: translateY(-2px);
}*/

.button.xemthem-but:hover span::after {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}
.icon-box-left .icon-box-img+.icon-box-text {
    padding-left: 8px;
}
.icon-box-left {
	display: flex;
	align-items: center;
}
.icon-box-left p {
	margin-bottom: 0;
}
.icon-box-img img, .icon-box-img svg {
	padding-top: 0;
}


@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.content-row .col.large-9 {
	    padding-left: 15px;
	}
	.add-to-cart-button a {
	    font-size: 10px !important;}
	.bloghd2 .box-image {border-radius:12px 12px 0px 0px}
	.bloghd2 .box-text {border-radius:0px 0px 12px 12px;}
	.product-small.box .box-image img {
	    height: 145px;
	}
	.product_type_simple.is-outline {
	    font-size: 10px;
	}
}
body .nav-dropdown>li.image-column, 
body .nav-dropdown>li.nav-dropdown-col {
	width: 100%;
}
body .nav-pagination>li>.current, 
body .nav-pagination>li>a:hover, 
body .nav-pagination>li>span:hover {
    color: #fff !important;
}
/* */
.bloghd1 .button {
    line-height: 31px;
    background: transparent;
    color: #F35704 !important;
    border: 1px solid;
}
.bloghd1 .button:hover {
    background: #F35704 !important;
    color: #fff !important;
    box-shadow: 0 0 0;
}
.bloghd1  .box-blog-post .post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 22px;
    height: 44px;
}
.bloghd1 .from_the_blog_excerpt  {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 22px;
    height: 44px;
}