.flash-sales-container {
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.flash-sales-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 30px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  text-align: center;
}
.flash-sales-header h1 {
  font-size: 32px;
  color: white;
  margin: 0 0 10px 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.flash-sales-header h1 i {
  font-size: 36px;
  animation: flash-pulse 1.5s infinite;
}

@keyframes flash-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.flash-sales-header p {
  font-size: 16px;
  color: white;
  margin: 0;
  opacity: 0.95;
  font-weight: 500;
}

.flashsale-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flashsale-list li {
  display: block;
}

.flashsale-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.flashsale-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
}

.status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(239, 68, 68, 0.6);
  }
}

.badge-upcoming {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.badge-ended {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.flashsale-card-image {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.flashsale-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.no-image i {
  font-size: 64px;
  color: white;
  opacity: 0.3;
}

.flashsale-card-content {
  padding: 20px;
}

.flashsale-card-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.flashsale-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
}

.status-active {
  background: #fef2f2;
  color: #dc2626;
}

.status-active i {
  font-size: 18px;
}

.status-upcoming {
  background: #eff6ff;
  color: #2563eb;
}

.status-upcoming i {
  font-size: 18px;
}

.status-ended {
  background: #f9fafb;
  color: #6b7280;
}

.status-ended i {
  font-size: 18px;
}

.no-sales {
  text-align: center;
  padding: 80px 20px;
  color: #6b7280;
}

.no-sales i {
  font-size: 80px;
  color: #f59e0b;
  opacity: 0.3;
  margin-bottom: 20px;
}

.no-sales p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

@media (min-width: 1200px) {
  .flash-sales-container {
    padding: 15px 0;
  }
}

@media (max-width: 1200px) {
  .flashsale-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .flash-sales-container {
    padding: 0 8px 10px 8px;
  }

  .flash-sales-header {
    margin: 0 -8px 20px -8px;
    border-radius: 0;
    padding: 25px 15px;
  }

  .flash-sales-header h1 {
    font-size: 26px;
  }

  .flash-sales-header h1 i {
    font-size: 30px;
  }

  .flash-sales-header p {
    font-size: 14px;
  }

  .flashsale-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .flashsale-card-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .flashsale-list {
    grid-template-columns: 1fr;
  }

  .flash-sales-header {
    padding: 20px 15px;
  }

  .flash-sales-header h1 {
    font-size: 24px;
  }

  .flash-sales-header h1 i {
    font-size: 28px;
  }
}

@media (max-width: 400px) {
  .flash-sales-header {
    padding: 20px 15px;
    margin: 0 -8px 15px -8px;
  }

  .flash-sales-header h1 {
    font-size: 22px;
  }

  .flash-sales-header h1 i {
    font-size: 26px;
  }
}

.flash-sale-detail {
  padding: 15px 20px;
}

.flash-sale-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 25px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.flash-sale-header-content h1 {
  font-size: 24px;
  color: white;
  margin: 0 0 8px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-sale-header-content h1 i {
  font-size: 28px;
  animation: flash-pulse 1.5s infinite;
}

.flash-sale-header-content p {
  font-size: 14px;
  color: white;
  margin: 0;
  opacity: 0.95;
}

.status-ended {
  font-weight: 600;
  opacity: 0.9;
}

.flash-sale-items {
  margin-top: 20px;
}

.all_products_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
}

.all_products_header h2 {
  font-size: 20px;
  color: #f59e0b;
  margin: 0;
  font-weight: 700;
}

.all_products_header span {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.products-grid li {
  display: block;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid transparent;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
}

.product-image-container {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f8f8f8;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-sale-over-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #6b7280;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 38px;
  margin: 0;
}

.product-description {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.product-pricing {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #f59e0b;
}

.product-original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-sale-over-text {
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.flash_sale_stock_bar_wrapper {
  margin-top: 8px;
}

.flash_sale_stock_label {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}

.flash_sale_stock_bar {
  width: 100%;
  height: 8px;
  background-color: #ffe0cc;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.flash_sale_stock_fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.flash_sale_stock_fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #f59e0b;
  font-size: 16px;
}

.no-products i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .flash-sale-detail {
    padding: 0 8px 10px 8px;
  }

  .flash-sale-header {
    margin: 0 -8px 15px -8px;
    border-radius: 0;
    padding: 20px 15px;
  }

  .flash-sale-header-content h1 {
    font-size: 20px;
  }

  .flash-sale-header-content h1 i {
    font-size: 24px;
  }

  .all_products_header h2 {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-description {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .flash-sale-detail {
    padding: 0 8px 10px 8px;
  }

  .flash-sale-header {
    padding: 20px 15px;
    margin: 0 -8px 15px -8px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-description {
    font-size: 12px;
  }

  .product-info {
    padding: 12px;
  }
}
