@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
@font-face {
  font-family: 'OnyxWeb';
  src: url('fonts/Onyx.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  margin: 0;
}
header {
  background: #2d8f2d;
  color: #fff;
  padding: 1em 0 0.5em 0;
  text-align: center;
  position: relative;
}
header h1 {
  font-family: 'OnyxWeb', Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 2.8em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#login-admin-link {
  position: absolute;
  left: 2vw;
  top: 1.2em;
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}
#cart-section {
  position: absolute;
  right: 2vw;
  top: 1.2em;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
  padding: 1em 1.5em;
  min-width: 200px;
  z-index: 10;
}
main {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 2em 2em 1em 2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  margin-top: 2em;
  position: relative;
}
#menu-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5em;
}
#menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin-top: 1em;
}
.menu-item {
  background: #f0f0f0;
  padding: 1em;
  border-radius: 6px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 1px 4px #0001;
}
.menu-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
button {
  background: #2d8f2d;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5em;
}
button:disabled {
  background: #aaa;
}
#checkout-section, #success-section {
  margin-top: 2em;
  text-align: center;
}
@media (max-width: 700px) {
  main { padding: 1em 0.5em; }
  #cart-section { min-width: 120px; padding: 0.5em 0.5em; }
  #menu-list { gap: 0.5em; }
  .menu-item { min-width: 120px; }
}
#cart-icon-container {
  position: absolute;
  right: 2vw;
  top: 1.2em;
  z-index: 20;
}
#cart-icon-btn {
  outline: none;
}
#cart-icon {
  font-size: 2em;
  color: #2d8f2d;
}
#cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.8em;
  display: none;
}
#cart-popup {
  display: none;
  position: absolute;
  right: 0;
  top: 2.5em;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
  border-radius: 8px;
  min-width: 250px;
  z-index: 100;
  padding: 1em;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
#cart-popup h3 {
  margin-top: 0;
  text-align: center;
}
#cart-popup button {
  width: 100%;
  margin-top: 1em;
}
#cart-list { color: #000; }
#cart-popup, #cart-popup * {
  color: #000 !important;
}
#cart-popup button {
  color: #fff !important;
}
#cart-popup #checkout-btn {
  background: #2d8f2d;
}
#cart-popup button[onclick^="removeFromCart"] {
  background: #e74c3c;
} 
/* --- Tambahan untuk merapikan menu utama --- */
.menu-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}
@media (max-width: 700px) {
  .menu-list {
    grid-template-columns: 1fr !important;
  }
}
.menu-item {
  min-height: 160px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
  transition: box-shadow 0.2s;
}
.menu-item img {
  margin-bottom: 12px;
}
.menu-item-info {
  width: 100%;
  text-align: center;
}
.menu-item button {
  margin-top: 12px;
  width: 100%;
  max-width: 180px;
} 
/* --- Grid 2 atas 1 bawah untuk about-grid di hero-right --- */
.hero-right .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.hero-right .about-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.hero-right .about-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-right .about-card:nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
@media (max-width: 900px) {
  .hero-right .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-right .about-card:nth-child(1),
  .hero-right .about-card:nth-child(2),
  .hero-right .about-card:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
} 
/* --- Samakan style menu makanan utama dengan admin/menu.php --- */
.menu-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px !important;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .menu-list { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .menu-list { grid-template-columns: 1fr !important; }
}
.menu-item {
  background: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #eee !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  max-width: 100%;
}
.menu-image {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 8px 8px 0 0 !important;
  background: #f5f5f5 !important;
  margin-bottom: 0 !important;
  display: block;
}
.menu-content {
  padding: 14px 14px 10px 14px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
.menu-name {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  color: #2d8f2d !important;
  margin-bottom: 4px !important;
}
.menu-description {
  color: #666 !important;
  margin-bottom: 6px !important;
  font-size: 0.97em !important;
  font-weight: 400 !important;
}
.menu-price {
  font-size: 1em !important;
  font-weight: 600 !important;
  color: #e67e22 !important;
  margin-bottom: 6px !important;
}
.menu-item button {
  padding: 8px 18px !important;
  border: 1px solid #eee !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  font-family: 'Georgia', 'Times New Roman', serif !important;
  font-size: 1em !important;
  background: #fff !important;
  color: #2d8f2d !important;
  box-shadow: none !important;
  transition: background 0.2s, color 0.2s, border 0.2s !important;
  margin-top: 8px !important;
  width: 100%;
  max-width: 180px;
  align-self: flex-end;
}
.menu-item button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}
.btn-primary { background: #eafbe5 !important; color: #2d8f2d !important; border-color: #2d8f2d !important; }
.btn-primary:hover { background: #2d8f2d !important; color: #fff !important; }
.btn-small { padding: 5px 12px !important; font-size: 0.95em !important; } 
/* --- Tata letak menu utama lebih menarik dan rapi (versi modern) --- */
.menu-item {
  position: relative;
  min-height: 240px;
  background: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #eee !important;
  box-shadow: 0 2px 8px #0001 !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0;
  max-width: 100%;
  transition: box-shadow 0.18s, transform 0.18s;
}
.menu-item:hover {
  box-shadow: 0 8px 24px #0002 !important;
  transform: translateY(-6px) scale(1.02);
}
.menu-item img, .menu-image {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 8px 8px 0 0 !important;
  background: #f5f5f5 !important;
  margin-bottom: 0 !important;
  display: block;
}
.menu-item-info {
  padding: 18px 16px 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 6px;
}
.menu-item-info h3 {
  font-size: 1.18em !important;
  font-weight: 700 !important;
  color: #2d8f2d !important;
  margin: 0 0 2px 0 !important;
}
.menu-item-info .menu-price-badge {
  display: inline-block;
  background: #e0e0e0;
  color: #222;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 14px 3px 14px;
  margin-bottom: 2px;
  margin-top: 0;
  letter-spacing: 0.5px;
}
.menu-item-info p {
  color: #888 !important;
  font-size: 0.98em !important;
  font-weight: 400 !important;
  margin: 0 0 6px 0 !important;
}
.menu-item button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: auto;
  min-width: 38px;
  padding: 8px 18px 8px 14px;
  font-size: 1em;
  border-radius: 8px;
  background: #2d8f2d;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.18s, box-shadow 0.18s;
}
.menu-item button:after {
  content: '\002b';
  font-size: 1.1em;
  margin-left: 6px;
}
.menu-item button:disabled {
  background: #bbb;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 700px) {
  .menu-item {
    min-height: 180px;
  }
  .menu-item button {
    right: 12px;
    bottom: 12px;
  }
  .menu-item-info {
    padding: 12px 8px 8px 8px !important;
  }
} 
/* --- Menu makanan lebih menarik dan modern --- */
.menu-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  padding: 16px 14px 24px 14px !important;
  position: relative;
  min-height: 120px;
}
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.menu-name {
  font-size: 1.18em !important;
  font-weight: 700 !important;
  color: #217a2d !important;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px #0001;
  margin: 0 !important;
  flex: 1;
}
.menu-price-badge {
  background: #ffe5c2;
  color: #e67e22;
  font-size: 1em;
  font-weight: 700;
  border-radius: 16px;
  padding: 4px 16px;
  margin-left: 8px;
  box-shadow: 0 1px 4px #0001;
  min-width: 80px;
  text-align: center;
  display: inline-block;
}
.menu-description {
  color: #888 !important;
  font-size: 0.97em !important;
  font-style: italic;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
}
.menu-item button {
  background: #2d8f2d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 1em !important;
  font-weight: 700 !important;
  padding: 10px 0 !important;
  margin: 16px auto 0 auto !important;
  box-shadow: 0 2px 8px #0001;
  display: block;
  width: auto;
  min-width: 120px;
  max-width: 220px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  text-align: center;
}
.menu-item button:before {
  content: '\002b';
  font-size: 1.2em;
  margin-right: 7px;
}
.menu-item button:after {
  content: '';
  margin-left: 0;
}
.menu-item button:hover:not(:disabled) {
  background: #256c25 !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px #0002;
}
.menu-item button:disabled {
  background: #bbb !important;
  color: #fff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
} 
/* --- Animasi shake untuk icon keranjang --- */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
.cart-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
/* --- Notifikasi kecil di kanan atas --- */
#cart-toast {
  position: fixed;
  top: 24px;
  right: 32px;
  background: #2d8f2d;
  color: #fff;
  font-size: 0.80em;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 18px;
  box-shadow: 0 4px 16px #0002;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cart-toast.show {
  opacity: 1;
  pointer-events: auto;
} 