.color-black {
  background-color: #000;
}

.color-grey {
  background-color: #808080;
}

.color-white {
  background-color: #fff;
}

.color-brown {
  background-color: #603d11;
}

.color-yellow {
  background-color: #fce5a3;
}

.color-gold {
  background-color: #c9a659;
}

.color-orange {
  background-color: #e39a1b;
}

.color-red {
  background-color: #9a1616;
}

.color-pink {
  background-color: #fbdfd3;
}

.color-purple {
  background-color: #cabcf3;
}

.color-blue {
  background-color: #466094;
}

.color-green {
  background-color: #28907c;
}

.filter-orderby {
  cursor: pointer;
}

.shop-page-title .page-title-inner {
  max-width: 100% !important;
}

.category-filter-row {
  display: none;
}

.btn-apply-filter {
  text-transform: capitalize;
  height: 36px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin: 0 0 0 20px;
  background-color: #000;
  color: #fff;
}

.btn-apply-filter.btn-disabled-apply {
  pointer-events: none;
  cursor: not-allowed;
  background-color: #e4e7ec;
  color: #000;
}

/* FORMAT CHECKBOX && RADIO */
label.btn-option-filter {
  position: relative;
}

label.btn-option-filter .check-box-filter,
label.btn-option-filter .check-box-filter-sort {
  position: absolute;
  cursor: pointer;
  opacity: 0;
}

label.btn-option-filter span.fake-input {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.4px solid #d0d5dd;
  margin-right: 0.2rem;
}

.btn-option-filter .check-box-filter:checked + span.fake-input,
.btn-option-filter .check-box-filter-sort:checked + span.fake-input {
  background-color: #c9a659;
  animation: scaleUpChecked 0.6s ease;
}

.box-filter-option input:checked:after {
  display: none;
}

.box-filter-option input[type="radio"] + label:before {
  border-radius: 50%;
}

.icon-angle-down {
  transition: transform 0.3s;
}
.show-active .icon-angle-down {
  transform: rotate(-180deg);
}

.loading-product:after {
  animation: spin 0.5s linear infinite;
  border: 2px solid #f18a41 !important;
  border-radius: 32px;
  border-right-color: transparent !important;
  border-top-color: transparent !important;
  content: "";
  display: block;
  height: 16px;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  position: absolute;
  top: 50%;
  width: 16px;
}

.loading-product {
  position: relative;
  margin-bottom: 20px;
}

/* MAIN FILTER */
.container-filter {
  margin-top: 10px;
}

.box-list-filter-category {
  display: flex;
}

.container-filter p {
  margin: 0;
}

.container-filter button {
  cursor: pointer;
}

.filter-by {
  margin: 20px 0;
  display: flex;
  align-items: center;
  min-height: 28px;
}

.text-filter-by,
.text-sort-by {
  font-weight: 600;
  width: 58px;
  font-size: 0.7rem;
  color: #757575;
  white-space: nowrap;
  margin: 0;
}

.alert-total-found {
  margin-bottom: 10px !important;
}
.load-more-filter-custom,
.load-more-filter {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000;
}

/*--- INPUT SELECT OPTION */
.button.btn-show-filter-box {
  justify-content: space-between;
  display: flex !important;
  align-items: center;
  border: 1px solid #d0d5dd !important;
  width: 128px;
  height: 38px;
  font-size: 0.68rem !important;
  background-color: transparent !important;
  color: #000000 !important;
  text-transform: capitalize !important;
}

.button.btn-show-filter-box:hover {
  box-shadow: none;
  opacity: 0.6;
}

.list-option-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  /* margin: 10px 0 20px; */
}

.btn-option-filter.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

label.btn-option-filter {
  color: #454749;
  font-size: 0.7rem;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

label.btn-option-filter:hover {
  color: #c9a659;
}

.box-filter-item {
  display: none;
  padding: 24px 20px 20px;
  border: 1px solid #d0d5dd;
  justify-content: space-between;
  animation: showOptionFilter 0.3s ease;
}

/* SORT */
.container-sort-filter {
  flex: 1;
}

.container-sort-filter .button.btn-show-filter-box {
  width: 168px;
  margin-right: 0;
  margin-left: auto;
}

.box-filter-item-sort {
  top: 48px;
  position: absolute;
  right: 15px;
  z-index: 99;
}

.box-filter-item-sort .list-option-filter {
  margin: 10px 0 20px;
  flex-direction: column;
  width: 168px;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #d0d5dd;
}

.box-filter-item-sort .list-option-filter .btn-option-filter {
  padding: 8px 10px;
  margin: 0;
  width: 100% !important;
}

.box-filter-item-sort .list-option-filter .btn-option-filter:hover {
  background-color: #fefbed;
}

.container-sort-filter .box-filter-item {
  border: 0;
  padding: 0;
}

/* COLOR */
.box-filter-item-color .btn-option-filter .fake-input {
  display: none;
}

.box-color-filter {
  width: 32px;
  height: 32px;
  border: 1px solid #cdcdcd;
  border-radius: 50%;
  margin: 0 !important;
}

.active-label .box-color-filter {
  outline: 3px solid #caa75b;
}

/* Healing Crystal */
.box-filter-item-healing_crystal .list-option-filter {
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.box-filter-item-healing_crystal .list-option-filter::-webkit-scrollbar {
  width: 4px;
}

.box-filter-item-healing_crystal .list-option-filter::-webkit-scrollbar-thumb {
  background: #888;
}

.box-filter-item-healing_crystal label.btn-option-filter {
  width: 18%;
  min-width: 100px;
}

.box-search-stone {
  width: 100%;
  position: relative;
}

.box-search-stone input[type="text"] {
  border-right: 0;
  border-left: 0;
  margin: 0;
  width: 16.8%;
  padding-left: 22px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9e9e9e;
  box-shadow: none;
  border-top: 0;
  border-bottom: 1px solid #d7d2d2;
  background-color: transparent;
  margin-bottom: 14px;
}

.box-search-stone input[type="text"]:focus {
  box-shadow: none;
  background-color: transparent;
}

.box-search-stone i[class^="icon-"] {
  position: absolute;
  top: 3px;
  left: 0px;
  color: #959595;
}

/* VALUE HISTORY FILTER */
.btn-close-filter-history,
.btn-close-all-filter {
  margin: 0;
  font-size: 0.75rem;
  text-transform: capitalize;
  border-radius: 20px;
  /* margin-right: 10px; */
  min-height: 0;
  line-height: 0;
  height: 28px;
}

.btn-close-filter-history {
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
  background: #f2f4f7;
}

.btn-close-all-filter {
  background: none;
  padding: 0 0 0 14px;
}

.btn-close-all-filter img {
  max-width: 76%;
}

.btn-close-filter-history span {
  margin-left: 6px;
}

.box-history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media only screen and (max-width: 852px) {
  /* Side bar */
  #shop-sidebar {
    height: 100%;
  }

  .off-canvas .sidebar-inner {
    padding: 0px !important;
  }

  .sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #custom_html-3 {
    display: none;
  }

  .off-canvas-right .mfp-content,
  .off-canvas-left .mfp-content {
    --drawer-width: 50% !important;
  }

  .box-filter-item-sort {
    top: 132px;
  }

  .box-filter-item {
    padding: 0;
    border: 0px;
  }

  /* Ẩn Filter ngoài*/
  .filter-on-pc,
  .filter-by {
    display: none;
  }

  /* Filter Mobile */
  .filter-on-mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .box-list-filter-category {
    flex-direction: column !important;
    flex: 1 !important;
    margin-top: 30px !important;
  }

  .button.btn-show-filter-box {
    width: 100%;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
  }

  .list-option-filter {
    gap: 10px;
    margin: 0;
    padding: 10px 20px 20px 40px;
  }

  label.btn-option-filter,
  .box-filter-item-healing_crystal label.btn-option-filter,
  .box-search-stone input[type="text"] {
    width: 42%;
  }

  /* Color */
  .box-filter-item-color label.btn-option-filter {
    width: auto;
  }

  .box-filter-item-color .list-option-filter {
    justify-content: center;
    padding: 20px;
  }

  .box-color-filter {
    width: 38px;
    height: 38px;
  }

  /* Sort */
  .container-sort-filter .button.btn-show-filter-box {
    border-bottom: 0 !important;
  }

  .box-filter-item-sort .list-option-filter {
    top: 94%;
  }

  /* Filter Sidebar Icon Mobile */
  .category-filter-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-top: 20px;
    background-color: #f3f3f3;
    padding: 0 0 0 10px !important;
  }

  /* Show Box History Sidebar*/
  .widget-area .box-handle-value-filter-mobile,
  .sidebar-inner .box-handle-value-filter-mobile {
    border-top: 3px solid #c9a659;
    min-height: 80px;
    padding: 20px 20px 30px;
    flex-wrap: wrap;
  }

  .box-history-filter {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
  }

  .box-btn-apply {
    display: flex;
    align-items: center;
  }

  .btn-apply-filter {
    width: 100%;
    margin: 0;
  }
  .widget-area{
    height: 100%;
  }
  .page-left-sidebar .row{
    max-width: unset !important;
  }
}

@media only screen and (max-width: 548px) {
  .off-canvas-right .mfp-content,
  .off-canvas-left .mfp-content {
    --drawer-width: 100% !important;
  }
}

@keyframes scaleUpChecked {
  0% {
    transform: scale(0.2);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes showOptionFilter {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-left-sidebar .row{
  max-width: 100% !important;
}
.page-left-sidebar .large-9 {
  flex-basis: 100% !important;
  max-width: 100% !important;
}
.page-left-sidebar .large-9 .row-small{
  margin: 0 !important;
}
.page-left-sidebar .large-3{
  display: none !important;
}

.container-image-and-badge {
  position: relative;
}

.container-image-and-badge img {
  transition: opacity 0.5s ease-in-out; /* Thêm hiệu ứng chuyển đổi cho ảnh */
}

.hover-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Thêm hiệu ứng chuyển đổi cho ảnh hover */
}

.product-small:hover .hover-image {
  opacity: 1; /* Hiển thị ảnh hover khi hover */
}

.container-image-and-badge .hover-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out; /* Hiệu ứng mượt mà cho ảnh hover */
}


	.product-item-cart{
		position: relative;
	}
	.product-hover-add-to-cart{
		position: absolute;
		bottom: 17px;
		left: 19px;
	}
    .add-to-cart-button {
        position: relative;
        display: inline-block;
        width: 32px;
        height: 32px;
    }

    .add-to-cart-icon {
        position: absolute;
        width: 100%;
        height: 100%;
        transition: opacity 0.3s ease-in-out;
    }

    .add-to-cart-icon.default-icon {
        opacity: 1;
    }

    .add-to-cart-icon.hover-icon {
        opacity: 0;
    }

    .add-to-cart-button:hover .add-to-cart-icon.default-icon {
        opacity: 0;
    }

    .add-to-cart-button:hover .add-to-cart-icon.hover-icon {
        opacity: 1;
    }
.tooltip-animation {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    text-align: center;
    font-size: 12px;
    border-radius: 5px;
    visibility: hidden;
	width: 63px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s; 
}

.add-to-cart-button:hover .tooltip-animation {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, visibility 0s 0s; 
}