body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
}

.notification {
  position: fixed;
  top: 10px;
  right: 50%;
  transform: translateX(50%);
  background-color: #4285f4;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: none;
  z-index: 999;
  font-size: 16px;
}

/*
.cart-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}*/
.cart-icon {
  font-size: 22px;
  color: #333;
  cursor: pointer;
  position: relative;
}


.cart-badge {
  background-color: #4285f4;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -8px;
  right: -10px;
}


button {
  margin-left: 5px;
}

h1 {
  margin-top: 40px;
  font-size: 32px;
  color: #333;
}

.search-container {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  max-width: 500px;
}

.search-container input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.search-container button {
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  background-color: #4285f4;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.buttons {
  margin: 10px;
}

.buttons button {
  margin: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.product-card {
  background: white;
  margin: 20px auto;
  padding: 12px;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 340px;
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  height: 150px; /* ← صورة موحدة الحجم */
  object-fit: contain;
  margin-bottom: 10px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.product-card button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.add-cart {
  background-color: #ddd;
  color: #333;
}

.whatsapp {
  background-color: #4285f4;
  color: white;
}

.product-name {
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
}

.product-price {
  margin-top: 5px;
  color: #e91e63;
}

/*تعديل ظهور بطاقة المنتجات*/
#results-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-price {
  color: #28a745;
  font-weight: bold;
  text-align: center;
}

#user-icon {
  /*
  position: fixed;
  top: 20px;
  right: 20px;*/
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background-color 0.3s;
}

#user-icon:hover {
  background-color: #f0f0f0;
}

/* جعل الحاوية تحتوي على الأيقونتين وتطفوان أعلى الصفحة */
.header-icons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}


