/* ============================================================
   INDEX EXTRA — Hero Slider + Flash Sale Timer
   ============================================================ */

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide:first-child {
  position: relative;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.35s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* Hero Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}
.hero-prev {
  left: 10px;
}
.hero-next {
  right: 10px;
}

/* === FLASH SALE — DYNAMIC TIMER === */
.hot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hot-title-wrap h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hot-title-wrap h2 span {
  background: linear-gradient(135deg, #ff4e00, #ec9f05);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

#hot-timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.timer-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 7px;
  padding: 5px 9px;
  min-width: 38px;
}

.timer-block b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #ff6b35;
  font-family: "Courier New", monospace;
  line-height: 1.1;
}

.timer-block small {
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Flash sale product badge */
.hot-sale-container .discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.hot-sale-container .product-card {
  animation: card-entrance 0.4s ease both;
}

@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
