.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.active,
.tab:hover {
  background: var(--primary);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1rem;
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.card img {
  width: 100%;
  height: 198px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--primary);
}

.price {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.order-btn {
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.order-btn:hover,
.cart:hover {
  background: var(--primary-dark);
}

.cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 2000;
  width: max-content;
  max-width: 90%;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.order form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.order form input {
  margin: 10px 0;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.order form input:focus {
  border-color: transparent;
  outline: 2px solid var(--accent);
}

.order form button {
  margin: 10px 0;
}

.order form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 620px;
  margin: 0.8rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.cart-item-meta small {
  color: #666;
  font-size: 0.8rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f7f2ef;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.remove-btn {
  background: transparent;
  border: 1px solid #c94545;
  color: #c94545;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .qty-controls {
    align-self: stretch;
    justify-content: center;
  }

  .cart-item-actions {
    width: 100%;
    align-items: flex-start;
  }
}
