body {
  font-family: "Cairo", sans-serif;
  background: #fdfaf7;
  margin: 0;
  padding-top: 50px !important; /* نفس ارتفاع الناف */
}

h1 {
  text-align: center;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.cart-item img {
  width: 80px;
  border-radius: 8px;
}
.total {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}
.checkout-form {
  margin-top: 30px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: "Cairo", sans-serif;
}
.checkout-form button {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  font-weight: bold;
  transition: 0.3s;
}
.checkout-form button:hover {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.loading {
  display: none;
  text-align: center;
  font-size: 16px;
  color: #333;
}
.notification-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  padding: 14px 25px;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  font-weight: bold;
  z-index: 999999;
  min-width: 250px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
}
.notification-bar .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #fff;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 7s linear;
}
.delivery-btn {
  background: #007bff;
  color: #fff;
}
.delivery-btn:hover {
  background: #0056b3;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  background: #fff;
}

select:focus,
input:focus {
  border-color: #27ae60;
  outline: none;
}


.add-btn {
  padding: 8px 15px;
  border: none;
  background: #ff6f91;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.add-btn:hover {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}



@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.delete-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 11px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s, transform 0.2s;
  transform: translateY(-3px) !important;
}
@media (max-width: 600px) {
  .delete-btn {
    align-self: flex-start;
    margin-top: 9px;
  }
}
.delete-btn:hover {
  background: #c62828;
}

.delete-btn:active {
  transform: scale(0.95);
}
.quantity-box {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: "Cairo", sans-serif;
  margin-top: 10px;
}

.box-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s, color 0.2s;
}

.box-number {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body {
    padding: 2px;
  }

  .cart-item img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
  }

  .quantity-box {
    transform: scale(0.9);
  }

  input,
  select,
  textarea {
    font-size: 15px !important;
    padding: 12px !important;
    border-radius: 10px !important;
  }

  input:focus,
  textarea:focus {
    border-color: #27ae60;
    background: #fff;
  }

  #discountCode {
    height: 40px !important;
    font-size: 15px !important;
  }

  .popup-page {
    padding: 15px;
  }

  .popup-image img {
    height: 250px !important;
  }

  .popup-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .related-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .related-item img {
    height: 120px !important;
  }

  .checkout-form {
    padding: 15px;
  }

  .checkout-form button {
    width: 100%;
    font-size: 16px !important;
    padding: 12px !important;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }
}
.input-error {
  border: 2px solid #e74c3c !important;
  background: #fff5f5;
}

.btnSpinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
