/* New Colo */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: white;
}

header {
  background-color: #583065;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

.outlet {
  font-size: 14px;
  color: #ddd;
}

main {
  padding: 30px 20px;
}

h2 {
  font-size: 26px;
  
  text-align: center;
}

.menu-section h3 {
  margin-top: 30px;
  font-size: 22px;
  color: #b679e5;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.item-card {
  background-color: #b679e5;
  color: black;
  padding: 15px;
  border-radius: 10px;
  min-width: 150px;
  text-align: center;
}

.item-card button {
  margin-top: 10px;
  background-color: #583065;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.item-card button:hover {
  background-color: #7e4890;
}

.cart-action {
  margin-top: 30px;
  text-align: center;
}

.cart-action a {
  background-color: #583065;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
}

.cart-action a:hover {
  background-color: #7e4890;
}

footer {
  background-color: #583065;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ------------------ RESET & BASE ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fffdfa;
  color: #222;
  min-height: 100vh;
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Wrapper to center all pages */
.page-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  margin: 0 auto;
  overflow-x: hidden;
}

/*--------- Login card ---------*/
.login-card {
  max-width: 420px;
  border-radius: 15px;
  padding: 2rem;
  background-color: #b679e5;
}

/* Logo image inside login form */
.logo-img {
   
  height: 215px;
}

.logo a {
  display: inline-block; /* Keeps layout intact */
}

/* Optional: Input box style */
.form-control {
  border-radius: 8px;

}

.form-label {
  color: white;
}

/* Optional: Submit button */
.btn-danger {
  font-weight: 600;
  padding: 10px 0;
}

.comic-heading {
      font-family: 'Comic Neue', cursive;
      font-size: 28px;
      color: #ffffff;
      letter-spacing: 1px;
  }
.comic-heading1 {
    
      font-size: 12px;
      color: #fff;
      letter-spacing: 1px;
      font-weight: bold;
  }


/* ------------------ NAVBAR ------------------ */
.navbar {
  background-color: #b679e5;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.navbar a:hover {
  opacity: 0.8;
}

/* ------------------ BUTTONS ------------------ */
button, .btn {
  background-color: #583065;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  font-weight: bold;
}
.btn{
  font-weight: bold;
}
button:hover, .btn:hover {
  background-color: #7e4890;
  color: #fff;
  font-weight: bold;
}

/* ------------------ FORMS ------------------ */
input[type="text"], input[type="number"], input[type="password"], 
input[type="email"], select {
  padding: 0.6rem;
  width: 100%;
  border: 1px solid #583065;
  border-radius: 5px;
  margin-bottom: 1rem;
  
}

input:focus {
  border-color: #7e4890;
  outline: none;
}

/* ------------------ HEADER ------------------ */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 16px;
  border-bottom: 2px solid #b679e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  white-space: nowrap;
  overflow-x: hidden;
}

.main-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-header .logo img {
  height: 80px;
  width: auto;
}

.main-header .logo span {
  font-size: 20px;
  font-weight: bold;
  color: #583065;
  font-family: 'Segoe UI', sans-serif;
}

.back-btn,
.logout-btn {
  background-color: #583065;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  font-size: 0.9rem;
}

.back-btn:hover,
.logout-btn:hover {
  background-color: #ffffff;
  color: #7e4890;
  border: 2px solid #7e4890;
}

.comic-text {
  font-family: 'Comic Neue', cursive !important;
  font-weight: 700;
  font-size: 20px;
  color: #583065;
}


/* Prevent stacking at all sizes */
@media (max-width: 480px) {
  .main-header {
    padding: 8px 10px;
  }

  .main-header .logo span {
    font-size: 16px;
  }

  .main-header .logo img {
    height: 30px;
  }

  .back-btn,
  .logout-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}


/* ------------------ OUTLET PAGE ------------------ */
.outlet-card {
  background-color: #b679e5;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  border-radius: 12px;
}
.outlet-card:hover {
  transform: scale(1.05);
  background-color: #aa41cd;
}
.outlet-card img {
  height: 80px;
  object-fit: contain;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  z-index: 999;
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #7e4890;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ------------------ MENU ------------------ */
.title {
    background-color: #ffffff;        /* White background */
    color: #583065;                   /* Bold red text */
    padding: 10px 24px;
    border-left: 6px solid #583065;   /* Left red accent bar */
    border-radius: 6px;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    width: fit-content;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cart-container {
  text-align: right;
  margin-top: -5px;
  margin-bottom: 15px;
  font-weight: 600;
  color:#583065;
}

.search-box {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  color:#583065;
  border: 1px solid #583065;
}

.category-buttons {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-buttons button {
  background-color: #583065;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.menu-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.menu-item h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: #583065;
}

.price {
  font-weight: bold;
  color: #583065;
  margin-bottom: 10px;
}

.cart-btn {
  background-color: #583065;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.cart-btn:hover {
  background-color: #7e4890;
}


.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quantity-controls button {
  background-color: #583065;
  border: none;
  padding: 6px 10px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* ----------- CART PAGE STYLES ----------- */
.cart-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.cart-card {
  background: white;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s ease;
}

.cart-card:hover {
  transform: translateY(-2px);
}

.cart-card .info {
  flex: 1;
}

.cart-card h4 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #583065;
}

.cart-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  color: #583065;
}

.cart-card p {
  margin: 0;
  font-size: 14px;
  color: #583065;
}

.cart-card strong {
  color: #583065;
  font-size: 16px;
}

.cart-card .controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-card .controls button {
  padding: 4px 10px;
  font-size: 16px;
  background-color: #583065;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cart-card .controls button.remove {
  background-color: #583065;
}

.cart-card .controls span {
  font-size: 16px;
  font-weight: bold;
}

.total {
  font-weight: bold;
  text-align: right;
  Color:#583065;
  font-size: 25px;
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 600px) {
  .outlet-card img {
    height: 100px;
  }

  .menu-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #583065; /* Purple theme */
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 16px;
  transition: background 0.3s;
}

.floating-cart-btn:hover {
  background-color: #7e4890;
}
