/* Flash Deals Specific Styles */

.ribbon-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: white;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 10;
}

.ribbon-status.expired {
  background: #888;
}

.ribbon-status.out-of-stock {
  background: #ff8800;
}

.product-countd.expired {
  opacity: 0.7;
}

.product-countd.expired .product-img img {
  filter: grayscale(50%);
}

.product-countd.out-of-stock {
  opacity: 0.8;
}

.product-countd.out-of-stock .product-img img {
  filter: grayscale(30%);
}

.countdown-timer {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 14px;
  color: #ff4444;
}

.deal-progress .progress {
  background-color: #f0f0f0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.deal-progress .progress-bar {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.stock-sold {
  color: #666;
  font-size: 12px;
}

.stock-available {
  color: #4CAF50;
  font-size: 12px;
  font-weight: bold;
}

.stock-available strong {
  color: #2E7D32;
}

/* Flash deals section visibility */
.flash-deals[style*="display: none"] + .product-tab {
  margin-top: 0;
}

/* Responsive adjustments for flash deals */
@media (max-width: 768px) {
  .flash-deals .product-countd {
    margin-bottom: 15px;
  }
  
  .countdown-timer {
    font-size: 12px;
  }
  
  .stock-sold, .stock-available {
    font-size: 11px;
  }
}


/* Equal height for flash deal cards */
.flash-deals .owl-item {
  display: flex !important;
  height: auto !important;
}

.flash-deals .product-countd {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flash-deals .product-item-countd {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flash-deals .product-countd .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* Center slick dots for flash deals */
.flash-deals .slick-dots {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
  position: relative !important;
  bottom: 0 !important;
  margin-top: 30px !important;
  padding: 0 !important;
  list-style: none !important;
  z-index: 10 !important;
}

.flash-deals .slick-dots li {
  margin: 0 5px !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}

.flash-deals .slick-dots li button {
  width: 12px !important;
  height: 12px !important;
  padding: 0 !important;
  border: 2px solid #ddd !important;
  border-radius: 50% !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  display: block !important;
}

.flash-deals .slick-dots li button:before {
  display: none !important;
}

.flash-deals .slick-dots li.slick-active button {
  background: #000 !important;
  border-color: #000 !important;
}

.flash-deals .slick-dots li button:hover {
  border-color: #000 !important;
}

/* Center the carousel container */
.flash-deals .slick-slider {
  margin: 0 auto !important;
  overflow: hidden !important;
}

.flash-deals .slick-track {
  display: block !important;
}

.flash-deals .slick-slide {
  display: block !important;
  height: auto !important;
  overflow: hidden !important;
}
