:root {
  --primary: #593a2d;
  --secondary: #8f5b17;
  --light: #f8f9fa;
  --text-dark: #333;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background: var(--primary);
  color: var(--white);
  padding: 25px 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

nav {
  margin-top: 15px;
}

nav button {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 20px;
  margin: 5px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

nav button:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

section {
  padding: 40px 20px;
  display: none;
  animation: fadeIn 0.5s ease;
  max-width: 1100px;
  margin: auto;
}

section.active {
  display: block;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: var(--primary);
  border-left: 5px solid var(--secondary);
  padding-left: 10px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.item {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.item h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--primary);
}

.item p {
  margin: 6px 0 10px;
  font-weight: 600;
  color: var(--secondary);
}

.add-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 25px;
  cursor: pointer;
  margin-bottom: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.add-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

/* 🛒 Cart Section */
.cart-items {
  margin-top: 25px;
}

.cart-item {
  background: var(--white);
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  font-weight: 500;
}

.cart-item span:first-child {
  color: var(--primary);
}

#total {
  margin-top: 15px;
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: bold;
}

.checkout-btn {
  margin-top: 20px;
  background: var(--secondary);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s ease;
}

.checkout-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.message {
  text-align: center;
  margin-top: 30px;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: bold;
}

/* 🌈 Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive Adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  nav button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

.cat-floating {
  position: fixed;         /* stays visible even when scrolling */
  bottom: 20px;            /* distance from bottom edge */
  right: 20px;             /* distance from right edge */
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;           /* always on top of everything */
  animation: appear 1s ease-in-out;
}

.cat-floating .cat {
  width: 90px;
  height: auto;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #50270d; 
}

.cat-floating .speech-bubble {
  background-color: #ededed;
  color: #333;
  padding: 10px 14px;
  border-radius: 15px;
  border: 2px solid #50270d;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  animation: float 2s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
