/* ============================================================
   PRODUCT FLAGS & LABELS ALIGNMENT
   ============================================================ 
   ProDUCT cARDS bADGES Color alignments*/

/* New Label - Blue */
.product-flags .new {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
}

/* Out of Stock - Red */
.product-flags .out_of_stock {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
}

/* In Stock - Green */
.product-flags .in-stock {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
}

.product-flags {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: auto !important;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 5;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Red colored and right aligned labels */
/* Product Labels Colors & Alignment */
.product-flags .badge,
.product-flags .label {
  color: #ffffff !important;
  text-align: right;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 0px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Other flags (Discount, On Sale) - Default Red */
.product-flags .discount,
.product-flags .on-sale {
  background: linear-gradient(135deg, #f35c5c 0%, #CE1118 100%) !important;
}

@media (min-width: 576px) {
  .product-flags {
    top: 0.75rem;
    right: 0.75rem;
  }

  .product-flags .badge,
  .product-flags .label {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (min-width: 768px) {
  .product-flags {
    flex-direction: row; /* horizontal on tablets */
    gap: 0.4rem;
  }
}

@media (min-width: 992px) {
  .product-flags {
    top: 1rem;
    right: 1rem;
  }

  .product-flags .badge,
  .product-flags .label {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

@media (min-width: 1200px) {
  .product-flags .badge,
  .product-flags .label {
    font-size: 0.82rem;
  }
}