/*
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.   ***************/
.d-flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.pb-0{
  padding-bottom: 0 !important;
}

.pt-70{
  padding-top: 70px !important;
}
.pb-70{
  padding-bottom: 70px !important;
}

.pt-24{
  padding-top: 24px !important;
}
.pb-24{
  padding-bottom: 24px !important;
}

input,
textarea {
  padding: 0 15px !important;
  border-radius: 6px !important;
}

.box-category .box-image {
  background-color: #f7f7f7;
}

.section-product .box {
  border: 1px solid #f7f7f7;
}

.post-item .is-divider {
  display: none;
}

.section-news .news-left .box-image {
  border-radius: 16px;
}

.section-news .news-right .box-blog-post {
  background: #f7f7f7;
  border-radius: 8px;
}

.section-news .news-right .box-image {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.section-news .news-right .box-text {
  padding: 18px 12px;
}

/* Product detail */
.product-extra-info .meta-item {
  font-size: 0.95em;
  margin-top: 3px;
  color: #333;
}
.product-extra-info .meta-item strong {
  color: #111;
  font-weight: 600;
}
.product-extra-info .stock-status {
  font-weight: 600;
  margin-top: 6px;
}

.breadcrumb-wrapper {
  font-size: 14px;
  color: #555;
}
.breadcrumb-wrapper a {
  color: #555;
  text-decoration: none;
}
.breadcrumb-wrapper a:hover {
  color: #000;
}

.category-acf-content {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* Home slide */
/* equal height */
.section-slider img {
  max-height: 700px;
  object-fit: cover; /* phóng to & crop, không méo hình */
  object-position: center center;
  display: block;
}

.badge-container {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-frame {
  height: 1.5em;
  margin-left: 1px;
}

.product .col-inner {
  border: 1px solid #f7f7f7;
}

.badge + .badge {
  height: 1.5em;
  width: 1.5em;
}

.badge .badge-inner {
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
}
.badge .on-sale {
  background-color: #ffab00;
}

.badge .new-bubble-auto {
  background-color: #36b37e;
}

button.back-to-top{bottom: 96px;}

.about-custom {
  display: flex;
  flex-wrap: wrap;
}

.about-custom .about-custom-image {
  order: 1;
}

.about-custom .about-custom-text {
  order: 2;
}

/* .category-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-content.expanded {
  max-height: none;
}

.toggle-content-wrap{
  text-align: center;
}

.toggle-content-wrap .toggle-content {
  display: inline-block;
  margin-top: 10px;
  background: var(--fs-color-primary);
  color: #fff;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
} */

.blog-archive .post-title a {
  display: -webkit-box;            
  -webkit-line-clamp: 2;            
  -webkit-box-orient: vertical;     
  overflow: hidden;                
  text-overflow: ellipsis;       
  white-space: normal;            
  line-height: 1.5em;               
  max-height: 3em;           
}

span.amount {
    color: #dc4d4d;
}

.section-title-normal {
  margin-bottom: 0 !important;
}

.section-title-normal span{
  text-transform: capitalize;
  color: var(--fs-color-primary);
  padding-bottom: 2px;
}

.section-title-normal span {
    border-bottom: 3px solid rgba(1, 92, 165, .85);
}

.section-title-container {
    margin-bottom: 1em;
}

.title-heading,
.nav>li.active>a,
.ux-menu-title,
.nav>li:hover>a {
  color: var(--fs-color-primary);
}

@media (min-width: 992px) {
  .nav>li>a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    width: 0;
    -webkit-transition: all 350ms ease 0s;
    transition: all 350ms ease 0s;
    height: 3px;
    z-index: -1;
    background: var(--fs-color-primary);
    opacity: 0.9;
  }

  .nav>li:hover>a::before, 
  .nav>li.active>a::before {
      width: 100%;
      left: 0;
       top: 2.25em;
  }

  .header-wrapper.stuck .nav>li:hover>a::before,
  .header-wrapper.stuck .nav>li.active>a::before{
    top: 4em;
  }
}

.absolute-footer .container{
  display: flex;
  justify-content: center;
}

.nav-size-medium>li>a {
    font-size: 0.85em;
}


button.button,
.has-border,
.woocommerce-order .entry-content,
.button {
  border-radius: 6px !important;
}

textarea:not(:placeholder-shown)::placeholder {
  color: transparent; /* ẩn placeholder khi có nội dung */
}

.box-blog-post{
  border: 1px solid #f7f7f7;
  border-radius: 6px;
}

.box-blog-post .box-image{
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}


#cta-icon {
  position: fixed;
  width: 60px;
  right: 0;
  top: 50%;
  z-index: 9999;
  background: #fff;
  box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px 0 0 10px;
  -webkit-border-radius: 10px 0 0 10px;
  -moz-border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  -webkit-transform: translate(0, -50%);
  -moz-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  -o-transform: translate(0, -50%);
  transform: translate(0, -50%); }
  @media (max-width: 767px) {
    #cta-icon {
      top: inherit;
      width: 100%;
      height: 60px;
      bottom: 0;
      left: 0;
      right: inherit;
      display: flex;
      flex-direction: row;
      font-size: 0;
      text-align: center;
      -moz-transform: translate(0, 0);
      -o-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0); } }

#cta-icon a {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none; }
  @media (max-width: 767px) {
    #cta-icon a {
      display: inline-block;
      width: 20%;
    }
    
  }

}

#cta-icon .cs-ring {
  position: absolute;
  border: 1px solid #dc3545;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  -webkit-animation: pulsate 1s ease-out;
  -moz-animation: pulsate 1s ease-out;
  -ms-animation: pulsate 1s ease-out;
  -o-animation: pulsate 1s ease-out;
  animation: pulsate 1s ease-out;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  -ms-animation-iteration-count: infinite;
  -o-animation-iteration-count: infinite;
  animation-iteration-count: infinite; }

#cta-icon a.cta-phone {
  border-radius: 10px 0 0 0;
  -webkit-border-radius: 10px 0 0 0;
  -moz-border-radius: 10px 0 0 0; }

#cta-icon a.cta-phone i {
  color: #dc3545;
  -webkit-animation: swing ease-in-out .2s infinite alternate;
  -moz-animation: swing ease-in-out .2s infinite alternate;
  -ms-animation: swing ease-in-out .2s infinite alternate;
  -o-animation: swing ease-in-out .2s infinite alternate;
  animation: swing ease-in-out .2s infinite alternate; }
  display: inline-block;

#cta-icon a.cta-form i {
  color: #fe9329; }

@-webkit-keyframes swing {
  0% {
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    transform: rotate(10deg); }
  100% {
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    transform: rotate(-10deg); } }

@-moz-keyframes swing {
  0% {
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    transform: rotate(10deg); }
  100% {
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    transform: rotate(-10deg); } }

@-ms-keyframes swing {
  0% {
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    transform: rotate(10deg); }
  100% {
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    transform: rotate(-10deg); } }

@keyframes pulsate {
  0% {
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    transform: rotate(10deg); }
  100% {
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    transform: rotate(-10deg); } }

@-webkit-keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -o-transform: scale(0.1, 0.1);
    transform: scale(0.1, 0.1);
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    -webkit-transform: scale(2, 2);
    -moz-transform: scale(2, 2);
    -ms-transform: scale(2, 2);
    -o-transform: scale(2, 2);
    transform: scale(2, 2);
    opacity: 0; } }

@-moz-keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -o-transform: scale(0.1, 0.1);
    transform: scale(0.1, 0.1);
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    -webkit-transform: scale(2, 2);
    -moz-transform: scale(2, 2);
    -ms-transform: scale(2, 2);
    -o-transform: scale(2, 2);
    transform: scale(2, 2);
    opacity: 0; } }

@-ms-keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -o-transform: scale(0.1, 0.1);
    transform: scale(0.1, 0.1);
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    -webkit-transform: scale(2, 2);
    -moz-transform: scale(2, 2);
    -ms-transform: scale(2, 2);
    -o-transform: scale(2, 2);
    transform: scale(2, 2);
    opacity: 0; } }

@keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -o-transform: scale(0.1, 0.1);
    transform: scale(0.1, 0.1);
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    -webkit-transform: scale(2, 2);
    -moz-transform: scale(2, 2);
    -ms-transform: scale(2, 2);
    -o-transform: scale(2, 2);
    transform: scale(2, 2);
    opacity: 0; } }

#cta-icon a.cta-zalo {
  border-radius: 0 0 0 10px;
  -webkit-border-radius: 0 0 0 10px;
  -moz-border-radius: 0 0 0 10px; }

#cta-icon a:not(:last-child) {
  border-bottom: 1px solid #dee2e6; }

#cta-icon a i {
  font-size: 27px;
  color: #78BC1C; }

#cta-icon a:hover {
  background: #78BC1C; }

#cta-icon a:hover i {
  color: #fff; }

#cta-icon a:hover .cs-ring {
  border-color: #fff; }

#cta-icon em {
    display: none;
  }
  @media only screen and (max-width: 767px) {
    .section-subscribe.active {
      max-width: 95%;
      height: 100%;
      top: 60px;
      left: 0;
      overflow: scroll;
      transform: translate(0, 0);
    }
    #cta-icon {
      height: 70px;
    }
    #cta-icon a {
      border-bottom: none !important;
      width: 25%;
      display: flex;
      flex-direction: column;
      gap: 8px;
      justify-content: center;
      padding-bottom: 8px;
    }
    #cta-icon em {
      display: block;
      padding-top: 0;
      font-style: normal;
      text-transform: uppercase;
      color: #1C75BC;
      font-size: 10px;
      line-height: 10px;
      line-height: 1em;
      letter-spacing: 0em;
      font-weight: 700;
    }
    #cta-icon a.cta-messenger .ico_messenger {
      width: 27px;
      height: 27px;
    }
    .cta-mail em,
    .cta-phone em {
      position: relative;
      /* top: 3px; */
    }

    
}

/* ======== MENU DROPDOWN CHUẨN FLATSOME ======== */
header#header .nav-dropdown > li {
  display: block !important;
  width: inherit !important;
}


header#header .nav-dropdown {
  display: none; /* chỉ hiện khi hover */
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  min-width: 250px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding: 8px 0;
}

/* Hiện menu khi hover cấp cha */
header#header li:hover > .nav-dropdown {
  display: block !important;
}

/* Mục cấp 1 trong dropdown */
header#header .nav-dropdown > li {
  position: relative;
  list-style: none;
}

header#header .nav-dropdown > li > a {
  display: block;
  padding: 10px 18px;
  color: #333;
  font-weight: 500;
  background: #fff;
  border-radius: 6px;
  margin: 2px 8px;
  transition: all 0.25s ease;
}

/* Hover nền xanh */
header#header .nav-dropdown > li:hover > a {
  background: linear-gradient(90deg, var(--fs-color-primary), #1714d9);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(1, 92, 165, 0.4);
}

/* ======== SUBMENU (CẤP 2) ======== */
header#header .nav-dropdown ul.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border-radius: 8px;
  min-width: 230px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: none;
  padding: 8px 0;
  z-index: 999;
}

/* Hover hiển thị submenu cấp 2 */
header#header .nav-dropdown li:hover > ul.sub-menu {
  display: block !important;
}

/* Item submenu */
header#header .nav-dropdown ul.sub-menu li a {
  padding: 10px 15px;
  display: block;
  color: #333;
  background: #fff;
  border-radius: 6px;
  margin: 2px 8px;
  transition: all 0.25s ease;
}

/* Hover submenu vàng */
header#header .nav-dropdown ul.sub-menu li:hover > a {
  background: var(--fs-color-primary);
  color: #fff !important;
}

/* Gọn menu item */
header#header .nav-dropdown li {
  border: none;
  white-space: normal;
}
/* ==== Hiện mũi tên phải nếu có submenu ==== */
header#header .nav-dropdown li.menu-item-has-children > a {
  position: relative;
  padding-right: 26px; /* chừa khoảng cho mũi tên */
}

/* Mũi tên phải mặc định */
header#header .nav-dropdown li.menu-item-has-children > a::after {
  content: "\f105"; /* icon FontAwesome - mũi tên phải */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #888;
  transition: all 0.25s ease;
}

/* Hover đổi mũi tên sang trắng khi nền vàng */
header#header .nav-dropdown li.menu-item-has-children:hover > a::after {
  color: #fff;
}

/* Mục đang active hoặc hover có nền vàng */
header#header .nav-dropdown > li:hover > a,
header#header .nav-dropdown > li.current-menu-item > a {
  background: linear-gradient(90deg, var(--fs-color-primary), #0f7bd1);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(1, 92, 165, 0.4);
}

/* Mũi tên cấp 2 nhỏ hơn và lệch nhẹ phải */
header#header .nav-dropdown ul.sub-menu li.menu-item-has-children > a::after {
  right: 8px;
  font-size: 12px;
}

/* SUBMENU cấp 3 trở đi */
header#header .nav-dropdown ul.sub-menu ul.sub-menu {
  position: absolute;
  top: 0;                 /* reset để bám vào item cha */
  left: 100%;             /* nằm bên phải item cha */
  background: #fff;
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: none;
  padding: 8px 0;
  z-index: 9999;
}

/* quan trọng: bám theo item cha */
header#header .nav-dropdown ul.sub-menu li {
  position: relative; /* để submenu cấp 3 bám theo li cha */
}

/* hover mới hiện */
header#header .nav-dropdown ul.sub-menu li:hover > ul.sub-menu {
  display: block !important;
  top: 0; /* canh từ trên của li cha */
  left: 100%; /* xuất hiện ngay bên phải */
}




.section-showroom {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 auto;
    padding-bottom: 30px !important;
    max-width: 90%;
}
.row-showroom{
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.375;
  min-height: 100%;
  position: relative;
  background: #f9f9f9;
}

.row-showroom ul {
    margin: 0 0 5px;
    padding: 0;
    list-style: none;
    position: relative;
    margin-left: -25px;
    display: flex;
    flex-direction: column;
    gap: 0x;
}
.row-showroom ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 33px;
    font-size: 15px;
}
.row-showroom ul li .fa {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background: #98999a;
    border-radius: 5px;
    color: #fff;
    margin-right: 5px;
    font-size: 12px;
    position: absolute;
    left: 0px;
    top: o;
}
.row-showroom ul li b {
    font-weight: 700;
}
.row-showroom ul li a {
    color: inherit;
}

.quantity input[type=number] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.file-list{
  display: flex;
}

.article-inner .entry-divider{
  display:none;
}

.article-inner .entry-header-text{
  padding-bottom: 0;
}

.post-item .box-blog-post{
  min-height: 267px;
}

.products .type-product img{
  width: 100%;
  aspect-ratio: 1 / 1; /* chiều cao = chiều rộng */
  object-fit: cover;   /* cắt ảnh cho vừa khung */
}


.section-footer .ux-menu-title{
  font-size: 14px;
}

header#header .cart-item .nav-dropdown {
  left: auto
}

.section-footer .ux-menu {
  font-size: 15px !important;
}

.section-footer .ux-menu a:hover {
  color: currenColor;
  background-size: 100% 1px;
  background-position-x: left;
}

.section-footer .ux-menu-link__link {    
    min-height: auto;
    padding-bottom: 0;
    padding-top: 0;
}

.section-footer .ux-menu-title{
  /* position: relative; */
  padding-bottom: 0;
  display: block;
}

.section-footer .ux-menu-title:after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  border-radius: 2px;
  background: -webkit-gradient(linear, right top, left top, from(rgba(168, 143, 114, 0)), to(#0f7bd1));
  background: linear-gradient(270deg, rgba(168, 143, 114, 0) 0%, #0f7bd1 100%);
}

.section-footer p{
  margin-bottom: 0 !important;
  font-size: 15px !important;
}

.section-footer .ux-menu-link{
  margin-bottom: 4px !important;
}

.ux-menu-title {
    min-height: 2.75em;
}

li.cart-item .nav-dropdown{
  padding: 20px !important;
}

/* Laptop */
@media (max-width: 1339px) {
  .section-slider img {
    max-height: 550px !important;
  }
}


/* Tablet */
@media (max-width: 1024px) {
  .section-slider img {
    max-height: 450px !important;
  } 
  .about-custom {
    flex-direction: column;
  }

  .about-custom .about-custom-image {
  order: 2;
}

  .about-custom .about-custom-text {
    order: 1;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section-slider img {
    max-height: 250px !important;
  }
  .pt-70{
    padding-top: 32px !important;
  }
  .pb-70{
    padding-bottom: 32px !important;
  }
}

@media (min-width: 850px){
  .left-posts > .post-item:nth-of-type(2) {
    display: none;
  }
}
