/* ----------------------------------
   BEST DEALS SECTION
---------------------------------- */
.deals-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.deals-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Section: Title & Timer */
.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.deals-title-box {
  display: flex;
  align-items: center;
  gap: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #191c1f;
}

.deals-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #191c1f;
}

.timer {
  display: inline-block;
  background-color: #f3de6d;
  color: #191c1f;
  padding: 6px 14px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
}

.time-box {
  color: #191c1f;
  font-weight: 600;
}

.browse-all-link {
  color: #2da5f3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layout Content: 2 Cột */
.deals-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* Cột Trái: Feature Product Card */
.deal-featured-card {
  border: 1px solid #e4e7e9;
  border-radius: 4px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Container gom nhóm badges ở góc trái trên */
.card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  z-index: 4;
}

.badge-discount {
  background-color: #f3de6d;
  color: #191c1f;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-status {
  background-color: #ee5858;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-sold-out {
  background-color: #77878f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin: 16px 0;
}

.rating {
  color: #fa8232;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}

.rating-count {
  color: #77878f;
  margin-left: 4px;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
  color: #191c1f;
  line-height: 1.4;
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.old-price {
  color: #929fa5;
  text-decoration: line-through;
  font-size: 14px;
}

.current-price {
  color: #2da5f3;
  font-size: 18px;
  font-weight: 600;
}

.product-desc {
  color: #5f6c72;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-bottom-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  background-color: #fa8232;
  color: #ffffff;
  border: none;
  padding: 12px;
  font-weight: bold;
  font-size: 13px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-btn {
  background-color: #ffe7d6;
  color: #fa8232;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cột Phải: Lưới Sản Phẩm Nhỏ (4 Cột x 2 Hàng) */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid #e4e7e9;
  border-radius: 4px;
  padding: 16px;
  position: relative;
  transition: all 0.25s ease;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-img-box {
  position: relative;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 2px;
}

/* Lớp phủ đen mờ (dark overlay) trên image khi hover item */
.card-img-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.product-card:hover .card-img-box::after {
  opacity: 1;
}

.card-img-box img {
  position: relative;
  z-index: 0;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-box img {
  transform: scale(1.06);
}

/* Hiệu ứng nút thao tác nhanh khi hover ảnh */
.card-hover-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 3;
}

.product-card:hover .card-hover-actions {
  opacity: 1;
  visibility: visible;
}

.hover-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  color: #191c1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hover-btn.active,
.hover-btn:hover {
  background-color: #fa8232;
  color: #ffffff;
}

.card-title {
  font-size: 13px;
  font-weight: 400;
  color: #191c1f;
  line-height: 1.4;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.card-price .old-price {
  color: #929fa5;
  text-decoration: line-through;
  font-size: 13px;
}

.card-price .current-price {
  color: #2da5f3;
  font-size: 15px;
  font-weight: 600;
}