/* Back to Top */
.square-button {
   width: 40px; /* Độ rộng */
   height: 40px; /* Chiều cao */
   background-color: black; /* Màu nền đen */
   border: none; /* Xóa viền */
   color: white; /* Màu chữ trắng */
   text-align: center; /* Canh giữa nội dung */
   text-decoration: none; /* Xóa gạch chân khi hover */
   display: flex; /* Hiển thị như khối và canh giữa */
   justify-content: center; /* Canh giữa theo chiều ngang */
   align-items: center; /* Canh giữa theo chiều dọc */
   font-size: 14px; /* Cỡ chữ */
   cursor: pointer; /* Bộ chỉa con trỏ */
   border-radius: 5px; /* Bo tròn 4 cạnh */
   padding-top: 5px /* thay đổi khoảng cách giữa chữ và phần trên của nút */
}

#btn-back-to-top {
position: fixed;
bottom: 20px;
left: 20px;
display: none;
opacity: 0.3; /* Điều chỉnh giá trị opacity từ 0 đến 1, 0 là hoàn toàn trong suốt, 1 là không trong suốt */
}





/* Contact social */
.contact-buttons {
  position: fixed;
  bottom: 10px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-buttons button {
  margin-bottom: 10px; /* Khoảng cách giữa các nút */
  padding: 10px 20px; /* Kích thước của nút */
  border: none;
  background-color: #007bff; /* Màu nền của nút */
  color: white; /* Màu chữ của nút */
  cursor: pointer;
  position: relative; /* Để định vị bóng mờ tương đối với nút */
  overflow: hidden; /* Ẩn bớt bóng mờ không nằm trong phạm vi của nút */
  animation: ripple-animation 2s infinite; /* Sử dụng animation "ripple-animation" với thời gian 1 giây, lặp vô hạn */
}

@keyframes ripple-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5); /* Bắt đầu với bóng mờ không */
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); /* Kết thúc với bóng mờ lớn hơn */
  }
}





/* spinner loading page */
.canhan-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fb;
    transition: opacity 0.75s, visibility 0.75s;
}

.canhan-loader-hidden{
    opacity: 0;
    visibility: hidden;
}

.canhan-loader::after{
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: #7449f5;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading{
    from{
        transform: rotate(0turn);
    }
    to{
        transform: rotate(1turn);
    }
}



/* spinner upload file */
.canhan-spinner {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #7449f5;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}






/* products list */
.price-sale-products-canhan {
  font-size: 1rem;
  font-weight: 400;
  color: #EB5757;
  margin-bottom: 10px;
}
.price-sale-products-canhan sup, 
.price-sale-products-canhan sub, 
.price-sale-products-canhan u {
  color: #EB5757;
}
.price-products-canhan {
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: line-through;
}
.price-products-canhan sup, 
.price-products-canhan sub, 
.price-products-canhan u {
  color: #6c757d;
}

/* product detail */
.price-sale-detail-canhan {
  font-size: 1.5rem;
  font-weight: 600;
  color: #EB5757;
  margin-bottom: 10px;
}
.price-sale-detail-canhan sup, 
.price-sale-detail-canhan sub, 
.price-sale-detail-canhan u {
  color: #EB5757;
}
.price-detail-canhan {
  font-size: 1rem;
  color: #6c757d;
  text-decoration: line-through;
  margin-left: 10px;
}
.price-detail-canhan sup, 
.price-detail-canhan sub, 
.price-detail-canhan u {
  color: #6c757d;
}

/* price cart */
.price-sale-cart-canhan {
  font-size: 1rem;
  font-weight: 400;
  color: #EB5757;
  margin-bottom: 10px;
}
.price-sale-cart-canhan sup, 
.price-sale-cart-canhan sub, 
.price-sale-cart-canhan u {
  color: #EB5757;
}
.price-cart-canhan {
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: line-through;
}
.price-cart-canhan sup, 
.price-cart-canhan sub, 
.price-cart-canhan u {
  color: #6c757d;
}

/* subtotal */
.price-subtotal-canhan {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 10px;
}
.price-subtotal-canhan sup, 
.price-subtotal-canhan sub, 
.price-subtotal-canhan u {
  color: #000000;
}

/* total */
.price-total-canhan {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}
.price-total-canhan sup, 
.price-total-canhan sub, 
.price-total-canhan u {
  color: #000000;
}




/* Có sẵn của Bootstrap dùng cho tag <img>: .img-fluid .card-img-top .d-block .w-100 .h-100 */

/* Hiệu ứng hover cho các card sản phẩm, dùng cho tag <div> chứa Product */
.card-translateY-canhan:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.card-scale-canhan:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-border-canhan:hover {
  border: 1px solid #bde0fe;
}