/* === HOME PAGE STYLING === */
.home-page {
  background: url("coffee-bg.jpg") no-repeat center center;
  background-size: contain;
  background-color: #ffe6e6;
  height: 100vh;
  margin: 0;
  position: relative;
}

.overlay {
  position: absolute;
  bottom: 60px;
  width: 100%;
  text-align: center;
}

.view-menu-btn {
  background-color: #ff914d;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-menu-btn:hover {
  background-color: #e4762c;
  transform: scale(1.05);
}

/* === MENU PAGE === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fffaf5, #ffe7dc);
  margin: 0;
  color: #4e342e;
}

header {
  background-color: #5c4033;
  padding: 20px;
  text-align: center;
  color: white;
}

header p {
  color: #ffeccc;
}

.menu-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
}

.menu-item {
  background: #fffdf8;
  border: 1px solid #eac8a4;
  border-radius: 15px;
  padding: 20px;
  width: 230px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.menu-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.menu-item h3 {
  font-size: 20px;
}

.menu-item p {
  font-weight: bold;
  margin-bottom: 10px;
}

.menu-item button {
  background-color: #4e342e;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-item button:hover {
  background-color: #3e2723;
  transform: scale(1.05);
}

/* Cart Icon */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #3e2723;
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cart-icon span {
  background: red;
  border-radius: 50%;
  padding: 2px 8px;
  margin-left: 5px;
  font-weight: bold;
}

/* Cart Popup */
.cart-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #fffaf0;
  border: 2px solid #6f4e37;
  padding: 20px;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 998;
}

.cart-popup.hidden {
  display: none;
}

.cart-popup ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.cart-popup li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-popup button {
  background-color: #28a745;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.cart-popup button:hover {
  background-color: #218838;
}

.remove-btn {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* 🔴 Close Button */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-cart-btn:hover {
  background-color: #c9302c;
  transform: scale(1.05);
}
