/*-----style chung cho product*/
.my-font-content-product {
    font-family: var(--e-global-typography-ef58629-font-family);
    font-size: var(--e-global-typography-ef58629-font-size);
    font-weight: var(--e-global-typography-ef58629-font-weight);
}

.my-color-content-product-black {
    color: var(--e-global-color-5fab868);
}

.my-color-content-product-white {
    color: var(--e-global-color-73242f8);
}

.my-swiper img{
  width:100%;
  height:500px;
  object-fit:cover;
}

/*-----LINE BEFORE TITLE IN PRODUCT SINGLE-----*/
.gradient-line {
  position: relative;
  padding-left: 14px; 
}

.gradient-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 140%;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(
    120deg,
    #ff171c 0%,
    #c93a7a 50%,
    #3282d8 100%
  );
}

.gradient-line h1,
.gradient-line h2,
.gradient-line h3 {
    margin: 0;
    padding: 0;
}

/*-----GRADIENT TEXT FOR TITLE IN PRODUCT SINGLE-----*/
.gradient-text {
  background: linear-gradient(
    120deg,
    #ff171c 0%,
    #c93a7a 40%,
    #3282d8 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*-----GRADIENT BACKGROUND-----*/
.gradient-bg {
  background: linear-gradient(
    120deg,
    #ff171c 0%,
    #c93a7a 50%,
    #3282d8 100%
  ) !important;
  border: none !important;
}

.gradient-bg .text h3{
    color: #fff !important;
    margin: 0 !important;
}



/*-----img gird của tab "ảnh sản phẩm" trong product single-----*/
.custom-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;

  justify-content: center;   
  align-content: center;

  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.custom-gallery-grid .item {
  overflow: hidden;
  border-radius: 12px;
}

.custom-gallery-grid .item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

/*----hiệu ứng load trang-----*/
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/*-----custom sidebar for catories in category page-----*/
/* ===== WRAPPER ===== */
.cat-sidebar {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 20px;
}

/* ===== ITEM LEVEL 2 ===== */
.cat-parent {
  position: relative;
  margin-bottom: 10px;
}

/* item chính */
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 18px;
  border-radius: 12px;

  background: #e9ecef;
  color: #333;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover */
.cat-item:hover {
  background: #dde1e5;
}

/* ACTIVE (màu xanh giống hình) */
.cat-item.active {
  background: #3b5edb;
  color: #fff;
}

/* thanh trắng bên phải */
.cat-item.active::after {
  content: "";
  width: 3px;
  height: 60%;
  background: #fff;
  border-radius: 2px;
}

/* ===== WRAPPER ===== */
.cat-sidebar {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 20px;
}

/* ===== LEVEL 2 ===== */
.cat-parent {
  position: relative;
  margin-bottom: 10px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 18px;
  border-radius: 12px;

  background: #e9ecef;
  cursor: pointer;
}

/* ===== DROPDOWN (FIX CHÍNH) ===== */
.cat-dropdown {
  position: absolute;
  top: 0;
  left: 100%;

  /* KHÔNG tạo khoảng hở */
  margin-left: 0;

  background: #fff;
  padding: 10px;
  border-radius: 14px;
  min-width: 220px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  /* FIX MẤT HOVER */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.2s ease;
  z-index: 999;
}

/* GIỮ HOVER */
.cat-parent:hover .cat-dropdown,
.cat-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== LEVEL 3 ===== */
.cat-child {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.cat-child:hover {
  background: #f3f4f6;
}

/* active level 3 */
.cat-child.active {
  background: #3b5edb;
  color: #fff;
}

.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-item {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

/* ---sidebar in categories page----- */
.cat-tree {
  list-style: none;
  padding: 15px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.cat-tree li {
  position: relative;
}

.cat-tree a {
  display: block;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  font-size: 14px;
  position: relative;
  padding-right: 25px;
}

.cat-tree a:hover {
  background: #f3f4f6;
  color: #000;
}

.cat-tree li.current > a {
  background: #111;
  color: #fff;
  font-weight: 600;
}

.cat-tree ul {
  padding-left: 12px;
  margin-top: 4px;
  border-left: 1px dashed #ddd;
}

.cat-tree li ul {
  display: none;
}

.cat-tree li.open > ul {
  display: block;
}

/* icon */
.cat-tree li > a::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s;
  opacity: 0.5;
  cursor: pointer;
}

.cat-tree li.open > a::after {
  transform: translateY(-50%) rotate(90deg);
}

/* không có con thì ẩn icon */
.cat-tree li:not(:has(ul)) > a::after {
  content: "";
}

/*ẩn loop grid widget hiển thị sản phẩm khi ở level 1 và level 2 */
.archive-products {
  display: none;
}

/* chỉ hiện khi là category cuối */
body.is-leaf-category .archive-products {
  display: block;
}

/*-----custom width cho item của loop grid trong product archive------*/
.woocommerce .e-loop-item {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.woocommerce .e-loop-item > div {
  width: 100% !important;
}

/*-----Dropdown on menu at category-----*/
.elementor-nav-menu .sub-menu.mega-cat,
.elementor-nav-menu .sub-menu.mega-cat * {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
}

/* ===== LEVEL 2 BOX ===== */
.elementor-nav-menu .sub-menu.mega-cat {
  padding: 10px;
  min-width: 240px;
  border-radius: 14px;
}

/* ===== ITEM LEVEL 2 ===== */
.elementor-nav-menu .sub-menu.mega-cat > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: #333;
  font-weight: 400;
  line-height: 1.4;
  transition: all 0.2s ease;
}

/* hover level 2 */
.elementor-nav-menu .sub-menu.mega-cat > li > a:hover {
  background: #f3f4f6;
  color: #000;
}

.elementor-nav-menu .sub-menu.mega-cat > li.menu-item-has-children > a::after {
  content: "›";
  font-size: 14px;
  opacity: 0.6;
  transition: 0.2s;
}

.elementor-nav-menu .sub-menu.mega-cat > li:hover > a::after {
  transform: translateX(3px);
  opacity: 1;
}

/* ===== LEVEL 3 DROPDOWN ===== */
.elementor-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  padding: 10px;
  min-width: 220px;
  border-radius: 12px;
}

/* ===== ITEM LEVEL 3 ===== */
.elementor-nav-menu .sub-menu .sub-menu li a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
}

/* hover level 3 */
.elementor-nav-menu .sub-menu .sub-menu li a:hover {
  background: #f3f4f6;
  color: #000;
}

.elementor-nav-menu .sub-menu a.elementor-item-active {
  background: #111;
  color: #fff;
}

.elementor-nav-menu .sub-menu > li {
  margin: 2px 0;
}

.elementor-nav-menu .sub-menu,
.elementor-nav-menu .sub-menu .sub-menu {
  transition: all 0.2s ease;
}

/* ===== BACKGROUND LEVEL 2 ===== */
.elementor-nav-menu .sub-menu.mega-cat {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
}

/* ===== BACKGROUND LEVEL 3 ===== */
.elementor-nav-menu .sub-menu .sub-menu {
  background: #ffffff;
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
}

/* ===== FIX HEADER OVERLAY ===== */
.elementor-section,
.elementor-container,
.elementor-widget-nav-menu {
  overflow: visible !important;
}

.elementor-nav-menu .sub-menu.mega-cat,
.elementor-nav-menu .sub-menu .sub-menu {
  z-index: 99999;
}

/*ẩn icon dropdown từ level 2 -> level 3*/
.elementor-nav-menu .sub-menu.mega-cat .sub-arrow {
  display: none !important;
}

/*width của level 2*/
.elementor-nav-menu .sub-menu.mega-cat {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}

/*-----BUTTON TOGGLE SIDEBAR-----*/
.main {
  display: flex;
  transition: all 0.3s ease;
}

/* sidebar */
.left {
  width: 25%;
  transition: all 0.3s ease;
}

/* content */
.right {
  width: 75%;
  transition: all 0.3s ease;
}

/* ===== KHI ĐÓNG SIDEBAR ===== */
.main.sidebar-collapsed .left {
  width: 0 !important;
  opacity: 0;
  overflow: hidden;
  padding: 0;
}

/* content full width */
.main.sidebar-collapsed .right {
  width: 100% !important;
}

/* ===== BUTTON ===== */
.toggle-sidebar {
  position: fixed;
  top: 120px;
  left: 20px;
  z-index: 99999;
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-sidebar:hover {
  background: #333;
}

/*-----CUSTOM SLIDER IN PRODUCT SINGLE-----*/
.slider-outer {
  position: relative;
  background-color: #272D3B;
  border-radius: 20px;
  padding: 50px 60px;
  color: #fff;
}

.slider-wrapper {
  overflow: hidden;
  padding-bottom: 20px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
}

.slide .left {
  width: 50%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.slide .left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  pointer-events: none;
}

.slide .right {
  width: 50%;
}

.slide .right h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ff0000;
  font-weight: 700;
  font-family: Roboto;
}

.slide .right p {
  opacity: 0.8;
  line-height: 1.6;
}

.slider-nav {
  display: flex;
  gap: 12px;
}

.slider-nav button {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 30px;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav button:hover {
  background: #ddd;
}

.slider-white {
  background-color: #f5f5f5;
}

.slider-white .slider-nav button {
  background: #323232;
  color: rgba(211, 211, 211);
}

.slider-white .slider-nav button:hover {
  background: #000;
}

/*-----FLOATING BTN-----*/
.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.btn-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    height: 40px;
}

.btn-floating {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-floating::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 18px;
}

.btn-wrap:hover .btn-floating {
    transform: translateY(-2px) scale(1.05);
}

.btn-wrap .label {
    position: absolute;
    right: 25px;
    z-index: 1;
    height: 36px;
    line-height: 36px;
    border-radius: 20px;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: sans-serif;
    padding: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.btn-wrap:hover .label {
    max-width: 220px;
    opacity: 1;
    padding: 0 30px 0 16px;
}

.call-wrap    .label { background: #ff3b30; }
.email-wrap   .label { background: #ff9500; }
.whatsapp-wrap .label { background: #25ba26; }

.scrolltop {
    background-color: #24262b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scrolltop.show {
    opacity: 1;
    visibility: visible;
}

.scrolltop::before { content: "\f062"; }

.call { background: #ff3b30; }
.call::before { content: "\f095"; }

.email { background: #ff9500; }
.email::before { content: "\f0e0"; }

.whatsapp { background: #25ba26; }
.whatsapp::before {
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
    font-size: 22px;
}

/*-----CUSTOM SLIDER SECOND BTN HOMEPAGE-----*/
.bdt-isolate-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bdt-isolate-btn .custom-second-btn {
  background: transparent;
  color: #1a1a1a;
  padding: 11px 28px;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.bdt-isolate-btn .custom-second-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

/*-----CUSTOM LẠI BTN NAV CỦA SLIDE HOMEPAGE-----*/
.bdt-slideshow-nav.bdt-dotnav li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.bdt-slideshow-nav.bdt-dotnav li a {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #999 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.bdt-slideshow-nav.bdt-dotnav li.bdt-active a {
  color: #1a1a1a !important;
}

.bdt-slideshow-nav.bdt-dotnav li:hover a {
  color: #1a1a1a !important;
}

.bdt-dotnav > li > a::before,
.bdt-dotnav > li > a::after {
  display: none !important;
  content: none !important;
}

/* ----- custom product loop carousel related ----- */
