* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

/* HERO */
.menu-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.menu-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-link {
  position: absolute;
  top: 20px;
  left: 20px;
}

.menu-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease;
}

.menu-logo:hover {
  transform: scale(1.1);
}

.category-buttons {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-buttons button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.category-buttons button:hover,
.category-buttons button.active {
  background: crimson;
  border-color: crimson;
  color: #fff;
}

/* MENU & CARDS */
.menu-content-wrapper {
  display: flex;
  gap: 20px;
  padding: 40px 5%;
  max-width: 1200px;
  margin: auto;
}

.menu-content {
  flex: 1;
}

.category-section {
  display: none;
}

.category-section.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  animation: fadeIn 0.4s ease-in-out;
}

.item-card {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 15px;
  display: inline-flex; 
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
  max-width: 300px; 
  width: auto; 
  margin: 10px; 
}

.item-card:hover {
  transform: translateY(-5px);
}

.item-card img {
  max-width: 100%; 
  height: auto; 
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  align-self: center; 
}

.item-card h4 {
  font-size: 1.2rem;
  margin: 12px 0 6px;
  color: #111;
  text-align: center;
}

.item-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
}

.item-card .price {
  font-weight: 600;
  font-size: 1.1rem;
  color: crimson;
  text-align: center;
  margin-bottom: 8px;
}

.qty-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  padding: 6px 12px;
  font-size: 1.2rem;
  border: none;
  background: crimson;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.qty-count {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}


/* CART */
.cart-sidebar {
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.cart-sidebar h3 {
  text-align: center;
  margin-bottom: 15px;
}

#cartItems {
  list-style: none;
  margin-bottom: 15px;
}

#cartItems li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.cart-total {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.checkout-btn,
.clear-btn {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.checkout-btn {
  background: crimson;
  color: #fff;
}

.clear-btn {
  background: #ddd;
  color: #333;
}

/* MODAL */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.checkout-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.checkout-content h3 {
  margin-bottom: 15px;
}

.checkout-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.checkout-content li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.checkout-content .order-status {
  margin-top: 10px;
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

.checkout-content button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #222;
  color: #fff;
}

.checkout-content button:hover {
  background: #444;
}

.close-modal {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
}

/* STATUS BUTTON */
#orderStatusBtn {
  display: block;
  margin: 20px auto;
  background-color: #0a74da;
  color: white;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
}

#orderStatusBtn:hover {
  background-color: #085bb5;
}

/* MOBILE */
.floating-cart {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: crimson;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 1rem;
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-cart:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .floating-cart {
    display: block;
  }

  .cart-sidebar {
    display: none !important;
  }

  .menu-content-wrapper {
    padding-bottom: 90px;
  }

  #orderStatusBtn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    margin: 0;
  }

  .menu-logo {
    width: 90px;
    height: 90px;
  }

  .overlay h1 {
    margin-top: 80px;
    font-size: 1.6rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
