.time-remaining {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #8b0000;
  color: #fff;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
}

.product-image {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #151515;
}

.product-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
  max-height: 400px;
}

.price {
  margin-bottom: 15px;
  text-align: center;
}

.original-price {
  color: #666;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 10px;
}

.discounted-price {
  color: #ffbf00;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 191, 0, 0.3);
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 5px;
}

.add-to-cart {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(43, 87, 216, 0.1);
  color: rgba(43, 87, 216, 0.8);
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(43, 87, 216, 0.3);
}

.add-to-cart:hover {
  background: rgba(43, 87, 216, 0.8);
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
}

.add-to-cart.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.add-to-cart.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.buy-now {
  flex: 1;
  height: 40px;
  position: relative;
  padding: 0 20px;
  background: rgba(43, 87, 216, 0.8);
  border: none;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  overflow: hidden;
  transition: all 0.3s ease;
}

.buy-now span {
  position: relative;
  z-index: 1;
  color: #fff;
  transition: all 0.3s ease;
}

.buy-now::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(43, 87, 216, 0.8),
    rgba(68, 119, 255, 0.8),
    rgba(43, 87, 216, 0.8)
  );
  background-size: 200% 100%;
  transition: all 0.5s ease;
}

.buy-now::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: all 0.5s ease;
  transform: scale(0.5);
}

.buy-now:hover::before {
  background-position: 100% 0;
}

.buy-now:hover::after {
  opacity: 1;
  transform: scale(1);
}

.buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(43, 87, 216, 0.2);
}

.buy-now:active {
  transform: translateY(0);
}

/* Hiệu ứng đặc biệt cho featured card */
.product-card.featured .buy-now::before {
  background: linear-gradient(
    45deg,
    rgba(43, 87, 216, 0.9),
    rgba(68, 119, 255, 0.9),
    rgba(43, 87, 216, 0.9),
    rgba(68, 119, 255, 0.9)
  );
  background-size: 300% 100%;
  animation: gradientMove 3s linear infinite;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  /* border-color: var(--color-primary); */
  box-shadow: 0 0 20px rgba(43, 87, 216, 0.2);
}

.product-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(43, 87, 216, 0.2);
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.product-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  /* font-family: "Orbitron", sans-serif; */
  z-index: 1;
}

/* Viền động chạy quanh */
.product-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
}

/* Hình ảnh sản phẩm */
.product-image img {
  width: 100%;
  display: block;
  border-bottom: 2px solid var(--color-primary);
}

span.modal-product-quantity {
  color: #9f9f9f;
  font-size: 15px;
}

/* Thông tin sản phẩm */
.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  font-size: 21px;
  margin: 10px 0;
  color: #fff;
  /* color: var(--color-primary); */
  /* text-shadow: 1px 1px 2px #e90000, 0 0 1em #595959, 0 0 0.2em #000004; */
  min-height: 65px;
}

.price .discounted-price {
  font-size: 18px;
  font-weight: bold;
  color: #67d6ff;
}

/* Nút hành động */
.product-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.add-to-cart {
  background: var(--color-primary);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.add-to-cart:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.buy-now {
  background: #67d6ff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.buy-now:hover {
  background: #3fb6e9;
  color: #fff;
  transform: scale(1.05);
}

/* Snake border animation */
.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover::after {
  animation: snakeBorder 0.8s linear infinite;
}

@keyframes snakeBorder {
  0% {
    background: linear-gradient(90deg, transparent, #2b87d8, transparent) 0 0 /
        0% 2px no-repeat,
      linear-gradient(180deg, transparent, #2b87d8, transparent) 100% 0 / 2px 0%
        no-repeat,
      linear-gradient(270deg, transparent, #2b87d8, transparent) 100% 100% / 0%
        2px no-repeat,
      linear-gradient(0deg, transparent, #2b87d8, transparent) 0 100% / 2px 0%
        no-repeat;
  }

  25% {
    background: linear-gradient(90deg, transparent, #2b87d8, transparent) 0 0 /
        25% 2px no-repeat,
      linear-gradient(180deg, transparent, #2b87d8, transparent) 100% 0 / 2px
        25% no-repeat,
      linear-gradient(270deg, transparent, #2b87d8, transparent) 100% 100% / 25%
        2px no-repeat,
      linear-gradient(0deg, transparent, #2b87d8, transparent) 0 100% / 2px 25%
        no-repeat;
  }

  50% {
    background: linear-gradient(90deg, transparent, #2b87d8, transparent) 0 0 /
        50% 2px no-repeat,
      linear-gradient(180deg, transparent, #2b87d8, transparent) 100% 0 / 2px
        50% no-repeat,
      linear-gradient(270deg, transparent, #2b87d8, transparent) 100% 100% / 50%
        2px no-repeat,
      linear-gradient(0deg, transparent, #2b87d8, transparent) 0 100% / 2px 50%
        no-repeat;
  }

  75% {
    background: linear-gradient(90deg, transparent, #2b87d8, transparent) 0 0 /
        75% 2px no-repeat,
      linear-gradient(180deg, transparent, #2b87d8, transparent) 100% 0 / 2px
        75% no-repeat,
      linear-gradient(270deg, transparent, #2b87d8, transparent) 100% 100% / 75%
        2px no-repeat,
      linear-gradient(0deg, transparent, #2b87d8, transparent) 0 100% / 2px 75%
        no-repeat;
  }

  100% {
    background: linear-gradient(90deg, transparent, #2b87d8, transparent) 0 0 /
        100% 2px no-repeat,
      linear-gradient(180deg, transparent, #2b87d8, transparent) 100% 0 / 2px
        100% no-repeat,
      linear-gradient(270deg, transparent, #2b87d8, transparent) 100% 100% /
        100% 2px no-repeat,
      linear-gradient(0deg, transparent, #2b87d8, transparent) 0 100% / 2px 100%
        no-repeat;
  }
}
