
.products-list {
  padding: 40px 0;
}
.products-list .filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.products-list .filters .filter-item {
  margin: 5px;
}
.products-list .filters select {
  padding: 8px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.products-list .filters .search-box {
  display: flex;
  align-items: center;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
}
.products-list .filters .search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}
.products-list .filters .search-box i {
  color: #888;
  margin-left: 8px;
}
.products-list .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.products-list .products-grid .product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition: box-shadow 0.2s ease-in-out;
}
.products-list .products-grid .product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.products-list .products-grid .product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}
.products-list .products-grid .product-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.products-list .products-grid .product-card p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}
.products-list .products-grid .product-card .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main-color);
}

/* ── كارت المنتج (noon-card) — partial: products-list-product-card ── */
.noon-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  transform-origin: center top;
  text-align: right;
  direction: rtl;
}
.noon-card:hover {
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #fff;
  overflow: hidden;
}
.card-image-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 10px 45px 10px;
}
.card-image-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.noon-card:hover .card-image-content img {
  transform: scale(1.1);
}
.card-badges {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.status-badge {
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-bottom-left-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.status-badge.new {
  background-color: #004d40;
}
.status-badge.offer {
  background-color: #f5a623;
  color: #000;
}
.wishlist-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}
.wishlist-btn:hover {
  transform: scale(1.1);
}
.wishlist-btn i {
  font-size: 16px;
  color: #7e859b;
  transition: color 0.2s;
}
.wishlist-btn.active i,
.wishlist-btn:hover i {
  color: #d32f2f;
}
.circle-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 2px;
  border-radius: 25px;
  border: 1.5px solid #eee;
  height: 36px;
}
.circle-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
  padding: 0;
}
.circle-action-btn:hover,
.circle-action-btn.decrease-qty-noon:hover {
  background: #db3030;
  color: #fff;
  border-color: #db3030;
}
.circle-qty-display {
  font-size: 14px;
  font-weight: 800;
  color: #0e2f44;
  min-width: 15px;
  text-align: center;
}
.btn-anchor-wrapper {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: auto;
  z-index: 20;
  padding: 0;
  display: block;
}
.add-cart-float {
  position: relative;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
}
.add-cart-float:hover:not(:disabled) {
  background: #db3030;
  color: #fff;
  border-color: #db3030;
}
.add-cart-float i {
  font-size: 19px;
}
.add-cart-float.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}
.card-info {
  padding: 8px 10px 12px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.noon-card .brand-name {
  font-size: 10px;
  color: #0e2f44;
  margin-bottom: 3px;
  height: 15px;
  overflow: hidden;
  font-weight: 700;
  text-transform: uppercase;
}
.noon-card .product-title {
  color: #404553;
  line-height: 1.4;
  height: 72px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
.noon-card .price-container {
  margin-top: auto;
}
.noon-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.noon-card .currency-label {
  font-size: 12px;
  font-weight: normal;
  color: #404553;
}
.noon-card .current-price {
  font-size: 22px;
  font-weight: 900;
  color: #0e2f44;
  letter-spacing: -0.5px;
}
.noon-card .old-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 2px;
}
.noon-card .old-price {
  text-decoration: line-through;
  color: #595959;
  font-size: 12px;
}
.noon-card .discount-badge {
  color: #0a3d0c;
  font-weight: bold;
  background: #e8f5e9;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
}
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d32f2f;
  font-weight: bold;
  font-size: 12px;
  z-index: 4;
  pointer-events: none;
}
@media (max-width: 767px) {
  .card-image-wrapper {
    height: 180px;
  }
  .card-image-content {
    padding: 5px 5px 40px 5px;
  }
  .noon-card {
    margin-bottom: 8px;
  }
  .noon-card .product-title {
    line-height: 1.35;
    height: 62px;
    -webkit-line-clamp: 4;
  }
  .noon-card .current-price {
    font-size: 20px;
  }
  .add-cart-float {
    width: 32px;
    height: 32px;
    bottom: 6px;
    left: 6px;
  }
  .add-cart-float i {
    font-size: 17px;
  }
  .wishlist-btn {
    width: 28px;
    height: 28px;
    top: 6px;
    left: 6px;
  }
  .wishlist-btn i {
    font-size: 14px;
  }
}
