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

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Tạo khung tìm kiếm bo tròn gọn gàng */
form.woocommerce-product-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: #ddd;
}

/* Ô nhập từ khóa */
form.woocommerce-product-search .search-field {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  background: transparent;
  outline: none;
}

/* Nút gửi "Tìm kiếm" */
form.woocommerce-product-search .ux-search-submit {
  background-color: #28a8e0;
  color: white;
  padding: 0 24px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 0 99px 99px 0;
  white-space: nowrap;
  transition: background-color 0.3s;
}

/* Hover nút */
form.woocommerce-product-search .ux-search-submit:hover {
  background-color: #1b87bd;
}

.border {
    border-top: 1px solid #FFF;
    height: 1px;
    margin: 15px auto 0px;
    position: relative;
    width: 35%;
    border-color: #000;
}

.border:before {
    background-color: #FFF;
    border: 1px ridge #FFF;
    content: "";
    height: 10px;
    left: 50%;
    margin-left: -20px;
    position: absolute;
    top: -5px;
    width: 40px;
}
.border:before {
    background: #000;
    border-color: #000;
}
.color {
    color: var(--primary-color);
}
.index-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 38px;
    font-family: oswald;
}
.about .icon-box-img {
    position: relative;
    width: 160px !important;
    height: 92.38px;
    background-color: transparent;
    margin: 46.19px auto 60px;
    padding: 5px 0px;
    border-left: solid 3px #000;
    border-right: solid 3px #000;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition-duration: .3s;
    -moz-transition-duration: .3s;
    -o-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-transition-property: transform;
    -moz-transition-property: transform;
    -o-transition-property: transform;
    transition-property: transform;
}
.about .icon-box-img img {
    width: 85px;
    height: 85px;
	filter: brightness(0);
}

.about .icon-box-img:after, .icon-box-img:before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 113.14px;
    height: 113.14px;
    background-color: inherit;
    left: 20.4315px;
    -webkit-transform: scaleY(.5774) rotate(-45deg);
    -moz-transform: scaleY(.5774) rotate(-45deg);
    -ms-transform: scaleY(.5774) rotate(-45deg);
    -o-transform: scaleY(.5774) rotate(-45deg);
    transform: scaleY(.5774) rotate(-45deg);
}
.about .icon-box-img:before {
    top: -56.5685px;
    border-top: solid 4.2426px #000;
    border-right: solid 4.2426px #000;
}
.about .icon-box-img:after {
    bottom: -56.5685px;
    border-bottom: solid 4.2426px #000;
    border-left: solid 4.2426px #000;
}
.abt {
    font-size: 24px;
    font-weight: 600;
	    margin-bottom: 10px;
}


.counters-item span {
    display: inline;
    font-family: Oswald, sans-serif;
    font-size: 35px;
    line-height: 50px;
}
.counters-item i {
    margin-bottom: 15px;
    font-size: 3em;
}
.cit {
    font-size: 20px;
    margin-bottom: 5px;
}
.counters-item {
    padding: 20px 10px;
}
section.counter,section.company {
    background-attachment: fixed !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
section.counter {
    background-image: url("img/bg-c.webp");
}
section.company {
    background-image: url("img/ngg.webp");
}
.absolute-footer {
    display: none;
}
.absolute-footer, html {
    background-color: #fff !important;
}
#footer .ux-menu.stack-col {
  display: flex;
  flex-direction: row !important; /* Ép nằm ngang */
  justify-content: center;
  align-items: center;
	flex-wrap: wrap;
  gap: 20px; /* Khoảng cách giữa các mục */
  padding: 20px 0;
  white-space: nowrap;
}

#footer .ux-menu-link {
  display: inline-flex;
  flex-shrink: 0;
}

#footer .ux-menu-link__link {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  transition: color 0.3s ease;
}

#footer .ux-menu-link__link:hover {
  color: #0073aa;
}

#footer .ux-menu-link__text {
  padding: 6px 10px;
  display: inline-block;
}
#top-bar * {
    text-transform: none;
    color: #000;
}
.home .blog_head {
    display: none;
}

/* trang giới thieuj */
.page-header-wrapper .page-title-inner {
    padding: 0 0 0 15px !important;
    font-size: 14px !important;
    min-height: unset !important;
}
.page-header-wrapper {
    margin-left: -15px;
}
.title-breadcrumbs {
    padding: 13px 0 !important;
}


.blog_custom {
    margin: 30px auto;
}
.sidebar #secondary>.widget_product_categories{
    border: solid 5px var(--primary-color);
}
.sidebar .widget-title {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 10px 15px 10px;
    display: block;
}
.sidebar .is-divider {
    display: none;
}

.blog_custom .sidebar a {
    padding: 5px 10px !important;
    width: calc(100% - 20px);
}
.blog_custom .sidebar a:hover {
    background: var(--primary-color);
    color: #fff;
}
.sidebar .ux-search-submit {
    background: var(--primary-color);
    padding: 0 22px !important;
}
.sidebar .search-field {
    border: solid 2px var(--primary-color);
}
.blog_custom .custom-breadcrumb {
    background: var(--primary-color);
    padding: 11px;color: #fff;
}
.blog_custom .custom-breadcrumb * {
    color: #fff;
}

.blog_custom h1.entry-title {
    font-size: 18px;
    text-align: center;
}
.blog_custom .entry-date-wrapper {
    width: fit-content;
    margin: 0 auto;
}
.related-news {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.related-news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-news-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #999;
  margin-right: 20px;
}

.related-news-list li a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.related-news-list li a:hover {
  color: #0073aa;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.related-product-item {
  text-align: center;
}

.related-product-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid #eee;
  padding: 5px;
  background: #fff;
}

.related-product-item .product-title {
  margin-top: 10px;
  font-size: 15px;
  color: #000;
  text-decoration: none;
}

.related-product-item a:hover .product-title {
  color: #0073aa;
}


/* sản phẩm */
.post-type-archive .shop-page-title {
    display: none;
}
.blog_custom h1.product_title.entry-title {
    text-align: left;
}
.entry-summary .woocommerce-breadcrumb {
    display: none;
}
.p_more.mmv {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 30px;
    margin-bottom: 30px;
    display: block;
    width: fit-content;
}

.blog_custom .product-tabs {
    background: var(--primary-color);
    padding: 0 11px;
}
.blog_custom .tit {
    background: var(--primary-color);
    padding: 6px 11px;
    color: #fff;
    margin-bottom: 15px;
}
.blog_custom .product-tabs li * {
    color: #000;
}
.blog_custom .product-tabs li.active>a {
    color: #fff !important;
}


/* Chia 2 cột cho danh sách đánh giá */
.woocommerce-Reviews .commentlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
  gap: 10px;
}

/* Ô từng đánh giá */
.custom-review-box .review-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Tiêu đề và sao */
.review-card .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-icon {
  font-size: 20px;
  margin-right: 8px;
}

.review-author {
  font-weight: bold;
  font-size: 16px;
}

.review-rating .star-rating {
  color: #f5b301;
}

.review-content {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Đảm bảo form full width ở dưới */
#review_form_wrapper {
  margin-top: 50px;
}

.custom-review,.custom-review-box {
    margin: unset !important;
}

.custom-review .commentlist>li {
    border: unset !important;
    padding-top: unset !important;
}
.custom-review #review_form_wrapper {
    margin-top: unset !important;
}

.home .product-category>div {
    border: solid 1px;
}
.home .product-category .box-text {
    background: #303136;
}
.home .product-category .box-text *{color:#fff;}
.home .home_product .box-text-products {
    display: none;
}
.mobile{display:none;}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.laptop,.custom-breadcrumb,.category-blog article .entry-excerpt,.page-header-wrapper,.sidebar_custom .widget_product_search{display:none;}
.medium-logo-left .flex-right {
    flex: unset;
}
.mobile-nav input.search-field {
    height: 30px;
}
.home .home_product .box-text-products,.mobile {
    display: block;
}
.is-divider {
    display: none;
}
.home .mobile .box-text>* {
    margin-top: -10px;
}
.home .mobile .box-text,.category-blog article .large-8.col {
    width: 66.666% !important;
    display: table-cell;
    vertical-align: middle;
    padding-left: 15px;
    padding-bottom: 0;
}
.home .mobile .box-image,.category-blog article .large-4.col {
    width: 33% !important;
    display: table-cell;
}

    .home .mobile .box-vertical {
        display: table;
        width: 100%;
        border-bottom: dashed 1px #ccc;
        padding-bottom: 6px;
    }
#main, #wrapper {
    background: #F2F2F2;
}
.main-nav {
    background-image: linear-gradient(to right, var(--primary-color), #1F9BED);
    display: flex;
	margin-bottom:unset
}
.main-nav .nav-item.active {
    background: #2487EF;
}
.main-nav .nav-item {
    -ms-flex: 1;
    flex: 1;
    padding: 7px 0px !important;
	list-style:none;
	margin: unset;
}
.main-nav .nav-item span {
    color: #FFFFFF;
    display: block;
    font-size: 12px;
    font-weight: var(--fontbold6);
    line-height: 1.3em;
    margin-top: 4px;
    text-align: center;
    max-height: 1.3em;
    overflow: hidden;
}

.main-nav .icon {
    background: url(https://css02.v15cdn.com/wap.m1/blue/css_sprites.webp);
    background-size: 300px 200px;
    display: block;
    height: 25px;
    margin: 0px auto;
    width: 25px;
}
.main-nav .icon-home {
    background-position: 0px -50px;
}
.main-nav .icon-about {
    background-position: -50px -50px;
}
.main-nav .icon-product {
    background-position: -100px -50px;
}
.main-nav .icon-news {
    background-position: -150px -50px;
}
.main-nav .icon-contact {
    background-position: -200px -50px;
}
.rank-math-breadcrumb>p>a:first-child:before {
    content: "\e3af";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
}
.rank-math-breadcrumb * {
    font-size: 12px;
}
.rank-math-breadcrumb {
    background: #fff;
    padding: 10px;
    max-width: 100%;
    overflow: hidden;
    height: 38px;
    border-radius: 0 0 10px 10px;
}
.rank-math-breadcrumb p {
    max-width: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.blog_custom>div {
    padding: unset;
}
.blog_custom .khoi {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}
body.page #content {
    background: #fff;
    border-radius: 15px;
    margin: 15px 0;
}
.blog_custom .product-tabs>li {
    width: fit-content;
}
.blog_custom .product-tabs>li:not(:first-child) {
    padding-left: 20px;
}


.arrow-wrap {
    position: absolute;
    top: 18px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #EEEEEE;
    transition: transform 0.3s ease;
    border-radius: 50%;
}
.arrow-wrap .arrow {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    left: 9px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
}


.about-arrow {
  transition: transform 0.3s ease;
}

.about-arrow.rotate {
  transform: rotate(225deg);
}




.sidebar_custom .product-categories{
  overflow: hidden;
  transition: max-height 0.3s ease;
    max-height: 0;
}
.sidebar_custom .product-categories.collapsed  {
  padding: 0;
  border: none;
    max-height: unset;
}


.sidebar_custom .widget-title  {
    color: var(--primary-color);
    border-bottom: solid 2px #ddd;
    padding: 0 15px 20px 15px;
    background: unset !important;
}
.sidebar_custom .widget-title * {
    color: var(--primary-color);
}
.sidebar_custom .about-toggle-wrapper .col-inner {
    background: unset !important;
}
.sidebar_custom .about-toggle-wrapper * {
    padding: unset !important;
}
.sidebar_custom .about-toggle-wrapper .arrow-wrap {
    top: 0px !important;
}
.sidebar_custom .about-toggle-wrapper .ux-menu a {
    margin-top: 10px;
}
.sidebar_custom .ux-menu-link:last-child,.sidebar_custom .product-categories>li:last-child {
    border-bottom: solid 1px #ddd;
}

.sidebar_custom  #secondary>.widget_product_categories{
    border:unset;
}
.sidebar_custom {
    background: #fff;
    padding-bottom: 10px;
    margin-bottom: -10px;
    border-radius: 15px 15px 0 0;
}

.blog_custom .shop-container {
    margin-top: -20px;
}

}