.price{
	color: red !important;
	
}
@media (max-width: 768px) {
  
    .filter-btn, .reset-btn {
        width: 100%;
    }
}

	
/* ------ */

/* Modal */
.modal {
  display: none; /* Ẩn modal ban đầu */
  position: fixed;
  z-index: 1; /* Đảm bảo modal ở trên tất cả các phần tử khác */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal content */
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  position: relative;
}

/* Close button */
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

.product-info {
  flex: 2;
  min-width: 300px;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 24px;
  color: #e63946;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.product-description p,
.product-description ul {
  margin-bottom: 10px;
  color: #444;
}

/* Yêu thích */
.wishlist-btn {
  background-color: #e0f7f1;
  border: 1px solid #1abc9c;
  border-radius: 8px;
  padding: 12px 18px;              /* cùng padding với .btn */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;                    /* cùng chiều cao với .btn add-to-cart nếu có */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

.wishlist-btn:hover {
  background-color: #1abc9c;
}

.heart-icon {
  font-size: 18px;                 /* vừa phải để phù hợp với nút */
  color: #1abc9c;
  transition: color 0.3s ease;
}

.wishlist-btn:hover .heart-icon {
  color: white;
}

@media (max-width: 768px) {
 

  .modal-content {
    width: 90%;
    margin-top: 20%;
    padding: 15px;
  }

  .product-detail {
    flex-direction: column;
    gap: 20px;
  }

  .product-info h1 {
    font-size: 24px;
  }

  .product-info .price {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .wishlist-btn,
  .btn.add-to-cart {
    width: 100%;
  }
}

/* Thông báo thêm vào giỏ hàng thành công */
/* Định nghĩa kiểu dáng cho toast */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #28a745;  /* Màu xanh lá cho thông báo thành công */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Thêm bóng đổ nhẹ */
    transform: translateY(20px);  /* Hiệu ứng di chuyển khi hiển thị */
}

/* Toast khi hiển thị */
.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);  /* Toast xuất hiện từ dưới lên */
}

/* Toast có màu sắc khác cho thông báo lỗi */
.toast.error {
    background-color: #dc3545;  /* Màu đỏ cho thông báo lỗi */
}
/* Bố cục sản phẩm dạng grid */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Mặc định: 4 sản phẩm mỗi dòng */
    gap: 20px;
    padding: 20px;
}

/* Thẻ sản phẩm */
.collection-img {
	padding-top: 10px;
    width: 250px;
    height: auto;          /* Đặt chiều cao cố định phù hợp */
    object-fit: contain;    /* Đảm bảo toàn bộ ảnh hiển thị, không bị cắt */
    border-radius: 8px;
    display: block;
    background-color: #fff; /* Thêm nền trắng nếu ảnh nhỏ hơn khung */
}
.collection-card {
    width: 270px;
	height: auto;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive: 2 sản phẩm 1 dòng khi màn hình dưới 768px */
@media (min-width: 768px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: 1 sản phẩm mỗi dòng ở điện thoại rất nhỏ */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}
