.products-section {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  margin-bottom: 10px;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.category-breadcrumb a {
  color: #1e3a8a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.category-breadcrumb a i {
  font-size: 16px;
  line-height: 1;
  position: relative;
  top: -1.5px;
}

.category-breadcrumb a:hover {
  color: #3b82f6;
}

.category-breadcrumb span:not(:last-child) {
  color: #999;
}

.category-breadcrumb span:last-child {
  color: #666;
}

/* Header Row */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.products-section h1 {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

/* Countdown Styles */
.countdown-active {
  color: #ef4444 !important;
  font-weight: 600;
  font-family: monospace;
}

.countdown-upcoming {
  color: #3b82f6 !important;
  font-weight: 600;
}

.countdown-ended {
  color: #dc2626 !important;
  font-weight: 600;
}

/* Products Grid */
.products-grid-wrapper {
  margin-top: 20px;
}

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

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

.product-card {
  background: white;
  border-radius: 3px;
  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(30, 58, 138, 0.2);
}

.product-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

.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 */
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 100px;
}

.product-name {
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

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

/* Pricing */
.product-pricing {
  margin-top: auto;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
}

.product-original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* Status Texts */
.product-upcoming-text {
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

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

/* Stock Bar */
.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 */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #1e3a8a;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-products i {
  font-size: 48px;
  color: #1e3a8a;
}

/* Responsive */
@media (min-width: 768px) {
  .products-section h1 {
    font-size: 22px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card {
    min-height: 280px;
  }

  .product-image-container {
    height: 220px;
  }

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

  .product-info {
    padding: 12px;
    gap: 8px;
    min-height: 100px;
  }

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

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

  .product-price {
    font-size: 16px;
  }

  .product-original-price {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 0 10px;
  }

  .products-section h1 {
    font-size: 18px;
  }

  .category-breadcrumb {
    display: none;
  }

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

  .product-card {
    min-height: 220px;
  }

  .product-image-container {
    height: 160px;
  }

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

  .product-price {
    font-size: 15px;
  }

  .product-original-price {
    font-size: 12px;
  }

  .product-info {
    padding: 10px;
    min-height: 90px;
  }

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

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

/* Flash sale specific styles */
.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%;
  }
}

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

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

.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-upcoming-text {
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

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

.status-ended {
  color: #6b7280;
  font-weight: 600;
}

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

.no-image i {
  font-size: 48px;
  color: #6b7280;
  opacity: 0.5;
}