/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark: #1e1e1e;
  --soft-dark: #2a2a2a;
  --text: #444;
  --muted: #777;
  --bg: #fafafa;
  --white: #ffffff;
  --accent: #c9a96a;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 42px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
  height: 44px;
}

.nav-right a,
.back-btn {
  text-decoration: none;
  margin-left: 22px;
  color: var(--dark);
  font-weight: 500;
  transition: opacity .3s ease;
}

.nav-right a:hover,
.back-btn:hover {
  opacity: .6;
}

/* ===============================
   HERO
================================ */
.hero {
  padding: 110px 20px;
  text-align: center;
  background: linear-gradient(135deg,#fff7ec,#ffffff);
  animation: fadeUp 1s ease both;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 46px;
  margin-bottom: 16px;
  color: var(--dark);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all .35s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

/* ===============================
   FILTER BAR
================================ */
.filter-bar {
  margin: 50px auto 10px;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-bar button {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  cursor: pointer;
  transition: all .3s ease;
}

.filter-bar button:hover {
  background: var(--dark);
  color: var(--white);
}

.filter-bar input {
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid #ddd;
  min-width: 220px;
}

/* ===============================
   MENU SECTION
================================ */
.menu-section {
  padding-bottom: 120px;
}

.menu-list {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
}

.menu-card {
  background: var(--white);
  border-radius: 26px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  transition: all .4s ease;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0,0,0,.12);
}

.menu-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
}

.menu-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--dark);
}

.harga {
  font-weight: 600;
  margin-bottom: 14px;
}

/* ===============================
   QTY CONTROL
================================ */
.qty-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
}

/* ===============================
   FLOATING CART
================================ */
.floating-cart {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
  transition: transform .3s ease;
}

.floating-cart:hover {
  transform: scale(1.08);
}

/* ===============================
   CHECKOUT
================================ */
.checkout-card {
  max-width: 540px;
  margin: 70px auto;
  background: var(--white);
  padding: 34px;
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(0,0,0,.1);
}

.checkout-card h2 {
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}

.checkout-total {
  margin-top: 24px;
  font-weight: 600;
  font-size: 18px;
}

.full {
  width: 100%;
  margin-top: 26px;
}

/* ===============================
   ADMIN DASHBOARD
================================ */
.admin-container {
  max-width: 920px;
  margin: 70px auto;
  padding: 20px;
}

.admin-container h1 {
  font-family: "Playfair Display", serif;
}

.admin-sub {
  color: var(--muted);
  margin-bottom: 32px;
}

.admin-card {
  background: var(--white);
  padding: 26px;
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(0,0,0,.1);
  margin-bottom: 32px;
}

.admin-card input,
.admin-card select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin-bottom: 14px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-menu-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-menu-item button {
  margin-left: auto;
  background: crimson;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
}

/* ===============================
   LOGIN
================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#fff7ec,#ffffff);
}

.login-card {
  width: 360px;
  background: var(--white);
  padding: 40px;
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

.login-card h2 {
  margin-bottom: 18px;
}

.login-card input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
}

.login-note {
  font-size: 13px;
  color: var(--muted);
}

/* ===============================
   ANIMATION
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
