/* ===== MONKE KRUNCH - style.css ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #6B3A2A;
  color: #fff;
}

/* NAV */
nav {
  background-color: #4a2518;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: auto;
}

.brand {
  color: #FFD700;
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  font-size: 15px;
}

.nav-links a:hover {
  background-color: #6B3A2A;
  border-radius: 4px;
}

.cart-btn {
  background-color: #FFD700;
  color: #4a2518;
  border: none;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.cart-btn:hover {
  background-color: #e6c200;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #FFD700;
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #4a2518;
  padding: 10px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 15px;
}

.mobile-menu a:hover {
  background-color: #6B3A2A;
}

/* PAGES */
.page {
  display: none;
  padding-top: 60px;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* HOME PAGE */
.home-container {
  text-align: center;
  padding: 80px 20px;
  background-color: #6B3A2A;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  margin-bottom: 20px;
}

.business-name {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 16px;
}

.business-desc {
  font-size: 16px;
  color: #f0d9c0;
  max-width: 500px;
  line-height: 1.7;
}

/* PRODUCT + CONTACT PAGE */
.page-content {
  background-color: #7a4030;
  min-height: calc(100vh - 60px);
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.page-title {
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 24px;
  text-align: center;
}

.category {
  font-size: 20px;
  color: #FFD700;
  margin: 28px 0 14px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 6px;
}

/* PRODUCT CARDS */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product-card {
  background-color: #5a2d1e;
  border-radius: 8px;
  padding: 14px;
  width: 200px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.product-card h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
}

.product-card .price {
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.product-card button {
  background-color: #FFD700;
  color: #4a2518;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

.product-card button:hover {
  background-color: #e6c200;
}

.product-card button.added {
  background-color: #28a745;
  color: #fff;
}

/* CONTACT */
.contact-box {
  background-color: #5a2d1e;
  padding: 24px;
  border-radius: 8px;
  max-width: 500px;
  margin: auto;
  font-size: 16px;
  line-height: 2;
}

.contact-box a {
  color: #FFD700;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* CART SIDEBAR */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

.overlay.open {
  display: block;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background-color: #fff;
  color: #333;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #4a2518;
  color: #FFD700;
}

.cart-header h3 {
  font-size: 18px;
}

.cart-header button {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 20px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-controls button {
  width: 26px;
  height: 26px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
}

.remove-btn {
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 16px;
}

.cart-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

.cart-total {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  border-top: 2px solid #eee;
  color: #333;
}

.checkout-btn {
  margin: 0 20px 20px;
  padding: 12px;
  background-color: #4a2518;
  color: #FFD700;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  width: calc(100% - 40px);
}

.checkout-btn:hover {
  background-color: #6B3A2A;
}

/* CHECKOUT FORM */
.checkout-form {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form label {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

.checkout-form input,
.checkout-form textarea {
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.checkout-form textarea {
  height: 70px;
  resize: vertical;
}

.payment-box {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.place-order-btn {
  margin-top: 10px;
  padding: 13px;
  background-color: #4a2518;
  color: #FFD700;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.place-order-btn:hover {
  background-color: #6B3A2A;
}

.order-summary {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.order-summary h4 {
  margin-bottom: 8px;
  color: #4a2518;
  font-size: 14px;
}

.order-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #555;
}

.order-summary .total-line {
  font-weight: bold;
  border-top: 1px dashed #ccc;
  margin-top: 6px;
  padding-top: 6px;
  color: #333;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  justify-content: center;
  align-items: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.modal-box h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #4a2518;
}

.modal-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-box button {
  background-color: #4a2518;
  color: #FFD700;
  border: none;
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: #4a2518;
  color: #FFD700;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 600;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .product-grid {
    justify-content: center;
  }
  .product-card {
    width: 160px;
  }
  .cart-sidebar {
    width: 100vw;
  }
}
