* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: #f0f6ff;
  color: #1e293b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الهيدر */
header {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 30px 0;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.header-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* المنتجات */
main {
  padding: 40px 20px;
}

.section-title {
  font-size: 1.8rem;
  color: #1e40af;
  margin-bottom: 30px;
  font-weight: 700;
  border-right: 5px solid #2563eb;
  padding-right: 15px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-size: 1.2rem;
  padding: 40px;
}

/* كارت المنتج */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #2563eb;
}

.product-body {
  padding: 20px;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.product-desc {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  background: #eff6ff;
  border-radius: 10px;
}

.price-label {
  color: #64748b;
  font-size: 0.9rem;
}

.price-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #2563eb;
}

.btn-bid {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-bid:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  transform: scale(1.02);
}

.btn-bid:active {
  transform: scale(0.98);
}

.btn-bid:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* المودال */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  color: #1e40af;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.modal-content p {
  color: #64748b;
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.modal-content input:focus {
  outline: none;
  border-color: #2563eb;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* التوست */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: opacity 0.3s;
}

.toast.hidden {
  display: none;
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}
