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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0 px;
  width: 100%;
  overflow-x: hidden;
}

/* Navigation */
nav {
  padding: 10px 2%;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#flex {
  display: flex;
  align-items: center;
}

.logo{
  width: 25px;
  border-radius: 50%;
}

#left-view a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8b933;
  font-weight: bold;
}

#right-view {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 20px;
}

#cart-link {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  margin: auto;
}

/* Buttons */
#bnt-1 {
  background-color: #007bff;
  color: whitesmoke;
  border: none;
  border-radius: 7px;
  height: 20px;
}

#menu-list a {
  margin: 5px;
  color: #fff;
  text-decoration: none;
  font-family: sans-serif;
  flex-shrink: 0;
}

#menu-list a:hover {
  background-color: #f8b933;
  color: #fff;
  width: fit-content;
  border-radius: 7px;
}

.btn-2 {
  background-color: #f8b933;
  color: white;
  border: none;
  padding: 5px 7px;
  padding-top: 3px;
  border-radius: 6px;
  cursor: pointer;
}
#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-items li {
  background-color: #fafafa;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#cart-items li span {
  font-weight: bold;
}

#cart-items button {
  margin-left: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

#cart-items button:nth-child(1) {
  background-color: orange;
}

#cart-items button:nth-child(2) {
  background-color: red;
}

p {
  font-size: 20px;
  margin-top: 20px;
  font-weight: bold;
  text-align: right;
  color: #333;
}

button[onclick*="checkoutViaWhatsApp"] {
  background-color: #25d366;
  padding: 12px 20px;
  font-size: 16px;
  display: block;
  margin: 30px auto 0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button[onclick*="checkoutViaWhatsApp"]:hover {
  background-color: #1ebe5c;
}


/* =========================
   Delivery Section Styling
   ========================= */
   label[for="location"] {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
    padding-left: 10px;
}

#location {
    width: 50%;
    max-width: 300px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    outline: none;
    transition: border 0.3s ease;
}

#location:focus {
    border-color: #4CAF50; /* green accent on focus */
}

#delivery-fee,
#total-with-delivery {
    font-weight: bold;
    color: #333;
}

p {
    margin: 8px 0;
    font-size: 16px;
    padding: 0 10px;
}

/* =========================
   Responsive Styling
   ========================= */
@media (max-width: 768px) {
    label[for="location"] {
        font-size: 14px;
    }

    #location {
        max-width: 500%;
        font-size: 14px;
        padding: 6px 10px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    label[for="location"] {
        font-size: 13px;
        padding: 10px;
    }

    #location {
        font-size: 13px;
        padding: 10px 8px;
    }

    p {
        font-size: 13px;
    }
}

/* ----------------------------
   MEDIA QUERIES FOR RESPONSIVENESS
---------------------------- */




/* Laptops & Tablets (<=1024px) */
@media (max-width: 1024px) {
  nav {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

/* Tablets & Large Phones (<=768px) */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #menu-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* Small Phones (<=480px) */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  #menu-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }

  #menu-list a{
    font-size: 17px;
    font-weight: bold;
  }
}
/* ===========================
   MAIN NAV STYLE
=========================== */
nav#flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2%;
  background: #2a2a2a;
 
  margin-top: 7px;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* LEFT */
#left-view a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}


/* CENTER MENU */
#menu-list {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

#menu-list a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 8px;
}

/* RIGHT */
#right-view a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}


/* ===========================
   LAPTOP (<=1024px)
=========================== */
@media (max-width: 1024px) {
  #menu-list {
    gap: 10px;
  }

  #menu-list a {
    font-size: 14px;
  }
}


/* ===========================
   TABLET (<=768px)
=========================== */
@media (max-width: 768px) {
  nav#flex {
    padding: 10px 2%;
  }

  #menu-list {
    gap: 8px;
  }

  #menu-list a {
    font-size: 13px;
    padding: 5px 7px;
  }
}


/* ===========================
   SMALL PHONES (<=480px)
=========================== */
@media (max-width: 480px) {
  nav#flex {
    padding: 10px 2%;
  }

  #menu-list {
    gap: 6px;
  }

  #menu-list a {
    font-size: 11.5px;
    padding: 4px 5px;
  }

  .logo {
    width: 18px;
  }
}