/* hot-deals.css - Hot deals section styling */

/* ============== HOT DEALS SECTION ============== */
.hot-deals-section {
  position: relative;
  padding: 20px;
  margin: 20px 0;
  background: rgba(255, 68, 0, 0.05);
  border: var(--hot-deal-border);
  border-radius: 10px;
}

.hot-deals-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.hot-deals-header h2 {
  font-size: 2.5em;
  text-transform: uppercase;
  margin: 0;
  padding: 10px 0;
  color: var(--hot-deal-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hot-deals-close {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  background: rgba(255, 68, 0, 0.9);
  border: 1px solid var(--hot-deal-color);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 13px;
  transition: all 0.3s ease;
  z-index: 100;
}

.hot-deals-close:hover {
  background: var(--hot-deal-color);
  transform: scale(1.05);
}

.hot-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.hot-deal-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #333;
  border-radius: 15px;
  padding: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 60px;
}

.hot-deal-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hot-deal-shadow);
  border-color: var(--hot-deal-color);
}

.hot-deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hot-deal-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--hot-deal-color);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}

.hot-deal-item:hover .product-image {
  transform: scale(1.1) rotate(5deg);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  border: 1px solid var(--hot-deal-color);
}

.time-block {
  font-family: var(--font-heading);
  background: var(--hot-deal-color);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 25px;
  text-align: center;
  animation: pulse 2s infinite;
}

.separator {
  color: var(--hot-deal-color);
  font-weight: bold;
  animation: blink 1s infinite;
}

.discount-badge {
  background: var(--hot-deal-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.hot-deal-content {
  text-align: center;
}

.price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.original-price {
  color: #666;
  text-decoration: line-through;
  font-size: 1.1rem;
}

.discounted-price {
  color: var(--hot-deal-color);
  font-size: 1.8rem;
  font-weight: bold;
  font-family: var(--font-heading);
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.buy-btn {
  width: 100%;
  padding: 1rem;
  background: var(--hot-deal-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.buy-btn:hover::before {
  left: 100%;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.hot-deals-section.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============== TIMER ANIMATIONS ============== */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 69, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}