:root {
  --primary: #e036cd;
  --bg: #5a404d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: aliceblue;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 0.8);
  border-bottom: 1px solid #42233f;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #ef64ab;
}

.navbar .navbar-logo span {
  color: var(--primary);
  font-style: italic;
}

.navbar .navbar-nav a {
  color: aliceblue;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0, 1rem solid var(--primary);
  transform: scaleX(0);
}

.navbar .navbar-nav :hover ::after {
  transform: scaleX(0.5);
  transition: 0.2s linear;
}

.navbar .navbar-extra a {
  color: aliceblue;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#saladbuah-menu {
  display: none;
}

/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("images/header-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(
    0 deg,
    rgba (1, 1, 3, 1) 8%,
    rgba(255, 255, 255, 0) 55%
  );
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 5em;
  color: #090a0ae6;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  animation: fadeDown 1.5s ease-out;
}

.hero .content h1 span {
  color: #42233f;
}

.hero .content p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeUp 2s ease-out;
  mix-blend-mode: difference;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1, 4rem;
  color: aliceblue;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 1, 3, 0.5);
}
/* Animasi */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* about section */
.about,
.menu,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.menu h2 span,
.contact h2 span {
  color: black;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 50rem;
}

.about .row .about-img img {
  width: 100%;
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 100;
  line-height: 1.6;
}
/* Menu section */
.menu h2,
.contact h2 {
  margin-bottom: 1rem;
}
.menu p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 100;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.menu .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.menu .row .menu-card {
  text-align: center;
  max-width: 300px;
}

.menu .row .menu-card .menu-card-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}
.menu .row .menu-card .menu-card-price {
  margin: 1rem auto 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  margin-top: 5px;
}

/* contact section */
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: #eab6d1;
  flex-wrap: wrap;
}

.contact .row .map {
  flex: 1 1 45rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  border: none;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .row form .input-group {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: #42233f;
  border: 1px seashell;
  padding-left: 2rem;
}

.contact .row form .input-group input {
  width: 100%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: #eceef3;
}

.contact .row form .btn {
  margin-top: 3rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  color: #eceef3;
  background-color: #ef64ab;
  cursor: pointer;
}

/* footer  */
footer {
  background-color: rgb(186, 212, 233);
  text-align: center;
  padding: 1rem 0 3rem;
}

footer .sosials a {
  color: rgb(99, 139, 220);
  margin: 1rem;
  transition: 0.3s;
}

footer .sosials a:hover,
footer .links a:hover {
  color: black;
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  padding: 0.7rem 1rem;
}

footer .creadit {
  font-size: 0.8rem;
}

footer .creadit a {
  color: black;
  font-weight: 700;
}
/* ==== MODAL ==== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  max-width: 90%;
  color: black;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/* ==== CART LIST ==== */
#cartItems {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

#cartItems li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.qty-controls {
  display: flex;
  align-items: center;
}

.qty-controls button {
  margin: 0 4px;
  padding: 3px 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #2e7d32;
  color: white;
}

.qty-controls button:hover {
  background: #1b5e20;
}

.qty-controls span {
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.remove-item {
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
  margin-left: 8px;
}

.remove-item:hover {
  color: darkred;
}
#searchInput {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#searchResults {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

#searchResults li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#searchResults li:hover {
  background: #f1f1f1;
}

.add-to-cart {
  display: inline-block;
  background: #ff4081; /* pink segar */
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.add-to-cart:hover {
  background: #e73370; /* pink lebih gelap */
  transform: scale(1.05);
}

.add-to-cart:active {
  transform: scale(0.95);
}

/* Badge keranjang */
#cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Select metode pembayaran */
#paymentMethod {
  width: 100%;
  padding: 8px;
  margin: 10px 0 15px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 30px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
.menu-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}



/* media queries */

/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 60%;
  }
}
/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 40%;
  }

  #saladbuah-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #eceef3;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: rgb(224, 218, 224);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
    color: black;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover ::after {
    transform: scaleX(0.2);
  }

  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    height: 30rem;
    object-fit: cover;
    object-position: center;
  }

  .about .row .content {
    padding: 0;
  }

  .about .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }

  .menu p {
    font-size: 1.2rem;
  }
}
.contact .row {
  flex-wrap: wrap;
}

.contact .row .map {
  height: 30rem;
}

.contact .row form {
  padding-top: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* mobile phone */
@media (max-width: 450px) {
  html {
    font-size: 30%;
  }
}
@media (max-width: 768px) {
  .menu-card-price {
    font-size: 1.1rem;
  }
}
