/* style.css — KODE LENGKAP */
:root {
  --primary: #b65b5b;
  --bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: #ffffff;
  min-height: 100vh;
}

.navbar {
  display: flex; 
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
  background: linear-gradient(
    90deg,
    rgba(182, 91, 91, 1) 0%,
    rgba(182, 91, 91, 0.9) 100%
  );
  position: sticky; 
  top: 0;
  z-index: 99;
}

.navbar-logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
}

.navbar-nav {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.navbar-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.5rem;
}

/* PERBAIKAN NAVIGASI (TOMBOL KANAN) */
.navbar-misc {
  margin-left: auto; /* Mendorong elemen ke sisi paling kanan */
  display: flex;
  gap: 1rem; 
  align-items: center;
}

.nav-link-misc {
    color: #fff;
    text-decoration: none; 
    font-size: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 600;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px; 
    height: 38px;
    box-sizing: border-box;
}

.nav-link-misc:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.cart-icon-link {
    position: relative;
    padding: 0 5px; 
}
/* END NAVIGASI */


.hero {
  padding: 6rem 2rem;
  background-image: url("img/makananbg1.jpg"); /* Ganti dengan path gambar Anda */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
}

.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero .content {
  position: relative;
  z-index: 2;
}

.hero .content h1 {
  font-size: 2.25rem;
}
.hero .content p {
  margin: 1rem auto;
  max-width: 700px;
}
.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.menu {
  padding: 3rem 2rem;
  color: #222;
}
.menu h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 1.5rem; 
  max-width: 1200px;
  margin: 0 auto;
}

.menu-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.menu-card img {
  width: 100%;
  height: 140px;
  object-fit: contain; 
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.add-to-cart {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem; 
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600; 
  transition: background-color 0.2s;
}
.add-to-cart:hover {
    background-color: #a04a4a;
}

/* MODAL STYLES */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* KUNCI: Defaultnya disembunyikan */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000; /* Penting agar muncul di atas segalanya */
}
.modal .modal-content {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  color: #222; 
  position: relative;
}
.modal .close {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #aaa;
}

.about {
  padding: 3rem 2rem;
  background: #f7f7f7;
  color: #222;
}
.about .row {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 2rem auto 0;
}
.about .about-img {
    flex: 1 1 40%;
    text-align: center;
}
.about .about-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.about .content {
    flex: 1 1 60%;
}
.about .content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.about .content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review {
    padding: 3rem 2rem;
    color: #222;
}
.review h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer {
  background: linear-gradient(
    90deg,
    rgba(182, 91, 91, 1) 0%
  );
  color: #fff;
  padding: 2rem;
}
.footer .socials {
    text-align: center;
    margin-bottom: 1rem;
}
.footer .socials a {
    color: #fff;
    margin: 0 0.5rem;
}
.footer .links {
    text-align: center;
    margin-bottom: 1rem;
}
.footer .links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 1rem;
}
.footer .credit {
  text-align: center;
  margin-top: 1rem;
}

/* Login/Register Tab Styles */
.tab-container {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1rem;
}
.tab-button {
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}
.tab-button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}


/* small responsive tweaks */
@media (max-width: 768px) {
  .navbar-nav {
    display: none; 
  }
  
  .hero .content h1 {
    font-size: 1.6rem;
  }
  
  .about .row {
      flex-direction: column;
      text-align: center;
  }
}
@media (max-width: 480px) {
    .navbar {
        padding: 1rem 1rem;
    }
    .navbar-misc {
        gap: 0.5rem;
    }
    .nav-link-misc {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 70px;
    }
}