/* Product Grid */
#products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 3px;
  max-width: 1000px;
  margin: auto;
  /* background-color: #d54c4c; */
}

/* Responsive item sizing */
.product-item {
  background-color: var(--light1);
  border: 1px solid var(--light3);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 160px;
  position: relative;
}

.notAvailable::after {
  content: "غير متوفر";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 28, 94, 0.5);
  color: var(--light1);
  font-size: 13px;
  text-align: center;
  border-radius: inherit;
  direction: rtl;
  pointer-events: none;
}

.product-image {
  width: 100%;
  height: 150px;
  /* border-radius: 12px 12px 0px 0px; */
}

/* Product image */
.product-image img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

/* Header: Title + Heart */
.product-header {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 0.5rem; */
  background-color: var(--light3);
  height: 30px;
}

.product-title {
  /* font-size: 1rem; */
  color: var(--dark1);
  /* font-weight: 600; */
  font-size: 14px;
  /* margin-left: 5px; */
}

.heart-icon {
  position: absolute;
  top: 10px;
  right: 3px;
  /* background-color: red; */
  color: #f787879c;
  font-size: 18px;
  /* font-weight: bold; */
  /* padding: 2px 6px; */
  /* border-radius: 0px 3px 3px 0px; */
  /* direction: ltr; */
  /* border: 1px solid red; */
}

/* Price + Cart */
.product-price-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 0.3rem; */
  height: 25px;
  background-color: var(--light3);
}

.product-price-wrapper::before {
  content: "د. ع";
  font-size: 11px;
}

.product-price {
  font-size: 14px;
  color: var(--primary);
  font-weight: bold;
  /* direction: rtl; */
  text-align: right;
  /* font-size: clamp(0.5625rem, 0.473rem + 0.4474vw, 0.6875rem); */
  margin-left: 5px;
}

.discounted-price,
.single-price {
  /* color: var(--successColor); */
  /* font-weight: bold; */
  /* margin-left: 5px; */
  font-size: 13px;
}

.original-price {
  color: var(--dark3);
  text-decoration: line-through;
  /* margin-left: 5px; */
  font-size: 12px;
  font-weight: normal;
}

/* Cart Icon */
.cart-icon {
  color: var(--primaryDark);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 0px;
  background-color: rgba(67, 160, 71, 0.85); /* green transparent */
  color: white;
  font-size: 13px;
  /* font-weight: bold; */
  padding: 3px 7px;
  border-radius: 0px 4px 4px 0px;
  direction: ltr;
}

.qty-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  /* margin: 8px 0 5px; */
  height: 36px;
}

.qty-btn {
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 11px;
  /* padding: 5px 6px; */
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  /* background-color: var(--primaryDark); */
}

.qty-counter {
  font-size: 15px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  color: var(--dark1);
}
