/*
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.   ***************/


@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.title-des h3 {
  font-size: 30px;
}

.title-des span {
  font-size: 16px;
}

.bt-icon .icon-inner {
  position: absolute;
  bottom: 0;
}

.flickity-prev-next-button {
  width: 60px;
  height: 60px;
  background: rgb(0 0 0 / 17%);
  color: #fff;
  border: none;
  border-radius: 50%;
  z-index: 10;
  position: absolute;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.flickity-prev-next-button.previous {
  left: 15px;
  top: 40%;
}

.flickity-prev-next-button.next {
  right: 15px;
  top: 40%;
}

/* Bắt buộc để icon mũi tên hiện */
.flickity-button-icon {
  fill: #fff !important;
  width: 18px;
  height: 18px;
}

/*Page*/
.round-8 img {
  border-radius: 8px;
}
.round-10 img {
  border-radius: 10px;
}
.page-text h3 {
  font-size: 35px;
}

.page-text p {
  font-size: 25px;
}

.page-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*breadcrumb*/
.custom-breadcrumb {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 30px;
  color: white;
  font-weight: bold;
}

.sl .custom-breadcrumb {
  background: #333333;
  padding: 10px 20px;
}

.custom-breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.custom-breadcrumb li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 100;
  margin-left: 0 !important;
}

.custom-breadcrumb li:last-child::after {
  content: "";
}

.custom-breadcrumb a {
  color: white;
  text-decoration: none;
}

.custom-breadcrumb a:hover {
  text-decoration: underline;
}

.custom-breadcrumb i {
  padding: 0 5px;
}

.hide-title-b b {
  display: none;
}

.hide-title-b span {
  margin: auto;
}


/* Căn giữa dòng và khoảng cách đẹp */

.header-language-dropdown {
  background: #333;
  border-radius: 30px;
  line-height: 30px;
}

.header-language-dropdown>a {
  padding: 0px 7px !important;
  color: #fff !important;
}

.header-language-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Icon cờ */
/* .header-language-dropdown i.image-icon {
  height: 28px;
} */

/* Mũi tên dropdown */
.header-language-dropdown i.icon-angle-down {
  font-size: 12px;
  margin-left: 2px;
}

.header-language-dropdown .icon-angle-down:before {
  content: "\f107";
  color: #fff;
}

.imhoverTop {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.imhoverTop img {
  display: block;
  width: 100%;
  height: auto;
}

/* Lớp overlay ban đầu ẩn, chỉ hiện dần khi hover */
.imhoverTop .overlay {
  position: absolute;
  bottom: 0;
  top: auto;
  /* ✨ Rất quan trọng nếu top bị kế thừa */
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  transition: height 0.4s ease-out;
  z-index: 1;
}

/* Hover hiệu ứng chạy từ dưới lên */
.imhoverTop:hover .overlay {
  height: 100%;
}

/*Tùy biến giao diện sản phẩm*/
.product-card .col-inner {
  border: 1px solid #ddd;
  background: #fff;
  padding: 0px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card .col-inner:hover {
  border-bottom: 3px solid #ed1c24;
  box-shadow: 0 16px 12px -4px #00000029, 0 0 4px 0 #0000001a;
}

/* Container tổng */
.box-text-products {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Danh mục sản phẩm */
.box-text-products .product-cat {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/* Tiêu đề sản phẩm */
.box-text-products .product-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.box-text-products .product-title a {
  text-decoration: none;
}

.box-text-products .product-title a:hover {
  color: #c00;
}

/* Giá và kích thước */
.box-text-products .price-wrapper {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
}

.box-text-products .product-size {
  font-size: 14px;
  color: #a8a8a8;
  margin-top: 15px;
  font-weight: normal;
}

/* Nút thêm vào giỏ */
.box-text-products .add-to-cart-button a {
  display: inline-block;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  text-align: right;
  margin: 0;
  text-transform: none;
  -webkit-text-decoration: underline red;
  text-decoration: underline red;
  text-underline-position: under;
}

.add-to-cart-button {
  text-align: right;
}

.box-text-products .add-to-cart-button a:hover {
  color: #d33;
  background: transparent;
}

.add-to-cart-button a:before {
  display: inline-block;
  content: "\f105";
  font-family: fl-icons;
  float: left;
  font-weight: 300;
  margin-right: 5px;
  color: red;
}

.m-auto {
  margin: auto;
  padding: 0 !important;
}

/* .product-container .product-main > .row {
  border-radius: 7px;
}
.product-container .product-main > .row > .col {
  border: 1px solid #ddd;
  padding: 12px;
  box-sizing: border-box;
} */
.product-info .breadcrumbs {
  padding: 4px 16px;
  background: rgba(0, 0, 0, .2);
  background-blend-mode: difference;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  color: #fff;
}

.product-attributes p {
  margin-bottom: 5px;
  font-size: 16px;
}

.grid-b>.row {
  padding: 15px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-shadow: 0 0 0 1px hsla(0, 0%, 20%, 0.2);
  border-radius: 10px;
}

.grid-b .product-info {
  box-shadow: -0.5px 0 0 0 hsla(0, 0%, 20%, 0.2);
  padding-bottom: 0;
}

.sku-wrapper {
  margin-top: 10px;
  box-shadow: 0 -1px 0 0 #fff;
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
}

.grid-b .info-360 {
  border-top: 1px solid #fff;
  margin-top: 10px;
}

.grid-b .info-360 img {
  border-radius: 10px;
}

.grid-b .info-360 a {
  margin-top: 15px;
}

.download {
  display: flex;
  margin-top: 15px;
  cursor: pointer;
  align-content: stretch;
  justify-content: space-evenly;
  align-items: center;
}

.download span {
  font-weight: 700;
  font-size: 16px;
}

.download svg {
  fill: #333;
  width: 26px;
  height: 26px;
}

/*Hình banner chi tiết sản phẩm*/
.custom-product-hero {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
}

.custom-product-hero .hero-background {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
}

.hero-content-box {
  position: absolute;
  bottom: 30px;
  right: 40px;
  background: white;
  padding: 24px 28px;
  border-radius: 12px;
  max-width: 350px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-content-box p {
  color: #333;
}

.hero-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}

.hero-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  background: #000;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background: #333;
}

/*Điều hướng thumnail chi tiết sản phẩm*/
.flickity-button-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

.slick-prev,
.slick-next {
  font-size: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slick-prev {
  left: 0;
}

.slick-next {
  right: 0;
}

/* Canh giữa toàn bộ dot */
ul.slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  margin: 0 auto;
  list-style: none;
}

/* Dot mặc định */
.slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d3d3d3;
  /* màu dot chưa active */
  border: none;
  text-indent: -9999px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
  line-height: 1.4em;
  min-height: 0.5em;
  margin-right: 0em;
}

/* Dot active */
.slick-dots li.slick-active button {
  background-color: #000;
  transform: scale(1.2);
  /* phóng to nhẹ để nhấn mạnh */
}

/*Form công thức*/
.tile-calc-wrapper {
  border-radius: 10px;
  background: #fff;
  padding: 25px;
  margin-top: 30px;
}

.tile-calc-box {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.tile-calc-box h4 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #333;
}

.tile-calc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tile-calc-grid input[type="number"],
.tile-calc-grid input[type="text"] {
  flex: 1 1 200px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.tile-calc-check {
  margin-top: 15px;
  font-size: 15px;
}

.tile-calc-check label {
  color: #333;
}

.calc-icon {
  font-size: 20px;
}

/*Thông số kỹ thuật*/
.product-tech-specs {
  margin-top: 40px;
  border-top: 1px solid #eee;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.product-tech-specs h4 {
  color: #333;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 40px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.spec-label {
  color: #444;
}

.spec-value {
  font-weight: 600;
  color: #000;
}


/*Tin tức*/
.header-blog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.header-blog .entry-image {
  flex: 1 1 50%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-blog .entry-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.header-blog .entry-header-text {
  flex: 1 1 45%;
  color: #111;
}

.header-blog .entry-header-text h1,
.header-blog .entry-header-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.header-blog .entry-header-text .entry-date {
  color: #777;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.sku-title {
  font-size: 16px;
  color: #a3a3a3;
  font-weight: 700;
}

.sku-code {
  font-size: 16px;
}

.view-more {
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 20px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

#bye-now {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

#bye-now:hover {
  color: #b9b8b8;
}

@media screen and (max-width: 768px) {
  .header-blog {
    flex-direction: column;
    padding: 20px;
  }
}

.mt-20 {
  margin-top: 20px;
}


/*Portfolio*/
.section-content {
  z-index: auto !important;
}

#portfolio-filter-container {
  z-index: 99999 !important;
}

/* danh mục sản phẩm */
.grid-4col-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  grid-auto-rows: 380px;
  /* Chiều cao cố định mọi hàng */
}

.grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.grid-item.span-2 {
  grid-column: span 2;
}

.grid-item.span-1 {
  grid-column: span 1;
}

.grid-item .overlay-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.grid-item .title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 6px 12px;
  font-size: 22px;
  font-weight: 600;
  border-radius: 4px;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 30px;
}

.load-more-btn {
  background: #fff;
  color: #111;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff inset;
  transition: 0.2s ease;
}

.load-more-btn:hover {
  background: #111;
  color: #fff;
}

.grid-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 40px auto;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.grid-item.span-4 {
  grid-column: span 4;
  aspect-ratio: 4 / 1;
}

/**/
.woocommerce-breadcrumb.breadcrumbs {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 20px;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  left: 50%;
  font-weight: normal;
}

.woocommerce-breadcrumb.breadcrumbs li {
  margin: 0 5px;
  font-size: 14px;
}

.woocommerce-breadcrumb.breadcrumbs a {
  color: #fff !important;
  text-decoration: none;
}

.woocommerce-breadcrumb.breadcrumbs li a:hover {
  text-decoration: underline;
}

.woocommerce-breadcrumb.breadcrumbs li:after {
  content: ">";
  margin-left: 5px;
}

.custom-slider-wrapper .slide {
  height: 500px;
  text-align: center;
  overflow: hidden;
}

.custom-slider-wrapper h4 {
  font-size: 30px;
  margin-bottom: 35px;

}

.custom-slider-wrapper .slide img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.space-image h2 {
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: 30px;
}


.space-slider-section {
  padding: 40px 0;
}

.space-slider-section .slide img {
  transition: transform 0.3s ease;
}

.space-slider-section .is-selected img {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.flickity-prev-next-button svg,
.flickity-prev-next-button .arrow {
  width: 45px;
  height: 45px;
  stroke-width: 1;
  stroke: white;
}

.flatsome-product-slider .product-name {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  color: #fff;
  font-size: 14px;
  z-index: 1;
  text-decoration: none;
}

/*Tùy chỉnh tiêu đề danh mục sản phẩm*/
.product-category .header-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-category .header-title::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' height='64px' width='64px' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='-147.6 -147.6 787.20 787.20' xml:space='preserve' stroke='%23fff' stroke-width='0.0049200400000000005'%3E%3Cg%3E%3Cpath d='M484.14,226.886L306.46,49.202c-5.072-5.072-11.832-7.856-19.04-7.856c-7.216,0-13.972,2.788-19.044,7.856l-16.132,16.136 c-5.068,5.064-7.86,11.828-7.86,19.04c0,7.208,2.792,14.2,7.86,19.264L355.9,207.526H26.58C11.732,207.526,0,219.15,0,234.002 v22.812c0,14.852,11.732,27.648,26.58,27.648h330.496L252.248,388.926c-5.068,5.072-7.86,11.652-7.86,18.864 c0,7.204,2.792,13.88,7.86,18.948l16.132,16.084c5.072,5.072,11.828,7.836,19.044,7.836c7.208,0,13.968-2.8,19.04-7.872 l177.68-177.68c5.084-5.088,7.88-11.88,7.86-19.1C492.02,238.762,489.228,231.966,484.14,226.886z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.product-category .box:hover .header-title::after {
  transform: rotate(-45deg);
}

/*Hết Tùy chỉnh tiêu đề danh mục sản phẩm*/

/* Hiệu ứng hover cho nút điều hướng */
.flickity-button:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}
.slider .flickity-prev-next-button:hover svg, .slider .flickity-prev-next-button:hover .arrow {
    fill: #fff !important;
}
.has-equal-box-heights .box-image {
  border-radius: 5px;
}

.product-gallery .row.row-small {
  display: flex;
  align-items: center;
  /* Canh giữa dọc */
  justify-content: center;
  /* Canh giữa ngang */
  height: 100%;
  /* Đảm bảo chiều cao 100% khung */
  position: relative;
  align-content: space-around;
}

.round .title-overlay,
.round .title-bg {
  border-radius: 10px;
}

.header-button-1 .button,
.header-button-2 .button {
  padding: 0;
}

.header-button-1 .button,
.header-button-2 .button,
.cart-item .header-cart-link.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 33px;
  height: 24px;
  border-radius: 50%;
  background-color: transparent;
  border-color: transparent;
  position: relative;
}

/* Base style */
.header-button-1 .button::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Trang khác hoặc .home.stuck: icon đen — đặt TRƯỚC */
:not(.page-template-page-transparent-header-light) .header-button-1 .button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l4-5h-3V4h-2v7H8l4 5zM5 18h14v2H5z'/%3E%3C/svg%3E");
}

.page-template-page-transparent-header-light .stuck .header-button-1 .button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l4-5h-3V4h-2v7H8l4 5zM5 18h14v2H5z'/%3E%3C/svg%3E") !important;
}

/* .home mặc định (khi KHÔNG stuck): icon trắng */
.page-template-page-transparent-header-light:not(.stuck) .header-button-1 .button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l4-5h-3V4h-2v7H8l4 5zM5 18h14v2H5z'/%3E%3C/svg%3E");
}

/* Hover ở mọi nơi: icon trắng */
.header-button-1 .button:hover::before,
.page-template-page-transparent-header-light .stuck .header-button-1 .button:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l4-5h-3V4h-2v7H8l4 5zM5 18h14v2H5z'/%3E%3C/svg%3E") !important;
}


/* Base style cho tất cả */
.header-button-2 .button::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

:not(.page-template-page-transparent-header-light) .header-button-2 .button::before {
  background-image: url('../flatsome/assets/img/location-black.svg');
}

.page-template-page-transparent-header-light .stuck .header-button-2 .button::before {
  background-image: url('../flatsome/assets/img/location-black.svg') !important;
}

/* .home mặc định (khi KHÔNG stuck): icon trắng */
.page-template-page-transparent-header-light:not(.stuck) .header-button-2 .button::before {
  background-image: url('../flatsome/assets/img/location-white.svg');
}

/* Hover ở mọi nơi: icon trắng */
.header-button-2 .button:hover::before,
.page-template-page-transparent-header-light .stuck .header-button-2 .button:hover::before {
  background-image: url('../flatsome/assets/img/location-white.svg') !important;
}

.cart-item i {
  display: none;
}

.cart-item .header-cart-link.button::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

:not(.page-template-page-transparent-header-light) .cart-item .header-cart-link.button::before {
  background-image: url('../flatsome/assets/img/cart-black.svg');
}

.page-template-page-transparent-header-light .stuck .cart-item .header-cart-link.button::before {
  background-image: url('../flatsome/assets/img/cart-black.svg') !important;
}

/* .home mặc định (khi KHÔNG stuck): icon trắng */
.page-template-page-transparent-header-light:not(.stuck) .cart-item .header-cart-link.button::before {
  background-image: url('../flatsome/assets/img/cart-white.svg');
}

/* Hover ở mọi nơi: icon trắng */
.cart-item .header-cart-link.button:hover::before,
.page-template-page-transparent-header-light .stuck .cart-item .header-cart-link.button:hover::before {
  background-image: url('../flatsome/assets/img/cart-white.svg') !important;
}

.header-button-1 a.plain:hover,
.header-button-2 a.plain:hover {
  background: #333;
  opacity: unset;
}

.header-button .button.is-outline {
  border-color: transparent;
}

.is-outline {
  color: #333;
}

.nav-dark .is-outline {
  color: #fff;
}

.stuck .header-button .is-outline {
  color: #333;
}

.header-button .button.is-outline:hover {
  background: #333;
  color: #fff;
}

.nav>li>a>i {
  font-size: 10px;
}

.nav-uppercase>li>a {
  font-weight: 400;
}

.video p {
  margin: 0;
}

.b-radius-2 img {
  border-radius: 1%;
}
.b-radius-2-percent img {
  border-radius: 2%;
}
.home #masthead {
  position: relative;
  padding-top: 10px;
  /* z-index: 2; */
}

.home #masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(1px);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.home .header-wrapper {
  max-width: 100% !important;
  margin: unset !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.home .header {
  padding: 0 !important;
}

.home .header-wrapper.stuck {
  max-width: 1440px !important;
  margin: auto !important;
  margin-top: 10px !important;
  padding: 5px !important;
  border-radius: 10px !important;
}


/* Khi header dính (sticky), ẩn lớp overlay */
.home .stuck #masthead::before {
  opacity: 0;
}

.header-language-dropdown .image-icon,
.header-language-dropdown .image-icon img,
.header-language-dropdown ul li img {
  display: none;
}

.header-language-dropdown>a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../flatsome/assets/img/location.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  opacity: 1 !important;
}

/* .off-canvas.off-canvas-left {
  position: relative;
} */

button.mfp-close {
  left: 32px;
  top:5px;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333;
  overflow: hidden;
  z-index: 0;
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  /* tùy vị trí nút unmute */
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}
.header-content-review h1, .header-content-review h2, .header-content-review h3 {
  font-weight: 700;
  color: #333;
  font-size: 30px;
}

.banner-layers {
  position: relative;
  z-index: 1;
}

.title-breadcrumbs.pb-half.pt-half {
    display: none;
}

/* Responsive: stack trên mobile */
@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: 1fr;
  }

  /* .grid-item.span-2,
  .grid-item.span-1 {
    grid-column: span 1 !important;
  } */

  .custom-product-hero .hero-background {
    height: auto;
  }

  .hero-content-box {
    right: 0;
    left: 0;
    margin: auto;
    bottom: 20px;
    padding: 5px 10px;
  }

  .custom-product-hero {
    margin-bottom: 0;
  }

  .woocommerce-product-gallery {
    max-height: auto;
    height: auto;
  }

  .product-title,
  .product-info .price {
    padding: 0 !important;
  }

  .total-price {
    font-size: 14px !important;
    color: red !important;
  }


  /* Đảm bảo nút phóng to và chia sẻ không đè lên nội dung */
  .zoom-icon,
  .share-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Tối ưu tiêu đề sản phẩm */
  .product-title {
    font-size: 18px;
    line-height: 1.2;
    margin-top: 10px;
    padding: 0 10px;
  }

  .price {
    font-size: 15px;
    font-weight: bold;
    margin-top: 5px;
    padding: 0px;
  }

  .add-to-cart-button {
    text-align: left;
  }

  .custom-slider-wrapper {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    padding: 0 10px;
  }

  .custom-product-slider {
    height: 250px;
    /* Điều chỉnh chiều cao theo ý muốn */
    overflow: hidden;
    position: relative;
  }

  .custom-product-slider .slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-product-slider img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin: 0 auto;
  }

  /* Đảm bảo nút điều hướng luôn cố định giữa khung */
  .flickity-prev-next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0 0 0 / 17%);
    border-radius: 50%;
    padding: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    z-index: 10;
  }

  .flickity-prev-next-button.previous {
    left: 10px;
  }

  .flickity-prev-next-button.next {
    right: 10px;
  }

  /* Đảm bảo nút phóng to luôn ở góc dưới phải */
  .custom-slider-wrapper .lightbox-gallery {
    position: absolute;
    bottom: 10px;
    color: #fff;
    font-size: 16px;
    transition: background 0.3s;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-slider-wrapper .lightbox-gallery:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  /* Đảm bảo tiêu đề luôn hiển thị đẹp */
  .custom-slider-wrapper h4 {
    font-size: 18px;
    margin-bottom: 0;
  }

  .flickity-prev-next-button.previous {
    left: 0;
  }

  .flickity-button {
    width: 30px;
    height: 30px;
    padding: 17px;
  }

  .flickity-button svg {
    width: 20px;
    height: 20px;
  }

  .woocommerce-breadcrumb.breadcrumbs {
    margin-top: 30px;
    font-size: 11px;
  }

  #header {
    padding: 0 !important;
    background: #fff;
  }
  .home .header-wrapper.stuck, img.header-logo-dark {
    padding: 0 !important;
  }
  .header-bg-color,
  .header-wrapper {
    border-radius: 0 !important;
  }

  .header-wrapper.stuck {
    margin-top: 0 !important;
  }

  ul.mobile-nav.nav.nav-right li {
    margin: 0 1px;
  }

  .nav.nav-small>li>a {
    vertical-align: middle;
    line-height: 24px;
  }

  .header-button-1 .button::before,
  .header-button-2 .button::before {
    width: 20px;
    height: 19px;
  }

  .header-button-1 .button,
  .header-button-2 .button {
    width: 29px;
  }

  #top-bar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.6) 100%) !important;
  }

  .stuck #top-bar {
    background: transparent !important;
  }

  .home .header-wrapper.stuck {
    margin-top: 0px !important;
  }
  button.mfp-close {
    left: 0;
    top: 0;
  }
  .page-text h3 {
    font-size: 20px;
  }
  .off-canvas .sidebar-menu {
      padding: 70px 0;
  }
  .off-canvas-right .mfp-content, .off-canvas-left .mfp-content {
    width: 100%;
    background-color: #fff;
  }
  .nav.nav-vertical li {
    border: none !important;
  }
  .nav.nav-vertical li a{
    font-size: 20px;
    padding-left: 15% !important;
  }
  .nav-dark .nav>li>a, .nav-dark .is-outline {
    color: #333;
  }

  .page-template-page-transparent-header-light:not(.stuck) .header-button-2 .button::before {
    background-image: url('../flatsome/assets/img/location-black.svg');
  }
  .page-template-page-transparent-header-light:not(.stuck) .cart-item .header-cart-link.button::before {
    background-image: url('../flatsome/assets/img/cart-black.svg');
  }
  .page-template-page-transparent-header-light:not(.stuck) .header-button-1 .button::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 24 24'%3E%3Cpath d='M12 16l4-5h-3V4h-2v7H8l4 5zM5 18h14v2H5z'/%3E%3C/svg%3E");
  }
  .title-des h3 {
    font-size: 18px;
  }

  .row-slider-image-box .flickity-viewport, .row-slider-showroom .flickity-viewport, .custom-product-slider .flickity-viewport, .du-an .flickity-viewport {
    overflow: visible !important;
  }

  .row-slider-image-box, .row-slider-showroom, .custom-product-slider, .du-an {
    overflow: hidden;
    padding: 0 40px; /* tạo khoảng trắng cho center slide */
  }
  .center-mobile .social-icons {
    text-align: center;
  }
  .header-blog .entry-header-text h1, .header-blog .entry-header-text h2 {
    font-size: 20px;
  }
  .entry-content.single-page{
    padding: 0 15px 30px !important;
  }
  .page-wrapper {
    padding-top: 0px;
  }
  .products-grid .col{
    padding: 0 5px 30px;
  }
  .home #masthead {
    padding-top: 0px;
  }
}
.mfp-bg.mfp-ready{
  opacity: .8;
}
.header-language-dropdown a{
  display: flex !important;
  line-height: 30px !important;
}
.header-bg-color {
    transition: none !important;
}

.button.icon.circle>span {
  margin: 0;
}

.cart-item .header-button .circle img {
  border-radius: 0 !important;
  padding: 5px;
}
.round-only, .round-only .section-bg-overlay{
  border-radius: 7px;
}




.custom-space-slider-wrapper {
        position: relative;
        padding: 30px 0;
        overflow-x: hidden;
        max-width: 100%;
        max-height: 500px;
    }

    .custom-space-slider {
        overflow: hidden !important;
    }

    .custom-space-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    .custom-space-slider-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .custom-space-slider .swiper-slide {
        transform: scale(0.8);
        opacity: 0;
        transition: all 0.5s ease;
        pointer-events: none;
    }

    .custom-space-slider .swiper-slide-prev,
    .custom-space-slider .swiper-slide-next {
        transform: scale(0.9);
        opacity: 0.4;
        pointer-events: auto;
        z-index: 1;
    }

    .custom-space-slider .swiper-slide-active {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

    .custom-space-slider .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 400px; /* hoặc auto nếu muốn động */
    }

    .custom-space-slider .swiper-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Nút prev/next */
    .swiper-button-prev,
    .swiper-button-next {
        color: #000;
        width: 36px;
        height: 36px;
    }

    /* MOBILE: chỉ hiện 1 slide */
    @media (max-width: 767px) {
        .custom-space-slider .swiper-slide {
            transform: scale(0.7);
            opacity: 0;
        }

        .custom-space-slider .swiper-slide-active {
            transform: scale(1);
            opacity: 1;
        }

        .custom-space-slider .swiper-slide-prev,
        .custom-space-slider .swiper-slide-next {
            transform: scale(0.8);
            opacity: 0.3;
        }
    }

    
/* Chỉ áp dụng trên Desktop (màn hình >= 992px) */
@media (min-width: 992px) {
  /* Định dạng menu cha */
  .nav-sidebar.nav-vertical.nav-uppercase {
    height: 100vh;
    padding-top: 70px;
  }
  .off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    padding-left: 43px;
  }
  .mfp-container {
      height: 100vh;
  }
  /* Định dạng item trong menu con */
  .nav-sidebar-ul.children>li {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
  }

  /* Định dạng hình ảnh trong menu con */
  .nav-sidebar-ul.children>li a {
    display: block;
    position: relative;
    height: 100%;
    padding-left: 0 !important;
    font-size: 25px;
  }

  .nav-sidebar-ul.children>li a img.ux-sidebar-menu-icon {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 8px;
  }

  /* Overlay nền tối với text và icon */
  .nav-sidebar-ul.children>li a .overlay_menu {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  

  /* Icon mũi tên bên phải với hiệu ứng */
  .nav-sidebar-ul.children>li a .overlay_menu .icon-arrow {
    font-size: 20px;
    transition: transform 0.3s;
    transform: rotate(0deg);
  }

  /* Hiệu ứng hover: Hình ảnh phóng to, icon xoay */
  /* .nav-sidebar-ul.children > li a:hover img.ux-sidebar-menu-icon {
    transform: scale(1.05);
  } */

  .nav-sidebar-ul.children>li a:hover .overlay_menu .icon-arrow {
    transform: rotate(-45deg);
  }

  /* Đảm bảo hiển thị menu con khi kích hoạt */
  .nav:not(.nav-slide) .active>.children {
    position: fixed;
    top: 0;
    left: 33.33%;
    height: 100vh;
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
    z-index: 10000;
    display: block !important;
  }

  .off-canvas .sidebar-menu {
    padding: 0;
  }

  /* Column 1: Parent */
  .nav-sidebar.nav-vertical {
    width: 33.33% !important;
    background: #fff !important;
  }

  .off-canvas-left .mfp-content {
    overflow-y: unset !important;
    overflow-x: unset !important;
  }

  /* Column 2: Child */
  .nav-sidebar-ul.level-2 {
    width: 33.33% !important;
    height: 100vh;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 33.33%;
    display: none;
    background: #fff;
    z-index: 20;
  }

  /* Column 3: Grandchild */
  .nav-sidebar-ul.level-3 {
    width: 33.33% !important;
    height: 100vh;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 66.66%;
    display: none;
    background: #fff;
    z-index: 30;
  }

  .off-canvas-right .mfp-content,
  .off-canvas-left .mfp-content {
    width: 100% !important;
    background-color: transparent !important;
    box-shadow: unset !important;
  }

  .mobile-sidebar .nav-uppercase>li>a {
    text-transform: inherit !important;
    font-weight: normal;
    font-size: 25px !important;
    padding: 5px 0 5px 0;
  }

  .mobile-sidebar .nav.nav-vertical li {
    border: none !important;
  }

  html.js.has-off-canvas.has-off-canvas-left {
    margin-right: 0 !important;
  }
  button.mfp-close {
    padding-top: 10px;
  }
}

.custom-product-image-wrapper {
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}

.custom-product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.custom-product-image-wrapper:hover img {
  transform: scale(1.05);
}