* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif, 'Cairo';
}
body {
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}
header {
    background: linear-gradient(90deg, #8a2be2, #6a0dad); /* gradient header */
    color: white;
    padding: 20px;
    text-align: center;
}

@media (max-width : 375px) {
    .nav-buttons{
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.nav-buttons {
    margin: 37.5px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}
.nav-buttons a {
    text-decoration: none;
    background-color: #f3e6ff; /* light purple background */
    color: #6a0dad;
    border: 2px solid #6a0dad;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: 0.3s;
}
.nav-buttons a:hover {
    background-color: #6a0dad;
    color: white;
}
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}
h2 {
    color: #7d3cff; /* softer purple */
    margin-bottom: 15px;
    text-align: center;
}
.order-summary, .delivery-form {
    border: 2px solid #9b59b6; /* softer border purple */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f0ff; /* very light purple background */
}
.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}
.summary-total {
    border-top: 1px solid #9b59b6;
    padding-top: 10px;
}
.delivery-form label {
    display: block;
    margin: 10px 0 5px;
}
.delivery-form input, .delivery-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.delivery-form textarea {
    resize: vertical;
}
.delivery-form button {
    background: linear-gradient(90deg, #8a2be2, #6a0dad); /* gradient button */
    color: white;
    border: none;
    padding: 15px 25px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    transition: 3s all ease;
    width: 100%;
}
.delivery-form button:hover {
    background: linear-gradient(90deg, #6a0dad, #8a2be2);
}


/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a0dad, #9b30ff); /* Purple theme */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999999999;
  overflow: hidden;
  text-align: center;
  transition: transform 0.8s ease;
}

.hide {
  transform: translateY(100%);
}

.loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid white;
  border-top: 5px solid #e0c3ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader p {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}


input:focus, textarea:focus{
    outline: none;
}

.error-border {
  border: 1px solid red !important;
}

.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 2px;
  display: block;
}


/* Checkout popup */
#checkout-popup {
    position: fixed;
    top: 20px; /* adjust vertical position */
    right: 20px; /* adjust horizontal position */
    background-color: #4CAF50; /* green for success */
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 16px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

