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

/*************** ADD CUSTOM CSS HERE.   ***************/
.menu-description .nav.nav-tabs {
  max-height: 600px;
  /* hoặc chiều cao cụ thể như 600px */
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
}


body.page-template-page-san-pham {
  background-color: #fff;
}

/* body.single-san-pham {
  background-color: rgb(247, 247, 247);
} */

.page-wrapper.trang-san-pham {
  background-color: rgb(247, 247, 247);
}

.page-wrapper.trang-chi-tiet-san-pham {
  background-color: rgb(247, 247, 247);
}

.custom-banner-slider .slider .flickity-viewport {
  height: 610px !important;

}

.custom-banner-slider .img-inner img {
  height: 100%;
  width: 100% !important;
  object-fit: initial !important;
}



.tai-lieu-template-default .entry-header .entry-image {
  display: none;
}





.entry-header .entry-meta span.byline {
  display: none !important;
}

.logo-left .logo {
  margin-left: 0;
  margin-right: 0px;
}

.nav-dropdown-has-border .nav-dropdown {
  border: 1px solid var(--fs-color-success) !important;
}

.hotline-body {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: initial;
  color: #333;
  line-height: 16px;
}

.hotline-label {
  display: block;
  margin-bottom: 5px;
  color: #1E2B33;
}

.hotline-number {
  font-size: 18px;
  color: #f7a306;
  font-weight: 700;
  vertical-align: middle;
}

.nav-dropdown .menu-item-has-children>a {
  text-transform: none !important;
  font-size: 1em;
  font-weight: normal;
}

/* Gạch ngang dưới mỗi mục menu cấp 2 */
.nav-dropdown .menu-item a {
  border-bottom: 1px solid black !important;
  padding-bottom: 8px;
  margin-bottom: 8px !important;
}

/* Ẩn gạch ở menu cấp 3 trở đi */
.nav-dropdown .sub-menu .menu-item>a {
  border-bottom: none !important;
  margin-bottom: 0;
  padding-bottom: 0;
}

.header-nav .nav-dropdown li a {
  color: black;
}

.nav-spacing-xlarge>li {
  margin: 0 30px !important;
}

.nav-divided>li+li>a:after {
  border-left: 1px solid white !important;
  left: -2.1em;
}

/* html1 */

ul.header-why-choose {
  width: 100%;

}

ul.header-why-choose li {
  margin-bottom: 0px;
  float: left;
  padding-left: 17px;

}

ul.header-why-choose li.why-choose-resize {
  padding-left: 4px;
}

ul.header-why-choose a {
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  border-radius: 24px;
  background-color: #E5E5E5;
  color: #1F2B40;
  margin-right: 10px;
  margin-top: 4px;
  float: left;
  font-size: 17px;
}

ul.header-why-choose li span {
  display: inline-block;
}

ul.header-why-choose span.t-title {
  padding-top: 0px;
  font-weight: 700;
  color: #1E2B33;
  font-size: 15px;
}

ul.header-why-choose span.t-des {
  font-size: 0.83rem;
  color: #1E2B33;
  /* 	padding-top:0px; */
}

ul.header-why-choose li.img-item {
  width: calc(100% / 4);
  float: left;
  text-align: left;
  padding-top: 2px;
}

ul.header-why-choose li.img-item img {
  max-width: 100%;
  width: 90%;
  height: auto;
  display: inline-block;
  background-color: var(--fs-color-success);
  border-radius: 5px;

}

/* cate-title */
.cate-title {
  font-size: 18px;
  width: auto;
  padding: 15px 20px;
  margin-bottom: 0px;
  background-color: rgba(22, 147, 55);
  color: #fff !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: 700;
}

.col-title {
  padding-left: 14px;
  padding-right: 14px;
}

.cate-headline {
  position: absolute;
  left: 0%;
  top: 11%;
  z-index: 99;
  transform: translateX(0%);

  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  border-bottom: 2px solid rgba(22, 147, 55);
  margin-bottom: 15px;
}

.cate-headline p {
  margin-bottom: 10px;
}

.cate-view {
  white-space: nowrap;
  align-content: center;
  font-size: 0.8em;
}

.cate-view a {
  color: var(--fs-color-success);
}

.cate-view a:hover {
  color: var(--fs-color-primary);
}

.introduce-title:after {
  margin: 0;
}

.introduce-page-header .title-wrapper h1 {
  color: black;
  color: var(--fs-color-success);
}

.introduce-text-title {
  margin-top: 10px;
}

.page-wrapper .row.row-main {
    margin-bottom: 40px;
}

.breadcrumb * {
    font-size: 13px;
}

.category-item .box-text-inner {
    min-height: 45px;
}

.category-item .box-text-inner .post-title {
    font-weight: 400;
}

.col.category-item {
    padding-bottom: 15px !important;
}

/* .product-layout{
	border:2px solid black;
	padding: 30px;
} */
@media only screen and (max-width: 480px) {
  .cate-view {
    display: none;
  }

  .cate-title {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .widget-action {
    display: none !important;
  }
}

/* footer */
.phone-ring {
  bottom: 25px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 40px;
  height: 40px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #fff;
  border-radius: 50%;
  background-color: #f7a306;
  position: fixed;
  z-index: 100;
  left: 50px;
  -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
}

.phone-ring::before {
  content: '';
  display: block;
  width: 250%;
  height: 250%;
  border-radius: 50%;
  border: 1px solid #f7a306;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-animation: phone-circle-animate 1s ease-in-out infinite;
  animation: phone-circle-animate 1s ease-in-out infinite;
}

.phone-ring::after {
  content: '';
  display: block;
  width: 160%;
  height: 160%;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: rgb(247, 163, 6, .5);
  -webkit-animation: phone-circle-fill-animate 2s ease-in-out infinite;
  animation: phone-circle-fill-animate 2s ease-in-out infinite;
}

.phone-ring__icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 20px;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: phone-icon-animate 1s ease-in-out infinite;
  animation: phone-icon-animate 1s ease-in-out infinite;
  background-color: #f7a306;
  border-radius: 50%;
}

.phone-ring__text {
  display: inline-block;
  background-color: rgb(249, 208, 132, 0.7);
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  padding: 0 20px 0 60px;
  color: #2d314c;
  border-radius: 20px;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
  width: 160px;
  white-space: nowrap;
}

@keyframes phone-circle-animate {
  0% {
    transform: translate(-50%, -50%) rotate(0) scale(0.5);
    opacity: 0.1;
  }

  30% {
    transform: translate(-50%, -50%) rotate(0) scale(0.7);
    opacity: 0.5;
  }

  100% {
    transform: translate(-50%, -50%) rotate(0) scale(1);
    opacity: 0.1;
  }
}

@keyframes phone-circle-fill-animate {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0) scale(0.7);
    opacity: 0.2;
  }

  50% {
    transform: translate(-50%, -50%) rotate(0) scale(1);
    opacity: 0.2;
  }
}

@keyframes phone-icon-animate {

  0%,
  100% {
    transform: rotate(0) scale(1) skew(1deg);
  }

  10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }

  20%,
  40% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }

  30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }

  50% {
    transform: rotate(0) scale(1) skew(1deg);
  }
}

/* widget-action */
.widget-action {
  font-size: 14px !important;
  position: fixed;
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-image: unset;
  top: 200px;
  left: 0;
}

.widget-item {
  width: 54px !important;
  height: 54px !important;
  margin: 6px !important;
  background-size: 100% !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  position: relative;
}

.widget-tooltip {
  /* background-image: linear-gradient(180deg, #4fc3f7 0%, #0277bd 100%); */
  background-color: #f7a306;
  color: #fff;
  visibility: hidden;
  font-size: 12px !important;
  line-height: 16px !important;
  text-align: center;
  white-space: nowrap;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  top: calc(50% - 16px);
  z-index: 1;
  opacity: 0;
  transition: opacity .5s;
  left: 120%;
}

.widget-item.item-mail {
  background-image: url(/wp-content/uploads/2025/07/widget_icon_contact_form.png);
}

.widget-item.item-phone {
  background-image: url(/wp-content/uploads/2025/07/widget_icon_click_to_call.png);
}

.widget-item.item-zalo {
  background-image: url(/wp-content/uploads/2025/07/widget_icon_zalo.png);
}

.widget-item.item-messenger {
  background-image: url(/wp-content/uploads/2025/07/widget_icon_messenger.png);
}

.widget-item:hover {
  text-decoration: none !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .15), 0 4px 15px rgba(0, 0, 0, .13);
}

.widget-item:hover .widget-tooltip {
  visibility: visible;
  opacity: 1;
}



.widget_nav_menu li.open>ul.sub-menu {
  display: block;
}

.widget_nav_menu .current-menu-parent>ul.sub-menu,
.widget_nav_menu .current-menu-ancestor>ul.sub-menu {
  display: block;
}

.single-post .post-thumbnail {
  display: none !important;
}

.is-full-width {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative;
  left: 0;
  padding: 40px 20px;
  background: #fff;
}

.is-full-width>.col {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* footer menu */
.footer-horizontal-menu.stack-col {
  flex-direction: row !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;

}

.footer-horizontal-menu .ux-menu-link {
  display: inline-flex;
}

.footer-horizontal-menu .ux-menu-link__link {
  /*   color: #ccc; */
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.footer-horizontal-menu .ux-menu-link__link:hover {
  color: #fff;
}

.footer-horizontal-menu .ux-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Vạch dọc | ngăn cách */
.footer-horizontal-menu .ux-menu-link:not(:last-child)::after {
  content: "|";
  color: #ccc;
  margin-left: 10px;
  margin-right: 0;
  align-self: center;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 767px) {
  .footer-horizontal-menu .ux-menu-link::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .footer-horizontal-menu.stack-col {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }
}

.entry-title {
  display: flex;
  font-size: 20px;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: #333;
}

.home-intro::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  background-color: rgba(22, 147, 55, 0.93);
  margin: 10px 0 0 0;
  margin-bottom: 22px;
}

/* .entry-title b{
    background-color: currentColor;
    display: block;
    flex: 1;
    height: 2px;
    opacity: .1;
} */
.entry-title::before,
.entry-title:after {
  content: "";
  display: block;
  width: 100px;
  border-bottom: 1px solid rgba(22, 147, 55, 0.93);
  padding-top: 0px;
  margin: 0 auto;
}

.entry-title::before {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 15px 0 0;
}

.entry-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 0 0 15px;

}

.custom-tin-tuc-image {
  width: 95%;
}

.custom-blog-posts {
  padding-top: 20px;
}

/* .custom-blog-posts .col {
  padding: 14px;
} */

.product-layout {
  padding: 0px 15px 15px;
  margin-top: 15px;
}

.product-image img {
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-name h3 {
  color: var(--fs-color-primary) !important;
}

.acf-product-info li {
  list-style: none;
}

h4.text {
  padding-left: 19px;
}

.acf-product-info .product-description ul li {
  list-style: unset;
  color: #1e2b33;

}

.panel.entry-content .text p {
  color: #1e2b33;
}


.product-post {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-post .post-content p.post-title {
  font-weight: bold;
}

.product-post .post-content .post-title a {
  display: block;
  height: 50px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  align-content: center;
}

.custom-post .custom-post-content .custom-post-title a {
  display: block;
  min-height: 45px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  align-content: center;
}

.product-item .custom-post-content .custom-post-title a {
  display: block;
  min-height: 45px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
  align-content: center;
}

.product-post:hover {
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);

  /* transform: translateY(-2px); */
}

.custom-post {
  text-align: center;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.custom-post-content .custom-post-title {
  padding: 5px 15px;
}

.custom-post-content .custom-post-title a {
  /* font-size: 17px;
  color: #333; */
  display: block;
  font-weight: bold;
  align-content: center;
}

.custom-post:hover {
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
}

.blog-du-an .post-item .box-text-inner,.col-du-an .post-item .box-text-inner{
  min-height: 105px;
}



.custom-post .product-post-thumbnail img {
  transition: transform 0.3s ease;
}

.post.product-post {
  padding: 10px;
  border: 1px dotted #d1d1d1;
  border-radius: 12px;
  background-color: rgb(255, 255, 255);
  margin-bottom: 0px;
}

/* .custom-posts-grid .post-item {
  padding: 0 30px 30px;
} */

.post-item .custom-post {
  border: 1px dotted #d1d1d1;
  /* padding: 15px; */

}

.product-post .product-post-thumbnail {
  padding: 10px 0 10px 0;
}

.product-post .product-post-thumbnail img {
  transition: transform 0.3s ease;
}

.product-post .product-post-thumbnail img:hover {
  transform: scale(1.06);
}

.product-post-thumbnail img {
  height: auto;
  object-fit: contain;
}

.row-blog-section {
  padding-top: 20px;
}

p.ten-bai-post {
  font-weight: 500;
  font-size: 14px;
}

.col-du-an {
  padding-bottom: 15px;
}

/* .responsive-posts-slider .box-blog-post .box-text .blog-post-inner .from_the_blog_excerpt {
  min-height: 70px;
} */



.row-blog-section .blog-tu-van-button {
  border-radius: 10px;
}

.row-blog-section .home-headline h1,
h2,
h3,
h4,
h5,
h6 p a {
  color: #1e2b33;
}

.row-blog-section .home-headline {
  padding: 0px 0 20px 0;

}

/*--tabbed dropdown menu--*/
li.menu-item.has-dropdown {
  position: relative;
}

li.menu-item.has-dropdown .menu-description {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-39%) !important;
  min-width: 1200px;
  min-height: 500px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.menu-description .tab-panels {
  border: none;
}

li.menu-item.has-dropdown:hover .menu-description {
  display: block;
}

/*header-menu sản phẩm*/
.custom-tab .nav-vertical.nav-tabs a {
  background-color: rgba(0, 0, 0, .04);
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 8px;
  color: hsla(0, 0%, 30%, 1) !important;
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: linear-gradient(to right, #f0f0f0 0%, #ffffff 100%) !important;
}

.custom-tab .nav.nav-tabs {
  border-right: 1px solid #ddd;
}

.custom-tab .nav-vertical.nav-tabs>li {
  margin-bottom: 12px;
  position: relative;
  border-top: 0px;
  border-bottom: 0px;
  max-width: 45%;
  margin-right: 10px;
}

.custom-tab .nav-vertical.nav-tabs>li.active>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 12px 16px; */
  border-radius: 8px;

  background-color: #f9f9f9;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  /* background: linear-gradient(to right, #f0f0f0 0%, #ffffff 100%) !important; */
}

ul.sub-menu li:first-child {
    margin-left: 1.3em !important;
}

.has-dropdown a.nav-top-link {
    display: flex;
    flex-direction: row-reverse;
}

.mega-menu-content .tab-content a:hover, .menu-title-with-toggle a:hover {
  text-decoration: underline !important;
}

.panel .menu-title a {
    font-weight: 400;
    color: #007a3d !important;
}

.custom-tab .nav-vertical.nav-tabs>li.active>a {
  border-left: 3px solid var(--fs-color-success) !important;
  background-color: white;
}

.menu-description .custom-tab ul.nav-tabs a {
  font-size: 14px;
}

.custom-tab .menu-2 p a {
  color: var(--fs-color-success) !important;
  font-weight: bold;
  text-transform: uppercase;
  /* font-size: 16px; */
}

.tab-content .brand-grid .brand-title>a {
  font-size: 16px;
  color: var(--fs-color-success);
}

.tab-content .brand-grid .brand-child-menu {
  padding-left: 1.5em;
  list-style: none;
}

.tab-content .brand-grid .brand-child-menu li {
  margin-left: 0 !important;
}

.tab-content .brand-grid .brand-child-menu li::before {
  content: "➤";
  /* Hoặc dùng ▸, →, ► */
  position: absolute;
  left: 0;
  color: #333;
}

.tab-content .brand-grid .brand-child-menu>li>a {
  font-size: 15px;
  color: #333
}

.custom-button {
  /*background-color: #1e2b33;
  opacity: 0.9;*/
}



.hien-thi-san-pham .custom-posts-grid {
  padding-top: 12px;
}

.hien-thi-san-pham.bg-color .custom-post {
  background-color: #fff;
}

.hien-thi-san-pham.bg-color .hinh-anh-san-pham {
  background-color: #ffffff;
}

.hien-thi-san-pham .related-product-post-item .product-item {
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 7px;

}

.hien-thi-san-pham  .related-product-post-item .product-item:hover {
  transform: scale(1.06);
}

.hien-thi-san-pham  .related-product-post-item .product-item .product-post-thumbnail img {
  height: 180px;
  transition: transform 0.3s ease;
}

/* .hien-thi-san-pham .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
} */

.hien-thi-san-pham .product-info {
  padding-top: 20px;
}



.trang-chi-tiet-san-pham .hien-thi-san-pham .hinh-anh-san-pham .product-image .box-image {
  border-radius: 10px;
}

.trang-chi-tiet-san-pham .row-blog-section {
  padding-top: 40px;
}

.trang-chi-tiet-san-pham .row.row-main {
  margin-bottom: 20px;
}


p.text-display {
  padding-left: 30px;
}

p.tai-lieu.text-display {
  padding-left: 14px;
}

/*trang tài liệu liên quan*/

.single-tai-lieu .page-wrapper.chi-tiet-tai-lieu {
  background-color: rgb(247, 247, 247);
  padding-bottom: 0px;
}

.slider-nav-reveal .flickity-prev-next-button,
.slider-nav-reveal .flickity-prev-next-button:hover {
  background: transparent !important;
  box-shadow: 0 -40px 15px 0 rgba(0, 0, 0, .3);
}



.chi-tiet-tai-lieu .related-products .product-item {
  background-color: #fff;
  padding: 10px;
  border-radius: 7px;

}

.chi-tiet-tai-lieu .related-product-post-item {
  padding: 17px;
}

.chi-tiet-tai-lieu article {
  background-color: #fff;
  border-radius: 7px;
  padding: 10px;
}

.chi-tiet-tai-lieu .product-post-thumbnail img {
  height: 250px;
}

.tai-lieu-text {
  text-align: left;
}

/*phân trang*/
.pagination-wrapper.custom-icon {
  display: flex;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  line-height: 1;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  margin: 0 5px;
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  vertical-align: middle;
}

.pagination-wrapper .page-numbers:hover {
  background-color: #0073aa;
  color: #fff;
}

.pagination-wrapper .page-numbers.current {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}

/*sản phẩm cùng loại*/
.related-products {
  margin-top: 40px;
}

.related-products .product-item {
  text-align: center;
  margin-bottom: 20px;
}

.related-products .product-title {
  font-size: 16px;
  margin-top: 10px;
}

.custom-slider .img img {
  width: 80%;
}

.custom-mobile-slider .img img {
  width: 60%;
}

.partner .partner-col {
  padding-bottom: 5px;
}

.partner .partner-col .partner-col-slider {
  padding-bottom: 5px;
}

/*trang dự án*/
.trang-du-an .title-du-an {
  padding-bottom: 16px;
}

.col-blog-du-an {
  padding-bottom: 0;
}

.blog-du-an .post-item .box-text h5 {
  font-weight: 600;
  font-size: 14px;
}

/*trang tin tức*/
.trang-tin-tuc .title-tin-tuc {
  padding-bottom: 16px;
}

.trang-tin-tuc .blog-tin-tuc .post-item .box-text h5 {
  font-weight: 600;
  font-size: 14px;
  ;
}

/*css trang tài liệu/sản phẩm*/
.hien-thi-tai-lieu.bg-color {
  background-color: rgb(247, 247, 247);
}

.hien-thi-tai-lieu .title-tai-lieu {
  padding-bottom: 16px;
}

.tai-lieu-list .tai-lieu-item .post-tai-lieu {
  background-color: #fff;
}

.post-tai-lieu .tai-lieu-info .tai-lieu-text h3 {
  font-size: 16px;
  margin-top: 10px;
}

/*trang liên hệ*/
.trang-lien-he .title-lien-he {
  padding-bottom: 16px;
}

.box-text .box-text-inner h5 {
  text-transform: unset;
}

.box-text .box-text-inner p.ten-bai-post {
  text-transform: unset;
  font-size: 1.15em;
}

/*sidebar tài liệu*/
.sidebar-catalog {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-catalog li {
  margin-bottom: 12px;
  position: relative;
  margin-left: 0px !important;
}

.sidebar-catalog li>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  background: linear-gradient(to right, #f0f0f0 0%, #ffffff 100%) !important;
}

.sidebar-catalog li.active>a {
  border-left: 3px solid var(--fs-color-success);
}

.sidebar-catalog li a:hover {
  background-color: #e9f8f2;
  color: var(--fs-color-success) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/*end of sidebar tài liệu*/


/*sidebar sản phẩm*/


.menu-title-with-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rotate {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Vùng chứa sidebar */
.custom-sidebar {
  border-right: 1px solid #eee;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  padding-bottom: 20px;
}

.custom-sidebar h3.sidebar-toggle {
  font-size: 18px;
  color: var(--fs-color-success);
}

.custom-sidebar .sidebar-product-2,
.custom-sidebar .sidebar-product-3 {
  padding-top: 15px;
}

/* Danh sách cấp 1 - Thương hiệu */
.sidebar-tai-lieu .cap-1-submenu {
  list-style: none;
  padding: 0;
  margin: 0;

  /* max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease; */
}


.sidebar-tai-lieu .cap-1-submenu>li.cap1-item {
  margin-bottom: 12px;
  position: relative;
  margin-left: 0px;
}

.sidebar-tai-lieu .cap-1-submenu>li.cap1-item.open>a {
  border-left: 3px solid var(--fs-color-success);
}

.sidebar-tai-lieu .cap-1-submenu>li.cap1-item> div.menu-title-with-toggle > span.toggle-submenu{
  display: none;
}

.sidebar-tai-lieu .cap-1-submenu>li.cap1-item> div.menu-title-with-toggle>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 12px 16px;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333; */
  text-decoration: none;
  font-weight: 700;
  /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease; */
  width: 100%;
  font-size: 18px;
    color: var(--fs-color-success);
    text-transform: uppercase;
}

.sidebar-tai-lieu .cap-1-submenu>li.cap1-item >div.menu-title-with-toggle>a:hover {
  background-color: #e9f8f2;
  color: var(--fs-color-success);
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); */
}

/* .sidebar-tai-lieu .cap-1-submenu>li.cap1-item .menu-title-with-toggle>a, */
.cap-2-submenu li.cap2-item >div.menu-title-with-toggle >a {
  background: linear-gradient(to right, #f0f0f0 0%, #ffffff 100%) !important;
  border-radius: 6px;
}



/* Danh sách cấp 2 */
.cap-2-submenu {
  list-style: none;
  margin: 15px 0 0 15px;
  padding-left: 0;
}

.cap-2-submenu li.cap2-item {
  margin-bottom: 4px;
}

.cap-2-submenu li.cap2-item > div.menu-title-with-toggle>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 16px;
  color: #007a3d;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  font-weight: 600;
}


.cap-2-submenu li.cap2-item >div.menu-title-with-toggle>a:hover {
  background: #e4f3ea;
  color: #007a3d;
}

/* Icon toggle */
.toggle-submenu {
    font-size: 18px;
    color: #555;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 40px;
    height: 44px;
    text-align: center;
    cursor: pointer;
    line-height: 44px;
}

.cap2-item.open .toggle-submenu {
  transform: rotate(90deg);
  color: #007a3d;
}

/* Danh sách cấp 3 */
.cap-3-submenu {
  list-style: none;
  padding-left: 0;
  padding-right: 15px;
  margin: 4px 0 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.5s ease;

}

.cap-3-submenu.open {
  max-height: 400px;
  opacity: 1;
}

.cap-3-submenu.open,
.cap2-item.open>.cap-3-submenu {
  display: block;
}

.cap-3-submenu li>a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: #1d1d1d;
  border-left: 2px dotted #ddd;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.cap-3-submenu li>a:hover {
  color: #008c4a;
  border-left-color: #008c4a;
}

.cap-4-submenu {
  list-style: none;
  padding-left: .3em;
  margin: 4px 0 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.5s ease;

}
.cap-4-submenu.open{
  max-height: 600px;
   opacity: 1;
}
.cap-4-submenu.open,
.cap3-item.open>.cap-4-submenu,
.cap2-item.open>.cap-3-submenu
{
  display: block;
}

/*end of sidebar sản phẩm*/

/*breadcrumb*/
.col.bread-crumb-tl {
  padding: 0 !important;
}

/*end of breadcrumb*/

.section.tu-van-giai-phap {
  background-color: rgb(247, 247, 247);
}

.page-template-page-san-pham .section.tu-van-giai-phap {
  background-color: rgb(255, 255, 255);
}

/* .tu-van-giai-phap .row .col .col-inner {
  box-shadow: 0 1px 3px -2px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
} */

/*footer*/
.lien-he-form-button {
  width: 100%;
}

/* .absolute-footer {
  display: none !important;
} */
.footer-section {
  object-fit: fill;
}

/* .footer-section .infos-and-policy .ux-menu-link a{
  text-transform: uppercase;
} */
.img-inner.dark {
  background-color: transparent !important;
}

/*end of footer*/

/*CF7 form*/
.wpcf7-form-control-wrap input {
  box-shadow: none;
}


ul.header-why-choose span.t-title {
	width: 60%;
}
.header-block {
    min-height: 0;
}

.page-wrapper.trang-chi-tiet-san-pham, .page-wrapper.trang-san-pham, .product-cate-list, .page-section-content {
    padding-top: 10px !important;
    background-color: rgb(247, 247, 247);
}

.cate-title {
	padding: 10px 15px;
	font-size: 16px;
}

.custom-button {
	font-weight: 400;
}

.box-category .image-cover {
  background-color: #fff;
	border-radius: 7px;
}

.box-category .image-cover img {
    height: auto !important;
    width: 85%;
	  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hotline-text {
    display: flex;
;
}

.hotline-number {
	font-size: 14px;
}

span.phone-ring__text {
    padding: 0 20px 0 50px;
}

.hinh-anh-san-pham .box-text {
    display: none;
}

.hien-thi-san-pham>.row {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
}

.entry-title.uppercase {
    margin-bottom: 30px;
}

.category-item .box-text {
    padding-bottom: 10px;
}

.col-breadcrumb {
    padding-bottom: 0;
}

ul.list-product-info li {
    margin-left: 0;
}

.post.san-pham {
    margin-bottom: 0 !important;
}

.acf-product-info {
    padding: 0 0 0 30px;
}

.tal-lieu-button {
    border-radius: 5px;
    font-size: 13px;
}
.product-title {
    margin-bottom: 20px !important;
}

.contact-box {
    padding: 15px;
    border: 1px solid #E42729;
    border-radius: 5px;
}
ul.list-product-info {
    margin-bottom: 10px;
}
.box-image .overlay {
    display: none;
}

.custom-sidebar h3.sidebar-toggle {
    font-size: 16px;
    background-color: var(--fs-color-success);
    color: #fff;
    padding: 8px 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-bottom: 10px;
}

.custom-sidebar ul.sibar-menu {
    list-style: none;
}

.cap1-item>.menu-title-with-toggle a {
    color: #333333;
    border-top: none;
    border-right: none;
    border-bottom: none;
    background: linear-gradient(to right, #bbb 0%, #ffffff 100%) !important;
    width: 100%;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-submenu {
    margin-left: 15px !important;
}

.sidebar-submenu.sub-menu li:first-child {
    margin-left: 0 !important;
}
/* .toggle-submenu.open::before {
  content: '▾';
} */
.toggle-submenu:hover {
  color: #007a3d;
}

.sidebar-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Khi mở */
.sidebar-submenu.open {
  max-height: 1000px; /* hoặc dùng JS để set chiều cao động */
}

/* Mũi tên toggle */
.toggle-submenu::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Khi mở thì xoay 90 độ */
.toggle-submenu.active::before {
  transform: rotate(90deg);
}

.project-field {
    text-align: left;
    /* font-size: 13px; */
}

.box-text .from_the_blog_excerpt {
    text-align: left;
}

.page-wrapper.chi-tiet-tai-lieu {
    padding-top: 10px;
    padding-bottom: 10px !important;
}

.hinh-anh-tai-lieu {
    margin-right: 30px;
}

.hinh-anh-tai-lieu .product-image img {
    margin-left: 0;
}

.tai-lieu-info {
  min-height: 150px;
}
.tai-lieu-info .col {
    padding-bottom: 0 !important;
}
.tai-lieu-info img {
  height: 100% !important;
  max-height: 170px !important;
  height: 170px;
}
.tai-lieu-text {
    background-color: #fff;
}
.tai-lieu-text p {
    margin-bottom: 1rem;
}
.list-link {
    margin-top: 20px;
    font-size: 16px;
}
.product-list a {
    margin-bottom: 12px;
}

ul.header-why-choose {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/*************** ADD MOBILE ONLY CSS HERE  ***************/

@media (max-width: 1024px) {
  .product-list .custom-button {
    font-size: 1.1em;
  }
}

@media (max-width: 767px) {

  /* .mobile-sidebar .sidebar-menu .nav-vertical.nav-sidebar .header-search-form {
  display: none !important;
} */

  .col.bread-crumb-tl .doc-meta {
    padding-left: 20px;
  }

  .chi-tiet-tai-lieu .doc-meta {
    padding-left: 10px;
  }

  .sidebar-block {
      order: 3;
      margin-top: 30px;
  }
  .trang-san-pham .sidebar-block {
      order: unset;
      margin-top: unset;
  }

  .mobile-sidebar .nav-sidebar li>a {
    color: #1e2b33;
    /* Đổi thành màu bạn muốn (đỏ ở đây) */
  }

  li.menu-item-723 .menu-description {
    display: none !important;
  }

  /* Ẩn nút toggle (+) nếu có */
  li.menu-item-723>.ux-menu-link__toggle {
    display: none !important;
  }

  .hien-thi-tai-lieu .title-tai-lieu {
    padding-top: 35px;
  }

  .hien-thi-san-pham .entry-title {
    padding-top: 29px;
  }

  .product-list .custom-button {
    font-size: 0.9em;
  }


  .product-post .product-post-thumbnail img {
    width: 90%;
    height: auto;
  }

  .post-tai-lieu .tai-lieu-info .tai-lieu-text h3 {
    font-size: 15px;
    margin-top: 10px;
  }

  .tai-lieu-info a img {
    height: 250px !important;
  }


  .tai-lieu-text p {
    margin-bottom: 3px;
  }

  p.text-display {
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  p.tai-lieu.text-display {
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  .home-intro::after {
    margin: 10px auto;
  }

  .product-post .product-post-thumbnail img {
    height: 150px;
  }

  /*chỉ tiết sản phẩm*/
  a.tal-lieu-button {
    font-size: 12px;
  }

  .custom-banner-slider {
    height: 350px;
    overflow: hidden;
  }

  .custom-banner-slider .slider .flickity-viewport {
    height: 350px !important;

  }

  .custom-banner-slider .slider .flickity-viewport .flickity-slider .img-inner img {
    height: 350px;

  }
  .hien-thi-san-pham .related-products .row .col.related-product-post-item{
      padding: 0 15px 15px 15px ;
}

  .hien-thi-san-pham .related-docs .button-list li a.show-all-doc {
    font-size: 12px;
  }

    .mobile .sidebar {
    border-right: 1px solid #eee;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
  }
    .mobile .sidebar h3.sidebar-toggle {
      font-size: 18px;
      color: var(--fs-color-success);
    }
  
    .mobile .sidebar-product-2,
    .mobile .sidebar-product-3 {
      padding-top: 15px;
    }
 .custom-sidebar.desktop {
    display: none;
  }

  /*footer*/
  .footer-section .widget-action {
    display: none;
  }
}

@media (min-width: 850px) {
    .tabbed-content .nav-vertical {
        width: 35%;
    }
}

@media (max-width: 480px) {
  .sidebar-tai-lieu {
      background-color: unset;
      order: 3;
  }
  .tai-lieu-noi-dung {
     margin-top: 0 !important;
  }

  .tai-lieu-text p {
    display: inline-block;
    padding: 5px;
  }

  .tai-lieu-info a img {
    max-width: 80% !important;
  }

  .home-intro::after {
    width: 100%;
  }

  .custom-banner-slider {
    height: 180px;
    overflow: hidden;
  }

  .custom-banner-slider .slider .flickity-viewport {
    height: 180px !important;

  }

  .custom-banner-slider .slider .flickity-viewport .flickity-slider .img-inner img {
    height: 180px;
  }
  .hien-thi-san-pham .related-products .row{
    padding-left: 15px;
  }
 
  .hien-thi-san-pham .related-products .row .col.related-product-post-item{
    padding: 0 15px 15px 0px ;
  }


  .custom-post-content .custom-post-title a {
    font-size: 13px;
  }

  .product-post .post-content .post-title a {
    font-size: 13px;
    height: 45px;
  }

  .product-post .product-post-thumbnail img {
    height: 100px;
  }


  .custom-posts-grid,
  .product {
    display: block !important;
    /* bỏ flex để không còn trượt ngang */
    overflow-x: visible !important;
    scroll-snap-type: none;
    padding-left: 15px !important;
  }

  .custom-posts-grid>.post-item,
  .related-product-post-item,
 .product>.post-item {
    flex: none;
    width: 100%;
    scroll-snap-align: none;
    display: inline-block;
    /* đảm bảo hiển thị theo block */
  }


  .product .col,
  .custom-posts-grid .col,
 .related-product-post-item.col {
    float: left;
    padding: 0 15px 15px 0;
  }

 .related-product-post-item:nth-child(n+5),
  .custom-posts-grid>.post-item:nth-child(n+9),
 .product>.post-item:nth-child(n+5) {
    display: none;
  }

  .product-item .custom-post-content .custom-post-title a {
    font-size: 13px;
    height: 35px;
  }

  .custom-post-content .custom-post-title,
  .related-products .product-item {
    margin-bottom: 0;
  }

  .related-products {
    padding-bottom: 0;
  }

  .product-layout {
    padding: 0px 15px 0px 15px;
  }

  .col-blog-du-an .row .post-item .box-blog-post .box-text .box-text-inner{
    min-height: auto;
  }



  .hien-thi-san-pham .related-product-post-item .product-item .product-post-thumbnail img {
    height: 100px;
  }

  .hien-thi-san-pham {
    padding: 0 15px 0 15px;
  }

  .hien-thi-san-pham .related-docs {
    padding: 0 15px;
  }

  .custom-post .product-post-thumbnail img {
    height: 100px;
    width: 90%;
  }

  .custom-post .custom-post-content .custom-post-title a {
    font-size: 13px;
    height: 45px;
  }


  a.tal-lieu-button {
    font-size: 12px;
  }

  #tab-thong-tin-sp,
  #tab-thong-so-ky-thuat {
    width: 100%;
  }

  #tab-thong-tin-sp a,
  #tab-thong-so-ky-thuat a {
    width: 100%;
    justify-content: center;
  }

  h4.text {
    padding-left: 0px;
  }

  ul.button-list li {
    margin-left: 0px;
  }

  .slogan-button {
    width: 100%;
  }

  .hien-thi-san-pham  .related-product-post-item .product-item .product-post-thumbnail img {
    height: 150px;
  }

  /*footer*/
  .footer-section .section-bg.fill {
    background: #47545a;
  }

  .footer-section .section-bg.fill img {
    display: none;
  }

  .acf-product-info {
    padding-left: 0 !important;
  }

  .product-title {
    padding-top: 0 !important;
  }

  .acf-product-info .related-docs {
      padding: 0;
      margin-bottom: 15px;
  }
  .product-desciption {
      margin-top: 30px;
  }

  /*.trang-chi-tiet-san-pham .product-main-content{
    display: flex;
    flex-direction: column-reverse;
  }*/
  .sidebar-block {
      order: 3;
      margin-top: 30px;
  }
  .trang-san-pham .sidebar-block {
      order: unset;
      margin-top: unset;
  }
  .product-wrapper .row-main>.col {
      /* padding-bottom: 0; */
  }
}