.sbp-thumbnail-container {
  position: relative;
  display: inline-block;
  overflow: hidden; /* Ngăn lớp phủ bị văng ra ngoài */
  width: 100%;
}

img.sbp-thumbnail-img {
  border-radius: 12px !important; /* Bo viền ảnh */
  
}

.sbp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none !important;
  border-radius: 12px;
  inset: 0;  
}

.sbp-bookmark-item:hover .sbp-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sbp-thumbnail-wrapper {
  position: relative;
  display: block;
}

.sbp-buttons {
  display: flex;
  justify-content: center;  /* căn giữa theo chiều ngang */
  align-items: center;      /* căn giữa theo chiều dọc nếu cần */
  gap: 10px;                /* khoảng cách giữa các nút */
  margin-top: 10px;         /* khoảng cách phía trên (tuỳ chỉnh) */
  pointer-events: auto;
}


}
.sbp-buttons .add-to-cart-btn {
    background-color: #fff;
    color: #181616;
    margin: 10px;
    padding: 7px 8px;
    border-radius: 8px;
}
  
  
.inline-cart-icon {
  cursor: pointer;
  transition: all 0.3s ease;
}

.inline-cart-icon:hover {
  background: #fff; /* nền đổi màu */
  filter: invert(100%) contrast(90%); /* icon đổi thành trắng */
}

.sbp-thumbnail-link {
  display: block; /* Đảm bảo cả ảnh là một liên kết */
}

.fa-shopping-cart {
  cursor: pointer;
}



.bookmark-button img {
  width: 20px !important;
  height: auto;
}
.sbp-thumbnail-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #eee;
}

.sbp-thumbnail-img img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
.main-thumbnail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in;
  opacity: 0;
  border-radius: 12px;
}

/*=====================*/ 
/*Code mới*/
/*=====================*/ 

.bm-thumb-inner {
  position: absolute;
  inset: 0;
  background-color: #eee;
  border-radius: 12px;
}