/* עיצוב לפעולות המוצר */
.product-actions {
  margin-top: 10px;
}

.toltip {
  position: relative;
  margin-right: 12px;
  cursor: pointer;
}

/* הפופאפ */
.quantity-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  padding: 20px;
  margin: 15% auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  direction: rtl;
}

.close-popup {
  position: absolute;
  left: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-popup:hover {
  color: #000;
}

.popup-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  text-align: right;
}

.product-image {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
}

.product-price {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
}

/* בורר הכמות */
.quantity-selector {
  display: flex;
  align-items: center;
}

.quantity-selector label {
  margin-left: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quantity-minus,
.quantity-plus {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
}

.qty {
  width: 40px;
  border: none;
  text-align: center;
  -moz-appearance: textfield;
}

.qty::-webkit-outer-spin-button,
.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* כפתור הוספה לסל */
.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background-color: #4a4a4a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #333;
}

/* כפתור הוספה לסל במוצר */
.open-popup-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* התאמה לנייד */
@media (max-width: 576px) {
  .popup-content {
    width: 95%;
    margin: 30% auto;
  }
}
