:root {
  --primary: #27ae60;
  --dark: #2c3e50;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 5%;
  background: rgb(39, 38, 38);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .judul {
  text-decoration: none;
  width: 100%;
}

header h1 a {
  color: rgb(202, 155, 92);
}
header h1 span {
  color: var(--primary);
}

header .keranjang {
  margin-top: 20px;
  font-size: 25px;
}

.categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-weight: bold;
}
.categories button {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: white;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.categories button:hover {
  background: #1a3d17;
  color: white;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 5%;
}

.food-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.food-card:hover {
  transform: translateY(-5px);
}
.food-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.food-info {
  padding: 15px;
}
.food-info h3 {
  margin: 0;
  font-size: 1.2rem;
}
.price {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.btn-add {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* Sidebar Pesanan */
.sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
  z-index: 200;
  padding: 20px;
}
.sidebar.active {
  right: 0;
}
.close-btn {
  font-size: 30px;
  cursor: pointer;
}
.btn-checkout {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* css riset */
.cf:before,
.cf:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.cf:after {
  clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
  *zoom: 1;
}
/* akhir css riset */
