/* 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 cho loading page + upload file --> */
.canhan-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Ẩn spinner mặc định */
    z-index: 9999;
    text-align: center;
}

/* Vòng tròn spinner */
.canhan-spinner .spinner-circle {
    width: 150px;
    height: 150px;
    border: 8px solid transparent;
    border-top: 8px solid #7449f5; /* Màu của vòng tròn */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(116, 73, 245, 0.7); /* Hiệu ứng bóng mở 3D */
    position: relative; /* Đặt relative để chứa phần chữ */
}

/* Chữ Đang tải... */
.canhan-spinner .loading-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa hoàn hảo */
    white-space: nowrap;
}

.canhan-spinner .loading-text span {
    display: inline-block;
    animation: blink 1.5s infinite;
}

.canhan-spinner .loading-text span:nth-child(2) {
    animation-delay: 0.3s;
}

.canhan-spinner .loading-text span:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animation xoay vòng */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation nhấp nháy */
@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Hiển thị spinner */
.canhan-spinner.show {
    display: block;
}





/* 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;
}


.variant-option {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.2s ease;
}
.variant-option:hover {
  border-color: #ccc; /* Màu viền khi hover */
}
.variant-option.active {
  border-color: #007bff; /* Màu viền khi được chọn */
  background-color: #e7f1ff; /* Nền nhạt khi được chọn */
}
